简体   繁体   中英

How to create a program in c# that reads serial data via USB

I have a device that connects to my computer via USB. It sends a bunch of serial data but I am particularly interested in being able to read bytes 62-65, and placing them in a byte array. I would like to create a program in c# that does this. I have yet to find any good tutorials to teach me this stuff. I'm hoping this will help.

Use SerialPort

The documentation contains some example usages of the class including reading bytes from a serial port.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM