This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

USB configuration error on connecting pandaboard in Android acessory mode to PC

Hi

I have successfully booted jellybean in Pandaboard ES from Linaro android. I made Panda in USB accessory mode using some code according to Android Open Accessory (AOA) protocol . When I tried to exchange data between PC and app (running in Panda) via USB , I am getting "USB configuration error ".

My code is working fine with my android phone.

Please help.

Thanks

  • From where did you observe this error,

    can you be more specific what code did you use from the AOA and can you provide some log information in order to analyse?

    Regards,

    Boyko

  • Hi

    Thanks for reply.

    I am following these two sites:

    http://android.serverbox.ch/?p=262

    http://arnaudbertrand.com/python-android-accessory-usb-proof-of-concept/

    On running the C cod  provided by first site I am getting followings log

    $ sudo ./simplectrl

    Claimed Interface
    Verion Code Device: 1
    Accessory Identification sent: 1
    Attempted to put device into accessory mode: 1
    inside for
    Interface claimed, ready to transfer data

    Error: LIBUSB_ERROR_IO
    Input/output error.
    Error during main phase

    $ dmesg
    [  991.882200] usb 2-1: USB disconnect, device number 25
    [  992.187311] usb 2-1: new high-speed USB device number 26 using xhci_hcd
    [  992.203879] usb 2-1: New USB device found, idVendor=18d1, idProduct=2d01
    [  992.203888] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
    [  992.203893] usb 2-1: Product: pandaboard
    [  992.203897] usb 2-1: Manufacturer: unknown
    [  992.203900] usb 2-1: SerialNumber: 0123456789ABCDEF
    [  992.215555] usb 2-1: can't set config #1, error -32
    [  992.844409] simplectrl[2951]: segfault at 0 ip 00007fd4cd76edcb sp 00007fff24b05bc0 error 6 in libusb-1.0.so.0.1.0[7fd4cd76a000+15000]

    On running the Python code provided by second code I am getting the following log:

    $ sudo python pyandroidaccessory.py
    Looking for Android Accessory
    VID: 0x18d1 - PID: 0x2d01

    Android accessory not found
    Try to start accessory mode
    Looking for Galaxy Nexus
    VID: 0x18d1 - PID: 0x0001

    Android device found

    Device already configured, should be OK
    Protocol version: 1
    Looking for Android Accessory
    VID: 0x18d1 - PID: 0x2d01
    Accessory mode started

    Sensor: 50
    message from PC S0050 open
    open_device1
    <usb.backend.libusb1._DeviceHandle object at 0x7fad2fe7d410>
    [Errno None] Configuration not set
    message from Phone  [Errno None] Configuration not set
    Sensor: 50
    message from PC S0050 [Errno None] Configuration not set
    message from Phone  [Errno None] Configuration not set
    Sensor: 50
    message from PC S0050 [Errno None] Configuration not set
    message from Phone  [Errno None] Configuration not set
    Sensor: 50
    message from PC S0050 [Errno None] Configuration not set
    message from Phone  [Errno None] Configuration not set

    $ dmesg
    [ 2241.675670] usb 2-1: new high-speed USB device number 35 using xhci_hcd
    [ 2241.692471] usb 2-1: New USB device found, idVendor=18d1, idProduct=0001
    [ 2241.692480] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
    [ 2241.692485] usb 2-1: Product: pandaboard
    [ 2241.692489] usb 2-1: Manufacturer: unknown
    [ 2241.692493] usb 2-1: SerialNumber: 0123456789ABCDEF
    [ 2241.704228] cdc_acm 2-1:1.1: This device cannot do calls on its own. It is not a modem.
    [ 2241.704315] cdc_acm 2-1:1.1: ttyACM0: USB ACM device
    [ 2241.704818] cdc_acm 2-1:1.3: This device cannot do calls on its own. It is not a modem.
    [ 2241.704897] cdc_acm 2-1:1.3: ttyACM1: USB ACM device
    [ 2354.731922] usb 2-1: usbfs: interface 1 claimed by cdc_acm while 'python' sets config #1
    [ 2354.755041] usb 2-1: USB disconnect, device number 35
    [ 2355.126615] usb 2-1: new high-speed USB device number 36 using xhci_hcd
    [ 2355.143288] usb 2-1: New USB device found, idVendor=18d1, idProduct=2d01
    [ 2355.143298] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
    [ 2355.143303] usb 2-1: Product: pandaboard
    [ 2355.143307] usb 2-1: Manufacturer: unknown
    [ 2355.143310] usb 2-1: SerialNumber: 0123456789ABCDEF
    [ 2355.154832] usb 2-1: can't set config #1, error -32

    Thanks