RegionChiou / usb-serial-for-android

Automatically exported from code.google.com/p/usb-serial-for-android
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Support for multiple devices and multiport devices #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've designed a board based around the CP2108 (like the CP2102 but has 4 ports 
in one chip) so that I can wire up a bunch of serial devices to a Nexus 7 
without a hub and loads of single port converters.
Once the PCBs come I'm going to modify the current CP2102 driver to handle 
multiple ports and fix up the modem signals etc.

Would support for multiple devices and multiport devices be something that is 
interesting to upstream users? If so maybe we could agree on how it could be 
handled so that I can create a patch and submit it instead of maintaining my 
own fork.

Original issue reported on code.google.com by danier...@gmail.com on 22 Mar 2013 at 2:32

GoogleCodeExporter commented 9 years ago
Hi there,

Yes, multiple device support would be interesting.  Actually, it already should 
be supported: you can instantiate any driver manually, against any chosen 
[android] UsbDevice.

What's missing, and what you might be requesting, is *prober* support for 
multiple devices.  That'd probably be a simple matter of adding some method 
like:

  Collection<UsbSerialDevice> probeAllDevices(UsbManager)

... to UsbSerialProber.java

Original comment by mike.wak...@gmail.com on 8 Apr 2013 at 5:57

GoogleCodeExporter commented 9 years ago
What do you think about devices with multiple ports like the CP2105 or CP2108?
They appear as a single USB device.
My plan is to adapt the current CP2102 driver and add the bits it needs to talk 
to each of the ports. I think port awareness should be added to UsbSerialDevice.

Original comment by danier...@gmail.com on 9 Apr 2013 at 10:03

GoogleCodeExporter commented 9 years ago
For anyone that is interested there is support for the CP2108 (Like the CP2102 
with 4 ports) in my clone at 
https://code.google.com/r/danieruru-usb-serial-for-android/
I have confirmed that basic RX/TX work with all of the ports on my custom 
CP2108 boards. I'll test the modem signals at some point (the code for the 
modem signals was taken from 
https://code.google.com/r/serge-usb-serial-for-android/).

Original comment by danier...@gmail.com on 15 Apr 2013 at 2:16

GoogleCodeExporter commented 9 years ago
https://github.com/mik3y/usb-serial-for-android/issues/14

Original comment by mike.wak...@gmail.com on 13 Sep 2013 at 4:36