leodesigner / powmr4500_comm

PowMr 4500W/6500W Inverter communication protocol
GNU General Public License v3.0
12 stars 2 forks source link

PowMr 4500 #11

Open lordlightman opened 3 months ago

lordlightman commented 3 months ago

Hello @leodesigner. First of all, I'd like to thank you for your work on reverse engineering the communication protocol of PowMr 4500/6500 inverter.

Unfortunately, I'm facing some issues when communicating with my inverter. It's PowMr 24V 4500W model. When I'm sending a request for state, I'm not getting a response from the inverter:

[21:30:32][D][uart_debug:114]: >>> 88 51 00 03 00 00 00 00 4D 08
[21:30:32][D][light:036]: 'comm_led' Setting:
[21:30:32][D][light:047]:   State: ON
[21:30:32][D][light:036]: 'comm_led' Setting:
[21:30:32][D][light:047]:   State: OFF
[21:30:37][D][uart_debug:114]: >>> 88 51 00 03 02 00 00 00 4C B0
[21:30:37][D][light:036]: 'comm_led' Setting:
[21:30:37][D][light:047]:   State: ON
[21:30:37][D][light:036]: 'comm_led' Setting:
[21:30:37][D][light:047]:   State: OFF
[21:30:42][D][uart_debug:114]: >>> 88 51 00 03 00 00 00 00 4D 08

Can you please walk me through the process of reverse engineering the 88510003000000004d08 sequence for state request so that I can try doing it on my inverter? Perhaps, it has some differences compared to 48V 6500W model.

Also, in the readme you state that

The serial speed is 9600 baud, mode 8N1 (8 bits, 1 stop bit)

Should it be the case for all inverters of this family?

leodesigner commented 3 months ago

Hey, there is a new version of firmware released for this inverter with the longer packet. Please check updated header file and ESPHOME related project here: https://github.com/lufton/esphome-inv-8851

Regarding the reverse engineering process: I just simply captured data communication between inverter and DTU device.

lordlightman commented 3 months ago

Hey @leodesigner, I'll check that out, thanks.

I am new to this ESP stuff, can you please share what hardware have you used to captured data between the inverter and DTU?

leodesigner commented 3 months ago

Just any ESP8266/ESP32 board with the RS232 converter.

See this project documentation: https://github.com/syssi/esphome-smg-ii