Batch file 如何使用批处理读取从串行端口接收的数据?;

Batch file 如何使用批处理读取从串行端口接收的数据?;,batch-file,serial-port,Batch File,Serial Port,由于解锁要求,我需要向串口发送一系列命令并读取返回值“key”。我希望这可以通过批量生产来实现。目前,我可以向串口发送命令,如下所示: mode COM10 Baud=115200 Parity=N Data=8 Stop=1 dtr=off rts=off start type com10 set /p x=command <nul >\\.\com10 ping localhost -n 1 >nul 模式COM10波特=115200奇偶校验=N数据=8停止=1 dtr=

由于解锁要求,我需要向串口发送一系列命令并读取返回值“key”。我希望这可以通过批量生产来实现。目前,我可以向串口发送命令,如下所示:

mode COM10 Baud=115200 Parity=N Data=8 Stop=1 dtr=off rts=off
start type com10
set /p x=command <nul >\\.\com10
ping localhost -n 1 >nul
模式COM10波特=115200奇偶校验=N数据=8停止=1 dtr=off rts=off
启动类型com10
设置/p x=命令\\.\com10
ping localhost-n 1>nul

但是我不知道如何从串口读取数据,我在网上搜索了很长时间。但是没有用。请提供帮助或尝试给出一些实现这一目标的方法。

关于StackOverFlow,似乎有一些答案可以回答这个问题。
TYPE
COPY
命令似乎能够读取COM端口。以及带有重定向的
设置/P
<代码>设置/p响应=