Computing.Net > Forums > Disk Operating System > DOS Serial I/O

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DOS Serial I/O

Reply to Message Icon

Name: drake smith
Date: August 2, 2000 at 22:21:36 Pacific
Comment:

IS it possible to open the COM1 serial port and read/write from/to it using batch commands in DOS 5.0? If so, how?



Sponsored Link
Ads by Google

Response Number 1
Name: W0rm
Date: August 3, 2000 at 00:43:48 Pacific
Reply:

Try researching the "MODE" command. I vaguely recall someone communicating with their modem in this fashion. :)
- W0rm


0

Response Number 2
Name: deadly
Date: August 3, 2000 at 02:10:25 Pacific
Reply:

I havent got a clue, but it would come in handy if it was possible.


0

Response Number 3
Name: browser
Date: August 3, 2000 at 05:33:20 Pacific
Reply:

Yes you can.

Use MODE to set the port configuration so the 2 devices match each other.
eg:

MODE COM1:2400,N,8,1,P

Then use COPY to copy a file to the port or to copy the port to a filename.

COPY FILENAME.EXT COM1:
or:
COPY COM1: FILENAME.EXT


0

Response Number 4
Name: JR
Date: August 3, 2000 at 06:07:15 Pacific
Reply:

Also, if you just want to send data out to the port, like if you want to reset your modem, use piping to redirect text, like this:

echo atz>com1:


0

Response Number 5
Name: archana
Date: January 16, 2001 at 00:05:15 Pacific
Reply:

i want to receive data from the serial port
give me the example


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: DOS Serial I/O

I/O port programing in c/c++ www.computing.net/answers/dos/io-port-programing-in-cc/10428.html

i/o error www.computing.net/answers/dos/io-error/10591.html

I/O problem www.computing.net/answers/dos/io-problem/12904.html