Skip to content

firmware: Need to stop twice after synchronization loss

After a (final) synchronization loss, i.e. all participating devices are out-of-sync, the stop command has to be executed twice before the remote devices leave the measurement mode and enter the control mode.

Reproduce

Assume two participating devices 16 (connected via USB) and 19 (battery driven) and the following configuration file config.txt:

frame 0: dev 16 @ 2417 MHz
frame 1: dev 19 @ 2417 MHz

sync: 10 cycles ! 1 vdevs

txPower: -20dBm

Configure:

rss2i -a config -f config.txt -d 16,19

Start:

rss2i -a start -d 16,19

Force a synchronization loss e.g. by moving the remote device out of the radio range. Afterwards accomplish optimal transmitting conditions e.g. by arranging the two devices face-to-face. Try to stop the measurement:

rss2i -a stop

Expected Behaviour

The expected terminal output is

rss2i: Detecting connected devices... [16]
rss2i: Stopping measurement through device 16 as proxy...ok
rss2i: Disconnecting devices...ok

afterwards it is expected that both devices are in control mode.

Actual Behaviour

Terminal output is the expected one

rss2i: Detecting connected devices... [16]
rss2i: Stopping measurement through device 16 as proxy...ok
rss2i: Disconnecting devices...ok

the connected device has entered control mode successfully but the remote device is still in measurement mode, i.e. the green LED is blinking and the device cannot be accessed over-the-air e.g. when trying to re-configure the devices

rss2i -a config -f config.txt -d 16,19
rss2i: Detecting connected devices... [16]
rss2i: Configuration of device 16 successful
rss2i: Device 16 --over-the-air--> device 19
rss2i: _query@1982: WARN_OVERTHEAIR_TIMEOUT: timeout ocurred when trying to send data to device 19
rss2i: config@944: ERR_CONFIGURATION_FAILED: configuration of device 19 has not been successful
rss2i: Disconnecting devices...ok

After an additional stop command

rss2i -a stop
rss2i: Detecting connected devices... [16]
rss2i: Stopping measurement through device 16 as proxy...ok
rss2i: Disconnecting devices...ok

both devices have entered control mode successfully and can be accessed over-the-air

rss2i -a config -d 16,19 -f config.txt
rss2i: Detecting connected devices... [16]
rss2i: Configuration of device 16 successful
rss2i: Device 16 --over-the-air--> device 19
rss2i: Configuration of device 19 successful
rss2i: Disconnecting devices...ok