Opened 4 years ago

Closed 22 months ago

#15872 closed bug (fixed)

Our usb_serial lacks support for CH340 chips

Reported by: hitech Owned by: 3dEyes
Priority: normal Milestone: Unscheduled
Component: Drivers/USB Version: R1/Development
Keywords: USB, serial Cc:
Blocked By: Blocking:
Platform: All

Description

We can program the original Arduino dev boards from Haiku via Arduino IDE, but not the cheap Arduino clone boards, because they use the CH340 chip. WCH is not supported in current Haiku release.

Opening the bug per PulkoMandy's request here.

Change History (4)

comment:1 by pulkomandy, 4 years ago

Manufacturer homepage: http://www.wch.cn/products/CH340.html

Datasheet doesn't appear to give much info about programming details, but maybe the Chinese version has a little more (it is the case for other WCH chips I work with). I'll see if the drivers they provide come with some example sources and try to write up some documentation about the chip.

comment:2 by mmlr, 4 years ago

The FreeBSD/NetBSD sources are here: http://fxr.watson.org/fxr/source/dev/usb/serial/uchcom.c

The comment in line 64 is telling...

The linux sources are here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/usb/serial/ch341.c

It should fit reasonably well with our device abstraction in the current driver.

comment:3 by 3dEyes, 22 months ago

Owner: changed from mmlr to 3dEyes
Status: newassigned

comment:4 by 3dEyes, 22 months ago

Resolution: fixed
Status: assignedclosed

Implemented in hrev56218

Note: See TracTickets for help on using tickets.