[Galaxy Tab  Android Development] nogo8888:
USB Host - usbserial

@humberos, @alroger. Hi sir, I'm testing the new feature of this kernel and module for Pl2303. I was able to insmode pl2303, in turn the adapter is connected to ttyUSB0 but still I cannot console my cisco router using microcom.

I have also tried to use third party apps Slick USB 2 Serial, my adapter was detected but still no communication from my cisco router.

Please see below the commands I issued and its output.

C:\>adb shell

root@android:/ # lsusb

lsusb

Bus 001 Device 001: ID 1d6b:0002

Bus 001 Device 002: ID 067b:2303 -this is my USB to Serial Adapter

255|root@android:/ # insmod /system/lib/modules/pl2303.ko

insmod /system/lib/modules/pl2303.ko

root@android:/ # dmesg | grep usb

dmesg | grep usb

[ 0.000000] sclk_cam: source is xusbxti (1), rate is 24000000

[ 0.317400] usbcore: registered new interface driver usbfs

[ 0.317599] usbcore: registered new interface driver hub

[ 0.317893] usbcore: registered new device driver usb

[ 0.635750] sec_switch_init_work : initial usb_sel(1), uart_sel(0)

[ 2.319704] usbcore: registered new interface driver cdc_acm

[ 2.320147] usbcore: registered new interface driver usb-storage

[ 2.320558] usbcore: registered new interface driver usbserial

[ 2.320942] usbcore: registered new interface driver usbserial_generic

[ 2.321119] usbserial: USB Serial Driver core

[ 2.321510] usbcore: registered new interface driver ftdi_sio

[ 2.323033] android_usb gadget: android_usb ready

[ 2.326861] Registered gadget driver 'android_usb'

[ 2.327498] android_register_function usb_mass_storage

[ 2.328162] android_usb gadget: using random self ethernet address

[ 2.328273] android_usb gadget: using random host ethernet address

[ 2.329441] usb0: MAC 96:2c:53:e0:95:9a

[ 2.329541] usb0: HOST MAC ee:f4:92:c2:64:cb

[ 2.330035] android_usb gadget: Mass Storage Function, version: 2009/09/11

[ 2.330140] android_usb gadget: Number of LUNs=2

[ 2.331905] usbcore: registered new interface driver xpad

[ 2.784458] usbcore: registered new interface driver usbhid

[ 2.784559] usbhid: USB HID core driver

[ 8.090870] init: processing action 0x30d70 (property: persist.sys.usb.conf

ig=*)

[ 8.091174] init: processing action 0x359b8 (property:sys.usb.config=mass_

storage)

[ 121.671266] usb usb1: default language 0x0409

[ 121.671440] usb usb1: udev 1, busnum 1, minor = 0

[ 121.671522] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

[ 121.671668] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumb

er=1

[ 121.671752] usb usb1: Product: S3C OTGHCD

[ 121.671895] usb usb1: Manufacturer: Linux 2.6.35.13-HumberOS-gd3c3143 EMSP

_OTGHCD

[ 121.671979] usb usb1: SerialNumber: s3cotg

[ 121.679535] usb usb1: usb_probe_device

[ 121.679628] usb usb1: configuration #1 chosen from 1 choice

[ 121.679802] usb usb1: adding 1-0:1.0 (config #1, interface 0)

[ 121.680862] hub 1-0:1.0: usb_probe_interface

[ 121.681012] hub 1-0:1.0: usb_probe_interface - got id

[ 121.688611] => OTG HCD Initialized HCD, bus=C110 OTG Controller, usbbus=1

[ 122.053186] usb 1-1: new full speed USB device using s3c_otghcd and addres

s 2

[ 122.178589] usb 1-1: default language 0x0409

[ 122.179015] usb 1-1: udev 2, busnum 1, minor = 1

[ 122.179194] usb 1-1: New USB device found, idVendor=067b, idProduct=2303

[ 122.179298] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumbe

r=0

[ 122.179479] usb 1-1: Product: USB-Serial Controller D

[ 122.179578] usb 1-1: Manufacturer: Prolific Technology Inc.

[ 122.180636] usb 1-1: usb_probe_device

[ 122.180745] usb 1-1: configuration #1 chosen from 1 choice

[ 122.181030] usb 1-1: adding 1-1:1.0 (config #1, interface 0)

[ 122.181668] usbserial_generic 1-1:1.0: usb_probe_interface

[ 122.181848] usbserial_generic 1-1:1.0: usb_probe_interface - got id

[ 175.259165] pl2303 1-1:1.0: usb_probe_interface

[ 175.259313] pl2303 1-1:1.0: usb_probe_interface - got id

[ 175.266025] usb 1-1: pl2303 converter now attached to ttyUSB0 ; adapter is attached to ttyUSB0

[ 175.266181] usbcore: registered new interface driver pl2303; after is issued insmod

[ 185.291646] active wake lock usb_otg

root@android:/ # lsmod

lsmod

pl2303 10646 0 - Live 0xbf05b000

bcmdhd 334894 0 - Live 0xbf007000

vibrator 5875 0 - Live 0xbf000000

root@android:/ # microcom -s 9600 /dev/ttyUSB0

microcom -s 9600 /dev/ttyUSB0

^X

root@android:/ #

This is what I see in SGS2: kindly see in red font

app_90@android:/ $ lsmod

ftdi_sio 30893 0 - Live 0xbf049000

dhd 423168 0 - Live 0xbf0e7000

j4fs 69655 1 - Live 0xbf068000

pl2303 11115 0 - Live 0xbf061000

usbserial 30437 2 ftdi_sio,pl2303, Live 0xbf053000

cifs 245998 0 - Live 0xbf00b000

Si4709_driver 27055 0 - Live 0xbf000000

app_90@android:/ $

I think we're almost there in attaining this feature.

Hope you can check this.

BTW, keyboard, mouse and usbstick (FAT32) runs successfully in your ROM (cm10.1 12th December)

Thanks in advance.