Search code examples
c#serial-portdevice-driver

Serial port communications in C#


We have a scenario where multiple devices are connected to one com port. Each device has an access code, which is manually defined within the device.

Can I access all the connected devices with/by access code in C#?. Does anybody have any idea as to how to do this?

In my case multiple devices are connected with single port but slave addresses are different..how can i access all the slave address in C# code for restricting that another device shudnot have same slave address?


Solution

  • Take a look at an article - Serial post in C# and Tutorial