-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing #2
Comments
Thanks for your support! I will ping you next week for some testing! |
Sure. FYI my BMS has the following ports: So far i have been able to decode the responses from the telemetry and communication commands via NodeRed. (Still working on decoding some of those 20bit warning responses). |
I've pushed a first draft of the external component: https://github.com/syssi/esphome-seplos-bms/blob/main/esp8266-example.yaml The component requests the telemetry frame periodically and decodes the contents to the log (for now):
I would be happy if you give it a try! |
Thanks for the update. I have tested the new draft. Seems to be getting errors. I have attached the log and mqtt messages. |
Thanks for testing! Your log containing some real responses helps a lot. |
You battery has 15 cells, right? |
Yes its 15 cells. |
I've pushed a fix to handle/decode shorter telemetry responses of a 15 cell system. Please give it a try. You can ignore the MQTT topics for now because all important output is written to the log. No sensors are implemented yet. |
Thanks Working Now. Attached logs. |
attached a more detailed log. seems to be getting the invalid header error in between readings. but overall its working well. |
The invalid header errors are fine because some bytes (-> the start of frame byte) gets missed every now and then. This can be improved by not using software serial. Let's ignore this "issue" for now because it's not dangerous. |
As next step I will expose the values as sensors. So you can access the data via |
Thanks That will be great for anyone wanting to get data from their seplos bms. It is currently how i have been able to setup on my end using nodered to update MQTT topics and send notifications for battery warnings as they occur. my next step now is to pull mqtt topics and construct CAN messages in Pylon protocol to send to inverter. Since my batt has the RS232 instead of the CAN port it is unable to communicate with the inverter. |
I've started another project here: https://github.com/syssi/esphome-virtual-can-bms This component helps to pick some measurements of a connected BMS and construct CAN bus message to inform a Sunny Boy f.e. |
thanks. will take a look.
…On 19 Jun 2022, 9:01 PM +0500, Sebastian Muszynski ***@***.***>, wrote:
I've started another project here: https://github.com/syssi/esphome-virtual-can-bms
This component helps to pick some measurements of a connected BMS and construct CAN bus message to inform a Sunny Boy f.e.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I've implemented all sensors. Please add the sensors to your configuration yaml and give it another try! :-) |
Could you provide a photo of your Seplos BMS mainboard? I would like to know the exact model number and PCB version. |
Thanks for the update. Will test it and provide you feedback tomorrow. My pack is actually assembled and sold by a local company (not branded) however being under warranty for another 3 years getting inside is not an option at this time. Took me sometime to figure out it was a seplos bms after much research figuring out how to get the battery and inverter communication to work. From the manufacturer info command i was able to get the following: Same infö as above also shows up in the seplos battery monitor software. |
Was able to test the update. Will have more logs when the battery is in use during the day to check the power figures. The sensors are working. This is awesome work on your part ! |
Try to have a look at the full MQTT traffic of the node. A ESPHome node exposes one sensor per topic. The message contains the plain measurement (no JSON object). |
Thanks.
The topic I was referring to maybe created by home assistant. The topic I have setup in yaml shows the sensor sub topic with values. All good here.
…On 20 Jun 2022, 02:39 +0500, Sebastian Muszynski ***@***.***>, wrote:
Try to have a look at the full MQTT traffic of the node. A ESPHome node exposes one sensor per topic. The message contains the plain measurement (no JSON object).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Attached log during discharging. All seems to be working well for telemetry data. |
You told me you are already requesting and parsing the CID2 |
Is this the warnings / alarm CID Command >>> "~20004644E00200FD35\r" ?
…On 20 Jun 2022, 12:39 PM +0500, syssi/esphome-seplos-bms ***@***.***>, wrote:
0x44
|
Yes!
|
Attached decoding the communication response. Its a bit messy but should be able to understand. let me know if you need any help here / confusion on anything. Also attached my NodeRed Flow if that can help you. It takes the mqtt responses (first version of your code basic uart) and decodes all the values for the telemetry data & warnings. |
I've found what I'm looking for at your first post / log:
Thanks for sharing your node red implementation. This will speed up things. :-) |
Sure anyway i can help.. My nodered is setup for 15s so you might need to adjust things on your end accordingly for 16s.
…On 20 Jun 2022, 1:01 PM +0500, Sebastian Muszynski ***@***.***>, wrote:
I've found what I'm looking for at your first post / log:
>>> "~20004644E00200FD35\r"
<<< "~20004600A06000010F000000000000000000000000000000060000000000000000140000000000000300000200000000000000000002EB74\r"
Thanks for sharing your node red implementation. This will speed up things. :-)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Could you do me another favor? Please flash this configuration to your device
and provide the log. I'm looking for response examples of the commands above and I would to know your BMS is able to respond to "custom pylontech commands". |
Seems to be returning responses to these commands. Surprising i tried to change the setting in battery monitor to RS485 Pylon protocol but that failed. Also even on RS485 inverter is not able to communicate with battery. |
Hi Syssi, Im reading you project because I need read the information of my bms seplos. I would like learn something about this protocol, because is new for me. I try your last code in my ESP32 and I can see the out message in the log, but I don´t receive any response from the bms. The only difference is the baud_rate parameter, I just try with 19200 and 9600 to, and have the same result.
but really I don´t know were is the problem, If you can help me, I will very gratefull. thanks in advance. |
Could you provide a photo of your wiring? I would like to verify the RX/TX lines are connected to GPIO16/17. Which RS485 converter module do you use? May be flow control is required? Does your RS485 module have RX/TX leds? Does the TX led blink periodically? If the RX led links instead you should switch the RX/TX lines. What about the dip switches of your Seplos BMS? Did you turn off all switches? |
Syssl, first of all, thank you a lot.
|
|
|
Hi Syssi,
Great work on the project thus far. I tested your code on the Seplos BMS (15s) model 1101-ZH26 running Version 2.02. Connected to the WeMos via RS485.
I have attached my logs to help you advance your project. Look forward to upcoming changes and decoding on ESP8266 (if possible).
If you would like some assistance in testing and advancing this project further you may reach out.
logs_wemos-mini_upload.txt
The text was updated successfully, but these errors were encountered: