Prolific PL2303 serial port to 250000bps

前端 未结 1 701

I need to run my /dev/ttyUSB0 (prolific pl2303 USB-RS232 converter) at 250kbps using c. Everywhere I looked everyone said that the nearest achievable speed is 230400 bps (ht

1条回答
  •  醉话见心
    2021-01-20 03:39

    It's a problem in the linux driver. From line 333 to line 348, the driver forces a baudrate. Removing that code, the baudrate gets calculated with the formula 12 * 1000 * 1000 * 32 / baud, and that gives an error of 0% at 250kbps, perfectly in line with what I get on windows. I'm looking forward to improve the official driver.

    0 讨论(0)
提交回复
热议问题