Scanning · Field
Scanning where there is no signal
The PrefabTag team
Basements, lift shafts, core-and-shell buildings with no service at all. What a scanning system has to do about it, and the two timestamps that settle an argument six weeks later.
The place a piece gets installed is usually the worst place in the building for a phone. Below grade, inside a steel frame, surrounded by concrete, often before the risers that will eventually carry a repeater are even in. Any tracking system that assumes a connection has already failed on the floor where it matters most.
Scan first, send later
The rule is simple: the scan must complete on the device, immediately, whether or not anything can be sent. The person scanning gets their confirmation from the phone in their hand, not from a server. Uploading is a background problem, and it is ours rather than theirs.
That means a queue on the device. A scan goes into it, the screen says done, and the queue drains whenever the phone next has service — in the lift, in the car park, at the end of the shift. A crew should be able to work all morning in a basement, walk out, and have everything land while they are eating lunch, without anybody pressing anything.
Two consequences follow from this, and they are the parts people get wrong.
Every scan needs an identity generated on the device
If a phone sends a scan and the reply is lost on the way back, the phone does not know whether it worked. Its only safe move is to send it again. Without something identifying that particular scan, the server has no way to tell a retry from a genuine second scan of the same piece — and now the count is wrong, in the direction that flatters you.
So each scan carries a key made on the device at the moment it happened. The server records the key with the event and rejects anything it has already seen. Retries become free. A phone can send the same queue five times over a flaky connection and the result is identical to sending it once.
This is worth being fussy about, because the failure is silent. Nobody notices double-counting; they just see progress that looks slightly better than the site does.
Record both clocks
Every event should carry two times: when the device said it happened, and when the server received it. They are different numbers and both are needed.
Device clocks are wrong more often than you would think. Phones come back from being off for a weekend, borrowed devices carry another time zone, somebody sets the clock forward to beat a lock screen. If the device time were the only record, one bad phone could file a morning's work under the wrong day.
Server time alone is no better. It only tells you when the phone found signal, which for basement work is hours after the fact and sometimes the next morning. A report built on it says the crew did nothing until 4pm.
Together the pair is useful, and in a dispute it is evidence. When a general contractor says a delivery did not arrive on the Tuesday, the record does not just say Tuesday: it says the scan was taken at 07:14 on the device and reached us at 09:02, from a phone belonging to a named person. That is a much harder thing to argue with than a status field somebody typed.
A status is an opinion. A scan with two timestamps and a person attached is a record.
What to tell the crew
Three things, and no more:
- Scan it when you do it, not at the end of the day. Batching at 4pm produces a wall of events with the same timestamp and loses the sequence, which is the part that is useful later.
- A red screen means it did not count. Green means the phone has it, service or no service.
- Do not worry about signal. If they have to think about connectivity, the system has already failed them.
What to check as a manager
Look at the gap between the two timestamps rather than at the scan count. A widening gap means devices are not getting service anywhere on their route, and a queue that never drains is a queue that eventually gets cleared by somebody reinstalling the app. That is when data is genuinely lost — not in the basement, but on the walk back.