串口设备
https://www.kmw.com/news/6788135.html
-
配置串口参数
mode com1:9600,n,8,1
"com1:"表示要配置的串口号,"9600"表示波特率,"n"表示无奇偶校验,"8"表示数据位,"1"表示停止位。 -
向串口写数据
echo Hello, World! > com1
-
从串口接收数据
copy com2 output.txt
USB设备
- 查看vendor_id与product_id
https://blog.csdn.net/fengbingchun/article/details/105248231/
或者通过usbview.exe查看串行总线:https://learn.microsoft.com/zh-cn/windows-hardware/drivers/debugger/usbview,一般位于C:\Program Files (x86)\Windows Kits\10\Debuggers\x64
目录下。
0 条评论