我们怎么知道在ms dos系统中是否存在COM端口是否有任何命令..?
问题描述:
我想在ms-dos系统中使用COM端口但是我找不到关于端口的任何信息
所以如果有任何命令请告诉我
我尝试使用模式命令但不能正常工作。
我尝试了什么:
I want to use COM Port in ms-dos system But I can't find any information about the port
So please if any command for it then tell me
I have try to use "mode" command but not working.
What I have tried:
I want to use COM Port in ms-dos system But I can't find any information about the port
So please if any command for it then tell me
I have try to use "mode" command but not working.
答
将其视为文件:将字节写入C中的串行端口广告文件•n。快速,直观的想法和解决方案文档。 [ ^ ]
如果CreateFile失败,则端口不存在。
Treat it like a file: Writing bytes to a serial port in C | ad hocumentation • n. fast, instinctive documentation of ideas and solutions.[^]
If CreateFile fails, the port isn't there.