Industrial Communications

cancel
Showing results for 
Search instead for 
Did you mean: 

Using RS485 to perform UART communication between Multiple MCUs

Hi folks,

I have been working on performing UART communication between multiple devices and so I chose RS485. I am using Waveshare USB to RS485 and pyserial library. I am continuously polling the registers in each of the device. At some point the some board does not respond for some random registers. And then it completely stops responding. I mean that board. I will be polling the boards in a infinite loop.

 

Now when I changed the logic in my program to open port -> Perform something -> Close port instead of opening port only once and poll the board in infinite loop there is no issues.

 

Any suggestions on what might be wrong in the actual case ?

0 Kudos
Message 1 of 3
(94 Views)

This is a NI forum.

Are you using NI-VISA API?

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 3
(71 Views)

Hij,

 

What is the distance? Why use RS-485?

 

Kees

0 Kudos
Message 3 of 3
(52 Views)