Beste,
Ik hoop dat iemand mij verder kan helpen.
Ik probeer mijn omvormer te laten loggen via websolarlog naar pvoutput.org.
Wat heb ik:
Omvormer: PowerOne aurora 4.2PVI
Communicatie via RS485 USB.
Hiervoor heb ik onderstaande USB naar RS485 adapter gekocht. (Dit omdat de meegeleverde niet werkt met mijn raspberry Pi)
http://www.ebay.nl/itm/5V...ain_0&hash=item4172fcf1ec
Ik heb deze als volgt aangesloten:
Power one: USB --> RS485
+T/R --- A+
-T/R --- B-
RTN --- +5V
Raspberry PI type B Versie 2.0 met 512MB RAM (8GB memory card)
De Raspberry heb ik geinstalleerd met Raspbian + WSL image en CurtBlankeSoftware.
Op de raspberry heb ik ook websolarlog werkend gekregen. Wel heb ik naar de laatste trunk moeten updaten om het weer aan de praat te krijgen. Het probleem wat ik heb, had ik zowel onder de stable release-1.0.0 als met onderstaande versie.
Info about your current version:
o Name: trunk
o Release date(revision):
o 2013-07-04 11:30:54(1079)
o You updated on:
o 2013-07-04 21:19:00
o Description:
o Trunk with NO support.
Op de pagina van websolarlog zie ik het volgende:
PowerOne is Live en Equal, rest blijft op 0 staan.
Deze output veranderd niet.
Het probleem wat ik nu heb is:
Wanneer ik gegevens opvraag uit de PowerOne krijg ik bij het ene commando keurig gegevens en bij andere commando’s een foutmelding. Door deze foutmelding zal er ook niet gelogd kunnen worden naar websolarlog. (vermoed ik)
Overzicht van de USB devices:
root@rasp-power1:~# sudo lsusb (Juiste output)
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 001 Device 005: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 006: ID 045e:0752 Microsoft Corp. Wired Keyboard 400
Bus 001 Device 007: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0
root@rasp-power1:~# aurora -Y 10 -T -a 2 -w 10 -e /dev/ttyUSB0 (Juiste output)
Current date/time: 04-Jul-2013 22:08:36
Daily Energy = 17.341 kWh
Weekly Energy = 69.761 kWh
Monthly Energy = 51.904 kWh
Yearly Energy = 2017.540 kWh
Total Energy = 2951.691 kWh
Partial Energy = 2951.646 kWh
root@rasp-power1:~# aurora -U25 -Y50 -w10 -D -a2 -d0 /dev/ttyUSB0 (Juiste output)
Input 1 Voltage = 141.441147 V
Input 1 Current = 0.009667 A
Input 1 Power = 1.367340 W
Input 2 Voltage = 141.087936 V
Input 2 Current = 0.008862 A
Input 2 Power = 1.250265 W
Grid Voltage Reading = 226.275269 V
Grid Current Reading = 1.495400 A
Grid Power Reading = 0.000000 W
Frequency Reading = 49.988003 Hz.
DC/AC Conversion Efficiency = 0.0 %
Inverter Temperature = 34.156384 C
Booster Temperature = 32.522820 C
Extended DSP Reporting
Vbulk = 352.846069 V
Vbulk Mid = 173.911682 V
Vbulk + = 0.000000 V
Vbulk - = 0.000000 V
Vbulk (Dc/Dc) = 349.079041 V
Ileak (Dc/Dc) Reading = 0.000000 A
Ileak (Inverter) Reading = 0.000000 A
Isolation Resistance (Riso) = 13.885506 Mohm
Grid Voltage (Dc/Dc) = 226.183914 V
Average Grid Voltage (VgridAvg) = 225.726242 V
Grid Voltage neutral = 279.274414 V
Grid Frequency (Dc/Dc) = 49.989002 Hz
Power Peak = 4329.155273 W
Power Peak Today = 3208.056396 W
Supervisor Temperature = 0.000000 C
Alim Temperature = 0.000000 C
Heak Sink Temperature = 0.000000 C
Temperature 1 = 0.000000 C
Temperature 2 = 0.000000 C
Temperature 3 = 0.000000 C
Fan 1 Speed = 0.000000 RPM
Fan 2 Speed = 0.000000 RPM
Fan 3 Speed = 0.000000 RPM
Fan 4 Speed = 0.000000 RPM
Fan 5 Speed = 0.000000 RPM
Pin 1 = 0.000000 W
Pin 2 = 0.000000 W
Power Saturation limit (Der.) = 0.000000 W
Reference Ring Bulk = 0.000000 V
Vpanel micro = 0.000000 V
Wind Generator Frequency = 0.000000 Hz
root@rasp-power1:~# aurora -b -a 2 -c -T -Y3 -d0 -e /dev/ttyUSB0 (foute output)
aurora -b -a 2 -c -T -Y3 -d0 -e /dev/ttyUSB0
szttyDevice: /dev/ttyUSB0
yDelay: 1
yTimeout 0 mS
yMaxRunTime ~
devLCKfile: </var/lock/LCK..ttyUSB0>
devLCKfileNew: </var/lock/LCK..ttyUSB0.4645>
Got Params
RunTime 20130704-22:12:46 v1.8.3
Endian : Little
PID : 4645
Attempting to get lock on Serial Port /dev/ttyUSB0...
Checking for lock
Checking process 4645 for lock
rPID: 4645 SubStrPos: aurora command: 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 (06) waited/max 13968/1000000 uS
Read char #2 RC=1 (34) waited/max 33/1000000 uS
Read char #3 RC=1 (42) waited/max 20/1000000 uS
Read char #4 RC=1 (4e) waited/max 32/1000000 uS
Read char #5 RC=1 (4e) waited/max 37/1000000 uS
Read char #6 RC=1 (cb) waited/max 29/1000000 uS
Read char #7 RC=1 (36) waited/max 18/1000000 uS
Read char #8 RC=1 (00) waited/max 45/1000000 uS
answer: 06 34 42 4e 4e cb 36 00
received 8 characters
Elapsed time since last comm 0 us
Attempt 2
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 10312/1000000 uS
Read char #2 RC=1 (06) waited/max 15/1000000 uS
Read char #3 RC=1 (34) waited/max 13/1000000 uS
Read char #4 RC=1 (42) waited/max 18/1000000 uS
Read char #5 RC=1 (4e) waited/max 15/1000000 uS
Read char #6 RC=1 (4e) waited/max 20/1000000 uS
Read char #7 RC=1 (cb) waited/max 14/1000000 uS
Read char #8 RC=1 (36) waited/max 19/1000000 uS
answer: 00 06 34 42 4e 4e cb 36
received 8 characters
CRC receive OK 36cb
Transmission State Check: 0
Model ID "4" Multipler 0.1617742 -- PVI-4.2-OUTD (new) --
Comm Check: OK
Elapsed time since last comm 1431 us
Attempt 1
Clearing read buffer Success!
szSerBufferSave OK! 02 3b 04 00 00 00 00 00 00 00
command: 02 3b 04 00 00 00 00 00 78 38
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) waited/max 99070/1000000 uS
answer: Got -1 characters
Elapsed time since last comm 0 us
Attempt 2
Clearing read buffer Success!
szSerBufferSave OK! 02 3b 04 00 00 00 00 00 00 00
command: 02 3b 04 00 00 00 00 00 78 38
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 (06) waited/max 21144/1000000 uS
Read char #2 RC=1 (42) waited/max 18/1000000 uS
Read char #3 RC=1 (47) waited/max 34/1000000 uS
Read char #4 RC=1 (e2) waited/max 15/1000000 uS
Read char #5 RC=1 (52) waited/max 59/1000000 uS
Read char #6 RC=1 (1b) waited/max 19/1000000 uS
Read char #7 RC=1 (c2) waited/max 19/1000000 uS
Read char #8 RC=1 (00) waited/max 15/1000000 uS
answer: 06 42 47 e2 52 1b c2 00
received 8 characters
Elapsed time since last comm 0 us
Attempt 3
Clearing read buffer Success!
szSerBufferSave OK! 02 3b 04 00 00 00 00 00 00 00
command: 02 3b 04 00 00 00 00 00 78 38
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) waited/max 97227/1000000 uS
answer: Got -1 characters
20130704-22:12:46
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.4645>
Clearing Serial Port Lock (4645)... done.
20130704-22:12:46: aurora: ERROR: Received bad return code (-1 59 4)
Complete 20130704-22:12:46
root@rasp-power1:~# aurora -s -A -a 2 -T -Y5 -l5 -M10 -D -e /dev/ttyUSB0 (foute output)
20130704-22:14:52: aurora: No response after 5 attempts
20130704-22:14:52: aurora: ERROR: Received bad return code (-1 0)
Ik hoop dat iemand mij verder kan helpen of kan aangeven wat er fout kan zitten.
Als er meer of specifiekere gegevens nodig zijn hoor ik het graag.
Helaas heb ik nog niet zo veel kennis van de Raspberry en Linux programmeertaal.
Alvast bedankt voor het lezen.
Groeten Alex.