Vorrei fare il monitoraggio con 123solar installato su Raspberry Pi attraverso adattatore USB-RS485 comprato su Amazon https://www.amazon.it/gp/product/B078X5 ... UTF8&psc=1
Se utilizzo su PC Win10 con il programma ABB Aurora Manager Lite riesco a comunicare con l'inverter e a monitorare tutti i dati.
Viceversa se provo ad utilizzare il Raspberry Pi con Aurora 1.9.3 ottengo sempre:
Codice: Seleziona tutto
aurora: ERROR: Received bad return code (-1 0)
ho provato a modificare e combinare tutte le opzioni -Y -i -R in tutte le combinazioni possibili ma il risultato è sempre lo stesso.
Solo in rarissime occasioni ho ottenuto una specie di risposta come di seguito ma sarà accaduto una volta su 100 e comunque il risultato non mi sembra significativo:
Codice: Seleziona tutto
pi@solarlog:~/aurora-1.9.3 $ aurora -a2 /dev/ttyUSB0 -t -l5 -Y5 -b -N0
aurora -a2 /dev/ttyUSB0 -t -l5 -Y5 -b -N0
szttyDevice: /dev/ttyUSB0
yDelay: 5
yTimeout 0 mS
yMaxRunTime ~
devLCKfile: </var/lock/LCK..ttyUSB0>
devLCKfileNew: </var/lock/LCK..ttyUSB0.9438>
Got Params
RunTime 20190404-17:32:08 v1.9.3
Endian : Little
tm_gmtoff : yes
PID : 9438
Attempting to get lock on Serial Port /dev/ttyUSB0...
Checking for lock
PID: 9438 COMMAND: "aurora" LckPID: 9438 LckCOMMAND: "aurora" LckPIDcommand "aurora" = me
Appears we got the lock.
Opening Serial Port /dev/ttyUSB0... Serial Port /dev/ttyUSB0 successfully opened.
Configuring serial device... Flushing unread data first... Success!
Flushing serial device buffer... Success!
Comm Check: Let's see if the Aurora is listening...
Elapsed time since last comm 0 us
Attempt 1
Clearing read buffer Success!
szSerBufferSave OK! 02 3a 00 00 00 00 00 00 00 00
command: 02 3a 00 00 00 00 00 00 01 b7
Flushing serial device buffer... Success!
Sending command... sent 10 characters
Draining serial device buffer... Success!
Cleared data buffer: 00 00 00 00 00 00 00 00 00 00
Read char #1 RC=1 (00) waited/max 327/5000000 uS
Read char #2 RC=1 (06) waited/max 5/5000000 uS
Read char #3 RC=1 (f2) waited/max 5/5000000 uS
Read char #4 RC=1 (69) waited/max 5/5000000 uS
Read char #5 RC=1 (4e) waited/max 5/5000000 uS
Read char #6 RC=1 (4e) waited/max 4/5000000 uS
Read char #7 RC=1 (15) waited/max 4/5000000 uS
Read char #8 RC=1 (6c) waited/max 4/5000000 uS
answer: 00 06 f2 69 4e 4e 15 6c
received 8 characters
CRC receive OK 6c15
Transmission State Check: 0
Model ID "▒" qMultiplier -1.0000000 -- unknown --
Comm Check: OK
Elapsed time since last comm 89 us
Attempt 1
Clearing read buffer Success!
szSerBufferSave OK! 02 46 00 00 00 00 00 00 00 00
command: 02 46 00 00 00 00 00 00 d7 17
Flushing serial device buffer... Success!
Sending command... sent 10 characters
Draining serial device buffer... Success!
Cleared data buffer: 00 00 00 00 00 00 00 00 00 00
Read char #1 RC=0 (00)
answer: Got -1 characters
Ho come l'impressione che con gli ultimi modelli (anche se il mio è andato fuori produzione) abbiano introdotto un dialogo preliminare che aurora 1.9.3 non implementa e quindi la comunicazione fallisce.
Qualcuno ha capito come si può risolvere?
Grazie