Search found 4 matches

by justjason
2021-Nov-20, 5:37 pm
Forum: Windows CMD Shell
Topic: Echo ESC char to serial port
Replies: 7
Views: 1405

Re: Echo ESC char to serial port

Shadow Thief wrote: 2021-Nov-20, 5:51 am I'm not clear on what you're asking. Do you want to know how to write a script? Just put the commands in a text file and save it with the .bat extension.
What would such a .bat script look like that is able to echo such a string containing multiple ESC chars ?
by justjason
2021-Nov-18, 3:11 pm
Forum: Windows CMD Shell
Topic: Echo ESC char to serial port
Replies: 7
Views: 1405

Re: Echo ESC char to serial port

Luckily, the device on the other end of the COM port does not mind if it receives the above config string multiple times. The solution, for my use case, is to use forfiles /c "cmd /c <nul set /p=0x1b0x2e0x490x380x310x3b0x3b0x310x370x3a0x1b0x2e0x4e0x3b0x310x390x3a>COM5" which can send an HE...
by justjason
2021-Nov-18, 3:02 pm
Forum: Windows CMD Shell
Topic: Echo ESC char to serial port
Replies: 7
Views: 1405

Re: Echo ESC char to serial port

Shadow Thief wrote: 2021-Nov-14, 12:38 am Terminal doesn't support it either, but writing a script to run the commands should preserve the ESC characters.
Do you have any pointers for this , or was this just a general statement ?
by justjason
2021-Nov-12, 5:38 pm
Forum: Windows CMD Shell
Topic: Echo ESC char to serial port
Replies: 7
Views: 1405

Echo ESC char to serial port

I have trying for the last two days to find a way to echo strings containing ESC chars to a COM port. This would be what I would like to achieve Capture.PNG Which would be this string ( I doubt the un-printable ESC char will show up, but they should be there if you copy-paste (maybe?) echo .I81;;17:...