degRoms

Android USB Host Mode, step-by-step

When your Android-powered device is in USB host mode, it acts as the USB host, powers the bus, and enumerates connected USB devices. USB host mode is supported in Android 3.1 and higher.

To use Android devices as Host, a USB OTG (On-The-Go) cable is needed, to be connected to Android side.

I'm do some exercise on Android USB Host Mode, here is the list of the related posts.

  • List attached USB devices in USB Host mode
  • List UsbDevice, UsbInterface and UsbEndpoint in USB Host mode
  • Read iManufacturer and iProduct of USB Device from raw Device Descriptors
  • Search USB device for specified Vendor ID and Product ID
  • Use intent filter to detect a specified USB device and auto start application
  • cat /system/etc/permissions/handheld_core_hardware.xml on your Android device
  • Get type and direction of UsbEndpoint
  • Search UsbInterface and UsbEndpoint, of USB_ENDPOINT_XFER_BULK type, with both USB_DIR_OUT and USB_DIR_IN
  • Send Hello to Arduino from Android in USB Host Mode
  • Android send command to Arduino in USB Host mode
  • Check idVendor and idProduct of USB device, in Ubuntu
  • Setup Android Debug Bridge (adb) for Wifi debug
  • Send String from Android to Arduino Uno, in USB Host Mode


رسالة أحدث رسالة أقدم الصفحة الرئيسية

المساهمون

  • admin
  • men

أرشيف المدونة الإلكترونية

  • ◄  2017 (151)
    • ◄  ديسمبر (151)
  • ◄  2016 (800)
    • ◄  ديسمبر (3)
    • ◄  نوفمبر (12)
    • ◄  أكتوبر (101)
    • ◄  سبتمبر (69)
    • ◄  أغسطس (307)
    • ◄  يوليو (7)
    • ◄  يونيو (166)
    • ◄  مايو (25)
    • ◄  يناير (110)
  • ◄  2015 (1070)
    • ◄  ديسمبر (113)
    • ◄  نوفمبر (227)
    • ◄  أكتوبر (156)
    • ◄  سبتمبر (187)
    • ◄  أغسطس (111)
    • ◄  يوليو (68)
    • ◄  يونيو (13)
    • ◄  مايو (23)
    • ◄  أبريل (17)
    • ◄  مارس (31)
    • ◄  فبراير (6)
    • ◄  يناير (118)
  • ▼  2014 (1317)
    • ◄  ديسمبر (241)
    • ◄  نوفمبر (142)
    • ◄  أكتوبر (115)
    • ◄  سبتمبر (29)
    • ◄  أغسطس (157)
    • ◄  يوليو (94)
    • ◄  يونيو (288)
    • ◄  مايو (55)
    • ◄  أبريل (116)
    • ◄  مارس (42)
    • ▼  فبراير (13)
      • cat /system/etc/permissions/handheld_core_hardware...
      • Android on x86: An Introduction to Optimizing for ...
      • Enable developer options on KitKat (Android 4.4)
      • How to capture screen on Nexus 7
      • Run Linux command with ProcessBuilder
      • Use intent filter to detect a specified USB device...
      • Android Server/Client example - client side using ...
      • Android Server/Client example - server side using ...
      • Get my IP Address
      • Search USB device for specified Vendor ID and Prod...
      • Android USB Host Mode, step-by-step
      • Google Cast Software Development Kit (SDK) is avai...
      • Read iManufacturer and iProduct of USB Device from...
    • ◄  يناير (25)
  • ◄  2013 (262)
    • ◄  ديسمبر (28)
    • ◄  نوفمبر (17)
    • ◄  أكتوبر (37)
    • ◄  سبتمبر (89)
    • ◄  أغسطس (91)
يتم التشغيل بواسطة Blogger.