Writing a Batch File for MS-DOS Serial Port Communication

  • Thread starter Thread starter gimini75
  • Start date Start date
  • Tags Tags
    Batch File
AI Thread Summary
Creating a batch file in MS-DOS for serial port communication involves sending data from a specified file and receiving responses from a driver. This task is considered challenging, as batch files have limitations in handling serial communications. The recommended tool for such operations is Expect, which is designed for automating interactions with programs that require user input. Users seeking to implement this functionality should explore Expect for a more effective solution. Overall, using Expect is advised for managing serial port communication tasks efficiently.
gimini75
Messages
50
Reaction score
0
Hello

Can anyone help me please, I want to write a batch file in MS-DOS to:

Communicate with the serial port, send data to the serial port from a specified file and for a respond to come back from the driver that first command being done and now ready for next line of data to be send it through the serial port to a stepper driver.


Thanks for your help
 
Physics news on Phys.org
That's going to be tricky to do with batch
The normal tool for doing this sort of thing is expect http://expect.nist.gov/
 
Back
Top