adb to access Le Potato

Running Android 7.1.1 on Le Potato, I have brought developer options and enabled USB debugging, but on my laptop, when I try "adb devices", I still cannot see Le Potato. Can anyone help how to make adb work on this board? Thanks.

Comments

  • edited April 2020
    You have to use the Type A port that is hooked into OTG which should be the top port next to Ethernet if my memory serves me correctly.
  • Thanks. After upgrade to Android 8 and using the top port next to Ethernet, adb worked. I am not sure if it also works with Andoid 7 with the right USB port. 
  • Basically it depends on which mode the port was set to which is image dependent. It can either be configured as a host port or client port. One needs to modify the image by building it  from the SDK if the mode is not the one desired.
  • Sorry to revive the old thread. How do i get the OTG port to work on Le Potato? I am using armbian bullseye image and would like to use the OTG port (top left port next to ethernet) for HID (keyboard/mouse) via usb gadget.  Is there some dtoverlay configuration to be applied? 

    lsusb shows this.
    Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver

    Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub

    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    lsusb -t shows this.
    /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
    |__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 3: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 3: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M

    At this link https://wiki.stmicroelectronics.cn/stm32mpu/index.php?title=USB_overview&direction=prev&oldid=77109,
    lsusb -t /* lsusb -t shows the USB class, the driver used and the number of ports and speed of each USB devices */
    /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
    |__ Port 1: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 3: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M

    USB gadget creates the /dev/hidg0 and /dev/hidg1 devices successfully. But trying to write keystrokes results in the following error.

    sudo echo -ne "\0\0\x4\0\0\0\0\0" > /dev/hidg0 && sudo echo -ne "\0\0\0\0\0\0\0\0" > /dev/hidg0

    echo: write error: Cannot send after transport endpoint shutdown

Sign In or Register to comment.