I'm having problems sending an echo
to an a RFID reader. In one terminal I'm running a cat
like cat < /dev/ttyUSB0
and in another one I'm sending an echo
like echo $'\x80\x80\x80\x01\x01\x01\x11\x14' > /dev/ttyUSB0
, where the bytes are the command for initializing the reader. Nothing happens...
The RFID readers come with an specific software that actually make them work. But when I want to replicate the same behavior with my programe, I can not get it to work.
My hypothesis is that maybe the echo is not actually writing the bytes to the serial port, and maybe all the data is stored somewhere waiting for some kind of another signal.
I know that the question is not quite specific, but I only want to know if maybe I'm ignoring some basic stuff related to serial communication.
Thanks.