flip555 / bms_connector

BMS Connector Integration for Home Assistant
https://flip555.github.io/bms_connector/
MIT License
6 stars 1 forks source link

Documentation: Add support for remote RS485 to ethernet virtual com port #79

Open inigoml opened 1 month ago

inigoml commented 1 month ago

BMS Version πŸ”„

v3

Connection Method 🌐

Other (please specify)

Problem Description πŸ€”

This is not a bug, but a feature in terms of adding a procedure to monitoring a SEPLOS BMS remotely with a RS485 to Ethernet dongle (Elfin EW11 or similar) https://es.aliexpress.com/item/33036056772.html

Proposed Solution πŸ› οΈ

It's very simple.

  1. First you have to configure properly your Elfin EW11 dongle. Most important stuff is serial configuration, image

  2. Install socat in your linux box (sudo apt install socat)

  3. Then you have to run in your Linux box this command in order to create a virtualcom port.

socat pty,link=/dev/virtualcom0,raw tcp:192.168.1.98:502 &

Replace 192.168.1.98:502 with your EW11 IP address and port.

  1. Finally, point your BMS to your virtualcom port. image

image

  1. Enjoy. Take into consideration that you should include socat commant in init.d boot scripts. If not, you will have to execute this command manually each time you reboot your Linux box.

Alternatives Considered πŸ”„

No response

Additional context πŸ“„

Just in case you have a cheap and widely available Elfin EW11 and want to connect remotely to your Seplos BMS without having to use a ESP32 + TTL module.