Computing.Net > Forums > Programming > Batch files and serial ports?

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.

Batch files and serial ports?

Reply to Message Icon

Name: cwb212001
Date: September 17, 2008 at 22:21:54 Pacific
OS: XP
CPU/Ram: N/A
Product: n/a
Comment:

I have a device that outputs a 5 digit number to the serial port, waits 5 seconds and sends a cr/lf to the serial port. I want to take that number, call a batch file and pass that number to it as a parameter. Can I read data coming from the serial port within a batch? Do you know of any program that will monitor the serial port and call a program when certain data string is read? Any and all ideas would be appreciated. Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: September 18, 2008 at 01:46:03 Pacific
Reply:

You can send data to a serial port in a batch script, BUT you can't read data directly from that as serial communications are interrupt driven and require a program to perform that task.

If you are interested and your problem is not so urgent I can send you a program to achieve the goal, but it requires to be customized.

Contact me by a private message including your e-mail.


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch files and serial ports?

Make an exe with a batch file and.. www.computing.net/answers/programming/make-an-exe-with-a-batch-file-and/17595.html

i created a batch file and i'm invoking three www.computing.net/answers/programming/i-created-a-batch-file-and-im-invoking-three/19013.html

FTP and Batch Files www.computing.net/answers/programming/ftp-and-batch-files/13160.html