- Just a simple Nodered flows for reading data from DFUN Battery Management System and publish it to MQTT Broker
- I also add flows for reading data from Battery Charge Controller XYL10A where the specification for the communication is (9600,8,n)
- You can access the modbus documentation here
- Just a simple compute , it can be raspberry pi or any other types of computer that can run Node-Red , As for me I use raspberry pi since this BMS is located On-Site
- Ensure that the raspberry pi are in the same network as the BMS otherwise Modbus TCP won't work since it needs to be in the same network
- Turn on the DFUN Battery Management System
- Clone this repo
- Ensure that modbus pallete library is installed here
- Deploy and thats all
- The Modbus Node will poll the data every 10 seconds
- Decode the modbus raw data into float datatype and format
- Add JSON Key on the data
- Combine Each of the JSON Key Value Pair into one single object for ease of reading
- Publish the data to MQTT Broker for further analysis , you can do whatever you want with this data once it reaches MQTT broker