Bug #5332
closedcr1k_d doesn't reliably connect to logger
0%
Description
Fairly often cr1k_d fails to connect to the logger. I get output like:
CR1K sample rate should be 30 second(s)> <MAIN> Open Serial Port: /dev/ttyUSB0 Succefully!> <MAIN> Connecting to datalogger...
[ERR-recvFrame] timeout (get data 0 bytes)> [ERR] cmdRING> Link error> <MAIN> [ERR] fail to connect datalogger, please check cable> <MAIN> [ERR] Driver initialization failed> Serial port /dev/ttyUSB0 closed> cr1k_d exit
or:
CR1K sample rate should be 30 second(s)> <MAIN> Open Serial Port: /dev/ttyUSB0 Succefully!> <MAIN> Connecting to datalogger...> [ERR] Link State error after cmdRING (09)> <MAIN> [ERR] fail to connect datalogger, please check cable> <MAIN> [ERR] Driver initialization failed> Serial port /dev/ttyUSB0 closed
-> cr1k_d exit
I thought it might be dcd_mgr interfering, but that doesn't seem to be -- in span.sh, which launches both processes, I added a long sleep between them and cr1k_d still periodically fails.
I'll add this to the list of questions/requests for ISI folks.
If we're unable to find a better solution, an alternate is to detect the fail and retry N times.
Related issues