dingo35 / SmartEVSE-3.5

Smart Electric Vehicle Charging Station (EVSE)
MIT License
38 stars 13 forks source link

Add Sinotimer DTS6619 EVmeter #90

Closed kwertie01 closed 4 days ago

kwertie01 commented 1 week ago

I add code to support the Sinotimer DTS6619 KWh meter. Bought from Aliexpress: https://www.aliexpress.com/item/1005006374239794.html RS485 Dgital Bidirectional Wattmeter 100A 380V AC Three Phase Photovoltatic Energy Meter kWh Power Voltage Current Instrument.

Main changes:

While testing with the active power data of only 1 phase. I noticed that the minimum data length for modbus was limited to 8 bytes. I think this is not correct. It could be 7 bytes if the data returned is 16 bit (2 bytes). Or even 6 bytes when only 1 byte is returned.

Below the protocol info delivered with the device (contains one error: the divider for Phase ABC Current is not 0.1A but 0.01A) Modbus

I hope this is the correct way to contribute :-)

mstegen commented 4 days ago

Hi @kwertie01 Thanks for your contribution!

I have looked at your code, and i think it's ready to be included. I have double checked the modbus response length, and you are right, 7 bytes is the minimum when reading just 1 register. adr(1) fc(1) len(1) reg(2) crc(2) @dingo35 can you include it?

dingo35 commented 4 days ago

Thanks all !!