LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS485 communiciiton via USB-RS485 convertor

Why you don't want to use two adapters? It would save you a few headaches.

Is re-cabling too difficult?

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 11 of 13
(475 Views)

Hi Paolo,

 

Because I am only testing with 2 devices. In reality it will be around 10 or more.

 

 

 

0 Kudos
Message 12 of 13
(472 Views)

@TinoMK wrote:

Thank you Jens and Paolo,

 

Do you have any suggestion for a simple RS485 protocol? I need just proper addressing of the slaves. Each device will respond with dynamic data once being called.

Thanks again,

 


This depends very much on the data that your device is sending. Some ideas (not complete):

Option 1: you do not send any binary data (ie only human readable characters). That can be achieved by sending binary data as HEX-Code also that then needs twice as much bytes to send. But then you can use a termination char like linefeed or carriage return to mark the end of a message.

Option 2: have a look at existing protocols that are used on RS485 devices and use one of these if applicable. Modbus RTU is one that comes to my mind.

Option 3: ???

 

Regards, Jens

 

 

Kudos are welcome...
0 Kudos
Message 13 of 13
(467 Views)