Jump to content

Sunsynk/Deye (SUN-5K-SG03LP1-EU) no output on RS485


Recommended Posts

Posted

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

 

 

Posted

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?

Posted

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

  • 2 weeks later...
Posted

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

 

  • 1 month later...
Posted
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. 

Posted (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 by innesleroux
  • 5 months later...
Posted
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?

Posted

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.

  • 1 year later...
Posted
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

Posted
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

https://powerforum.co.za/uploads/monthly_2022_04/image.png.b1e1c5c3d0c07e2bcbf1233d81c04ff1.png

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...