Serial port communication in C #

We have a scenario where several devices are connected to the same COM port. Each device has an access code, which is determined manually in the device.

Can I access all connected devices using an access code in C # ?. Does anyone know how to do this?

In my case, several devices are connected to the same port, but the slave addresses are different. How can I access all the slave addresses in C # code to limit that the other device does not have the same slave address?

+3
source share
2 answers

- #

+3

,

, , RS232 .net forms. , .

:

a) , (.. ) -

b) (.. )

, .

, "" , , , , , (, TCP), .

byte description
---- -----------
  00 command
  01 address
>=02 data

, , .

0

Source: https://habr.com/ru/post/1717039/


All Articles