China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 14:59
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Seeking to know how to set the CONFIG.SYS file to enable 232 serial port communication View 1,746 Replies 2
Original Poster Posted 2006-04-14 14:48 ·  中国 陕西 西安 电信
初级用户
Credits 20
Posts 4
Joined 2006-04-14 14:25
20-year member
UID 53828
Gender Male
Status Offline
Ask for advice on how to use the 232 serial port for data communication under DOS. How should it be set in CONFIG.SYS? Please have experts reply on the settings. Is it using the MODE command? It is best to give a complete reply on the serial port definition, baud rate, parity check, etc. That is, the complete reply of MODE. If there is no parity check, is parity check = 0 selected? Thanks in advance.
Floor 2 Posted 2006-04-14 17:52 ·  中国 上海 黄浦区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
No need to set in CONFIG.SYS, just use the MODE command.

MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s] [RETRY=r]

COMm m is the serial port number
BAUD=b baud rate
PARITY=p odd/even parity
DATA=d data bits
STOP=s stop bits
RETRY=r retry count

For details, see: mode /? or help mode for detailed introduction
Floor 3 Posted 2009-06-30 04:47 ·  中国 天津 联通
新手上路
Credits 6
Posts 3
Joined 2007-02-26 04:51
19-year member
UID 80192
Gender Male
Status Offline
I tried,
mode com1: 96,n,8,2,n
Forum Jump: