Setting PL2303 baud rate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a PL2303HX adapter and I need to set up its baud rate to 1228800 or 2457600

(openwrt, linux kernel 3.3.8, coreutils 8.16 and ubuntu quantal 3.5.0-28, same coreutils).

I tried stty -F /dev/ttyUSB0 baudrate

Well, when baudrate is 921600 or 3000000 everything is fine, but when I try 1228800 or 2457600 stty complaints:
stty: invalid argument '2457600'.

I searched stty source and added:

#ifdef B1228800
  {"1228800", B1228800, 1228800},
#endif
#ifdef B2457600
  {"2457600", B2457600, 2457600},
#endif

and compiled but no luck. I don't know where else those values need also to be modified.

Can you please point me to the right direction?

Or there is another way to set pl2303 baud rate passing some information on the command line of kernel module?

I searched the web but didn't find any clue.

Any help appreciated, thank you very much anyway.
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux