C
C#17mo ago
Sound

❔ Map COM1 to IPv4

I am working on a software that manages some PLCs with modbus rtu over tcp. I need a way to map a com port to an ip address when my program starts. I am currently using a serial server from moxa (nport 5150a) and it has a driver that does this mapping. However, I don t want my app to depend on someone else's drivers. How can i do this?
2 Replies
nukleer bomb
nukleer bomb17mo ago
Use System.IO.Ports.SerialPort class to interact with COM port and System.Net.Sockets.TcpClient class to interact with network After establishing a connection, both classes provide a Stream to read/write data
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server