I have a device that communicates with the PC using the serial port. When communication is established I get a prompt from the device where I'm supposed to type commands and hit ENTER.
But when I do this, the cursor just goes to the next line and the command is not executed.
I'm using bash and I assume this is a problem with recognition of the "end of line" or "carriage return"... so I tried the usual shell non printing characters:
deviceprompt> ANYCOMMAND\n\r
Also, I'm using
stty -F /dev/ttyUSB0 19200 -cstopb cs8 -parenb -crtscts -ixon -ixoff onlcr
all stty options are according with the device specifications and work fine, except onlcr... I was hopping that this option could help my problem with the carriage return but it didn't
If I connect with the device using cutecom, there is no problem at all, I just select the option "CR line end" and every thing works fine.
Any suggestions would be appreciated.
Thanks;-)