nickkorean / 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

Sample does not detect Arduino on ICS 4.0.3 #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Build Sample App, Install on ICS 4.0.3 (Ainol Aurora) tablet, plug in OTG 
adapter with Arduino Nano connected (using FT232RL chip)

What is the expected output? 
See data from serial device

What do you see instead?
No Serial Device, mSerialDevice=null

Please provide any additional information below.

Original issue reported on code.google.com by webmas...@ediy.co.nz on 29 Apr 2012 at 1:54

GoogleCodeExporter commented 9 years ago
Here is the DMESG log from the device, is this problem to do with the AllWinner 
USB host driver?

<7>[ 1392.830000] rmmod_host_driver
<7>[ 1392.830000]
<7>[ 1392.830000] [sw_hcd0]: sw_usb_host0_disable start
<7>[ 1392.840000] -------sw_hcd0_soft_disconnect---------
<7>[ 1392.840000] [sw_hcd_host0]: Set USB Power OFF
<7>[ 1392.840000] sw_hcd_stop: sw_hcd disabled
<7>[ 1392.850000] [sw_hcd0]: close_usb_clock
<7>[ 1392.850000] [sw_hcd0]: sw_usb_host0_disable end
<7>[ 1395.890000]
<7>[ 1395.890000]
<7>[ 1395.890000] insmod_host_driver
<7>[ 1395.890000]
<7>[ 1395.890000] [sw_hcd0]: sw_usb_host0_enable start
<7>[ 1395.900000] -------sw_hcd0_soft_disconnect---------
<7>[ 1395.900000] [sw_hcd0]: open_usb_clock
<7>[ 1395.930000] [sw_hcd0]: host_init_state = 0
<7>[ 1395.930000] [sw_hcd_host0]: Set USB Power ON
<7>[ 1395.940000] [sw_hcd0]: sw_usb_host0_enable end
<7>[ 1396.110000]
<7>[ 1396.110000] ------------IRQ CONNECT-------------
<7>[ 1396.110000]
<7>[ 1396.280000] [sw_hcd]: reset port.
<7>[ 1396.340000] [sw_hcd]: reset port stopped.
<7>[ 1396.340000] spurious?
<6>[ 1396.400000] usb 1-1: new full speed USB device number 10 using 
sw_hcd_host0
<7>[ 1396.400000] [sw_hcd]: reset port.
<7>[ 1396.470000] [sw_hcd]: reset port stopped.
<7>[ 1396.530000] [sw_hcd]: sw_hcd_h_disable, epnum = 0
<7>[ 1396.530000] [sw_hcd]: sw_hcd_h_disable, epnum = 0
<7>[ 1396.550000] [sw_hcd]: sw_hcd_h_disable, epnum = 0
<7>[ 1396.550000] [sw_hcd]: sw_hcd_h_disable, epnum = 0
<7>[ 1396.560000] WRN:L1719(drivers/usb/sun4i_usb/hcd/core/sw_hcd_host.c):ERR: 
sw_hcd_h_ep0_irq, STALLING ENDPOINT
<7>[ 1396.560000] WRN:L1738(drivers/usb/sun4i_usb/hcd/core/sw_hcd_host.c):ERR: 
sw_hcd_h_ep0_irq, ep aborting
<7>[ 1396.570000] WRN:L1719(drivers/usb/sun4i_usb/hcd/core/sw_hcd_host.c):ERR: 
sw_hcd_h_ep0_irq, STALLING ENDPOINT
<7>[ 1396.570000] WRN:L1738(drivers/usb/sun4i_usb/hcd/core/sw_hcd_host.c):ERR: 
sw_hcd_h_ep0_irq, ep aborting
<7>[ 1396.590000] WRN:L1719(drivers/usb/sun4i_usb/hcd/core/sw_hcd_host.c):ERR: 
sw_hcd_h_ep0_irq, STALLING ENDPOINT
<7>[ 1396.590000] WRN:L1738(drivers/usb/sun4i_usb/hcd/core/sw_hcd_host.c):ERR: 
sw_hcd_h_ep0_irq, ep aborting
<6>[ 1398.650000] init: waitpid returned pid 4021, status = 00000000
<3>[ 1398.660000] init: untracked pid 4021 exited
<7>[ 1410.770000] rtw_set_ps_mode(): Busy Traffic , Leave 802.11 power save..
<7>[ 1410.770000] rtl8192c_set_FwPwrMode_cmd(): Mode = 0, SmartPS = 0
<7>[ 1410.810000] rtl8192c_dm_RF_Saving(): RF_Save
<7>[ 1412.770000] rtw_set_ps_mode(): Enter 802.11 power save mode...
<7>[ 1412.770000] rtl8192c_dm_RF_Saving(): RF_Normal
<7>[ 1412.780000] rtl8192c_set_FwPwrMode_cmd(): Mode = 1, SmartPS = 2
<7>[ 1414.450000] rtw_set_ps_mode(): Busy Traffic , Leave 802.11 power save..
<7>[ 1414.460000] rtl8192c_set_FwPwrMode_cmd(): Mode = 0, SmartPS = 0
<7>[ 1414.770000] rtl8192c_dm_RF_Saving(): RF_Save
<7>[ 1416.770000] rtw_set_ps_mode(): Enter 802.11 power save mode...
<7>[ 1416.770000] rtl8192c_dm_RF_Saving(): RF_Normal
<7>[ 1416.780000] rtl8192c_set_FwPwrMode_cmd(): Mode = 1, SmartPS = 2
<7>[ 1435.100000] battery vol change: 31->30

Original comment by webmas...@ediy.co.nz on 3 May 2012 at 1:02

GoogleCodeExporter commented 9 years ago
Sorry for the long delay in responding.

Have you tried editing xml/device_filter.xml, adding the device's USB vendor 
and product IDs?  It's possible your device is using a different id.

Original comment by mike.wak...@gmail.com on 27 Jun 2012 at 6:19

GoogleCodeExporter commented 9 years ago
I also have this issue and have added the correct device vendor and product IDs 
to the device_filter.xml

Original comment by evman...@gmail.com on 12 Nov 2012 at 5:56

GoogleCodeExporter commented 9 years ago
I managed to resolve my issue.  In my device_filter.xml I needed to convert my 
values from hex to dec.  

Original comment by evman...@gmail.com on 13 Nov 2012 at 4:22

GoogleCodeExporter commented 9 years ago
What kind of info you have added to device_filter.xml ?

I have the same sympthoms. I'm trying to connect MK805 (Android 4.0.4) with 
Arduino Uno

Original comment by A.Doga...@googlemail.com on 13 Nov 2012 at 1:24

GoogleCodeExporter commented 9 years ago
You can find a sample device_filter.xml in git.

Original comment by mike.wak...@gmail.com on 27 Nov 2012 at 4:56

GoogleCodeExporter commented 9 years ago

Original comment by mike.wak...@gmail.com on 29 Nov 2012 at 9:42