Consultor Eletrônico



Kbase 34597: Input from serial port (COM) does not receive any data
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
Solution ID: P4597

FACT(s) (Environment):

Windows

SYMPTOM(s):

Input from serial port (COM) does not receive any data

Session hangs when receiving data from a serial port

CAUSE:

Serial port is not opened or configured in the operating system

FIX:

Configure the serial port using the 'mode' command from the command line.

The following are the options to configure a port using the mode command:

MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s]
            [to=on|off] [xon=on|off] [odsr=on|off]
            [octs=on|off] [dtr=on|off|hs]
            [rts=on|off|hs|tg] [idsr=on|off]

i.e.: mode COM2:BAUD=9600 PARITY=n DATA=7 STOP=1 xon=on