Purchase your Waveshare USB to RS-485 serial adapter from the following affiliate links. amzn.to/35UNc6v More information can be obtained at our website. It will give you a step by step instructions on this post. This includes all of the links mentioned in this video. accautomation.ca/waveshare-usb-to-serial-pc-installation/ Thank you, Garry
@ACC Automation I am having an issue with one of these devices any help would be much appreciated, I have one of these devices that i am trying to setup for use on two laptops, I have it running on one but not on the other, the laptops are like for like com ports driver's setup the same any ideas ?
Hi theboyfrostie, When you open Device Manager and look under the Ports (COM & LPT), do you see the device on each computer? On the computer that is not working, you may have to remove and re-install the driver again. Regards, Garry
What puzzles me in your video is that you have an 8n1 setting in Windows and using 8e1 in NodeRed. I thought that the setting in NodeRed was for the WIndows side. I could not get it to work with my project (Solax X1 Solar inverter) and this just might be the solution. [ Edit: Nope, checked the docs, Solax states to use 8N1, no parity. ]
Hi Emcofan, The Windows side shows the communication port used and the default parameters if not set by other means. We are using Node-RED running on this Windows computer so it will set the parameters for the communication port. I looked up the "Solax X1 Solar inverter" manual. It looks like it communicates CAN RS232 which means CANbus communication. When using Node-RED you will have to use CANbus communication instead of Modbus RTU communication. Here is a link to the Node-RED CANbus Nodes: flows.nodered.org/node/node-red-contrib-canbus I hope this helps you out. Regards, Garry
Here is where I got the information: www.solaxpower.com/wp-content/uploads/2022/03/User-Manual-SK-SU-TL-614.00036.05B.pdf This is the manual. On page 15 under Communication interfaces, it indicates Can/RS232. Regards, Garry
@@ACCautomation This is not the manual of my inverter. This manual is for a hybrid which charges batteries as well. My inverter is type Solax X1 Mini X1-2.0-S-D(L). So it CANnot be CAN. ;)
@@emcofan Now that you have told me the model number of the equipment that you have it does not communicate Modbus or CAN. This communicates in its own protocol called Solax Power Single Phase External Communication Protocol V1.2. Here is the manual: github.com/syssi/esphome-modbus-solax-x1/blob/main/docs/SolaxPower_Single_Phase_External_Communication_Protocol_-_X1_Series_V1.2.pdf You will have to communicate by sending the correct packet information. Regards, Garry
@@ACCautomation I mentioned my model to you before but because i included a link in the reply, UA-cam decided to delete this reply to you. But... I can confirm your advise and got it working now. Everybody calls it Modbus but with Modbus tooling i cannot get this to work. It works now but this is definately not Modbus.
Hi Akbar Abdul, The RS485 specified maximum cable length is 1200 meters. This really depends on the baud rate that you are communicating and the environment. The lower the communication (baud) rate, the longer the cable can be. Here is a post with a chart showing cable lengths for RS485 at very high baud rates. resources.altium.com/p/serial-communications-protocols-rs-485 I would say that 100 meters at 9600 to 19.2K baud would be fine. Regards, Garry
Hi @overmind15, Here is a post on using this with the raspberry pi and communicating with a PLC and Temperature controller. accautomation.ca/raspberry-pi-serial-port-programming/ I hope this helps you out. Regards, Garry
Purchase your Waveshare USB to RS-485 serial adapter from the following affiliate links.
amzn.to/35UNc6v
More information can be obtained at our website. It will give you a step by step instructions on this post. This includes all of the links mentioned in this video.
accautomation.ca/waveshare-usb-to-serial-pc-installation/
Thank you,
Garry
Thank you so much! I was missing the driver and your video instantly fixed my issue.
Hi Lyndsey,
I'm glad this helped you out. Thanks for the comment.
Garry
Hi! thank you so much for your video :)
Thank you for the comment. I appreciate it.
Garry
Have you tired to USB-CAN-A waveshare Adapter to interface with tm4c1294xl
@ACC Automation I am having an issue with one of these devices any help would be much appreciated, I have one of these devices that i am trying to setup for use on two laptops, I have it running on one but not on the other, the laptops are like for like com ports driver's setup the same any ideas ?
Hi theboyfrostie,
When you open Device Manager and look under the Ports (COM & LPT), do you see the device on each computer?
On the computer that is not working, you may have to remove and re-install the driver again.
Regards,
Garry
What puzzles me in your video is that you have an 8n1 setting in Windows and using 8e1 in NodeRed. I thought that the setting in NodeRed was for the WIndows side. I could not get it to work with my project (Solax X1 Solar inverter) and this just might be the solution. [ Edit: Nope, checked the docs, Solax states to use 8N1, no parity. ]
Hi Emcofan,
The Windows side shows the communication port used and the default parameters if not set by other means. We are using Node-RED running on this Windows computer so it will set the parameters for the communication port.
I looked up the "Solax X1 Solar inverter" manual. It looks like it communicates CAN RS232 which means CANbus communication. When using Node-RED you will have to use CANbus communication instead of Modbus RTU communication.
Here is a link to the Node-RED CANbus Nodes:
flows.nodered.org/node/node-red-contrib-canbus
I hope this helps you out.
Regards,
Garry
Here is where I got the information:
www.solaxpower.com/wp-content/uploads/2022/03/User-Manual-SK-SU-TL-614.00036.05B.pdf
This is the manual. On page 15 under Communication interfaces, it indicates Can/RS232.
Regards,
Garry
@@ACCautomation This is not the manual of my inverter. This manual is for a hybrid which charges batteries as well. My inverter is type Solax X1 Mini X1-2.0-S-D(L). So it CANnot be CAN. ;)
@@emcofan
Now that you have told me the model number of the equipment that you have it does not communicate Modbus or CAN.
This communicates in its own protocol called Solax Power Single Phase External Communication Protocol V1.2. Here is the manual:
github.com/syssi/esphome-modbus-solax-x1/blob/main/docs/SolaxPower_Single_Phase_External_Communication_Protocol_-_X1_Series_V1.2.pdf
You will have to communicate by sending the correct packet information.
Regards,
Garry
@@ACCautomation I mentioned my model to you before but because i included a link in the reply, UA-cam decided to delete this reply to you. But... I can confirm your advise and got it working now. Everybody calls it Modbus but with Modbus tooling i cannot get this to work. It works now but this is definately not Modbus.
can that tool use a cable for rs 485 100 meters long?
Hi Akbar Abdul,
The RS485 specified maximum cable length is 1200 meters. This really depends on the baud rate that you are communicating and the environment. The lower the communication (baud) rate, the longer the cable can be.
Here is a post with a chart showing cable lengths for RS485 at very high baud rates.
resources.altium.com/p/serial-communications-protocols-rs-485
I would say that 100 meters at 9600 to 19.2K baud would be fine.
Regards,
Garry
Have you tried to interface this with a raspberry pi?
Hi @overmind15,
Here is a post on using this with the raspberry pi and communicating with a PLC and Temperature controller.
accautomation.ca/raspberry-pi-serial-port-programming/
I hope this helps you out.
Regards,
Garry