9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] usb serial on raspberry pi (again)
@ 2016-12-14 10:44 Richard Miller
  2016-12-15 11:15 ` Steve Simon
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Miller @ 2016-12-14 10:44 UTC (permalink / raw)
  To: 9fans

> Maybe it's as simple
> as having separate read and write QLocks.

For normal endpoints it is that simple.  Control endpoints, however,
are bidirectional but effectively half-duplex, so reads and writes
still need to be locked against each other.

Today's version of /n/sources/contrib/miller/9/bcm/usbdwc.c should
do the right things.




^ permalink raw reply	[flat|nested] 6+ messages in thread
* [9fans] usb serial on raspberry pi (again)
@ 2016-10-27 10:40 Steve Simon
  2016-12-12 20:33 ` Richard Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Steve Simon @ 2016-10-27 10:40 UTC (permalink / raw)
  To: 9fans

Hi,

I have upgraded my pi desktop to a 3 which is noticable faster.

I am using Richard's pi image which as usual works perfectly, but for one wrinkle.
I cannot get the usb serial interfaces we use to work. I have never managed to get
usb serial adapters to work with the raspberry pi, though never had problems on x86 boxen.

The device I have to use (it is integrated into our gear) identifies itself as:
	255 csp 0x0000ff vid 0x10c4 did 0xea60 'Silicon Labs' 'CP2102 USB to UART Bridge Controller' dwcotg
	ep6.1 enabled bulk rw speed full maxpkt 64 pollival 0 samplesz 0 hz 0 hub 2 port 4 busy

and is set up with:

	b115200 c0 d0 e0 l8 m0 pn r0 s1 i0
	dev(0) type(0)  framing(0) overruns(0) berr(0)  serr(0)

Text into the pi works fine, but outgoing text seems stalled until text is received,
I can type ahead and when I receive data the queued outgoing data is sent.

does this ring any bells with anyone?
any suggestions where to look in the usb serial code?

-Steve



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-12-15 11:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-14 10:44 [9fans] usb serial on raspberry pi (again) Richard Miller
2016-12-15 11:15 ` Steve Simon
  -- strict thread matches above, loose matches on Subject: below --
2016-10-27 10:40 Steve Simon
2016-12-12 20:33 ` Richard Miller
2016-12-12 20:39   ` Richard Miller
2016-12-13 10:06     ` Gorka Guardiola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).