Jump to content
  • 0

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


innesleroux
 Share

Question

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

 

 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

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?

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

 

Link to comment
Share on other sites

  • 0
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. 

Link to comment
Share on other sites

  • 0
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
Link to comment
Share on other sites

  • 0
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?

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   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.

 Share

×
×
  • Create New...