Integration & Gateways · Study deck
Mobile Gateway Challenges
A mobile gateway collecting field-sensor data can lose signal, enter battery saver, heat up in sunlight, or be closed by its user.
Gateway Gus is your guide for this deck.

After studying this chapter
Learning objectives
You will be able to:
- treat a mobile gateway as an operational state machine rather than a fixed appliance
- measure the power budget instead of relying on quoted specifications
- choose store-and-forward as the default behavior for an intermittently connected phone gateway
- separate proximity from ownership and define the security and privacy boundary
Major section
A Phone Is Not a Fixed Appliance
A bench demo did not test that shift.
- A gateway is a device or service that joins local sensors to a wider network.
- A phone can do that job, but it also serves a person.
- Its power, radios, storage, rights, location, and screen can change during the day.
- Those details can narrow the approved shift.
Major section
Phoebe's Field Notes: Why "Usable Capacity" Is Smaller Than the Label
Holding 20% in reserve leaves 3200 mAh or 12.32 Wh, so an eight-hour gateway shift allows 400 mA average before ordinary phone use.
- The mathematical gist.: A 4000 mAh, 3.85 V phone pack stores 15.40 Wh at nameplate.
Major section
Budget a Survey Shift on the Mobile gateway
The team reserves 25% of that starting charge for calls, navigation, and a safe return, so the gateway budget is (3{,}200\ \mathrm{mAh}\times0.75=2{,}400\ \mathrm{mAh}).
- A cellular upload might draw far more current than local Bluetooth collection and can warm the mobile gateway.
- Offline storage needs its own bound.
Major section
Budget a Survey Shift on the Mobile gateway (continued)
User action is another state transition.
- If sensing, Bluetooth, processing, and uploads average 260 mA, the estimated gateway runtime is (2{,}400\ \mathrm{mAh}/260\ \mathrm{mA}=9.23\ \mathrm{h}).
- Batch ten minutes of records, then upload once, if the application can tolerate that delay.
- Storage pressure needs an end state.
Major section
Budget a Survey Shift on the Mobile gateway (continued)
If alarms must arrive within 30 seconds, the mobile gateway needs a separate urgent path rather than using the long batch interval for every message.
- At one 500-byte record every 5 s, the mobile gateway stores 12 records per minute.
- A four-hour outage creates (12\times60\times4=2{,}880) records, or 1,440,000 payload bytes before database overhead.
- The operating system is part of the design.
Major section
Budget a Survey Shift on the Mobile gateway (continued)
Background limits may pause scans, users may deny Bluetooth or location permission, and an app update may restart work.
- The gateway should show whether collection is active, when the last sensor sample arrived, how many records await upload, and which permission blocks progress.
- Silent background failure makes a healthy-looking mobile gateway a poor evidence source.
- Hardware and mobile operating systems vary by model, radio conditions, temperature, battery age, and policy.
Major section
Budget a Survey Shift on the Mobile gateway (continued)
If the surveyor revokes Bluetooth permission, the app should keep stored records, stop claiming live collection, and explain how to restore access.
- If the mobile gateway is replaced, transfer only data and credentials allowed by policy; do not clone an identity that makes two handsets appear to be one gateway.
- Those observations explain why two nominally identical eight-hour routes can consume different charge.
- The app must show which rule acted and how many identities were affected.
- The interface should state the last sample time, pending count, permission state, and next safe action without requiring access to developer logs.
Major section
Summary
A mobile gateway is not a fixed appliance; it can lose power, lose coverage, move away from sensors, be backgrounded by the operating system, or carry sensitive data, and its conditions change mid-shift.
- A mobile gateway release is an operational evidence problem, so a single lab connection is not acceptance; review power, connectivity, mobility, platform, security, and evidence.
Major section
Summary (continued)
The power budget must be measured under the actual gateway duty cycle and kept separate from normal user-device load; compare the measured draw against usable capacity divided by required runtime.
- The radio policy states scan mode, upload path, location use, freshness target, and battery and privacy guardrails, and names who owns changes to settings or permissions.
- The operating system is part of the gateway, so review permissions, background mode, and behavior after updates, reboot, low-power mode, and permission revocation.
- Proximity is not ownership; a binding rule plus stable identity and idempotent, deduplicated upload prevent two phones from double-reporting the same sensor.
Deck summary
Key takeaways
A bench demo did not test that shift.
- Holding 20% in reserve leaves 3200 mAh or 12.32 Wh, so an eight-hour gateway shift allows 400 mA average before ordinary phone use.
- The team reserves 25% of that starting charge for calls, navigation, and a safe return, so the gateway budget is (3{,}200\ \mathrm{mAh}\times0.75=2{,}400\ \mathrm{mAh}).
- User action is another state transition.
- If alarms must arrive within 30 seconds, the mobile gateway needs a separate urgent path rather than using the long batch interval for every message.
Retrieval practice
Recall check 1 of 3

Gateway Gus says: answer from memory, then check your reasoning.
Q1Why is a single lab demonstration that 'the phone connected to the sensor' not enough to accept a mobile gateway?
Show answer
Answer: C A mobile gateway release is an operational evidence problem; one success under ideal conditions does not represent a real shift.
Retrieval practice
Recall check 2 of 3

Gateway Gus says: answer from memory, then check your reasoning.
Q2A test phone lasts a full day in normal use, but the gateway app will scan for sensors, store records, and upload batches in the background. What evidence is needed before accepting the runtime claim?
Show answer
Answer: B A normal-use battery result does not include the gateway workload, especially scanning, buffering, and upload batches in the background; the release needs gateway-specific measured evidence with test conditions.
Retrieval practice
Recall check 3 of 3

Gateway Gus says: answer from memory, then check your reasoning.
Q3Two staff phones both move within range of the same sensor and each uploads its readings. What does the release need so this does not corrupt the data?
Show answer
Answer: D Proximity is not ownership; without a binding rule and idempotent deduplicated uploads, two phones double-report the same reading and inflate downstream counts.
Print reference
Answers
Answer key.
- C · A mobile gateway release is an operational evidence problem; one success under ideal conditions does not represent a real shift.
- B · A normal-use battery result does not include the gateway workload, especially scanning, buffering, and upload batches in the background; the release needs gateway-specific measured evidence with test conditions.
- D · Proximity is not ownership; without a binding rule and idempotent deduplicated uploads, two phones double-report the same reading and inflate downstream counts.