|
$ python pymodbusclienttest.py |
|
Connected successfully to /dev/ttyXRUSB0 |
|
2020-08-03 22:19:31,093 MainThread DEBUG transaction :117 Current transaction state - IDLE |
|
2020-08-03 22:19:31,093 MainThread DEBUG transaction :122 Running transaction 1 |
|
2020-08-03 22:19:31,093 MainThread DEBUG transaction :230 SEND: 0x1 0x2b 0xe 0x1 0x0 0x70 0x77 |
|
2020-08-03 22:19:31,093 MainThread DEBUG sync :75 New Transaction state 'SENDING' |
|
2020-08-03 22:19:31,093 MainThread DEBUG transaction :239 Changing transaction state from 'SENDING' to 'WAITING FOR REPLY' |
|
2020-08-03 22:19:31,132 MainThread DEBUG transaction :319 Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY' |
|
2020-08-03 22:19:31,132 MainThread DEBUG transaction :248 RECV: 0x1 0x2b 0xe 0x1 0x1 0x0 0x0 0x3 0x0 0x15 0x45 0x50 0x73 0x6f 0x6c 0x61 0x72 0x20 0x54 0x65 0x63 0x68 0x20 0x63 0x6f 0x2e 0x2c 0x20 0x4c 0x74 0x64 0x1 0xa 0x54 0x72 0x69 0x52 0x6f 0x6e 0x33 0x32 0x31 0x30 0x2 0xd 0x56 0x30 0x31 0x2e 0x35 0x35 0x2b 0x56 0x30 0x31 0x2e 0x32 0x32 0x2a 0xe0 |
|
2020-08-03 22:19:31,132 MainThread DEBUG rtu_framer :164 Got uid=1 func_code=43 - Current Frame in buffer - 0x1 0x2b 0xe 0x1 0x1 0x0 0x0 0x3 0x0 0x15 0x45 0x50 0x73 0x6f 0x6c 0x61 0x72 0x20 0x54 0x65 0x63 0x68 0x20 0x63 0x6f 0x2e 0x2c 0x20 0x4c 0x74 0x64 0x1 0xa 0x54 0x72 0x69 0x52 0x6f 0x6e 0x33 0x32 0x31 0x30 0x2 0xd 0x56 0x30 0x31 0x2e 0x35 0x35 0x2b 0x56 0x30 0x31 0x2e 0x32 0x32 0x2a 0xe0 |
|
2020-08-03 22:19:31,132 MainThread DEBUG rtu_framer :194 Getting Frame - 0x2b 0xe 0x1 0x1 0x0 0x0 0x3 0x0 0x15 0x45 0x50 0x73 0x6f 0x6c 0x61 0x72 0x20 0x54 0x65 0x63 0x68 0x20 0x63 0x6f 0x2e 0x2c 0x20 0x4c 0x74 0x64 0x1 0xa 0x54 0x72 0x69 0x52 0x6f 0x6e 0x33 0x32 0x31 0x30 0x2 0xd 0x56 0x30 0x31 0x2e 0x35 0x35 0x2b 0x56 0x30 0x31 0x2e 0x32 0x32 |
|
2020-08-03 22:19:31,132 MainThread DEBUG factory :266 Factory Response[ReadDeviceInformationResponse: 43] |
|
2020-08-03 22:19:31,132 MainThread DEBUG rtu_framer :116 Frame advanced, resetting header!! |
|
2020-08-03 22:19:31,132 MainThread DEBUG transaction :398 Adding transaction 1 |
|
2020-08-03 22:19:31,132 MainThread DEBUG rtu_framer :249 Frame - [0x1 0x2b 0xe 0x1 0x1 0x0 0x0 0x3 0x0 0x15 0x45 0x50 0x73 0x6f 0x6c 0x61 0x72 0x20 0x54 0x65 0x63 0x68 0x20 0x63 0x6f 0x2e 0x2c 0x20 0x4c 0x74 0x64 0x1 0xa 0x54 0x72 0x69 0x52 0x6f 0x6e 0x33 0x32 0x31 0x30 0x2 0xd 0x56 0x30 0x31 0x2e 0x35 0x35 0x2b 0x56 0x30 0x31 0x2e 0x32 0x32 0x2a 0xe0] not ready |
|
2020-08-03 22:19:31,132 MainThread DEBUG rtu_framer :254 Done processIncomingPacket loop. Buffer contents: [] |
|
2020-08-03 22:19:31,132 MainThread DEBUG transaction :409 Getting transaction 1 |
|
2020-08-03 22:19:31,132 MainThread DEBUG transaction :204 Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE' |
|
ReadDeviceInformationResponse(1) |
|
1 |
|
{0: b'EPsolar Tech co., Ltd', 1: b'TriRon3210', 2: b'V01.55+V01.22'} |
|
Manufacturer: b'EPsolar Tech co., Ltd' |
|
Model: b'TriRon3210' |
|
Version: b'V01.55+V01.22' |
|
2020-08-03 22:19:31,133 MainThread DEBUG transaction :117 Current transaction state - TRANSACTION_COMPLETE |
|
2020-08-03 22:19:31,133 MainThread DEBUG transaction :122 Running transaction 2 |
|
2020-08-03 22:19:31,133 MainThread DEBUG transaction :230 SEND: 0x1 0x4 0x31 0x1a 0x0 0x1 0x1e 0xf1 |
|
2020-08-03 22:19:31,133 MainThread DEBUG rtu_framer :282 Changing state to IDLE - Last Frame End - 1596518371.132479, Current Time stamp - 1596518371.133094 |
|
2020-08-03 22:19:31,133 MainThread DEBUG rtu_framer :290 Waiting for 3.5 char before next send - 1.75 ms |
|
2020-08-03 22:19:31,134 MainThread DEBUG sync :75 New Transaction state 'SENDING' |
|
2020-08-03 22:19:31,135 MainThread DEBUG transaction :239 Changing transaction state from 'SENDING' to 'WAITING FOR REPLY' |
|
2020-08-03 22:19:31,155 MainThread DEBUG transaction :319 Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY' |
|
2020-08-03 22:19:31,155 MainThread DEBUG transaction :248 RECV: 0x1 0x4 0x2 0x0 0x61 0x78 0xd8 |
|
2020-08-03 22:19:31,155 MainThread DEBUG rtu_framer :164 Got uid=1 func_code=4 - Current Frame in buffer - 0x1 0x4 0x2 0x0 0x61 0x78 0xd8 |
|
2020-08-03 22:19:31,155 MainThread DEBUG rtu_framer :164 Got uid=1 func_code=4 - Current Frame in buffer - 0x1 0x4 0x2 0x0 0x61 0x78 0xd8 |
|
2020-08-03 22:19:31,156 MainThread DEBUG rtu_framer :194 Getting Frame - 0x4 0x2 0x0 0x61 |
|
2020-08-03 22:19:31,156 MainThread DEBUG factory :266 Factory Response[ReadInputRegistersResponse: 4] |
|
2020-08-03 22:19:31,156 MainThread DEBUG rtu_framer :116 Frame advanced, resetting header!! |
|
2020-08-03 22:19:31,156 MainThread DEBUG transaction :398 Adding transaction 1 |
|
2020-08-03 22:19:31,156 MainThread DEBUG rtu_framer :249 Frame - [0x1 0x4 0x2 0x0 0x61 0x78 0xd8] not ready |
|
2020-08-03 22:19:31,156 MainThread DEBUG rtu_framer :254 Done processIncomingPacket loop. Buffer contents: [] |
|
2020-08-03 22:19:31,156 MainThread DEBUG transaction :409 Getting transaction 1 |
|
2020-08-03 22:19:31,157 MainThread DEBUG transaction :204 Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE' |
|
Battery SOC = 97% |
|
2020-08-03 22:19:31,157 MainThread DEBUG transaction :117 Current transaction state - TRANSACTION_COMPLETE |
|
2020-08-03 22:19:31,157 MainThread DEBUG transaction :122 Running transaction 3 |
|
2020-08-03 22:19:31,157 MainThread DEBUG transaction :230 SEND: 0x1 0x4 0x31 0x5 0x0 0x1 0x2f 0x37 |
|
2020-08-03 22:19:31,157 MainThread DEBUG rtu_framer :282 Changing state to IDLE - Last Frame End - 1596518371.155067, Current Time stamp - 1596518371.1578 |
|
2020-08-03 22:19:31,157 MainThread DEBUG rtu_framer :290 Waiting for 3.5 char before next send - 1.75 ms |
|
2020-08-03 22:19:31,160 MainThread DEBUG sync :75 New Transaction state 'SENDING' |
|
2020-08-03 22:19:31,160 MainThread DEBUG transaction :239 Changing transaction state from 'SENDING' to 'WAITING FOR REPLY' |
|
2020-08-03 22:19:31,184 MainThread DEBUG transaction :319 Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY' |
|
2020-08-03 22:19:31,185 MainThread DEBUG transaction :248 RECV: 0x1 0x4 0x2 0x0 0x0 0xb9 0x30 |
|
2020-08-03 22:19:31,185 MainThread DEBUG rtu_framer :164 Got uid=1 func_code=4 - Current Frame in buffer - 0x1 0x4 0x2 0x0 0x0 0xb9 0x30 |
|
2020-08-03 22:19:31,185 MainThread DEBUG rtu_framer :164 Got uid=1 func_code=4 - Current Frame in buffer - 0x1 0x4 0x2 0x0 0x0 0xb9 0x30 |
|
2020-08-03 22:19:31,185 MainThread DEBUG rtu_framer :194 Getting Frame - 0x4 0x2 0x0 0x0 |
|
2020-08-03 22:19:31,185 MainThread DEBUG factory :266 Factory Response[ReadInputRegistersResponse: 4] |
|
2020-08-03 22:19:31,185 MainThread DEBUG rtu_framer :116 Frame advanced, resetting header!! |
|
2020-08-03 22:19:31,186 MainThread DEBUG transaction :398 Adding transaction 1 |
|
2020-08-03 22:19:31,186 MainThread DEBUG rtu_framer :249 Frame - [0x1 0x4 0x2 0x0 0x0 0xb9 0x30] not ready |
|
2020-08-03 22:19:31,186 MainThread DEBUG rtu_framer :254 Done processIncomingPacket loop. Buffer contents: [] |
|
2020-08-03 22:19:31,186 MainThread DEBUG transaction :409 Getting transaction 1 |
|
2020-08-03 22:19:31,186 MainThread DEBUG transaction :204 Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE' |
|
Charging equipment output current = 0.0A |
|
2020-08-03 22:19:31,187 MainThread DEBUG transaction :117 Current transaction state - TRANSACTION_COMPLETE |
|
2020-08-03 22:19:31,187 MainThread DEBUG transaction :122 Running transaction 4 |
|
2020-08-03 22:19:31,187 MainThread DEBUG transaction :230 SEND: 0x1 0x4 0x30 0x0 0x0 0x9 0x3f 0xc |
|
2020-08-03 22:19:31,187 MainThread DEBUG rtu_framer :282 Changing state to IDLE - Last Frame End - 1596518371.184767, Current Time stamp - 1596518371.187603 |
|
2020-08-03 22:19:31,187 MainThread DEBUG rtu_framer :290 Waiting for 3.5 char before next send - 1.75 ms |
|
2020-08-03 22:19:31,189 MainThread DEBUG sync :75 New Transaction state 'SENDING' |
|
2020-08-03 22:19:31,190 MainThread DEBUG transaction :239 Changing transaction state from 'SENDING' to 'WAITING FOR REPLY' |
|
2020-08-03 22:19:31,215 MainThread DEBUG transaction :319 Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY' |
|
2020-08-03 22:19:31,216 MainThread DEBUG transaction :248 RECV: 0x1 0x4 0x12 0x27 0x10 0xb 0xb8 0x30 0xb0 0x0 0x1 0x9 0x60 0xb 0xb8 0x30 0xb0 0x0 0x1 0x0 0x2 0x10 0x49 |
|
2020-08-03 22:19:31,216 MainThread DEBUG rtu_framer :164 Got uid=1 func_code=4 - Current Frame in buffer - 0x1 0x4 0x12 0x27 0x10 0xb 0xb8 0x30 0xb0 0x0 0x1 0x9 0x60 0xb 0xb8 0x30 0xb0 0x0 0x1 0x0 0x2 0x10 0x49 |
|
2020-08-03 22:19:31,216 MainThread DEBUG rtu_framer :164 Got uid=1 func_code=4 - Current Frame in buffer - 0x1 0x4 0x12 0x27 0x10 0xb 0xb8 0x30 0xb0 0x0 0x1 0x9 0x60 0xb 0xb8 0x30 0xb0 0x0 0x1 0x0 0x2 0x10 0x49 |
|
2020-08-03 22:19:31,216 MainThread DEBUG rtu_framer :194 Getting Frame - 0x4 0x12 0x27 0x10 0xb 0xb8 0x30 0xb0 0x0 0x1 0x9 0x60 0xb 0xb8 0x30 0xb0 0x0 0x1 0x0 0x2 |
|
2020-08-03 22:19:31,217 MainThread DEBUG factory :266 Factory Response[ReadInputRegistersResponse: 4] |
|
2020-08-03 22:19:31,217 MainThread DEBUG rtu_framer :116 Frame advanced, resetting header!! |
|
2020-08-03 22:19:31,217 MainThread DEBUG transaction :398 Adding transaction 1 |
|
2020-08-03 22:19:31,217 MainThread DEBUG rtu_framer :249 Frame - [0x1 0x4 0x12 0x27 0x10 0xb 0xb8 0x30 0xb0 0x0 0x1 0x9 0x60 0xb 0xb8 0x30 0xb0 0x0 0x1 0x0 0x2 0x10 0x49] not ready |
|
2020-08-03 22:19:31,217 MainThread DEBUG rtu_framer :254 Done processIncomingPacket loop. Buffer contents: [] |
|
2020-08-03 22:19:31,217 MainThread DEBUG transaction :409 Getting transaction 1 |
|
2020-08-03 22:19:31,217 MainThread DEBUG transaction :204 Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE' |
|
ReadRegisterResponse (9) |
|
[10000, 3000, 12464, 1, 2400, 3000, 12464, 1, 2] |
|
2020-08-03 22:19:31,218 MainThread DEBUG transaction :117 Current transaction state - TRANSACTION_COMPLETE |
|
2020-08-03 22:19:31,218 MainThread DEBUG transaction :122 Running transaction 5 |
|
2020-08-03 22:19:31,218 MainThread DEBUG transaction :230 SEND: 0x1 0x43 0x30 0x0 0x0 0x6e 0xca 0xe9 |
|
2020-08-03 22:19:31,218 MainThread DEBUG rtu_framer :282 Changing state to IDLE - Last Frame End - 1596518371.2159, Current Time stamp - 1596518371.218656 |
|
2020-08-03 22:19:31,218 MainThread DEBUG rtu_framer :290 Waiting for 3.5 char before next send - 1.75 ms |
|
2020-08-03 22:19:31,220 MainThread DEBUG sync :75 New Transaction state 'SENDING' |
|
2020-08-03 22:19:31,221 MainThread DEBUG transaction :239 Changing transaction state from 'SENDING' to 'WAITING FOR REPLY' |
|
2020-08-03 22:19:31,266 MainThread DEBUG transaction :319 Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY' |
|
2020-08-03 22:19:31,267 MainThread DEBUG transaction :248 RECV: 0x1 0x43 0xdc 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 0x41 0xff 0x27 0x10 0xb 0xb8 0x30 0xb0 0x0 0x1 0x9 0x60 0xb 0xb8 0x30 0xb0 0x0 0x1 0x0 0x2 0xb 0xb8 0x0 0x0 0xfa 0xe3 |
|
2020-08-03 22:19:31,267 MainThread DEBUG rtu_framer :164 Got uid=1 func_code=67 - Current Frame in buffer - 0x1 0x43 0xdc 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 0x41 0xff 0x27 0x10 0xb 0xb8 0x30 0xb0 0x0 0x1 0x9 0x60 0xb 0xb8 0x30 0xb0 0x0 0x1 0x0 0x2 0xb 0xb8 0x0 0x0 0xfa 0xe3 |
|
2020-08-03 22:19:31,268 MainThread DEBUG rtu_framer :164 Got uid=1 func_code=67 - Current Frame in buffer - 0x1 0x43 0xdc 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 0x41 0xff 0x27 0x10 0xb 0xb8 0x30 0xb0 0x0 0x1 0x9 0x60 0xb 0xb8 0x30 0xb0 0x0 0x1 0x0 0x2 0xb 0xb8 0x0 0x0 0xfa 0xe3 |
|
2020-08-03 22:19:31,268 MainThread DEBUG rtu_framer :194 Getting Frame - 0x43 0xdc 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 0x41 0xff 0x27 0x10 0xb 0xb8 0x30 0xb0 0x0 0x1 0x9 0x60 0xb 0xb8 0x30 0xb0 0x0 0x1 0x0 0x2 0xb 0xb8 0x0 0x0 |
|
2020-08-03 22:19:31,268 MainThread DEBUG factory :266 Factory Response[ReadSparseRegistersResponse: 67] |
|
2020-08-03 22:19:31,269 MainThread DEBUG rtu_framer :116 Frame advanced, resetting header!! |
|
2020-08-03 22:19:31,269 MainThread DEBUG transaction :398 Adding transaction 1 |
|
2020-08-03 22:19:31,270 MainThread DEBUG rtu_framer :249 Frame - [0x1 0x43 0xdc 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 0x41 0xff 0x27 0x10 0xb 0xb8 0x30 0xb0 0x0 0x1 0x9 0x60 0xb 0xb8 0x30 0xb0 0x0 0x1 0x0 0x2 0xb 0xb8 0x0 0x0 0xfa 0xe3] not ready |
|
2020-08-03 22:19:31,270 MainThread DEBUG rtu_framer :254 Done processIncomingPacket loop. Buffer contents: [] |
|
2020-08-03 22:19:31,270 MainThread DEBUG transaction :409 Getting transaction 1 |
|
2020-08-03 22:19:31,270 MainThread DEBUG transaction :204 Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE' |
|
ReadSparseRegistersResponse (110) |
|
[10000, 3000, 12464, 1, 2400, 3000, 12464, 1, 2, None, None, None, None, None, 3000, None, None, 0, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None] |
|
0xdc 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 0x41 0xff 0x27 0x10 0xb 0xb8 0x30 0xb0 0x0 0x1 0x9 0x60 0xb 0xb8 0x30 0xb0 0x0 0x1 0x0 0x2 0xb 0xb8 0x0 0x0 |
@cgm999 I don't know off-hand, but based on the data, I would guess some of those are "bit sets" - particularly those ones with values that are near powers of two. For instance the registers you've posted
0x9095
&0x9096
both have values close to2^16
(possibly implying a bit set with just a few bits - including the most significant bit - set to1
).Here's the corresponding values from a dump I have of a Tracer8420AN if that helps...
I kind of suspect that the tracer units themselves probably won't support that tail current detection mode for switching to from boost/eq to float, but if I were going to dig into it deeper, I would start by capturing more command traffic between the solar station (desktop) software and the tracer units. The other thing I might do is try and capture more traffic between the PAL-ADP-50AN unit and the tracer unit since I believe the PAL-ADP-50AN uses some real-time-register setting functionality that isn't used otherwise. I have a couple dumps of that kind of traffic that I could share if you're interested, but they'll take some serious sleuthing to use.
Good luck and let me know what you find. I'd be curious to know more about the units I have and might be open to some light-weight collaboration on the reverse-engineering/documenting front.