Frankkkkk / python-pylontech

Python lib to talk to pylontech lithium batteries 🔋 (US2000, US3000, ...) using RS485
MIT License
67 stars 32 forks source link

Can’t get any data from UP2500 #12

Open n4dmh opened 2 years ago

n4dmh commented 2 years ago

Hi! I’ve tried all combinations of A/B And DIP on/off (changing baud rate in code) and using L0/L1 But I don’t seem to get any answers from the battery. Currently the battery is not connected anywhere, but SOC does flash so I suppose it should reply in RS485?

Could this be just because the model is UP2500 vs US2000 and therefore it has some different commands?

or do I have some other issue?

what do you think, Frank?

thanks, Dennis

demoze commented 2 years ago

UP2500 RS485 protocol is completely different from US20000|US3000 version. it won't work. I'am also looking for the specification of the protocole. ;-)

abelsson commented 2 years ago

I have a UP2500 and started playing with this code today and have gotten some basic messages to work - I don't think it's too different from what's already implemented. It's too soon to open a MR, but I have some things pushed to my fork (https://github.com/abelsson/python-pylontech) which allows me to query status of a single battery in a way similar to #10.

demoze commented 2 years ago

Good job, do you have the specification for the UP2500 ?

abelsson commented 2 years ago

Afraid not, it was just trial and error.

Sven21279 commented 2 years ago

Moin, (Hello)

I bought a second battery this week. I use RS485 for readout.

you can use "~20024642E00202FD33\R" for the first batterie and "~20034642E00203FD31\R" for the second batterie.

I can readout both of my blocks using pythonscript in node-red.

regards from germany sorry for my english.