nmakel / solaredge_meterproxy

Modbus proxy for SolarEdge inverters and unsupported kWh meters
MIT License
29 stars 20 forks source link

how to setup #27

Open raymendo opened 1 year ago

raymendo commented 1 year ago

hello am running this on a raspberry pi and something is not okay can someone please explain in detail how to setup this

in my scenario, i have SDM320 over USB rs485 and solaredge se3000 the logging levels show nothing useful (debug) is there a way to know if the transferred data are correct the goal is to achieve 0 export at the inverter

2023-01-18 03:03:08 DEBUG: Frame check failed, ignoring!! 2023-01-18 03:03:08 DEBUG: Resetting frame - Current Frame in buffer - 0x1 0x4 0x10 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x3d 0x7d 0x33 0x23 0x9d 0xb1 2023-01-18 03:03:08 DEBUG: Handling data: 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab 2023-01-18 03:03:08 DEBUG: Getting Frame - 0x3 0x6 0x40 0x0 0x17 2023-01-18 03:03:08 DEBUG: Factory Request[ReadHoldingRegistersRequest': 3] 2023-01-18 03:03:08 DEBUG: Frame advanced, resetting header!! 2023-01-18 03:03:08 DEBUG: validate: fc-[3] address-1601: count-23 2023-01-18 03:03:08 DEBUG: getValues: fc-[3] address-1601: count-23 2023-01-18 03:03:08 DEBUG: send: [ReadHoldingRegistersResponse (23)]- b'02032e000000000005000500050005000000010000000f0001271027102710fc18fc18fc1805dc0078000000004e2000000a36' 2023-01-18 03:03:08 DEBUG: Frame - [b'\x02\x03\x06@\x00\x17\x04\xab'] not ready 2023-01-18 03:03:09 DEBUG: Handling data: 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab 2023-01-18 03:03:09 DEBUG: Getting Frame - 0x3 0x6 0x40 0x0 0x17 2023-01-18 03:03:09 DEBUG: Factory Request[ReadHoldingRegistersRequest': 3] 2023-01-18 03:03:09 DEBUG: Frame advanced, resetting header!! 2023-01-18 03:03:09 DEBUG: validate: fc-[3] address-1601: count-23 2023-01-18 03:03:09 DEBUG: getValues: fc-[3] address-1601: count-23 2023-01-18 03:03:09 DEBUG: send: [ReadHoldingRegistersResponse (23)]- b'02032e000000000005000500050005000000010000000f0001271027102710fc18fc18fc1805dc0078000000004e2000000a36' 2023-01-18 03:03:09 DEBUG: Frame - [b'\x02\x03\x06@\x00\x17\x04\xab'] not ready 2023-01-18 03:03:10 DEBUG: Handling data: 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab 2023-01-18 03:03:10 DEBUG: Getting Frame - 0x3 0x6 0x40 0x0 0x17 2023-01-18 03:03:10 DEBUG: Factory Request[ReadHoldingRegistersRequest': 3] 2023-01-18 03:03:10 DEBUG: Transaction failed. (device reports readiness to read but returned no data (device disconnected or multiple access on port?)) 2023-01-18 03:03:10 DEBUG: Frame advanced, resetting header!! 2023-01-18 03:03:10 DEBUG: Frame - [b''] not ready 2023-01-18 03:03:10 DEBUG: validate: fc-[3] address-1601: count-23 2023-01-18 03:03:10 DEBUG: Getting transaction 1 2023-01-18 03:03:10 DEBUG: getValues: fc-[3] address-1601: count-23 2023-01-18 03:03:10 DEBUG: Changing transaction state from "PROCESSING REPLY" to "TRANSACTION_COMPLETE" 2023-01-18 03:03:10 DEBUG: send: [ReadHoldingRegistersResponse (23)]- b'02032e000000000005000500050005000000010000000f0001271027102710fc18fc18fc1805dc0078000000004e2000000a36' 2023-01-18 03:03:10 DEBUG: Frame - [b'\x02\x03\x06@\x00\x17\x04\xab'] not ready 2023-01-18 03:03:10 DEBUG: Current transaction state - TRANSACTION_COMPLETE 2023-01-18 03:03:10 DEBUG: Running transaction 102 2023-01-18 03:03:10 DEBUG: SEND: 0x1 0x4 0x1 0x56 0x0 0x4 0x10 0x25 2023-01-18 03:03:10 DEBUG: Changing state to IDLE - Last Frame End - None, Current Time stamp - 1674010990.561256 2023-01-18 03:03:10 DEBUG: New Transaction state "SENDING" 2023-01-18 03:03:10 DEBUG: Changing transaction state from "SENDING" to "WAITING FOR REPLY" 2023-01-18 03:03:10 DEBUG: Handling data: 0x1 0x4 0x8 0x43 0x58 0x25 0xe3 0x43 0x7 0x42 0x4e 0x6f 0xdf 2023-01-18 03:03:10 DEBUG: Frame check failed, ignoring!! 2023-01-18 03:03:10 DEBUG: Resetting frame - Current Frame in buffer - 0x1 0x4 0x8 0x43 0x58 0x25 0xe3 0x43 0x7 0x42 0x4e 0x6f 0xdf 2023-01-18 03:03:10 DEBUG: Handling data: 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab 2023-01-18 03:03:10 DEBUG: Getting Frame - 0x3 0x6 0x40 0x0 0x17 2023-01-18 03:03:10 DEBUG: Factory Request[ReadHoldingRegistersRequest': 3] 2023-01-18 03:03:10 DEBUG: Frame advanced, resetting header!! 2023-01-18 03:03:10 DEBUG: validate: fc-[3] address-1601: count-23 2023-01-18 03:03:10 DEBUG: getValues: fc-[3] address-1601: count-23 2023-01-18 03:03:10 DEBUG: send: [ReadHoldingRegistersResponse (23)]- b'02032e000000000005000500050005000000010000000f0001271027102710fc18fc18fc1805dc0078000000004e2000000a36' 2023-01-18 03:03:10 DEBUG: Frame - [b'\x02\x03\x06@\x00\x17\x04\xab'] not ready 2023-01-18 03:03:11 DEBUG: Handling data: 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab 2023-01-18 03:03:11 DEBUG: Getting Frame - 0x3 0x6 0x40 0x0 0x17 2023-01-18 03:03:11 DEBUG: Factory Request[ReadHoldingRegistersRequest': 3] 2023-01-18 03:03:11 DEBUG: Frame advanced, resetting header!! 2023-01-18 03:03:11 DEBUG: validate: fc-[3] address-1601: count-23 2023-01-18 03:03:11 DEBUG: getValues: fc-[3] address-1601: count-23 2023-01-18 03:03:11 DEBUG: send: [ReadHoldingRegistersResponse (23)]- b'02032e000000000005000500050005000000010000000f0001271027102710fc18fc18fc1805dc0078000000004e2000000a36' 2023-01-18 03:03:11 DEBUG: Frame - [b'\x02\x03\x06@\x00\x17\x04\xab'] not ready 2023-01-18 03:03:12 DEBUG: Handling data: 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab 2023-01-18 03:03:12 DEBUG: Getting Frame - 0x3 0x6 0x40 0x0 0x17 2023-01-18 03:03:12 DEBUG: Factory Request[ReadHoldingRegistersRequest': 3] 2023-01-18 03:03:12 DEBUG: Transaction failed. (device reports readiness to read but returned no data (device disconnected or multiple access on port?)) 2023-01-18 03:03:12 DEBUG: Frame advanced, resetting header!! 2023-01-18 03:03:12 DEBUG: Frame - [b''] not ready