Recovering a Parking Bay with Heartbeats
Recovering a Parking Bay with Heartbeats
Try Press Step to follow the vacant heartbeat at 16:00 and compare the delivery lane with the app display.
Trace the same bay across four rows. The physical bay and sensor node can agree while the app still shows the previous state.
Delivery example
A vacant update goes missing
Recovery heartbeat
Shared clock
Read the static transcript
- A vacant update goes missing. At 12:01 the car leaves. The physical bay and the sensor node now read vacant. The change uplink is lost, so the app keeps displaying its last occupied state.
- The next heartbeat sends vacant. The heartbeat interval H is 4 h. At the next scheduled send, 16:00, the node reports vacant. Delivery is pending and the app still shows occupied.
- The app applies vacant. At 16:05 the heartbeat is applied. The wait from 12:01 to 16:00 was 3 h 59 min. Sending and applying took 5 min, so the app showed the old state for 4 h 4 min after the car left.
- The bound includes application time. If the next scheduled heartbeat is applied within delivery budget D, the maximum recovery delay is H + D. With an illustrative D of 5 min and H of 4 h, the bound is 4 h 5 min. The worked recovery took 4 h 4 min because one minute of the heartbeat interval had already elapsed when the car left.
- Replay the heartbeat loss. At 16:00 the heartbeat is lost and the app still has its old occupied record. At the configured freshness cutoff the app shows unknown. On a separate timer the backend flags the sensor for investigation after a day without reports. The next successful update can still repair the state. The freshness cutoff has no specified clock time in this example.
Observe The bay becomes vacant at 12:01 while the app stays occupied. At 16:00 the delivery lane shows Heartbeat pending, and at 16:05 the app changes to Vacant.
Explain The app keeps its old occupied record because the change uplink was lost. The heartbeat sent at 16:00 carries the sensor’s current vacant state and corrects the display when applied at 16:05.
Technical boundaries. The 4 h 5 min bound uses an illustrative 5 min delivery budget and assumes the next scheduled heartbeat is applied within that budget. The loss replay leaves the app’s freshness cutoff unspecified and shows the separate backend timer for flagging the sensor.