innesleroux Posted January 9, 2021 Posted January 9, 2021 Hi everyone, thanks for a very interesting thread. However I have tried everything but cannot get comms from the RS485 port. 1. I made a cable using Justin Schoeman's diagram (bottom picture) 2. I am using a RS485 to USB TTL (https://www.communica.co.za/products/bmt-usb-rs485-ttl-converter-ftdi) 3. Plugged into a RPI3 running the Modbus TCP Gateway (https://github.com/3cky/mbusd) I am not seeing any RX/TX leds flashing on the TTL converter so I am assuming it is not sending anything. The inverter is connected to a Pylontech 3000 on the CAN port and I have a Sofarsolar Solarman LSW-3 logger connected to the Wifi interface port. Questions: 1. Is there a hidden "enable RS485" setting anywhere? 2. Must a RS485 ID be set somewhere? 3. Must the inverter be rebooted to enable new connections? 4. Must the Wifi logger be diconnected? I am very comfortable with Home Assistant / Grafana / Influx etc but cannot get any data from the inverter! @Bloubul7 @JustinSchoeman @Cybertza Quote
Cybertza Posted January 10, 2021 Posted January 10, 2021 For me the answer to all those questions were no. You should be able to just poll the Mosbus from hass.io with the other EG that I put it ward, I would assume the tx light should flash none the less, perhaps check that you have the right rights for the port on Linux and run the modbus tcp software in debug mode and check that all is good? Quote
Bloubul7 Posted January 11, 2021 Posted January 11, 2021 Firstly you would need to understand how Modbus works. The system is not continously sending and receiving information, Modbus works on a request for information and then responds in accordance. You will have to tell the system which Modbus addresses to request. If you are comfortable with Home Assistant then I would suggest to use the Modbus protocol in HA. https://www.home-assistant.io/integrations/modbus/ So to answer your questions: On 2021/01/09 at 12:26 PM, innesleroux said: 1. Is there a hidden "enable RS485" setting anywhere? No, but you will need to specify the device that will be utilized to communicate on, in your case most likely /dev/ttyUSB0 On 2021/01/09 at 12:26 PM, innesleroux said: 2. Must a RS485 ID be set somewhere? Each sensor/ parameter will have its own address. Refer to the Modbus protocol shared by Justin on the other thread. On 2021/01/09 at 12:26 PM, innesleroux said: 3. Must the inverter be rebooted to enable new connections? No On 2021/01/09 at 12:26 PM, innesleroux said: 4. Must the Wifi logger be diconnected? No Quote
innesleroux Posted January 21, 2021 Author Posted January 21, 2021 Thanks for the answer Bloubul. I understand how Modbus works now. I am able to get information on my queries and also push this info into Influxdb now. My only unanswered question is how to write to the inverter? I would like to monitor the load shedding schedules and enable / disable "time of use". I use Node Red and Modbus Write / Modbus Flex Writer but cannot seem to get all the info / syntax to the particular address correct. Thanks Quote
Cliff Posted March 18, 2021 Posted March 18, 2021 On 2021/01/21 at 3:01 PM, innesleroux said: Thanks for the answer Bloubul. I understand how Modbus works now. I am able to get information on my queries and also push this info into Influxdb now. My only unanswered question is how to write to the inverter? I would like to monitor the load shedding schedules and enable / disable "time of use". I use Node Red and Modbus Write / Modbus Flex Writer but cannot seem to get all the info / syntax to the particular address correct. Thanks @innesleroux could you let us know if you used a Deye or a Sunsynk, I am trying to figure out if the Deye invertes use the same protocol as the the Sunsynk document. Quote
innesleroux Posted March 18, 2021 Author Posted March 18, 2021 (edited) I have a Deye, OEM Sunsynk. All the Sunsynk guides I followed worked 100% without needing to convert. The Modpus protocol sheet also 100% compatible. The only difference I know of is the physical enclosure and the menus / icons on the little lcd touchscreen... Innes Edited March 18, 2021 by innesleroux Cliff 1 Quote
Saliegh Posted September 6, 2021 Posted September 6, 2021 On 2021/01/21 at 3:01 PM, innesleroux said: Thanks for the answer Bloubul. I understand how Modbus works now. I am able to get information on my queries and also push this info into Influxdb now. My only unanswered question is how to write to the inverter? I would like to monitor the load shedding schedules and enable / disable "time of use". I use Node Red and Modbus Write / Modbus Flex Writer but cannot seem to get all the info / syntax to the particular address correct. Thanks hey @innesleroux. Can you share how you got this to work? Quote
innesleroux Posted September 7, 2021 Author Posted September 7, 2021 Hi Saliegh, If you follow Bloubul's thread and download the flows from Github, it will be easier than trying to explain. His latest flows are awesome with examples on reading and writing to the Modbus registers. Let me know if you do not succeed. Quote
Saliegh Posted September 8, 2021 Posted September 8, 2021 The solution to the original question is that the cable leading to the USB-RS485 converter should be plugged into the BMS485 port on the 5kW SunSynk inverter. Sc00bs 1 Quote
KlausSHA Posted September 19, 2022 Posted September 19, 2022 On 2021/01/11 at 8:20 AM, Bloubul7 said: Modbus protocol shared by Justin Hi, I'm searching for the documentation of the deye hybrid inverter regarding the modbus communication. It's mentioned here, but I don't find the named thread. Does anyone have the documentation (to download) or can lead me to the thread? Thanks Klaus Quote
system32 Posted September 22, 2022 Posted September 22, 2022 On 2021/09/07 at 8:50 PM, innesleroux said: Hi Saliegh, If you follow Bloubul's thread and download the flows from Github, it will be easier than trying to explain. His latest flows are awesome with examples on reading and writing to the Modbus registers. Let me know if you do not succeed. Normally need to set the Modbus ID Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.