Inside the bash script, I use the following:
$ stty -F /dev/ttyUSB0 921600 raw
$ echo -n "some test data" >/dev/ttyUSB0
and works as expected. Using the USB PLUS 2302 adapter for RS232:
$ lsusb
...
Bus 006 Device 010: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 006 Device 011: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Now I tried to do the same with 1MBd, but got an error:
$ stty -F /dev/ttyUSB0 1000000 raw
stty: /dev/ttyUSB0: unable to perform all requested operations
Also the same message when I try to use 500kBd. Attempting a 250kBd error message is different:
$ stty -F /dev/ttyUSB0 250000 raw
stty: invalid argument `250000'
Try `stty --help' for more information.
As you can see here , this is a problem in the Linux PL2303 driver.
I am working on Kubuntu12.04, 32Bit. Unfortunately, I don’t know how to fix this driver on my system (get the source of the drivers, schedule them, compile, install ... hmm, maybe I will learn a little and give it a try - advice is welcome).
But maybe there is an updated driver that is easy to install?
- USB RS232, 1 ( rts/cts, PL2303)?