batch file that can lesson to the com port?

January 30, 2011 at 00:09:47
Specs: Windows 7
I have an Arduino micro-controller that is sending data to my computer over a usb cable, I need a batch file that can lesson to the com port, and then perform some task based on the data coming in. For now I only need it to echo it to the screen. I am running windows 7 32 bit, and the usb port is com4, and the Arduino is sending at 9600 baud.

See More: batch file that can lesson to the com port?

Report •

January 30, 2011 at 03:35:30
To listen to a serial COM port needs a program since serial communication is an interrupt driven process and that is beyond the features of batch scripting.

You can try the Open Source package PUTTY (Google for it), a free application driven by command line that can be scriptable too. I never used it but people say it is very effective.

As an alternative I can give you a legacy 16 bit application that still works fine under Vista 32 bit, but that must be customized as I coded it years ago to grab data from lab devices. It may work or not interfacing an emulated COM4 port.

If you are interested contact me via a private message with your e-mail address and specify exactly the format of data stream. Be aware the solution is not immediate as I have to customize and am very busy too.

Report •

January 30, 2011 at 09:35:51
so batch wont work, i know c++, ill try starting a thread there and see if i have any luck. thanks for your reply.

Report •

January 30, 2011 at 10:10:02
I hope you will find what you are looking for, however I suggest you take a look at PUTTY since it acts as Hyperterminal in its simplest mode, so you can see the incoming data from the comm port.

PUTTY is a replacement for the well known Hyperterminal that Microsoft stopped to deliver with the operating system since Vista.

Report •
Related Solutions

Ask Question