Jump to content

sumit6975

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by sumit6975

  1. Hi Guidol,
    Thanks for replying.
    I am not using an external usb-hub rather the usb-hub of the odroicdc2. 
    None of the USB peripherals connected to the ports o f the hub are detected by the OS. 
    I tried connecting a barcode scanner and a ZTE USB modem. None of them were detected in lsusb.

    Thanks
    Sumit

  2. Solved the problem (edited)

    Disabled usb gadget service of orangepi zero
    `sudo  /sbin/rmmod g_serial`  (edited)
    then 
     `sudo bash create-gadget.sh` 
    link to solution: https://vjordan.info/log/fpga/nanopi-neo-usb-otg-with-armbian-mainline-4x-kernel.html

     

    after `rmmod g_serial` , it can be verified on the host pc by `lsmod`.

     

    On the orangepi:
     `ls /dev/hid*`  lists the hid device ports (hidraw1, hadraw2 ... ) and gadget port (hidg0)

     

     

  3. I want to load my custom service to show orangepi zero as three devices on the host PC. But as the UDC  ( /sys/class/udc/musb-hdrc.1.auto) is being used by another service which is probably the builtin service using udc to show orangepi as:
     

    Bus 001 Device 048: ID 0525:a4a7 Netchip Technology, Inc. Linux-USB Serial Gadget (CDC ACM mode)  

     I want to disable that service so that my custom service can use the UDC for the required purpose.

     

    This is the command:

    echo "$(ls /sys/class/udc/)" > UDC

     

    and this is the error:

    echo: write error: Device or resource busy

     

    "ls /sys/class/udc" has the file musb-hdrc.1.auto

     

    and UDC is in the folder /sys/kernel/config/usb-gadget/< custom name>/    ,   which is created using a bash script

     

    Regards,

    Sumit 

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines