Reputation: 19
I have an devive blasting some data continiously into an FTDI that's connected to my PC over USB. I want to log the data into a CSV using a simple bash script.
When I cat /dev/ttyUSB0 I'm getting some characters that I want (1023) and also some malformed random character.
Running: Debian GNU/Linux 8 (jessie) 64-bit
Upvotes: 1
Views: 3550
Reputation: 5031
You can set the baud rate using stty
. For example to set the baudrate to 9600 do:
stty -F /dev/ttyUSB0 9600
This could because ground has not been connected between the devices. Loose connections. Noise if you use long serial wires. There could be many reasons.
Upvotes: 2