Skip to content

how to control linux USB? #3

@mahesh2000

Description

@mahesh2000

hi, this is a bit unrelated to your project -- how do i control a USB device (Arduino Uno R3) from the linux side? it does not show up on the android side on a phone (Micromax, running KitKat 4.4.2) but it does power up (USB host mode?) and is recognized on the linux side. strangely this seems to be a problem with phones (i tried a few others), NOT with tablets, i'm able to control the arduino as a serial device using UsbManager. rooting the phone cannot be part of the solution.

here's the info your .apk generates:
"Device Info
Device Path: /sys/bus/usb/devices/1-1/
Device Class: Communication Device (0x2)
Vendor ID: 2341
Vendor Name (reported): Arduino (www.arduino.cc)
Vendor Name (from DB): Arduino SA
Product ID: 0043
Product Name (reported):
Product Name (from DB): Uno R3 (CDC ACM)

Additional Info
USB Version: 1.10
Speed: 12
Protocol: 00
Maximum Power: 100mA
Serial Number: 7493730393635180E122"

The USB Host Controller app (https://play.google.com/store/apps/details?id=hu.sztupy.android.usbhostcontroller&hl=en) gives the following information:

"USB Host Mode API
supported?

usb host controller v 0.44
Usb Host Controller
Version number 0.44
S3C USB Host driver NOT found!

Root hub present, USB Host mode is active!"

i've no problems with a Tesco Hudl tablet (Jellybean 4.3.2, this is a UK low-mid end tablet) and a Samsung tablet (running KitKat 4.4.2). i'm able to send data from both of these tablets to the arduino as a serial device (57600 baud rate, 8, N, 1) and it does what i want . i only need to SEND it data, no need to read data from the arduino. the code used is essentially from android.serverbox.ch/?p=549. any pointers would be very, very, very helpful. thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions