[Galaxy S II Android Development] nogo8888:
usb serial functionality

Hi sir Dori, i am glad to report the success of usb to serial functionality of the latest release.

See hidden code.

app_97@android:/ $ su

app_97@android:/ # dmesg | grep usb

<6>otg max8997_muic_usb_cb: usb mode=3

<6>usb_otg_accessory_power: otg accessory power = 1

<6>host_notify: ndev name=usb_otg: from state=2 -> to state=1

<6>usb usb2: New USB device found, idVendor=1d6b, idProduct=0002

<6>usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1

<6>usb usb2: Product: S3C OTGHCD

<6>usb usb2: Manufacturer: Linux 3.1.0-R57-Siyah-Dorimanx-V7.38-ICS-JB-SGII-PWR-CORE EMSP_OTGHCD

<6>usb usb2: SerialNumber: s3cotg

<6>usb usb2: otg host do not enter suspend.

<6>OTG s5pc110_start_otg(214): OTG HCD Initialized HCD, bus=C110 OTG Controller, usbbus=2

<7>mif: set_hsic_lpa_states: 279: called(s5p_usb_phy_init+0x128/0x564):

<6>s5p-ehci s5p-ehci: usb phy usage(2)

<4>usb usb1: root hub lost power or was reset

<6>mif: usb_port_resume: 0, 0

<6>usb 1-2: USB disconnect, device number 2 by hub_thread+0xa0c/0x118c

<6>usb 2-1: new full speed USB device number 2 using s3c_otghcd

<6>usb 2-1: New USB device found, idVendor=067b, idProduct=2303

<6>usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0

<6>usb 2-1: Product: USB-Serial Controller D

<6>usb 2-1: Manufacturer: Prolific Technology Inc.

<6>usb 2-1: pl2303 converter now attached to ttyUSB0

<6>mif: usb_init_communication: 32007:cbd

<6>usb usb1: USB disconnect, device number 1 by usb_remove_hcd+0x94/0x140

<6>mif: usb_init_communication: 32008:rild

<7>mif: set_hsic_lpa_states: 279: called(s5p_usb_phy_init+0x128/0x564):

<6>s5p-ehci s5p-ehci: usb phy usage(2)

<6>usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

<6>usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

<6>usb usb1: Product: S5P EHCI Host Controller

<6>usb usb1: Manufacturer: Linux 3.1.0-R57-Siyah-Dorimanx-V7.38-ICS-JB-SGII-PWR-CORE ehci_hcd

<6>usb usb1: SerialNumber: s5p-ehci

<6>usb 1-2: new high speed USB device number 2 using s5p-ehci

<4>usb 1-2: config 1 interface 0 altsetting 0 endpoint 0x81 has an invalid bInterval 255, changing to 11

<6>usb 1-2: New USB device found, idVendor=058b, idProduct=0041

<6>usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0

<6>mif: if_usb_probe: usbdev = 0xc5438000

<6>mif: if_usb_set_pipe: set 0

<6>mif: if_usb_probe: devdata usbdev = 0xc5438000

<6>mif: if_usb_probe: successfully done

<3>mif: usb_rx_complete: urb err status = -71

<6>usb usb1: USB disconnect, device number 1 by usb_remove_hcd+0x94/0x140

<6>usb 1-2: USB disconnect, device number 2 by usb_disconnect+0x6c/0x114

<6>mif: if_usb_disconnect:

<6>mif: if_usb_disconnect: put dev 0xc5438000

<6>mif: if_usb_disconnect:

<7>mif: set_hsic_lpa_states: 279: called(s5p_usb_phy_init+0x128/0x564):

<6>s5p-ehci s5p-ehci: usb phy usage(2)

<6>usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

<6>usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

<6>usb usb1: Product: S5P EHCI Host Controller

<6>usb usb1: Manufacturer: Linux 3.1.0-R57-Siyah-Dorimanx-V7.38-ICS-JB-SGII-PWR-CORE ehci_hcd

<6>usb usb1: SerialNumber: s5p-ehci

<6>usb 1-2: new high speed USB device number 2 using s5p-ehci

<6>usb 1-2: New USB device found, idVendor=1519, idProduct=0020

<6>usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3

<6>usb 1-2: Product: HSIC Device

<6>usb 1-2: Manufacturer: Comneon

<6>usb 1-2: SerialNumber: 0123456789

<6>mif: if_usb_probe: usbdev = 0xc5438000

<6>mif: if_usb_set_pipe: set 0

<6>mif: if_usb_probe: devdata usbdev = 0xc5438000

<6>mif: if_usb_probe: successfully done

<6>mif: if_usb_probe: usbdev = 0xc5438000

<6>mif: if_usb_set_pipe: set 1

<6>mif: if_usb_probe: devdata usbdev = 0xc5438000

<6>mif: if_usb_probe: successfully done

<6>mif: if_usb_probe: usbdev = 0xc5438000

<6>mif: if_usb_set_pipe: set 2

<6>mif: if_usb_probe: devdata usbdev = 0xc5438000

<6>mif: if_usb_probe: successfully done

<6>mif: if_usb_probe: usbdev = 0xc5438000

<6>mif: if_usb_set_pipe: set 3

app_97@android:/ # dmesg | grep tty

<6>usb 2-1: pl2303 converter now attached to ttyUSB0

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

Illegal Access to this Device is Covered under

Anti-Cybercrime Law Republic Act 10175

of the Republic of the Phils

Illegal LOGIN can lead to imprisonment

User Access Verification

Username:

For other issue which is not very significant with me but for the sake of other users, I would bring this deficiency.

1. Audio Problem when screen off - seems persistent to me but you have stated that it maybe caused by other factors (ROM, sound module and etc). but only happened on HEADSET ONLY but on Bluetooth (tested on Dmax's BT working great no stutter) and

Phone Speake

r also no stutter. Maybe it will help you sort out this problem.

2. Wifi Hotspot did'nt seem to work for me.

That's just my observation but haven't tried some other functions maybe some users will do report.

Again Im very grateful for your effort in adding usb to serial functionality.

Edit: Audio Stutter via phone speaker experienced now.

EDIT 2 and update: Confirmed no audio stutter on bluetootth even sms notifications came in. 3 songs played it was good.

Edit3: No audio stutter on Phone internal Speaker even sms notifications came in. This problem seems to be erratic.