Android USB Host: Difference between revisions
From Variscite Wiki
(Created page with "{{PageHeader|USB Host}} {{DocImage|category1=Yocto|category2=VAR-SOM-MX6}} __toc__ Plug in a USB mass storage device / mouse / keyboard / any other supported USB device to any...") |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{PageHeader|USB Host}} {{DocImage|category1= | <!-- Set release according to "release" parameter in URL and use RELEASE_N7.1.1_1.0.0_VAR-SOM-MX6 as default | ||
Plug in a USB mass storage device / mouse / keyboard | --> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- | ||
--> {{#lst:Android_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_N7.1.1_1.0.0_VAR-SOM-MX6}}}} <!-- | |||
--> {{PageHeader|{{#var:HARDWARE_NAME}} - {{#switch: {{#var:ANDROID_NAME}} | Android 10 = {{#var:ANDROID_NAME}} | Android 11 = {{#var:ANDROID_NAME}} | | Android 12 = {{#var:ANDROID_NAME}} | Android 13 = {{#var:ANDROID_NAME}} | Android {{#var:ANDROID_NAME}} }} - Android USB Host}} {{DocImage|category1=Android|category2={{#var:HARDWARE_NAME}}}} __toc__ | |||
How to test USB devices connected to Type - A USB host of the EVK. | |||
To test Plug in a USB mass storage device/mouse/keyboard orany other supported USB device to any of the USB host ports on your DVK. <br> | |||
= USB Mass Storage Device Example = | = USB Mass Storage Device Example = | ||
After inserting a USB stick you should get output similar to this: | After inserting a USB stick you should get an output similar to this: | ||
<pre> | <pre> | ||
usb 1-1: new high-speed USB device number 3 using ci_hdrc | usb 1-1: new high-speed USB device number 3 using ci_hdrc | ||
Line 20: | Line 26: | ||
</pre> | </pre> | ||
It should automatically get mounted. Use the Gallery Application to see the files. | It should automatically get mounted. Use the Gallery Application to see the files. | ||
*Note: If it doesn't detect, it will give you warning on the status bar on the top. Format the USB | *Note: If it doesn't detect, it will give you a warning on the status bar on the top. Format the USB pen drive. | ||
= USB Keyboard / mouse = | = USB Keyboard/mouse = | ||
After inserting the USB | After inserting the USB Keyboard you should be able to use it on the application.<br> | ||
Click on WebView browser test | Click on WebView browser test and type.<br> | ||
After connecting the mouse to Host, you should see the mouse cursor to operate with the Android UI | After connecting the mouse to Host, you should see the mouse cursor to operate with the Android UI |
Latest revision as of 09:39, 18 September 2023
VAR-SOM-MX6 - Android Nougat - Android USB Host
How to test USB devices connected to Type - A USB host of the EVK.
To test Plug in a USB mass storage device/mouse/keyboard orany other supported USB device to any of the USB host ports on your DVK.
USB Mass Storage Device Example
After inserting a USB stick you should get an output similar to this:
usb 1-1: new high-speed USB device number 3 using ci_hdrc usb-storage 1-1:1.0: USB Mass Storage device detected scsi1 : usb-storage 1-1:1.0 scsi 1:0:0:0: Direct-Access SanDisk U3 Cruzer Micro 8.02 PQ: 0 ANSI: 0 CCS sd 1:0:0:0: [sda] 3907583 512-byte logical blocks: (2.00 GB/1.86 GiB) sd 1:0:0:0: [sda] Write Protect is off sd 1:0:0:0: [sda] No Caching mode page found sd 1:0:0:0: [sda] Assuming drive cache: write through sd 1:0:0:0: [sda] No Caching mode page found sd 1:0:0:0: [sda] Assuming drive cache: write through sda: sda1 sda2 sd 1:0:0:0: [sda] No Caching mode page found sd 1:0:0:0: [sda] Assuming drive cache: write thr
It should automatically get mounted. Use the Gallery Application to see the files.
- Note: If it doesn't detect, it will give you a warning on the status bar on the top. Format the USB pen drive.
USB Keyboard/mouse
After inserting the USB Keyboard you should be able to use it on the application.
Click on WebView browser test and type.
After connecting the mouse to Host, you should see the mouse cursor to operate with the Android UI