Skip to content
shawnbow edited this page Nov 12, 2014 · 3 revisions

The Matchstick has a micro USB interface which works in slave mode by default. You can connect it to your PC and use adb to debug on it. When you want to connect a keyboard or mouse on it, please switch the USB mode to host:

adb root
adb shell 'echo 1 >/data/otg.cfg'
adb shell sync

Then use a powered micro-USB OTG cable to connect to the mouse or keyboard, and if your dongle is connected to the Wifi network, you can still use net adb to debug on it:

adb connect 10.0.0.XXX
adb devices

Have fun ......

When you want to switch back to slave mode, e.g. to flash the dongle, you need to switch back to slave mode

adb root
adb shell 'echo 2 >/data/otg.cfg'
adb shell sync

Then pull out the OTG cable, and plug in the micro USB cable. The USB interface will be restored to slave mode.

  • Flingone
    • [Factory Images](Factory Images)
    • [Setup USB Mode](Setup USB Mode)
    • [Other boards](Other boards)
Clone this wiki locally