I seem to have a very similar problem to the previous post by Peter_11.
I while back my rPi SD card died and I've only now got the setup going again. I have followed my previous notes and predominately Walter62's config (http://walter62.altervista.org/joomla/r ... datalogger).
The logger itself looks to be working correctly. I have data coming in, being sent to pvoutput.org and the different dials/live data is coming through ok.
Note, I'm using a RS485 to USB adapter (RAlink 3070).
Everything seems to work however I get 'Communication error' in the Events Log (/123solar/data/invt1/infos/events.txt). These are not continuous but do occur and depend on the comms settings I use (see below).
I have read many forums including this form for help. I initially was using the Communication options -Y5 -l5 but it did not help. I then tried various combinations of the -Y -l -R -P switches. Using -Y7 -l10 -R1000 significantly reduced the comms errors but the live data stopped working.
I then started using the -Y and -w combinations. I currently have it set to -Y10 -w5 and haven't been getting any comms errors in the event log. That looks good so far.
However when I turn the debug on (I wanted to see if all comms were good) I get comms errors again in the event log, and the /errors directory starts to fill with files about every 5 seconds (logs available here: https://www.sugarsync.com/pf/D6071553_94691054_734964).
Opening these files I see that the tests/commands return Success! except for the last line which returns an ERROR code like the next two examples:
Code: Select all
Restoring Serial Port settings /dev/ttyUSB0... Success! Flushing serial device buffer... Success! Closing Serial Port /dev/ttyUSB0... Success! devLCKfile: </var/lock/LCK..ttyUSB0> devLCKfileNew: </var/lock/LCK..ttyUSB0.16451> Clearing Serial Port Lock (16451)... done. 20150224-12:13:20: aurora: ERROR: Received bad return code (-1 78)
Code: Select all
Restoring Serial Port settings /dev/ttyUSB0... Success! Flushing serial device buffer... Success! Closing Serial Port /dev/ttyUSB0... Success! devLCKfile: </var/lock/LCK..ttyUSB0> devLCKfileNew: </var/lock/LCK..ttyUSB0.16514> Clearing Serial Port Lock (16514)... done. 20150224-12:13:22: aurora: ERROR: Received bad return code (-1 59 26)
Am I missing something here?
Should I be concerned?