COM port - how to identify a device (.net/c#)

Posted by argh on Stack Overflow See other posts from Stack Overflow or by argh
Published on 2010-05-17T12:25:11Z Indexed on 2010/05/17 12:31 UTC
Read the original article Hit count: 268

Filed under:
|
|
|

Hi,

I'm programming for Windows CE and I need to connect to a scanner. There is no problem - I know that it is on port COM0, but if I plug in another device earlier it gets another COM port... to get all com ports the easy way is:

SerialPort.GetPortNames()

But I don't know how to identify a device? Is there any standard way? I can't 'ping' it since there is one device that only sends data... it spams data all the time... and I don't know how to 'ping' a device...

© Stack Overflow or respective owner

Related posts about com

Related posts about c#