Closed matchermike1981 closed 1 year ago
I swapped my connections onto pins D1 & D1 using GPIO 5 and GPIO4
I now get the following in my debug:
[20:39:16][D][uart_debug:158]: >>> "~20004642E00200FD37\r"
[20:39:16][W][seplos_modbus:090]: Invalid header: 0x00
[20:39:16][D][uart_debug:158]: <<< "\x00"
[20:39:26][D][uart_debug:158]: >>> "~20004642E00200FD37\r"
[20:39:26][W][seplos_modbus:090]: Invalid header: 0x00
[20:39:26][D][uart_debug:158]: <<< "\x00"
[20:39:36][D][uart_debug:158]: >>> "~20004642E00200FD37\r"
[20:39:36][W][seplos_modbus:090]: Invalid header: 0x00
[20:39:36][D][uart_debug:158]: <<< "\x00"
Your setup looks pretty good already. I haven't checked the wiring yet. I will try to find some time this evening.
I have installed the esp8266-example.yaml, changed my BAUD to 19200 (as tested with my laptop and seplos management software on the RS485 ports.
So you are able to talk to the BMS using the management software in general? If I remember correctly the application has a debug panel. You should see the raw traffic (request and responses) here. Please provide some request frames. Does they look like the requests of this implementation / the log messages above?
You have solved you first issue by swapping the RX/TX line already. If you have a second ESP and RS485 converter you could try to listen to the requests of the current setup. Just to make sure your components are healthy. There are a lot of broken RS485 board around.
Thanks for your comments. I tried with a differed RS485 board and received the same results - the TX light remains on solid, but there is no communications. I have an M5 ATOM lite unit so picked up an RS45 plugin for it, configured this up with the code above, changed TX,RX pins to be 26 & 32, and it worked first time!
Really awesome! Thanks for your help and for posting this awesome integration! :-)
Hi.
I am struggling to get this running on my Seplos BMS.
I am using a Wemos D1 mini: https://diyi0t.com/esp8266-wemos-d1-mini-tutorial/?utm_content=cmp-true And a Fasizi 5pcs TTL To RS485 Adapter: https://www.amazon.co.uk/Fasizi-Adapter-Serial-Converter-Module/dp/B09Z2GTMJ8
I have installed the esp8266-example.yaml, changed my BAUD to 19200 (as tested with my laptop and seplos management software on the RS485 ports.
I am fairly sure it is GPIO1 and GPIO3 from reading the Wemos D1 info: https://mischianti.org/2019/09/19/wemos-d1-mini-esp8266-debug-on-secondary-uart-part-3/
I have enabled debug as you can see in my code. All i am able to get is :
`[19:49:58][D][uart_debug:158]: >>> "~20004642E00200FD37\r"
[19:51:08][D][uart_debug:158]: >>> "~20004642E00200FD37\r"`
An i get a flashing RXD light on the RS485 board, but nothing on TXD.
My seplos BMS is a 1101-SP88 SW16.4
Appreciate any advice please. Have to admit i am a n00b, and don't have a linux box. I am doing everything through ESPHOME on my HA instance.
Here is my board:
Here is my code