Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Using SerialPort class to communicate with USB CDC device

$
0
0
I'm using the SerialPort class to communicate with a USB CDC class device. I'm using the Write method to send a message and ReadByte to read the response one byte at the time (response is usually 2 bytes). The problem I'm having is that sometimes the ReadByte method timesout even though the response was sent by the device and received by the USB stack (I can see it in USB analyzer). Any suggestions?

Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>