1.

Solve : carriage return not working from command line but ok on cutecom?

Answer»

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;-)



Discussion

No Comment Found