lab11 / socitrack

A wearable platform for social interaction studies
https://dl.acm.org/doi/10.1145/3372224.3419190
Apache License 2.0
20 stars 15 forks source link

SW: Rev H Updates #16

Closed hedgecrw closed 2 years ago

hedgecrw commented 3 years ago
hedgecrw commented 3 years ago

nRF will now check that the first two bytes of the UICR-stored Device ID are c0:98. If this check fails, then the device ID has not been properly set and stored in UICR, and the device will notify the user of an error via the buzzer "unhappy error" sound.

hedgecrw commented 3 years ago

If absolutely no device in a network has a valid timestamp, then ranging is pointless. As such, if a device starts up with no valid timestamp, it will not advertise its presence, but it will scan for other devices. If another device exists that does have a valid timestamp, the first device will request the correct timestamp over a BLE characteristic, after which it will set its own RTC clock, then start advertising/operating as normal. In such a way, only devices with valid timestamps will be able to initiate creation of a network or share their times with other nearby devices.