简体   繁体   中英

Simple serial communication via USB ports

i am new to C#. I want to write a simple console app or function that would open known usb port, for example "COM6" and send pre-configured data through it. Idealy it would work like a somekind od a function sendcommand(command); and int value would be sent. Can someone help me and tell me where to start?

Stackoverflow forum is rather for hints on actual programming issues.

"How to get started" is thus off topic. But as a newbie bonus, here you are:

  • In .net ( c# ) you start reading about System.IO.Ports.SerialPort
  • In Arduino c++ you start reading about Serial.

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