New
#1
Serial read/write in batch file?
Hello all. I'm trying to write a request to COM2 and capture the answer. My device is 19200 baud 8/1 non parity.
Using a freeware terminal called termite I can send the hex instruction and receive the answer, as verified in HHD serial monitor.
My batch file looks like this:
where request.txt contains my request.Code:MODE COM2: baud=19200 parity=N data=8 stop=1 to=off TYPE request.txt>COM2 COPY COM2 text.txt
HHD sees the request being written, but the device does not respond.
Any ideas please?
Cheers,
Alex