[Q] OTG - webcam - removing device due to inotify event - Galaxy S II Q&A, Help & Troubleshooting

Hi,
I am hoping somebody will be able to help me with an issue I am having for the last couple of day or at least give me some new pointers where to start digging more.
I am trying to connect an USB Webcam (tried with several of them) using OTG to GT-i1000 (SG2) in order to achieve something similiar like this guy - unable to post a link but if you google for "Usage of USB webcam with customized Galaxy Nexus (android 4.0.3)" the first couple of links are pointing to it, but sadly with no luck. I have read
tons of material, blogs, etc, but nobody seem to have the same issue. The problem is that after a couple of seconds my device (webcam) gets disconnected "due to inotify event" - see the bellow logcat trace:
D/EventHub( 3704): No input device configuration file found for device 'Vimicro USB 2.0 PC Camera (Venu'.
I/EventHub( 3704): New device: id=13, fd=263, path='/dev/input/event9', name='Vimicro USB 2.0 PC Camera (Venu', classes=0x80000001, configuration='', keyLayout='/system/usr/keylayout/Generic.kl', keyC
haracterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false
I/InputReader( 3704): Device added: id=13, name='Vimicro USB 2.0 PC Camera (Venu', sources=0x00000101
I/EventHub( 3704): Removing device '/dev/input/event9' due to inotify event
I/EventHub( 3704): Removed device: path=/dev/input/event9 name=Vimicro USB 2.0 PC Camera (Venu id=13 fd=263 classes=0x80000001
I/InputReader( 3704): Device removed: id=13, name='Vimicro USB 2.0 PC Camera (Venu', sources=0x00000101
I have tried a couple of different roms, kernels, my own custom kernels (based on ICS, Gingerbread, Siyah), currently tested with the latest CM9 and Siyah kernel. Tried with different OTG cables (cheap, original Nokia, DIY cables), hubs, Y cabel (even one IY). They all seem to work with a mouse, keyboard, external hard drives, printer, etc but with none of the webcams. The power should not be an issue as the device gets enough external power and no messages in logcat or dmesg are relating to current / voltage issues.
I guess I am missing something as the guy did achieve it on Nexus.
I narrowed it down to uvcvideo, as if I build it as a module and don't load it, the cam is attached (visible through lsusb, USB Host controler), but as soon as I load it using insmod, the above message get displayed and the device is removed.
Any help is very appreciated.
Thanks, S !

Related

[Q] Looking for an easy to use USB serial communication library

I have an Ainol Novo 7 Paladin tablet running android ICS 4.0.3 (rooted) that I want to use in one of my projects. And I need it to communicate with an arduino - one with FTDI or prolific PL2303 serial interface. Now I know that the Paladin should work as an USB host but I need something more. I need an high level Java library that can use this serial interface. I've worked with rxtx on a desktop machine before and that is the most complicated that I would like to get. The main reason is that I simply don't have enough knowledge to write myself an serial driver. I just need a simple character based two way communication.
I've found this http://slickdevlabs.com/slick-usb-2-serial-library/ but I don't think that it will work for me - at least the test application doesn't since the Paladin has an Ingenic JZ4770 CPU that isn't ARM based. And the second problem - I don't like the price.
So I have made an USB OTG cable that is working - I can connect a mouse, keyboard, usb drive,... . Getting the serial interfaces working is another problem. When I plug the arduino with an PL-2303 controller to the tablet I get this (with dmesg):
Code:
USB AS HOST MODE
...
hub 1-0:1.0: unable to enumerate USB device on port 1
usb 1-1: new full speed USB device number 82 using musb-hdrc
usb 1-1: device v067b p2303 is not supported
we are entering usb_match_id!!!!!
Simillar with the arduino with FTDI controller.
As far as I know android should have the drivers for the PL-2303 and FTDI chips included. So any ideas?

[Q] OOTG adapter not working

I'm running Android 2.3.3, build Gingerstreak 2.4.4 -- Just purchased a Streak Mini 5 USB Host OTG Adapter Cable Connect Standard
USB Devices ( 140853176551 ). When I plug in a USB memory stick, the light on the memory stick blinks, but nothing happens on the
Streak screen, no USB Host mode.When I plug in a mouse,it appears to work but with erratic movements. Am I missing some software
or driver or do I have to change some setting or use a particular kernal? Any suggestions?
change to dsc rom... it should work correctly..
I followed the recommendation to update to DSC 2.2 but now I have NO OTG functionality at all. I want to be able to open a document from a USB memory stick. Can anyone provide further guidance?

Samsung galaxy S2 USB prob(not even mtp mode)

Hello,
As you can see in the title I have a problem with my samsung galaxy s2. Until 2 days ago, everything was working fine. My phone was connected to pc via USB cable. As I was working as it was poping up with the autoplay.
My brother did walk on the room and "took it in his legs"(if you know what i mean).
Problem:
Now the phone is only charging at PC via usb. I am not able to do it to connect via usb storage or any other way. I did buy an usb cable but in vain.
What i have tried:
-buy a new usb cable
-reinstall usb drivers from xda/samsung/google/kies/
-clean the usb
-clean the usb from phone
-#7248... method
-tryied to connect on virtual machine with windows 7(hoping for autoinstall autoplay)
-update windows media player
-debug onn, debugg off
I am using Win XP sp3. Also after unistall and reinstall the drivers i get the message with usb not reconized and windows asks me to search the drivers for Multimedia controller and multimedia video controller.
Note:
Multimedia controller and multimedia video controller are asked by Windows only after I connect phone to pc when reinstalling usb drivers.
Photo attached
http://www.imagebam.com/image/e1fde0279844545
Replace USB board/port (but you need to get the correct part - search for similar threads to get the info you need; this has been discussed here a lot this year).
What version of Android are you running?
If it's 4.22 or 4.3 then go to Settings/Storage. click 'menu' and change USB settings on the phone from MTP to USB/Camera/PTP
Then it should show up as an external usb device.
XP is bad at recognising MTP (media device) so just set it to register as a Camera or usb storage in settings.
I am not using android 4.22 or 4.3. I am using android 4.1.2 and i do not have that option.
Until i will get another comments i will order a new USB board.

Mediatek mt6753 OTG support

Hi all,
I try to get USB-OTG support for my mt6753 phone running. Lots of websites show that the device should offer OTG support and you find several phones with this chipset having this option. I have a DOOGEE T3 that should have that, too.
But nothing happens when connecting different USB storages to the phone. Neither the device internal LEDs flashes nor kmsg / dmesg shows something USB related (phone is rooted).
I already ran several USB OTG checkers from google app store that added android usb host permissions in /etc/permissions in several xml files.
I also added the usb.host setting in build.prop and disabled the charger only option.
I also added a seperate USB power supply for definitively providing enough power for the USB storage. When using this additional cable the USB storage blinks twice but nothing happens on the phone.
There are a lot of items in /sys on the phone (e.g. usb20_host) that should point me to the capabilities for OTG.
I don't see a real "hardware" usb host controller in lsusb (like an uchi or ehci controller I know from Intel based systems) - only the "Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub"
How to proceed? If you need more information to determine the next steps, just let me know.
Best regards,
RX1901
Changing the cmode property to 2 (host mode only) causes some kernel debugging lines that state at the end "switch_int_to_host is done" but the "is_host" stays 0.
Am I on the right track?
After further checkings, it looks as if the usb20_otg_if is not compiled into the kernel. How can I add this? As a quick test a .ko file would be sufficient.
RX1901 said:
After further checkings, it looks as if the usb20_otg_if is not compiled into the kernel. How can I add this? As a quick test a .ko file would be sufficient.
Click to expand...
Click to collapse
Find a kernel source for your chip. However, I'm concerned about your phone not powering up the guest device. I think it should do that regardless of the driver. Is your OTG cable good? Proper cable should have OTG pin pulled to the ground on the phone's side and floating on the device's side.

USB Host - BEISTA K107

Hello
I've got my hand on a BEISTA K107, a low end Android tab with Android 10.0 on it.
I'm trying to setup a photobooth but the tablet do not detect my DSLR when I plug it in USB. The tablet is supposed to be OTG compatible but It seems that it's not usb host compatible
Any idea how to correct that ?
I've try rooting it without success
@zeph
Support for USB host and/or USB accessory modes are ultimately dependant on the device's hardware, regardless of Android platform level.

Categories

Resources