[Q] OTG USB webcam? - Nexus 7 Q&A, Help & Troubleshooting

I don't have a Nexus 7 yet but I was wondering if it is possible to use a webcam over OTG?
I've seen threads for the Xoom and Nexus S about it requiring modules added to the kernal
Has anyone tried/gotten a camera to work with their N7 yet? (If so, how?)
(I'd just like to know if it's possible)

Thread resurrection 'cause I haven't found an answer to this question either.

ddlooping said:
Thread resurrection 'cause I haven't found an answer to this question either.
Click to expand...
Click to collapse
Found answer
watch?v=9-OUqr-w8YM
(new users cant post links, its youtube link)
I would be also interested in video recording...
It would make it perfect for have cheap stationary cameras and not have to have laptop to record them temporarily...

That's good news, lamui, thanks.
Here's the video you linked to...
And if the following is possible, recording video from an external webcam must surely be too...
---------- Post added at 12:19 PM ---------- Previous post was at 12:06 PM ----------
Ok, it is undoubtedly possible.
Source code available on the following page:
http://brain.cc.kogakuin.ac.jp/research/usb-e.html

great.... how its working for nexus 7 ?

agung_gitaris86 said:
great.... how its working for nexus 7 ?
Click to expand...
Click to collapse
You know as much as I do. :laugh:

Nice Thread! Stay Tuned! :victory:

agung_gitaris86 said:
great.... how its working for nexus 7 ?
Click to expand...
Click to collapse
The author of the Nexus 7 USB Webcam blog entry mentioned above has compiled his SimpleWebCam code and you can download the app from his blog.
If you want to try it out, you will need to use a Linux UVC compatible webcamera.
Here is a webpage with a list of them - http://www.ideasonboard.org/uvc/#devices
http://en.wikipedia.org/wiki/List_of_USB_video_class_devicesPlease post any comments on it here or at the author's BLOG.
We need to know the model of the camera you used, if it worked following the instructions at the blogsite.
Thanks

OTG USB Webcam
I have tested the simplewebcam apk on the following
rooted Nexus 7 running 4.2 = works
unrooted Nexus 7 running 4.2.1 = works
unrooted Galaxy SIII running 4.1 = works
All tests used the SSK Driver-Free 1.3 Mega Pixel USB Webcam with Microphone & Clip - Black + Orange and the Creative Webcam nx Pro Vista / 7 ( I think both are knock-offs, I can not find model numbers). The SSK stated it was UVC compliant and the Creative box says “NO CD Driver”
I am interested in being able to record from the webcam or send the feed to other apps. I do not have the expertise to work the code to make this happen.

droidoso said:
I have tested the simplewebcam apk on the following
rooted Nexus 7 running 4.2 = works
unrooted Nexus 7 running 4.2.1 = works
unrooted Galaxy SIII running 4.1 = works
All tests used the SSK Driver-Free 1.3 Mega Pixel USB Webcam with Microphone & Clip - Black + Orange and the Creative Webcam nx Pro Vista / 7 ( I think both are knock-offs, I can not find model numbers). The SSK stated it was UVC compliant and the Creative box says “NO CD Driver”
I am interested in being able to record from the webcam or send the feed to other apps. I do not have the expertise to work the code to make this happen.
Click to expand...
Click to collapse
It's easy to get the USB device info from the Windows Device Manager as follows:
- right click on "my computer" on the desktop
- select Device Manager
- Doubleclick Imaging Devices
- doubleclick on your camera device - it might just say "USB Video Device" or something like that
- select Details
- copy the VID and PID numbers: eg: USB\VID_1e4e&PID_0100$MI_\6&20BD946A&0&0000
- reference the VID and PID numbers on the http://www.ideasonboard.org/uvc/#devices website
NOTE - if it works but it's not on the list, it just might be newer than the info on the list - please submit it to the list's maintainer.
- DONE

I meant that I would like to be able to record a USB UVC webcam on my Android device. I can do it on windows and Linux and can even do it on my Nexus 7 running Ubuntu. It seems that with the simplewebcam app that it would be possible to send the video to other apps or include a recorder function with this app.

droidoso said:
I meant that I would like to be able to record a USB UVC webcam on my Android device. I can do it on windows and Linux and can even do it on my Nexus 7 running Ubuntu. It seems that with the simplewebcam app that it would be possible to send the video to other apps or include a recorder function with this app.
Click to expand...
Click to collapse
Please let the developer of the simplewebcam app know your thoughts on his blog site (link in a previous post)
He also has the source code available so that anyone can make their own enhancements.
There was also a dual camera app mentioned which would be great for a mobile DVR if it included a recorder function.
Again - please provide the author with some feedback.
Thanks
btw - I wrote the previous post as you had mentioned you couldn't find the model numbers of your cameras. If you get the VID & PID numbers, you can see what models they correspond to on the list I mentioned.
Cheers and have a great holiday!

Sorry I misread your pervious message. Here is the info I got on the cameras
SSK = Gsou USB2.0 Camera
0ac8:3420=Venus USB 2.0 Camera (Tevion MD 85872 and Minoru3D) BY Vimicro
CREATIVE = Vimicro USB Camera (Altair)
0ac8:3450=A4Tech PK-333E BY A4Tech
Logitech = Logitech Webcam C260
046D: 081A Not Listed (submitted to the list for addition)
All three work on my devices with simplewebcam.
I agree that the app would be really good is it included a recorder function.
Thanks for the help - Merry Christmas.

I just wished that my G.E. web cam worked with it but all I get is a black screen and totally stock NEXUS 7 B.T.W.16gb. Thanks and GOD BLESS YOU GUYS
Sent from my Nexus 7

I finally found a cheap usb camera that works with the simplecamera app.
It's marketed by Kross and has a upc of 6-973180-130628.
It says it's an 8MP camera but it is described as a 1.2mp to 8mp (with interpolation) camera.
So it's really a 1.2mp unit - don't care, it works.
Update: It appears the UPC number on the box might be fake as I can't find ANY references to the UPC anywhere on the web.
However, I did find the "Kross" webcam in a number of locations including Here & Here in Canada.
Here's a photo of the box:

I found this small webcam on Ebay - It could even be small enough to fit into the case ? Oh maybe integrated into a smartcase.
http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&item=120960427267
Anyone know this model and if it works.
Regards
Hagie

The issue with this webcam is that it does not mention that it needs no driver.
Its a good price so if you get one and it doesn't work, you don't lose much.
Now that the app has been modified so you no longer need to change permissions on the device in /dev, you can take your tablet to a computer store and try various cameras until you find one that works.
Sent from my Nexus 7 using xda app-developers app

This is great stuff. Going to buy a Nexus 7 soon and camera soon. Trying to make a backup cam for my Focus ST. Getting video to the tablet was the first problem. Now all I have to figure out is everything else, like making it automatically trigger in reverse for one. Most tasker related car searches use the usb charging to wake the tablet when the car comes on.

Fry's (an electronics reseller here in the US since I know XDA has members from all over the planet) is currently selling an HP HD 720p USB webcam for $5.99, I saw the ad listed yesterday (it's part of their normal weekly sale that starts on Friday morning):
http://www.frys.com/product/6831166
Don't have much info about the camera or the quality, or whether or not it would be functional with the Nexus 7 and OTG either but I'd sure love to know if anyone happens to have one of these. I may go out and get one before the sale ends this Thursday at the close of business, can't hurt to have a webcam around for other purposes I suppose. My current laptop supports one as an option but my particular configuration didn't have one from the factory (Dell Latitude E6400 that I got pretty cheap off craigslist last year).
If I do get one I'll make sure to report my findings here with respect to the Nexus 7.

Yes. Bringing this back to life.
C270. It's on the list of UVC compatible webcams. When I go to ls -l /dev/video0, I get an error. Apparently my supported webcam isn't supported?
Would a different ROM/Kernel help? I'm thinking stickmount might be interfering with this as well. I'm on PA with the stock kernel...

Related

[REQ/REL] USB camera driver

I found source code for USB camera driver from Microsoft (usbcam.dll) it is for Windows CE and it is compatible with Windows Mobile. It need to be compiled for IntelXscale and/or ARM (depending on device)... Maybe someone here can try. It support around 30 usb web camera models with USB 1 and 2. It include also filter:
; Register JPEG -> RGB filter
; This filter is intended for use with the usbcam.dll, which
; produces output in the JPEG/MJPEG formats
Click to expand...
Click to collapse
There are 4 files:
usbcam.dll (Driver)
jpeg2rgb.dll (Support file - Filter)
usbcam.reg
jpeg2rgb.reg
Developer of this code confirm that it can be compiled for WM 5/6
Microsoft has released a webcam driver (with source) that does support a Direct Show interface. It is written for CE 6, but could be recompiled for Win Mobile 5/6 since they support Direct Show capture drivers.
Click to expand...
Click to collapse
Please help, im sure that it will work, there is many devices with USB Host and web cameras are so cheap... That would be great if someone will help !
so this means that with a usb-host capable device,
it is possible to use an external camera?
xeirwn said:
so this means that with a usb-host capable device,
it is possible to use an external camera?
Click to expand...
Click to collapse
If someone will compile it... yes
Here is quote from description:
"The driver supports both USB 1.x and 2.0 (high-speed) cameras. The driver will
expose both uncompressed and MJPEG modes, if supported by the camera."
anyone ? This should be simple...
This would be very cool
to connect a webcam to the phone
(right, that's what it's for?)
NisseDILLIGAF said:
This would be very cool
to connect a webcam to the phone
(right, that's what it's for?)
Click to expand...
Click to collapse
Yes, but USB host is requried...
Ehh it look like I must compile it myself... So many programmers here but noone can do it...
my device Xda Flame has USB OTG version 1.2 compliant. (USB On-The-Go)
and can connect to HD, flash memory, keyboard, mouse etc.
I have posted on our forum http://xdaflameusers.com/viewtopic.php?id=1447
Still no reply..
Really hope someone makes use of this
If you check the developer's link, you can download webcam.dll file (from WebCam_100.zip )
also checked the discussions, a CamTest app is mentioned but where is it??
webcamWhitePaper.doc is also interesting..
EDIT: found the Camtest but no exe file! dl from http://devpi.free.fr/wince/camtest2_cpp.zip
sorry for double posting, but I think I found the answer from the developer himself
As for your initial question, I'm not sure this driver will do what you want. You to want to use the webcam with a Windows Mobile system. If however, you want to display the image through media player, this driver won't help. It doesn't support a proper Direct Show interface.
Microsoft has released a webcam driver (with source) that does support a Direct Show interface. It is written for CE 6, but could be recompiled for Win Mobile 5/6 since they support Direct Show capture drivers. The link for that driver is
http://www.microsoft.com/downloads/...c0-a4ae-42cc-abd0-c466787c11f2&DisplayLang=en
Click to expand...
Click to collapse
copied from here:
http://www.codeplex.com/cewebcam/Thread/View.aspx?ThreadId=17584
I was very close to run it... I used webcam.dll from codeplex (version for arm) but it was compiled for win ce... I used registry key whiich was included to regiister hardware type. Wheen I connected camera it as usualy ask for drivver... but surprise here - it doesn't do this again as usualy, instead of this it show "error installing driver". Camera test is not exe becouse it like driver need to be compiled for windows mobile like driver. I am 100% sure that if driver, filter and cam test app will be compiled for windows mobile it will work fine.... but we need someone who will do it....
Shame that noone here can help us... developers...
What Happend
Wutsup ppl it seems no one is interested anymore in this, if anybody got progress or someone got compiled wm6,wm5 drivers plz share with us
I think nobody's interested because all our HTC devices have cameras in them already (and most new ones have 2). Why plug in another camera?
I need the same thing...
Industrial application with a USB camera hanging off a windows mobile device. Has anybody compiled this driver into windows mobile?
Thanks,
Linda
The project sounds interesting, but I don't think the ExtUSB in HTC devices support host mode. Plus, having a camera dangling from the only data/ power port on the device sounds like a waste.
What would be more interesting is to find a way to connect a web cam to a bluetooth device. My phone has a back camera, but I'd still love to buy a bluetooth camera to attach to the phone.

Developping a bluetooth gateway on htc hd2 to interface blutooth keyboard BK600

Greetings,
sorry to post again, but it seems that i posted in a wrong place (htc hd2 forum), because this post adress a wm software development.
So, this is the problem : I'm stuck with my old BK600 (com one, but omiz and freedom kb rebranded)
There are new keyboard (expensive), news driver (not working), future drivers (never going to be released), so as i'm a software developper, i wasn't really glad to abandon and to buy another. The problem is that've never made a driver for windows mobile, and i'm not specialized on bluetooth, so be indulgent...
After searching internet and seeing some articles, i've been on broadcom site (they're doin' the bt stack, so it's normal to go on their site ... guess what ...
i've downloaded the bluetooth stack sdk)
As i develop under linux, but also under windows, i've a visual studio 2008 installed. I compiled the Spp (probably serial port) sample, and without any driver the keyboard paired, negociated a serial port and the monitor show byte received when typing on the keyboard.
So now, if someone know some place to find tutorials to write windows phone driver, i take.
I also would like to discuss about another approch.
What would you think to transcode the keyboard code received in a thread and to redirect them on standard input ? would it be possible ?
Anyway, my needs are very simple, just a bluetooth kb to type on it, no extra functions, ...
Regards, and thanks you for your answers and help.
CLS.
Hi, it seems that there already is such a software, see:
http://www.youtube.com/watch?v=dLRXSBcu6WI
It is stated that it also supports bluetooth keyboards and mouses.
HI radhoo,
they seems to have a problem to release the software (5-6 month they say they're going to), but nothing
on this page : http://www.teksoftco.com/index.php?section=blueinput&tab=download
you click on this link http://www.teksoftco.com/index.php?section=blueinputbroadcom
and you get on this broken page :
http://www.teksoftco.com/index.php?section=blueinputbroadcom
as you see on the xda-forums
http://forum.xda-developers.com/showthread.php?t=628538&page=2
we are a lot to wait for this software, but nothing.
that's why i'm trying to do a little piece of software (which i'll consolide after i think)
I'm taking the base of the broadcom/widcom stack, and my approach will be to transcode chars to stdin.
It seems that there is a C# wrapper, so it think that i'll recode in c#
anyway,
thanks for answering and long life to xda-dev (very useful)
Ludovic.
work status
- have found a c# wrapper of widcom dll (recompiled) : works bu ti'm rewritting some part of the wrapper as it seems to lacks some feature
- in parallel : working on c++ legacy broadcom sample (works perfectly now with my keyboard, bind with com port done, receiving "things"
now struggling with threads to pump messages and transcode.
If you have something that gets the basic keyboard working, I'd love to test it out.
if your driver is ready for testing, please send me a beta of it for testing on my htc hd2
thanks
I have a same problem .
CLS have u finish your program already? please
I would like to use BK600 on my htc hd mini too
hi, how far did you get?
still at it...?
lots of succes, vicenza

[Q] [NEW DEV] - Screen Extension

Dear wizards of the coding.
Everytime I see my new devices I must say every purchase action depends on how much is supported in XDA-DEVELOPERS, so keep doing it.
Not sure if this is the right category to post this but as an advance user (not developer) I was thinking that could be interesting to develop an application to extend your current screen with Galaxy tab screen.
As I'm not an expert, I'm not sure if current USB bandwith will support it, but I ask to the experts to check if they see will benefit the community.
Another topic I've experienced is about bluetooth. I use to use a bluetooth earphone Sony Ericsson MW600 with OLED display. There are some devices where I can see son title or call ID name from my mobile phone. That doesn't happen with my SGT.
Sorry for the extended email and look forward to seeing these developments or threads.
Regards to all!!!
rclua said:
Not sure if this is the right category to post this but as an advance user (not developer) I was thinking that could be interesting to develop an application to extend your current screen with Galaxy tab screen.
Click to expand...
Click to collapse
Not quite sure exactly what you mean, but if you mean using your Tab's screen as a second (or third) monitor for your desktop machine, you could do that right now on Macs - run ScreenRecycler on your desktop, a VNC client on your Tab and job done. The virtual second monitor of ScreenRecycler is shown in the VNC client on your tab.
I don't do Windows but a quick Google seems to suggest ZoneScreen does something similar.
The promlem with vnc is its slow. It moght be possible to do it over usb since it is way faster than bluetooth
Sent from my GT-P1000 using XDA App
Loccy said:
Not quite sure exactly what you mean, but if you mean using your Tab's screen as a second (or third) monitor for your desktop machine, you could do that right now on Macs - run ScreenRecycler on your desktop, a VNC client on your Tab and job done. The virtual second monitor of ScreenRecycler is shown in the VNC client on your tab.
I don't do Windows but a quick Google seems to suggest ZoneScreen does something similar.
Click to expand...
Click to collapse
Your solution is fine but I don't think VNC will be as fast. I was thinking on same way windows/mac/linux extend their screens using dedicated video ports/hardware but in that case using all potential USB bandwith for transferring such data.
It could have applications of monitor in the music industry (Imagin a DJ o composer controlling from SGT and playing other stuff on main screen), things like that.
Any hint on the second topic? (bluetooth realted to songs titles or call ID names being transferred from your SGT or Android Device?
Thanks!!
There is an application in the market called androidmonitor that allowsa phone to be used either as an extra monitor or as a keyboard input. It's $9.95 and the review so far are not good plus one notes that it does not work with the galaxy tab. With 15 minute return policy, reviews need to get better to try it.
randy

[Q] CCTV over TCP/UDP

hi all,
can some one please help to make app i can watch cctv over TCP/UCP port ?
i found some app they all does it over http and unable to access MY dvr !!
phone : htc desire 2.3 MIUI ROM
DVR : viewmax digital dvr
P.S. i have windows .exe and linux .tar packages
thanks
CURY
its not that simple contact the manufacturer of the dvr and ask them if they have an android app for it, however the dvr you have is one of the cheap generic chinese ones with a viewmax badge slapped on then you havnt got much hope, im an ex security engineer with 6 years under my belt, i only ever did cctv and in them years have fitted lots of different dvrs and none of the ones ive fitted have ever had android apps, a few have had apple apps and windows mobile apps but never android.......
each dvr uses its own type of encyption for the data transfer and protocol for the video so i think it would be not worth it for a developer unless you were willing to pay them to do it. it would be to much work for someone to do for free on here.
http://www.xenexsecurity.co.uk/product/id/672691
is this the type of item you have?
thanks a lot danny to look in to it and reply back in here.
its pc based dvr
http://www.xenexsecurity.co.uk/Products/cat/DVR+System+-+PC+Based,
and you are right about some of them have iPhone and windows based app.
even in my dvr its have iPhone support settings but i dint manage get it work on iPhone too
so you know some one can help me make app , i m happy to pay, how much does it cost ?
thank you very much for help
Have you tested with this app?
Try contacting developer.
http://market.android.com/details?id=com.rcreations.ipcamviewer
Sent from my HTC Desire using XDA App
cury4love said:
thanks a lot danny to look in to it and reply back in here.
its pc based dvr
http://www.xenexsecurity.co.uk/Products/cat/DVR+System+-+PC+Based,
and you are right about some of them have iPhone and windows based app.
even in my dvr its have iPhone support settings but i dint manage get it work on iPhone too
so you know some one can help me make app , i m happy to pay, how much does it cost ?
thank you very much for help
Click to expand...
Click to collapse
yeah these dvrs unfortunately are of such low quality half the time the mobile apps dont work, erm im not sure who could make one for you or even how much it would cost for there time, also you need to be aware that if you are attempting to stream video over 3g, its gonna be very difficult as a lot of carriers block most ports that these dvrs use and also itll eat you data VERY quickly, CCTV is very bandwidth intense and some mobile networks cannot provide enough hence why the apps never work or connect. your best contacting the manufacturer of the dvr to see if there is any android app or if they are in the process of making one. I wouldnt get your hopes up though sorry.

[DEV][AADK] Google's Arduino based "ADK" Working on Nexus One

I managed to snag an Android Accessory Development Kit from Google IO.
After wrangling all the necessary code bits together I got the demo code running on the Arduino board and my Nexus One.
The first picture you can see the phone reading the sensors of the demo shield, button states, the temperature, a light sensor and the joystick position.
In the second picture the phone is controlling the led colors and has one relay turned on.
In the last picture you can see that the phone detects the board being plugged in, Android knows there is no app installed for the board and it cannot be found in market.
The Nexus One is running a rooted 2.3.4 ROM from this thread
P.S. Mod's can we get a forum section for Android Accessory Development?
Now for Pics.
Now that is bad a**!!! I was waiting for something like this!!
Hey, I've been attempting to hack in the support into CM7 (nightly, 2.3.4) on my EVO without much success. I've rebuilt the kernel with the necessary flag enabled and ripped the JAR/XML files from the Nexus S update.
I've monitored logcat and seen that it does find the framework JAR (the application wouldn't install otherwise since it's a needed feature) and a dmesg scan shows that the kernel driver is being initialized.
What's happening now is I plug in the ADK and the output from the Arduino board spams that it couldn't get a protocol version from the phone. The phone slows down to a crawl as its probably being spammed with requests from the ADK for a protocol version and doesn't know what to do.
I'm at a loss here as to what I could possibly be missing. If you have any insight through your own endeavors it would be much appreciated.
Great stuff! I was also at Google I/O and picked up an ADK. Can you post the apk file of your app? I'd love to try it out.
And if you're feeling generous...the code?
badass. good ****
Well done mate...
Have tried it out with arduino UNO?...
uh uh, why i wasn't at the Google I/O
Google is doing really good s**t nowadays. I suppose that Arduino will guest in my house in some time as I am fascinated
I am Actually using the ADK with my Nexus One on an Arduino UNO and an USB-Host Shield from Sparkfun, it works equal but only take a fraction to buy it
My first project is an interface for my Audi, at the moment i only use it to start the Motor, but in future i want to try to build a CAN-BUS interface...
Sure here is the compiled ADK.
-Nik
bharathp666 said:
Well done mate...
Have tried it out with arduino UNO?...
Click to expand...
Click to collapse
The Arduino UNO doesn't have native USB Host support onboard like the megas.
You will need a USB Host shield and will have to modify the Arduino code.
SoyoBro said:
Great stuff! I was also at Google I/O and picked up an ADK. Can you post the apk file of your app? I'd love to try it out.
And if you're feeling generous...the code?
Click to expand...
Click to collapse
You can find all the ADK instructions and code here.
Note: When you select your build target you must choose
Target Name - Vendor - Platform - API Level
"Google APIs" - "Google Inc." - "2.3.3" - "10"
Otherwise you will get errors trying to build on the new libs. The instructions on the ADK page wern't very clear about this. Took me awhile to figure that one out.
You will need to update your Android SDK if you don't see those options.
-Nik
As for the point of using an arduino uno, Oleg is providing an newer version of his USB lib, it now works with his shield and the ADK.
My car is almost starting with the ADK, i am only missing a few relays and stuff to get it completed but i posted a proof of concept on youtube. Text an explanation is all german, sorry for that
http://www.youtube.com/watch?v=FlvpMwSxgMg
if there are any questions Ill be here for you
Great stuff. I am really looking forward to this.
But what I don't get is which hard- and software is required:
- is 2.3.4 sufficient?
Answer: YES
- do other devices (running 2.3.4) than the Nexus 1/S work?
Answer: Pending
- will an Arduino Duemilanove board work?
Answer: NO
Thanks for your help, guys
Besides those questions I have one more:
- assuming I have a board that is connected to a power supply. will i be able to charge an Android device when connecting the board to the handset via USB?
Answer: depends on the boards and its power consumption/outlet. Basically, it should
Nikropht said:
P.S. Mod's can we get a forum section for Android Accessory Development?
Click to expand...
Click to collapse
+1 for a dedicated section.
I reckon it's gonna take off as soon as more USB host boards become available
My Arduino Duemilanove works perfectly

Categories

Resources