how do I send control characters to serial device

I have a serial device, which needs to receive the commands ctrl+W and ctrl+V before I can begin programming it. I was trying to use cutecom, but I don't see an option to send control characters.

verbatim, what the instructions say is:

(decimal 23), (decimal 22)

where <> are being used in place of quotes.

1

2 Answers

The easiest way is to echo -e symbols to /dev/ttyUSB0 or other device.

Example:

echo -e "\027\026" > /dev/ttyUSB0

026 and 027 egual decimal 22 and 23.

But your user needs to be in dialout group. Or use sudo.

Use minicom. Complete user guide you have here

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like