problems with aurora

124 views
Skip to first unread message

Colin Tree

unread,
Apr 25, 2017, 9:57:07 PM4/25/17
to WebSolarLog
I am using websolarlog and a PVI-5000 inverter,
websolarlog uses aurora for comms and is running on an Allwinner A64 based board.

Has anyone got aurora working ??
I've constantly had ERROR: Received bad return code (-1 0)

it is using a serial port <-> rs485 converter 19200,n,8,1,(rts/cts and no handshaking)
transmit/receive enable is wired from uart RTS inverted to DE,RE
I have a second serial port using minicom,
listening (only) to the rs485 lines, displaying hex.

aurora -X -n -a 2 /dev/ttyS3
02 d3 0e 70 80 00 00 00 00 01 bb ff
aurora -X -s -a 2 /dev/ttyS3
02 d3 0e 70 80 00 00 00 00 01 bb ff
aurora  -n -a 2 /dev/ttyS3
02 3a 00 00 00 00 00 00 01 b7
aurora  -s -a 2 /dev/ttyS3
02 3a 00 00 00 00 00 00 01 b7

if I change the address to a non-existent inverter e.g. 3, 4 or 5
aurora -s -a 3 /dev/ttyS3
03 3a 00 00 00 00 00 00 be 36
aurora -s -a 4 /dev/ttyS3
04 3a 00 00 00 00 00 00 b0 aa
aurora -s -a 5 /dev/ttyS3
05 3a 00 00 00 00 00 00 0f 2b

-X  changes the transmitted message (after address)
the address (1st byte) is working
the command (2nd byte) is wrong (should be -s 0x32 -n 0x3f)
always using -f 0x3a
crc is wrong



Colin Tree

unread,
Jun 2, 2018, 9:56:35 PM6/2/18
to WebSolarLog
solved with a cheap usb rs485 interface replacing the serial port rs232 <-> rs485 interface
has been working perfectly for a year.
issue closed
Reply all
Reply to author
Forward
0 new messages