Project

General

Profile

Actions

Bug #5332

closed

cr1k_d doesn't reliably connect to logger

Added by Derik Barseghian over 13 years ago. Updated over 13 years ago.

Status:
Resolved
Priority:
Normal
Category:
sensor-view
Target version:
Start date:
03/01/2011
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5332

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

Blocks Kepler - Bug #5341: Belkin f5u409 usb=>serial dongle periodically stops workingNewDerik Barseghian03/04/2011

Actions
Actions

Also available in: Atom PDF