On Wed, May 14, 2014 at 05:39:38AM +0900, SASANO Takayoshi wrote:
> Hello,
> 
> Recently I bought Arduino board which uses Nanjing QinHeng (WinChipHead)
> CH340T USB-UART bridge via eBay, and I found uchcom(4) did not work.
> At misc@, other user reported similar problem. [1]
> 
> The uchcom(4) comes from NetBSD and it seems to be worked at that time.
> 
> I found that uchcom_set_line_control() breaks the value of
> UCHCOM_REG_LCR1(0x18) makes the problem. The UCHCOM_REG_LCR1 register
> seems to control parity bit (none/odd/even) but I doubt the role of that
> register has changed between old/new CH340T chip.
> 
> At least following changes are required to work my CH340T but parity bit
> control is no longer supported.
> 
> If there is no problem, I want to commit.
> 
> [1] 
> http://openbsd.7691.n7.nabble.com/issue-with-WinChipHead-CH340-usb-serial-td99678.html

This fixes a device I first thought was DOA, so, ok by me. :-)

uchcom0 at uhub2 port 1 "QinHeng Electronics CH340 serial/parallel" rev
1.10/2.54 addr 2
uchcom0: CH341
ucom0 at uchcom0

-Bryan.

Reply via email to