Jump to content

TzuWen_Chang

Tinker Engineer
  • Content Count

    6
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by TzuWen_Chang


  1. Hi,

    Here are a few ways to reduce radio frequency interference (RFI):

    1. Disable USB 3.0. In your case, you can directly use a USB 2.0 port to connect the camera.
    2. Improve signal shielding. Try adding metal shielding (grounded) between the Wi-Fi network card and the motherboard.
    3. Switch to a USB Wi-Fi card and use a USB extension cable to move the USB Wi-Fi card away from the USB 3.0 port.

    • Like 1

  2. hello @sonyan11

    For TB3 use the following commands

    Reset usb 2.0 hub:
    echo 1 > /sys/kernel/debug/usb/fd800000.usb/hub_reset

    Power off and power on usb 2.0 hub device:
    echo off > /sys/kernel/debug/usb/fd800000.usb/hub_vbus
    echo on > /sys/kernel/debug/usb/fd800000.usb/hub_vbus

    Power off and power on usb 3.0 hub device:
    echo off > /sys/kernel/debug/usb/fd000000.dwc3/hub_vbus
    echo on > /sys/kernel/debug/usb/fd000000.dwc3/hub_vbus

    • Thanks 1

  3. Hi,

    Please check your devpath. You can use "dmesg" or "udevadm monitor" command to get more information.

    root@linaro-alip:/dev/input/by-id# udevadm monitor
    monitor will print the received events for:
    UDEV - the event which udev sends out after rule processing
    KERNEL - the kernel uevent
    [  458.189823] usb 5-1.3: new low-speed USB device number 4 using xhci-hcd
    [  458.298912] usb 5-1.3: New USB device found, idVendor=0461, idProduct=4e84
    [  458.305868] usb 5-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [  458.313467] usb 5-1.3: Product: USB Optical Mouse
    [  458.318335] usb 5-1.3: Manufacturer: PixArt
    [  458.324909] usb 5-1.3: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
    KERNEL[458.005759] add      /devices/platform/usb1/fe900000.dwc3/xhci-hcd.11.auto/usb5/5-1/5-1.3 (usb)
    KERNEL[458.047247] add      /devices/platform/usb1/fe900000.dwc3/xhci-hcd.11.auto/usb5/5-1/5-1.3/5-1.3:1.0 (usb)
    KERNEL[458.054557] add      /devices/platform/usb1/fe900000.dwc3/xhci-hcd.11.auto/usb5/5-1/5-1.3/5-1.3:1.0/0003:0461:4E84.0002 (hid)
    [  458.383211] input: PixArt USB Optical Mouse as /devices/platform/usb1/fe900000.dwc3/xhci-hcd.11.auto/usb5/5-1/5-1.3/5-1.3:1.0/0003:0461:4E84.0002/input/input5
    KERNEL[458.063876] add      /devices/platform/usb1/fe900000.dwc3/xhci-hcd.11.auto/usb5/5-1/5-1.3/5-1.3:1.0/0003:0461:4E84.0002/input/input5 (input)
    KERNEL[458.090385] add      /devices/platform/usb1/fe900000.dwc3/xhci-hcd.11.auto/usb5/5-1/5-1.3/5-1.3:1.0/0003:0461:4E84.0002/input/input5/event3 (input)
    [  458.453946] hid-generic 0003:0461:4E84.0002: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.11.auto-1.3/input0
    KERNEL[458.134852] add      /devices/platform/usb1/fe900000.dwc3/xhci-hcd.11.auto/usb5/5-1/5-1.3/5-1.3:1.0/0003:0461:4E84.0002/hidraw/hidraw0 (hidraw)
    UDEV  [458.165723] add      /devices/platform/usb1/fe900000.dwc3/xhci-hcd.11.auto/usb5/5-1/5-1.3 (usb)
    UDEV  [458.190489] add      /devices/platform/usb1/fe900000.dwc3/xhci-hcd.11.auto/usb5/5-1/5-1.3/5-1.3:1.0 (usb)
    UDEV  [458.202123] add      /devices/platform/usb1/fe900000.dwc3/xhci-hcd.11.auto/usb5/5-1/5-1.3/5-1.3:1.0/0003:0461:4E84.0002 (hid)
    UDEV  [458.215344] add      /devices/platform/usb1/fe900000.dwc3/xhci-hcd.11.auto/usb5/5-1/5-1.3/5-1.3:1.0/0003:0461:4E84.0002/hidraw/hidraw0 (hidraw)
    UDEV  [458.223512] add      /devices/platform/usb1/fe900000.dwc3/xhci-hcd.11.auto/usb5/5-1/5-1.3/5-1.3:1.0/0003:0461:4E84.0002/input/input5 (input)
    UDEV  [458.298266] add      /devices/platform/usb1/fe900000.dwc3/xhci-hcd.11.auto/usb5/5-1/5-1.3/5-1.3:1.0/0003:0461:4E84.0002/input/input5/event3 (input)
    root@linaro-alip:/dev/input# ls
    by-id  by-path  event0  event1  event2  event3


     


  4. On 4/29/2021 at 8:38 PM, gc986 said:

    Hey! I need to be root to restart "tcpip" (adb tcpip 5555) from my application. How can i do this?

    I am using tinkerboard R as a kiosk terminal and I need to control it over a TCP connection after a system reboot (after reboot "tcpip" is off).

    Hi gc986,

    If you want do the following command on boot.

    Quote

    su
    setprop service.adb.tcp.port 5555
    stop adbd
    start adbd

    You can modify init.usb.configfs.rc by "remount"

    Quote

    adb root
    adb shell remount
    adb pull /init.usb.configfs.rc

    Add "setprop service.adb.tcp.port 5555" before "start adbd"

    adb push init.usb.configfs.rc /init.usb.configfs.rc

    Then reboot to check property has been set.

×
×
  • Create New...