openwsn-berkeley / mercator

Dense Wireless Connectivity Datasets for the IoT.
https://openwsn-berkeley.github.io/mercator/
11 stars 10 forks source link

Second device freezes #6

Closed keomabrun closed 8 years ago

keomabrun commented 8 years ago

The following error occurs when running the experiment in local with two m3 nodes. The second device does not respond anymore after the first step ("switch /dev/ttyUSB3 to idle"). It is not device dependent. It does not append when using the mercatorCLI script and following the same steps.

/dev/ttyUSB1
/dev/ttyUSB3
freq=11 transmitterPort=/dev/ttyUSB3
    switch /dev/ttyUSB3 to idle
    switch /dev/ttyUSB1 to idle
-----------timeout--------------/dev/ttyUSB3
    switch /dev/ttyUSB3 to RX
    switch /dev/ttyUSB1 to RX
-----------timeout--------------/dev/ttyUSB3
    switch /dev/ttyUSB3 to TX
freq=11 transmitterPort=/dev/ttyUSB1
    switch /dev/ttyUSB3 to idle
    switch /dev/ttyUSB1 to idle
-----------timeout--------------/dev/ttyUSB3
    switch /dev/ttyUSB3 to RX
    switch /dev/ttyUSB1 to RX
keomabrun commented 8 years ago

Race condition -> When adding time.sleep in the code, the error does not occur.