I'm able to convert my serial device output to hex format doing these two commands:
cat /dev/ttyUSB0 > data.dump #send some data to serial device, and interrupt cat using Ctrl+C after some time
xxd data.dump
It gives me output like:
00000000: 80ff ffff ffff ffff ffff ffff ffff ..............
But I want to do that in one command, to see live data stream, but neither of these commands works for me:
cat /dev/ttyUSB0 | xxd
xxd /dev/ttyUSB0
hexdump /dev/ttyUSB0
These commands gives me no output at all, what is the problem here? I'm using zsh shell, and working on fedora OS.