This example assumes the modem is connected to COM1.
此示例假定调制解调器连接到COM1。
This example sends a string to the COM1 serial port.
此示例将字符串发送到COM 1串行端口。
The device driver for COM1 is preventing the system from entering hibernation.
COM1的设备驱动程序正在阻止系统进入休眠模式。
For example, a program that tries to open "com1" or even "com1.txt" in any directory will get stuck trying to talk to a serial connector.
例如,如果一个程序在任何目录中试图去打开“com1”或者甚至“com 1 . txt”,将被系统误解为是尝试和串口通信。
The first parameter is the port name as a string, usually COM1: or COM2:, but in theory the name could be anything, so I have used a string rather than a number.
第一个参数是端口的名称作为一个字符串,通常称作COM 1:或COM 2:,但在理论上的名称可能是任意,所以我用一个字符串,而不是一个数字。
The first parameter is the port name as a string, usually COM1: or COM2:, but in theory the name could be anything, so I have used a string rather than a number.
第一个参数是端口的名称作为一个字符串,通常称作COM 1:或COM 2:,但在理论上的名称可能是任意,所以我用一个字符串,而不是一个数字。
应用推荐