[Q] USB Inspection Camera using OTG - Android Q&A, Help & Troubleshooting

I have a Galaxy S2 (ATT) and I want to use a USB Inspection Camera with it. The inspection camera is basically a USB webcam at the end of a long USB cable. It has LED lights and is usually waterproofed.
So my plan is to use the Android phone with the USB Inspection camera with OTG. Can this be done?
I've tried to search OTG and webcam, but I just get "using your android phone as a webcam". But I want to use a USB webcam with my android phone.

After some searching, I found that if the snake cam (inspection cam) is a UVC-compliant webcam then it should be detectable by android. Waiting on an answer from the seller.

USB Inspection Camera using OTG
Hi,
Did you get any success on it , even i am also looking for such kind of camera.

Not yet, everyone I ask that sells these inspection camera's (mostly chinese companies on ebay) haven't answered me whether the camera's are uvc-compliant. So I haven't taken the plunge on buying one.

Android + USB on the go & UVC compliant camera...
Hey!
More then interested in this too...
Got an external drive working with Samsung GSII, but would surely be great if it is possible to connect a 'bullet-type' camera to it & use it for filming outdoor activities, saving it to the SGSII & upload them to Youtube afterwards...
[Offcourse buying a complete GoPro of Drift camera & putting the SDcard afterwards in the SGS would work too...]

I think those types of cameras have built in memory. So when you connect it to your computer it reads it as a camera/mass storage device. I don't think you'll have a problem.
I am looking for something different. I want a webcam (on a long usb cable) to display an image on my phone in real time.

This small, easy-to-use USB digital microscope/magnifier and camera/video camera has a host of uses besides inspecting or photographing ICs or sections of circuit boards. It offers magnification from 5X to 200X at distances up to 300mm from the subject. Functions include snapshots, video recording, time-lapse video recording, measurement and calibration. The unit comes with application software, a user manual, stand, two transparent covers and a calibration ruler. A display size of at least 17 inches is recommended for use with this device.
usb inspection camera
car inspection camera

Thanks for the spam.

Seems like someone has managed to create an app for this..but seems like we need to configure the kernel for the app to work..
http://forum.xda-developers.com/showpost.php?p=22884164

I got an inspection camera last week and I got to work on a rooted nexus 7, no custom ROM, kernal etc. but no video record yet only images. USB OTG and an app called SnapExWebCam. I know its an old thread, but I found it when I was first looking on how to do this so I didnt have to have my laptop under the car checking a starter/flywheel issue.
hashish16: should work for that too, but it all depends on device etc. just know how it worked for me. More info on the play store page for that app too.
http://www.skylercovington.com/anrdoidusbexternalwebcam.html

eBandit078 said:
I got an inspection camera last week and I got to work on a rooted nexus 7, no custom ROM, kernal etc. but no video record yet only images. USB OTG and an app called SnapExWebCam. I know its an old thread, but I found it when I was first looking on how to do this so I didnt have to have my laptop under the car checking a starter/flywheel issue.
hashish16: should work for that too, but it all depends on device etc. just know how it worked for me. More info on the play store page for that app too.
http://www.skylercovington.com/anrdoidusbexternalwebcam.html
Click to expand...
Click to collapse
Hey thanks for the reply, I'm glad you found a solution. I needed it for work on my car and some HVAC work too. I got rid of that car, so I didn't need the inspection cam. But it is great to know for future reference. I actually now have the 2013 Nexus 7 so hopefully it'll work.
BTW, which inspection cam did you buy?

hashish16 said:
Hey thanks for the reply, I'm glad you found a solution. I needed it for work on my car and some HVAC work too. I got rid of that car, so I didn't need the inspection cam. But it is great to know for future reference. I actually now have the 2013 Nexus 7 so hopefully it'll work.
BTW, which inspection cam did you buy?
Click to expand...
Click to collapse
http://www.amazon.com/gp/product/B008X13JI8/ref=oh_details_o01_s00_i00?ie=UTF8&psc=1
Ill post pictures of it working later. I emailed the dev of the app asking if any updates coming. Maybe increase screen size cause it doesnt use my entire 7" screen for video and doesn't record video yet.

eBandit078 said:
http://www.amazon.com/gp/product/B008X13JI8/ref=oh_details_o01_s00_i00?ie=UTF8&psc=1
Ill post pictures of it working later. I emailed the dev of the app asking if any updates coming. Maybe increase screen size cause it doesnt use my entire 7" screen for video and doesn't record video yet.
Click to expand...
Click to collapse
How did you get it to work? I'm using same inspection cam and same app on a rooted Galaxy s4 and I get "no camera".

wreckwriter said:
How did you get it to work? I'm using same inspection cam and same app on a rooted Galaxy s4 and I get "no camera".
Click to expand...
Click to collapse
Yeah its been working. Dev not updated yet for video etc. but I can take snapshots and see live video. I forgot Ill put some pics up later today. Only thing I can think are your camera your using or you don't have V4L (Video for Linux, I think it means) enabled in your ROM/Kernel. Are you using stock or a custom ROM and or kernel? I want to flash a custom ROM or Kernel so I can overclock a little bit but have been unable to confirm if any of them have or don't have V4L enabled. Stock and just rooted mine works now.

eBandit078 said:
Yeah its been working. Dev not updated yet for video etc. but I can take snapshots and see live video. I forgot Ill put some pics up later today. Only thing I can think are your camera your using or you don't have V4L (Video for Linux, I think it means) enabled in your ROM/Kernel. Are you using stock or a custom ROM and or kernel? I want to flash a custom ROM or Kernel so I can overclock a little bit but have been unable to confirm if any of them have or don't have V4L enabled. Stock and just rooted mine works now.
Click to expand...
Click to collapse
Custom ROM, BoneStock. Don't know about V4L, will try to find out. Thanks!

eBandit078 said:
Yeah its been working. Dev not updated yet for video etc. but I can take snapshots and see live video. I forgot Ill put some pics up later today. Only thing I can think are your camera your using or you don't have V4L (Video for Linux, I think it means) enabled in your ROM/Kernel. Are you using stock or a custom ROM and or kernel? I want to flash a custom ROM or Kernel so I can overclock a little bit but have been unable to confirm if any of them have or don't have V4L enabled. Stock and just rooted mine works now.
Click to expand...
Click to collapse
Unable to verify V4L support. Any way to check?

wreckwriter said:
Unable to verify V4L support. Any way to check?
Click to expand...
Click to collapse
Are you using a USB OTG cable in between device and camera?

eBandit078 said:
Are you using a USB OTG cable in between device and camera?
Click to expand...
Click to collapse
Yes.

looking for inspection cam - found this thread
eBandit078 said:
Yeah its been working. Dev not updated yet for video etc. but I can take snapshots and see live video. I forgot Ill put some pics up later today. Only thing I can think are your camera your using or you don't have V4L (Video for Linux, I think it means) enabled in your ROM/Kernel. Are you using stock or a custom ROM and or kernel? I want to flash a custom ROM or Kernel so I can overclock a little bit but have been unable to confirm if any of them have or don't have V4L enabled. Stock and just rooted mine works now.
Click to expand...
Click to collapse
Thanks for pursuing this & posting your results. I just started playing with OTG cable & was looking for ability to connect a small inspection camera . . . found your thread . . . excellent & thanks !!
Mark J Culross
KD5RXT

I ended up with a camera that is not UVC-compliant. Is it possible to install device drivers in Android?

Related

LED hardware mod

Has anybody explored a possibility of installing an LED flash, similar way as it is done with front facing camera. I guess if Vibrant hardware is compatible with Fascinate, then it should be possible...
Btw, shame on T-Mobile and Samsung for not letting us have it all in one package. I hope they are aware of all this tinkering, and hopefully they do a better job with their next joint release...
-CJ
Sent from my HTC HD2 using XDA App
This will not work the same way as the ffc. It also seems like the only way we will get flash is through the usb or 3.5mm
itsjusttim said:
This will not work the same way as the ffc. It also seems like the only way we will get flash is through the usb or 3.5mm
Click to expand...
Click to collapse
Hmmmm I would buy a small USB flash if there was one to be bought. Is there one already out?
No but until we get peripheral support working something connected through the 3.5 would probably be more viable.
Somehow create an application which creates/sends sounds through 3.5 and somehow converts it to power 2leds.
One possible problem I can think of would be to allow the sound to play while the camera is in use. For some reason the vibrant won't allow use of music player at same time as camera. Might be something in which can be easily fixed though, idk.
A mod/attachment like this though can be very good investment as it would work on any phone with a 3.5mm.
Sent from my SGH-T959 using XDA App
itsjusttim said:
No but until we get peripheral support working something connected through the 3.5 would probably be more viable.
Somehow create an application which creates/sends sounds through 3.5 and somehow converts it to power 2leds.
One possible problem I can think of would be to allow the sound to play while the camera is in use. For some reason the vibrant won't allow use of music player at same time as camera. Might be something in which can be easily fixed though, idk.
A mod/attachment like this though can be very good investment as it would work on any phone with a 3.5mm.
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Could somebody please explain the technical reasons why a led flash couldn't be attached to the camera? Isn't there any other option? My personal case was that I wanted this phone with Flash, but I'm in Spain where GSM networks are the law. None of the GSM Galaxy S's had LED flash
What options do we have?
Screw a LED flash or the FFC. I need something more functional like a LED indicator. I would think that the slot for the FFC could double as some type of piggyback or at the least just a spot for a LED indicator to be put there.

Video out.

Is it at all possible to get the Eris to send video out through the USB/charger port?
-Al
albion01 said:
Is it at all possible to get the Eris to send video out through the USB/charger port?
-Al
Click to expand...
Click to collapse
No, it's not possible. If you have a dvd player or something that can accept a usb mass storage device, then you could play videos from your eris that way. However, our phone does not have the capability of doing video out.
If you have DLNA equipment in your home theater (or you have a home network that your laptop is connected to) you can use Twonky Server on your Eris & it'll show up as a media share in your network.
Twonky is in the market. I've used it for months & it's great.
You could plug the Eris in to charge it while it's feeding the video, too.
We are all looking into this I think, and The real awnser is YES!. If you buy a micro usb to video cable they sell them for the Samsun here:
http://forum.xda-developers.com/showthread.php?t=454333
Now we just need a few good devs to look into making the tvout.apk and tvout.odex from the incredible to work for th Eris.
It should work if you get everything set up correctly, maybe using KAOSLEGENDARY rom. After it is set up and using the cable wih the correct apk's I think this is totaly possible
mjgdroid said:
We are all looking into this I think, and The real awnser is YES!. If you buy a micro usb to video cable they sell them for the Samsun here:
http://www.amazon.co.uk/Samsung-Micro-USB-Out-Cable/dp/B001L2U5G0
Now we just need a few good devs to look into making the tvout.apk and tvout.odex from the incredible to work for th Eris.
It should work if you get everything set up correctly, maybe using KAOSLEGENDARY rom. After it is set up and using the cable wih the correct apk's I think this is totaly possible
Click to expand...
Click to collapse
That's micro USB, our phone uses mini USB. Micro is too small - won't fit the Eris.
ericFuels999 said:
That's micro USB, our phone uses mini USB. Micro is too small - won't fit the Eris.
Click to expand...
Click to collapse
OK sorry I thought I had the right one here is the link I also uploaded it on the last post, http://forum.xda-developers.com/showthread.php?t=454333
htc touch must have android 2.2 or some video out put, because the youtube video shows the video out apk.

DSLR Controller now available in Market (very cool)

While a thread on this topic does exist in the xda General section, I thought it would be nice to get a GTab-specific discussion on this particular new app. For all the photographers out there (well in this case, those who use Canon DSLR's), an absolutely incredible new app has gone to beta, called DSLR Controller. I won't bother repeating whats in the other thread, so you can see for yourself here
I have already purchased and installed it on my GTab, which is by the way running the Bonsai TW rom, and for the most part it works, with the exception of a few little bugs. Specifically, the touch-screen-to-focus only works the first time you try to do so after opening the program; after that it doesn't work and you need to use the manual toggles for focusing. I have yet to try it out on the stock 3.1 to see if perhaps the TW thing is the issue, though I anticipate doing some wipes and rom flashes in the coming days once an update.zip is available for the stock US version of the TW rom.
Anyways just hoping that other 10.1 owners who are interested in this incredible app might be able to chime in with their experiences. Overall this app has HUGE potential for us photographers
thanks for this, I am planning on getting a 7D soon so hopefully this works out
I own a 7D, 60D and a 5D MKII. This works on all of them.
I wanted to buy this but I am not sure
Correct USB host / OTG / On-The-Go cable for your device, if your device does not have a "full size" USB connector on it
Click to expand...
Click to collapse
Which cable do I need for my 7D?
EDIT:
I guess I need that one right?
http://www.samsung.com/us/mobile/galaxy-tab-accessories/EPL-1PL0BEGSTA?
Now if it were available in Austria I'd be happy :-/
ShannonAUT said:
I wanted to buy this but I am not sure
Which cable do I need for my 7D?
EDIT:
I guess I need that one right?
http://www.samsung.com/us/mobile/galaxy-tab-accessories/EPL-1PL0BEGSTA?
Now if it were available in Austria I'd be happy :-/
Click to expand...
Click to collapse
Yup, thats what you need. I have one for my TAB. Camera connects fine however I'm unable to install the DSLR Controller app. I had to get a refund. No idea why it wouldnt install, other apps are installing fine. I'm running the latest TW rom on my I/O tab. I'll try again down the road.
This app looks absolutely amazing! I've seen various apps that connect to the computer program to control the camera. I dreamed off an app that would not require the computer. I never though it was possible, but I guess it is.
So all we need is the samsung usb adapter and our camera's usb camera?
Can't wait to use this with my 7D!

Allshare Cast dongle DOA? *working one recieved*

So i finally recieved a allshare cast dongle. However no matter what i do it displays nothing on my tv (or a monitor i tried it with). I'm guessing its DOA, but i just wanted to hear if anyone have any tricks before i send it back...
*Update* Got a replacement. Works great, much better than the HTC media link HD. Fairly smooth without being perfect. Seems the picture is compressed quite a bit though. Running JB leak btw.
Allshare cast dongle don't work with custom roms I hope that, they fix it as soon as posible.
darkkain said:
Allshare cast dongle don't work with custom roms I hope that, they fix it as soon as posible.
Click to expand...
Click to collapse
I know, which is why i went back to stock... But thats not the issue. I can connect and all, but nothing gets displayed... Not even the "welcome" screen seen in video previews...
Updated OP
Hmm... At home it works like crap... I suspect due to 2.4ghz congestion... However it should run on 5ghz, but there seems to be nowhere to check that :
Also the audio plays through the phone speaker... (Might be a JB problem though)
im getting the wireless allshare cast dongle here shortly....and i just wanted to know. will it work with all android phones? My note, Skyrocket, S3....and future use with my Note 2 ?
i dont think i will buy one if i can not use it down the line or with my other phones.

[DEV] MHL

Hello Everyone! This is a movement/project to get MHL going on CM10 ROMs. I have started tearing into it as some of you may have seen on some other threads, but I am just a noob
I would love some help on this. I am not good with programming or working with source so i have posted my changes on pastebin. Reason for that is so that you guys (and gals) can help out! If you know what you're doing and can build with some changes you make yourself, please go ahead and do so, but keep me informed. If you are not as savvy with this stuff like me, you can still help by searching through the code and trying to see what is missing or out of place! Thank you to all that help out. Post any news or questions here!
Pastebin ==> http://pastebin.com/u/slingerdroid
Attached log files from attempting MHL use on AOSP and actually doing it on Sense 3.6.
Big Thank you to SirGatez
cslingerland said:
Hello Everyone! This is a movement/project to get MHL going on CM10 ROMs. I have started tearing into it as some of you may have seen on some other threads, but I am just a noob
I would love some help on this. I am not good with programming or working with source so i have posted my changes on pastebin. Reason for that is so that you guys (and gals) can help out! If you know what you're doing and can build with some changes you make yourself, please go ahead and do so, but keep me informed. If you are not as savvy with this stuff like me, you can still help by searching through the code and trying to see what is missing or out of place! Thank you to all that help out. Post any news or questions here!
Pastebin ==> http://pastebin.com/u/slingerdroid
Click to expand...
Click to collapse
Hawtness. Will def jump in wherever I can.
What is MHL.
Sent from my ADR6425LVW using xda app-developers app
merlin66676 said:
What is MHL.
Sent from my ADR6425LVW using xda app-developers app
Click to expand...
Click to collapse
Mobile High-Definition Link. Basically, the HDMI over USB protocol that the Rezound supports in Sense but not AOSP.
place holder. so tapa can have this in my recent. going to work on this more tonight. thank you op
shrike1978 said:
Mobile High-Definition Link. Basically, the HDMI over USB protocol that the Rezound supports in Sense but not AOSP.
Click to expand...
Click to collapse
Sense 3.6 only. The Sense 4.x builds do not support MHL.
To the OP, thank you guys so much for attempting to make this work. You guys keep breathing life into this device. Your work is VERY appreciated!
Sent from my ADR6425LVW using xda premium
synisterwolf said:
place holder. so tapa can have this in my recent. going to work on this more tonight. thank you op
Click to expand...
Click to collapse
let me know what you find or if i can help
Question. I don't have CM10 installed right now but you guys have tried adding "ro.hdmi.enable=true" to the build.prop? Worth a try.
Flyhalf205 said:
Question. I don't have CM10 installed right now but you guys have tried adding "ro.hdmi.enable=true" to the build.prop? Worth a try.
Click to expand...
Click to collapse
yeah its already there
Flyhalf205 said:
Question. I don't have CM10 installed right now but you guys have tried adding "ro.hdmi.enable=true" to the build.prop? Worth a try.
Click to expand...
Click to collapse
I thought thus was used for HDMI only and not the mhl connector.
Cm10 trys to output video to USB when connected to the mhl device. It just doesn't know how. Someone posted a logcat and it shows its passing the information to com.android.athome.mediaroute.provider
But errors right there. Unless I'm looking at the wrong error. But I need to look at it some more. Couldn't do much at work today. :/
Sent from my iPhone...
synisterwolf said:
I thought thus was used for HDMI only and not the mhl connector.
Cm10 trys to output video to USB when connected to the mhl device. It just doesn't know how. Someone posted a logcat and it shows its passing the information to com.android.athome.mediaroute.provider
But errors right there. Unless I'm looking at the wrong error. But I need to look at it some more. Couldn't do much at work today. :/
Sent from my iPhone...
Click to expand...
Click to collapse
I've been reading a lot and CM10 seems like it has problems with MHL anyways. You say it tries to push it through USB but just doesn't know how to. That would be kernel issue would it not?
I will be able to start testing when I get my MHL adapter back tomorrow. I got a lot of free time to test since I'm done updating recoveries for now
EDIT: I reading more and saw where one guy somehow changed his refresh rate to [email protected] inside of the kernel. So is it somewhere in there most likely???
im also good to test. might be sending the phone in though so sooner rather than later would be good. It seems that everything starts with the ActivityManager file... i could be wrong though.
Flyhalf205 said:
I've been reading a lot and CM10 seems like it has problems with MHL anyways. You say it tries to push it through USB but just doesn't know how to. That would be kernel issue would it not?
I will be able to start testing when I get my MHL adapter back tomorrow. I got a lot of free time to test since I'm done updating recoveries for now
EDIT: I reading more and saw where one guy somehow changed his refresh rate to [email protected] inside of the kernel. So is it somewhere in there most likely???
Click to expand...
Click to collapse
Kernel is built with HTC source. I would think it would carry over but I'm no way a kernel dev. The jar file posted in the other thread might be needed but I haven't had time to look at it yet. As it sits now the phone doesn't know how to pass the information from the screen to the USB mhl to the TV. I think the reason why screen says source and just black is because its getting some sort of output.
Sent from my iPhone...
synisterwolf said:
Kernel is built with HTC source. I would think it would carry over but I'm no way a kernel dev. The jar file posted in the other thread might be needed but I haven't had time to look at it yet. As it sits now the phone doesn't know how to pass the information from the screen to the USB mhl to the TV. I think the reason why screen says source and just back is because its getting some sort of output.
Sent from my iPhone...
Click to expand...
Click to collapse
I think the real issue is as I discussed else where (where I posted the logs in CounterShrike) and the issue is that the kernel has everything it needs to utilize MHL hardware and the HDMI out driver is functioning (but separate from the actual media pipeline. The pipeline portion that MHL require to function (the middleman that takes the graphics, sound and sends them to MHL hardware) does not seem to be in our sources (not the kernel, but the libraries) because it is proprietary. I am going to experiment with trying to hack the display middleman into AOSP and see if it works, with any luck it will be drop in and won't require anything HTC specific.
In Stock once the MHL cable is connected an HDMI broadcast is sent and picked up by the DisplayListener which responds by handshaking and configuring the MHL/HDMI output of the device before handing off to the AudioListener which does the same. AOSP is not performing any of this short of identifying the MHL cable is connected and rotating the home screen for display (it also appears any portrait app besides the home screen stays in portrait mode regardless of MHL cable connected)
This is an issue affecting many MHL capable devices, NOT just the Rezound. I have read MHL does work on some AOSP devices but I have not been able to locate any source to specific roms capable of it (which could help us). I think our best bet is a hack until we can get/find proper source.
Once we can get the DisplayListener and AudioListener to handshake with MHL/HDMI hardware like Stock we can identify what else we may need to fix if we are still without picture and or audio.
synisterwolf said:
Kernel is built with HTC source. I would think it would carry over but I'm no way a kernel dev. The jar file posted in the other thread might be needed but I haven't had time to look at it yet. As it sits now the phone doesn't know how to pass the information from the screen to the USB mhl to the TV. I think the reason why screen says source and just black is because its getting some sort of output.
Sent from my iPhone...
Click to expand...
Click to collapse
Hmm..That is true. Should be taken from original source unless Chad has modified a file which I doubt that is the case.
EDIT: Or what he said above This guy has his MHL fix in his kernel at https://github.com/ZenArcade/Infusion-GB-Z/commit/e70be75f5e709ef17df9dd2705bee1b810e0a2b6
waiting for a reply back from meetmhl on exactly what files are used in the api. Hopefully it's something as simple as missing a lib.
SirGatez said:
I think the real issue is as I discussed else where (where I posted the logs in CounterShrike) and the issue is that the kernel has everything it needs to utilize MHL hardware and the HDMI out driver is functioning (but separate from the actual media pipeline. The pipeline portion that MHL require to function (the middleman that takes the graphics, sound and sends them to MHL hardware) does not seem to be in our sources (not the kernel, but the libraries) because it is proprietary. I am going to experiment with trying to hack the display middleman into AOSP and see if it works, with any luck it will be drop in and won't require anything HTC specific.
In Stock once the MHL cable is connected an HDMI broadcast is sent and picked up by the DisplayListener which responds by handshaking and configuring the MHL/HDMI output of the device before handing off to the AudioListener which does the same. AOSP is not performing any of this short of identifying the MHL cable is connected and rotating the home screen for display (it also appears any portrait app besides the home screen stays in portrait mode regardless of MHL cable connected)
This is an issue affecting many MHL capable devices, NOT just the Rezound. I have read MHL does work on some AOSP devices but I have not been able to locate any source to specific roms capable of it (which could help us). I think our best bet is a hack until we can get/find proper source.
Once we can get the DisplayListener and AudioListener to handshake with MHL/HDMI hardware like Stock we can identify what else we may need to fix if we are still without picture and or audio.
Click to expand...
Click to collapse
I believe this rom has working MHL. https://github.com/rascarlo/platfor...jb-ras-mr1/core/java/android/hardware/display
Very good work cslingerland and Flyhalf205. Could one of our AOSP devs check this code out and see if compiling it into the ROM resolves our MHL problems? I do not currently have a development environment setup Someone would likely beat me to having a compiled library ready. I would have to D/L some source first as I haven't done any kernel dev work since Gingerbread. Thanks!
FYI, HDMI/MHL has nothing to do with USB, they just share a connector (it can do USB or MHL, not both).
SirGatez said:
Very good work cslingerland and Flyhalf205. Could one of our AOSP devs check this code out and see if compiling it into the ROM resolves our MHL problems? I do not currently have a development environment setup Someone would likely beat me to having a compiled library ready. I would have to D/L some source first as I haven't done any kernel dev work since Gingerbread. Thanks!
Click to expand...
Click to collapse
i would, but that is the very reason i started this thread. i dont know exactly what files we need and what ones need to be modified.
i was hoping some dev would have more knowledge to be able to look at it and know

Categories

Resources