[TT] Peripherals possible? - Vibrant Android Development

While looking around my phone I came up with a couple of thoughts. First would it be possible to make devices that plugged into the miniusb port on the top of the phone and could it be plug and play? Heck maybe even make the driver if necessary built into flash memory on the new device. It seems like it just takes an kernel update to make something like this possible if it's not already.
The second thing I thought of is if the above isn't possible, why not create an attachable mirror that sits at the right angle to take advantage of the rear camera for video chat. You could project your image onto the mirror and the camera could catch that. The top idea is alot better, the bottom requires alot less knowledge. Either would get us video chat.

Interesting, i like the first idea.

I like the first idea, though for video chat I would rather someone figured out where to pick up the actual modual that goes inside the phone (there's a thread about how they left the mounting brakets in place for the front cam.)
However for other things, like maybe a gamepad+extended battery combo, or an IR blaster to operate my TV

q426669 said:
I like the first idea, though for video chat I would rather someone figured out where to pick up the actual modual that goes inside the phone (there's a thread about how they left the mounting brakets in place for the front cam.)
However for other things, like maybe a gamepad+extended battery combo, or an IR blaster to operate my TV
Click to expand...
Click to collapse
This is the thread you were talking about.

From what I understand about micro usb is that there are five wires/confections. The outside connections are ground and power. The two next to the ground are for data (one + and one -) and the last one next to power is a identification connection. If the wireis connected/has power then its a source device (i.e. computer). If its not, then its a peripheral (portable hard drive, out in our case, our phone). Its been a bit since I read up on that, so it might be vice versa.
Last time I tore the phone apart, I didn't look, but it may be a setting that is hard-wired (literally), or its a switch controlled by software. If it's the latter, then its possible, if its hard wired, then its not.
Adding things to the kernel or loading drivers isn't cut and paste. It takes available source code, which isn't always available, for both the phone and the device you want to use (that works with android), as well as understanding of how to make it work.
That last part I am not well versed on. But we have a couple devs trying to get the vibrant opened up. They are few, and the request list keeps getting larger.
Sent from my SGH-T959 using XDA App

I was just thinking today that it would be great to have a micro-usb device that could house a camera for video chat... I like your mirror idea...I'm prius owner and that's how the dashboard works. The usb is right there...really I think someone should incorporate a device in a mod of the back cover...i don't know anything about code but I could make the case.
Sent from my SGH-T959 using XDA App

Devices require a driver of some kind so the controller knows how to talk to device. For example, if I wanted to hook up my DSLR and control it, I would need a driver ported over and then the SDK for the camera would have to be ported over. An OS like Windows 7 has literally thousands of drivers built in and many other devices require you to install a driver. The only time "plug and play" actually works is either with the OS has the driver already installed or if the device is designed around a generic driver.

Incredible idea! I'm going to make the second idea. I have my own twist on the concept but it shouldn't be to difficult.
Sent from my SGH-T959 using XDA App

I like the first idea but I also had a similar idea and I'd like to see the attached camera come with led's and somehow acct as a flash for both cameras. It could be tiny, if the camera app could be figured out to trigger the flash on all galaxy s models, well at least the vibrant and captivate this could sell.
If a third party app was developed it could be added to any android phone in theory. If that third party app was as good as the galaxy s stock camera app then you'd really be in business.
If I was talking to my brother I'd have tried to convince him to help me develope something. Well I hope one of you talented devs has success with this idea. I'd also like to see success with the guy adding the extra camera internally, I'd be interested in performing the mod if the software end is figured out.
Sent from my SAMSUNG-SGH-I897 using XDA App

I can take or leave peripheral support, but I'm DYING for USB host mode!

cashless said:
I can take or leave peripheral support, but I'm DYING for USB host mode!
Click to expand...
Click to collapse
That's the thing, devices that support USB host generally don't use a mini/micro B port. They have specific ports for that. Of course, the USB controller in there may well be able to be a USB host, but we don't know how to enable that from what I have seen. IF the controller can be put into host mode, loads of options like this become possible. It would require kernel mods, but that's not a huge deal. However, as long as we are in USB client mode, the only things we can connect to the port are chargers and computers, as that's all the phone knows how to deal with.

ttabbal said:
That's the thing, devices that support USB host generally don't use a mini/micro B port. They have specific ports for that. Of course, the USB controller in there may well be able to be a USB host, but we don't know how to enable that from what I have seen. IF the controller can be put into host mode, loads of options like this become possible. It would require kernel mods, but that's not a huge deal. However, as long as we are in USB client mode, the only things we can connect to the port are chargers and computers, as that's all the phone knows how to deal with.
Click to expand...
Click to collapse
That is exactly what I was trying to say earlier. You put it in better words. Thanks
Sent from my SGH-T959 using XDA App

almyz125 said:
This is the thread you were talking about.
Click to expand...
Click to collapse
Ahhah, I couldn't find it to save my life last night lol! Thanks ^_^

Makes me wonder if you can still take power off of the port and communicate to the device via blue tooth. But I don't think it would come to that.
Sent from my SAMSUNG-SGH-I897 using XDA App

Dani897 said:
Makes me wonder if you can still take power off of the port and communicate to the device via blue tooth. But I don't think it would come to that.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
??

ttabbal said:
That's the thing, devices that support USB host generally don't use a mini/micro B port. They have specific ports for that. Of course, the USB controller in there may well be able to be a USB host, but we don't know how to enable that from what I have seen. IF the controller can be put into host mode, loads of options like this become possible. It would require kernel mods, but that's not a huge deal. However, as long as we are in USB client mode, the only things we can connect to the port are chargers and computers, as that's all the phone knows how to deal with.
Click to expand...
Click to collapse
Oh, it's host mode built in already. One of the major pluses that I weighed in on when buying the phone.
"Both the S5PC110 (smartphone chipset) and S5PV210 (its netbook alternative) are optimized to ensure long battery life for mobile devices, using a 45-nanometer (nm) Low Power fabrication process and low power architectures. With the 1GHz clock speed and 512KB L2 cache, these processors should also manage to provide performance unknown to the ARM world so far.
The two processors have built-in 3D graphics engine and support 1080p full HD video playback and recording at 30 fps. The final nice features of the new chipset include a wide variety of interfaces and peripherals, including HDMI 1.3and USB 2.0 host interface."

Hate to kinda go off topic with the USB Host mode stuff again, but it seems like since the interface is built into the chip, host mode should be enabled in the kernel.
Yes? No?
Has anyone tried to get an OTG cable in there to see what happens?
Just saying.

I've been curious about this since I saw it done (rather impressively) by sonic7406 (YouTube) on the Nexus One. Since then, I hear it's also been hacked on the Droid. From my research, I'm pretty confident this should be possible with the right drivers installed on the Galaxy S series. I've gathered together an (supposedly) OTG "compatible" cable (the Nokia CA-101 for Nokia 6600 Slide/N900/etc), an extra-beefy powered hub, and female-to-female USB-A adapter. I have yet to dive into the kernel to load any special drivers, try mounting drives, etc. I'm still unsure of the "OTG" cable and may still need to manually ground that fifth pin to kick it off. Though, as far as the cable is concerned, that is the only thing that makes it OTG on one end.
Host Mode Background Info: OTG Wiki
Here's a modoco thread that includes most of the relevant links I've seen.
Ideally, I'd like to find a microUSB to USB-B OTG cable that connects directly from my phone to the powered hub, but I couldn't find any. Let me know if anyone knows where we could find these.

It seems like we could create an entire new category of toys to attach to our devices if the micro USB port could be figured out. To me that's ultra exciting!
Let's go a few steps further, Being able to physically attach a printer or hdmi (Yes, I know about AllShare) to the tv could require a simple adapter that plugs into the micro USB port on the handset. We could also have a nice flash that has brackets that mount to the handset for support to get better pics in low lighting (instead of just saying "oh, I've got night mode", bugger that).
The capability to do this has to be written at the kernel level and then we need hardware manufactures willing to make the products. Therein lies the problem, how do we get that to work?

My neighbor is an electronics engineer and I'm a machinist, my friend is a tool and die maker.
My neighbor has an idea to make a device for surface mount soldering using an inert liquid with a boiling point equal to the soldering temp. This would be a cheap alternative to infrared soldering.
Other than that I might be able to come up with a housing.
I wouldn't want to commit myself untill the software works and we've tested the soldering machine.
Sent from my SAMSUNG-SGH-I897 using XDA App

Related

controlling HDMI

As stated in the (www .blogtalkradio .com/motodev) Q&A session yesterday with Motorola about the Droid X, in answer to the question asked at the 29:00 mark,
"The only time that we are enabling the HDMI driver on the device is when you are in the gallery mode. [...] The HDMI driver is not active any time outside the gallery," where the "gallery mode" is their included photo/video viewer.
I'm wondering how true that is...
(www .pcmag .com/article2/0,2817,2365630,00.asp ) PCMag's review stated that the youtube player and blockbuster player were not able to use the hdmi out at all.
As seen in (forum.xda-developers.com/showthread.php?t=703111 ) this thread the evo 4g, which also has hdmi out, is capable of allowing any app that uses VideoView to utilize that output, but that's supported by the phone maker.
Will that usability be true on the droid x?
Could we figure out a way to bypass any limitations Motorola includes, and maybe even send (an upscaled version of) the main screen through the hdmi (not just video but anything we could put on the phone's screen)?
I was just at a motorola event and we were able to run nfl mobile through the hdmi.
Yes the tv was in an ice sculpture and yes it was connected to a droid x via the hdmi cable
Sent from my ADR6300 using XDA App
That's great news, thanks for letting us know!
The more apps with handshakes to the hdmi-out we have, the better for us to get it working completely openly
The whole media-center-and-phone-in-my-pocket is just a great idea imho...
With the hdmi out we could:
put any videos and pictures from any source up on your home tv
connect it to the projector at work and give presentations
go with a few bluetooth controllers to your friend's house and play multiplayer (even online) games on their tv with minimal cords to deal with
maybe even video-chat would be possible if you set up the phone with the camera facing out in front of the tv
... ok, that last one sounds like a pretty lame way to get video-chat, but it would save on having to have a computer/monitor/webcam when you wanted to
Of course this is all far into the future stages of development on the phone, but I'd rather create buzz and excitement to build up a developer and user base
Talked to a moto rep, said it might have been a beta device as licensing is what will prevent this thing from being turned on when it hits consumers hands. At least we know it can be done.
Sent from my DROIDX using XDA App
no fun, i'm not much of a C programmer, but if it's just enabling or disabling the driver, I guess it comes down to the security on the phone. If you go into root, I suppose we should be able to start the driver. The only thing I fear is if the driver is signed and only a signed application can access it, then I think we might be SOL
I'm not particularly worried... if we get access to enough apps that use the hdmi driver, we should be able to document enough of the method.
I believe while the hardware can reject unsigned versions of the OS (roms), most apps are self-signed (see developer. android. com/guide/publishing/app-signing.html) so that shouldn't be a problem. We just have to figure out which hoops to jump through (following the programs that use hdmi) to get it to work. They'd have to leave the hoops pretty wide open or else risk the need of updating the thing every time a new app is released that needs to get through.
This is a mixed bag here. The reason why Motorola limited the hdmi driver is likely so they didn't have to put a fps cap on the droid x like htc put on the evo.
This is pure speculation here but I would imagine the way that the evo devs are going to "truly" overcome the fps cap is to mimic the droid x behavior of toggling on and off the hdmi drivers so that the evo can access up to 60 fps.
You guys are on the other end of the boat where by default your fps won't be artificially capped, but you likely won't have full access to the hdmi drivers at first.
I think the sweet spot for both phones is finding a happy medium where we can toggle the hdmi drivers at will.
Any news on this? I would really like to get rockplayer and youtube working through hdmi. In fact, I would like to get the entire OS through HDMI and possibly a bluetooth keyboard and mouse working so I can use it as a little media center pc.
2 way control
I would lime to see this pushed to.the level of controlling the phone through an hdmi touchscreen.
I thought we would be able to see pandora and other apps through the hdmi...This sucks the way it is...also does anyone think the sound is terrible through the hdmi?
There is no point int he HDMi at all if you can only use it for your pictures and your videos from the phone's camera.
They need to make it show what you see on the phone, but on the screen
I remember there was a windows mobiel program that popped up a small window on your desktop that let you see your phone's screen and interact with it on your monitor when connected through usb
anything like this for android?
sp1kez said:
There is no point int he HDMi at all if you can only use it for your pictures and your videos from the phone's camera.
They need to make it show what you see on the phone, but on the screen
I remember there was a windows mobiel program that popped up a small window on your desktop that let you see your phone's screen and interact with it on your monitor when connected through usb
anything like this for android?
Click to expand...
Click to collapse
NO, the hdmi dock is a half ass design. For the $, it should do everything. MOTO/VZ dropped the ball on this. Hopefully they will open this up with a sw update.
Update: "Real HDMI" in the market
http://forum.xda-developers.com/showthread.php?t=769990&highlight=control+hdmi
Hi,
I'm pretty new to Android development. So my understanding after reading a couple threads here is that HDMI access on the stock Droid X is limited to the gallery only, is that right? And the point of the "Real HDMI" app is that it will automatically redirect all output to the phone's display through HDMI, right? So no API exists which gives programmatic control over the HDMI port? That's a shame if so.
Do any of the Android devices allow easier HDMI port control or do we need these kinds of work arounds for all of them?
Thank you very much for any information anyone can provide.
Sorry to be a pest, but can anybody answer my questions? Should I consider posting somehwere else?
Thanks again.
commie64 said:
Sorry to be a pest, but can anybody answer my questions? Should I consider posting somehwere else?
Thanks again.
Click to expand...
Click to collapse
Maybe try posting in the Real HDMI thread over at DroidXForums.com because username GMAN (who made real hdmi) has a thread there. I'm sure his knowledge of the subject is pretty extensive.

Do you think will GTab have USB host?

You may not know how useful USB host is. You can use USB stick (up to 32GB), USB keyboard, USB mouse.
If it had USB host, I'd buy it for sure (wifi only).
Sadly NO...
On German Amazon its possible to pre order the device and the datasheed isnt saying something about USB Host
http://ecx.images-amazon.com/images/I/B1gfmv71YkS.pdf
http://www.amazon.de/gp/product/B0041RSF6Y/
This one was my favorite (because of the Phone capability) until you asked this very good question
Maybe they got it rooted in future and then its possible? (depends also on hardware...)
Greetz Tokl
I'd guess that its not going to ever have the capability without hacking. I don't think any device has that at the moment.
I guess what gets hacked depends on what the hackers think is worth doing, and I can see that USB host would be an especailly awesome thing for the Tab so hopefully it will get some interest.
If its a game breaker, you may well be disappoited for a long while tho. This kind of hacking doesn't happen over night.
LostAlone said:
I'd guess that its not going to ever have the capability without hacking. I don't think any device has that at the moment.
If its a game breaker, you may well be disappoited for a long while tho. This kind of hacking doesn't happen over night.
Click to expand...
Click to collapse
This is SO true. I remember people trying for years to hack USB host mode in to Nokia's Linux Tablets: the N770 and such. I wonder: Did they ever manage to do it?
LostAlone said:
I'd guess that its not going to ever have the capability without hacking. I don't think any device has that at the moment.
...
Click to expand...
Click to collapse
Please someone correct me if I'm wrong (as I don't have the device in question) but doesn't the Nokia N8/E7 support just that? I seem to remember a video demonstration of the N8 supporting an USB memory stick.
Also, the Tab will have a dock that has a keyboard, so it's not totally impossible for it to have USB host capabilities.
AnttiV said:
Please someone correct me if I'm wrong (as I don't have the device in question) but doesn't the Nokia N8/E7 support just that? I seem to remember a video demonstration of the N8 supporting an USB memory stick.
Also, the Tab will have a dock that has a keyboard, so it's not totally impossible for it to have USB host capabilities.
Click to expand...
Click to collapse
I don't know about the N8, sadly I just don't have much interest in that part of the mobile space. However, some googling seems to indicate that it is possible (news articles say so) but I don't know if its naitive or needs hacking.
As for the keyboard and stuff, thats a good point. I can't see them using a non-usb standard for that, so it must just be the proprietary connector that makes the difference. In that case, all we should need is a Tab-USB connector, and a few drivers. That would really give the tab some muscle.
In general can mobile devices support the USB min-harddrives ? The ones that power from the port ? If thats possible then the tab will kick serious ass. 250 gigs in your pocket for cheaper than a microSD card.
I'm not really a fan of Nokia's products either, although they USED to make great products they haven't done so in awhile. And I *hate* Symbian. Anyways, at least the N8 DOES have some USB Host capabilities:
"Among the Nokia N8's neater tricks is its support for USB On-The-Go, which basically lets you connect USB peripherals (flash drives, for example) to the phone and have it act as a host..."
http://www.engadget.com/2010/05/30/nokia-n8s-usb-on-the-go-support-demoed-lesser-phones-turned-in/
That was almost perfectly offtopic, sorry for that ^_^
Oh, or not, perhaps! Look what I JUST found:
"USB Standard port adapter
With this kit your Galaxy Tab becomes a standard USB port. With this USB port you can synchronize your digital camera or other devices."
http://www.oled-display.net/more-sa...s-bluetooth-pen-standard-usb-adapter-and-more
Well if they are going to officially make an adapter then maybe we are going to get USB Host... I can't see how you could transfer things off a digicam without the Tab hosting it as a drive.
Well... This looks pretty awesome then.
But they *CAN* cripple the functionality to just mass-storage devices or perhaps just cameras, like Apple did with their USB Camera connection kit, or whatever it was called.
Let's just hope that Samsung doesn't go that route.
Hopefully samsung aren't that stupid Although in theory we should be able to hack it back open anyway, and its a good start at least.
Sorry to resurrect this old thread, but I'm also wondering about usb host (or at least OTG) on the Tab (as I'm considering buying on to port Meego to).
Could someone who has the keyboard doc post the dmesg output once it's been plugged in please?
From some dmesg output I saw elsewhere (but not with the keyboard dock), it appears that the USB chipset is an OTG version, and seeing it act in host mode with the keyboard doc plugged in would be a nice confirmation.
I Would be interested to see the anser for this one.
Yes it is launched (mainly for photographers) i have seen it's price, very cool cheap at £10000 plus something!
Sent from my GT-P1000 using XDA App
It's not the Fools Day yet, so keep your jokes at bay.
OK, I just ordered a keyboard dock and I'll have a look. I'll post a dmesg output and open it to see if the PCB is marked in any way.
According to the pinout (http://forum.xda-developers.com/showthread.php?p=9925838) there seems to be no other way for data to flow apart from USB.
So one of the following must (should) be true:
1. Samsung is reusing the pins for a proprietary protocol -probably reconfiguring the device by pulling up or down other pins.
2. The device is capable of host/OTG mode but it is probably unpowered and it probably needs a pin pull-up/pull-down to enable.
3. The keyboard is using unidentified pins, and the USB pins are used simply for the PC connection and power.
Does anyone know if the keyboard acts as a proper dock? i.e. when you connect it to the pc does it work at the same time as (say) KIES or drive mount?
Just a quick update, the keyboard was just shipped, and I should have it by Tuesday.
Sent from my HTC Vision using Tapatalk
Hi,
Just wondering whether you got any further with this?
Sent from my GT-P1000 using XDA Premium App
There was a problem with my order (the company didn't have any in stock) and the keyboard hasn't arrived yet. Still waiting!
I'll post the moment it arrives.
EDIT: Normally I would name and shame the company, but they are sending me a couple of freebies for their mistake so I'm happy
USB host
This is a good concept. I have an Archos 70 and a Galaxy tab. Archos has a micro usb port with which I connected my USB host adapter and the key board and mouse works . Flash drive and router dongle says more power required. So I am looking for a powered USB connector for this.
Unfortunately, Galaxy tab has different cable and I dont know if I can find a host cable for this. Any suggestion?
Worth a shot?
After reading this thread:
http://forum.xda-developers.com/showthread.php?p=9925838
I checked the G-Tab pinout :
http://en.wikipedia.org/wiki/PDMI
and tried to ground pin 13 to put the tab in host mode last night... needless to say since I'm typing this on my computer... epic fail. However, I'm curious if anyone else has had any success with this.
I'm not too much of a fan of buying something to destroy... but if I have to disassemble a dock to get the pinout for monitor mode... suck!
Anyone have any advice as to what I jacked up here?

[Q] USB Host on P9xx

Hi all, I did a search under this forum and do not actually found any info.
Actually, many older Android phone/device do come with USB Host (OTG) function, hardware or software, with hacks or officials,
Mod/Hacks:
MOTO droid, N1, ZTE Blade, etc
Officials support:
Samsung GS2, MOTO Xoom, MOTO Atrix4G, EEETransformer, Many CN crappy Android Tablet.
I tried using a OTG Cable with a USB thumbdrive on LGP9xx but no luck, browsing thru the system I found that there are USBDisk DIRs on / or /mnt/USBDisk, there are no define on vold.fstab at all on LG, not like the MOTO Xoom..
dev_mount usbdisk /mnt/usbdisk auto /devices/platform/tegra-ehci
So my wild guess is it was not turned on kernel level?
As far as I can tell, there is USBHost OTG support on Tegra2, seen post related to that on that, I understand that hardware might not be wired (that's what we gonna check), anyone any info/hints/directions/ideas about this on the LGP9xx?
It would just be great if we can use OTG on LG99x...
thanks.
utp said:
Hi all, I did a search under this forum and do not actually found any info.
Actually, many older Android phone/device do come with USB Host (OTG) function, hardware or software, with hacks or officials,
Mod/Hacks:
MOTO droid, N1, ZTE Blade, etc
Officials support:
Samsung GS2, MOTO Xoom, MOTO Atrix4G, EEETransformer, Many CN crappy Android Tablet.
I tried using a OTG Cable with a USB thumbdrive on LGP9xx but no luck, browsing thru the system I found that there are USBDisk DIRs on / or /mnt/USBDisk, there are no define on vold.fstab at all on LG, not like the MOTO Xoom..
dev_mount usbdisk /mnt/usbdisk auto /devices/platform/tegra-ehci
So my wild guess is it was not turned on kernel level?
As far as I can tell, there is USBHost OTG support on Tegra2, seen post related to that on that, I understand that hardware might not be wired (that's what we gonna check), anyone any info/hints/directions/ideas about this on the LGP9xx?
It would just be great if we can use OTG on LG99x...
thanks.
Click to expand...
Click to collapse
It needs to be turned on via menuconfig. I could do a quick compile later, if you want. The downside is, that a enabled USBHost disables the slave mode. So no mass storage (Or you implement something like holding back while booting up etc to enable usb host)
Benee said:
It needs to be turned on via menuconfig. I could do a quick compile later, if you want. The downside is, that a enabled USBHost disables the slave mode. So no mass storage (Or you implement something like holding back while booting up etc to enable usb host)
Click to expand...
Click to collapse
Wow, that's a quick and straight to the point reply!!!!!
I think I can live without a slave mode, most of my files are copied to the phone by samba, dropbox or ftp....
just wonder what trick did SGS2 or others uses, I know many of the devices which support OTG has 2 diff USB port, 1 for host and 1 for slave, but I "think" got that working too in 1 port, wonder is it the same as our case here that needs special reboot or so? (SGS2 is not available here yet...so I have never tried it instead of watching in on the youtube VID online...)
Anyway, THANKS! waiting for your releases. thumbs up to all DEVs!!!!!!!!
utp said:
Wow, that's a quick and straight to the point reply!!!!!
I think I can live without a slave mode, most of my files are copied to the phone by samba, dropbox or ftp....
just wonder what trick did SGS2 or others uses, I know many of the devices which support OTG has 2 diff USB port, 1 for host and 1 for slave, but I "think" got that working too in 1 port, wonder is it the same as our case here that needs special reboot or so? (SGS2 is not available here yet...so I have never tried it instead of watching in on the youtube VID online...)
Anyway, THANKS! waiting for your releases. thumbs up to all DEVs!!!!!!!!
Click to expand...
Click to collapse
Don't know. One part maybe only with other hardware drivers. The reboot solution would be best for us (but needs some work). So the easy enable via menuconfig would be enough. Anyway I started to working on this, but I don't know if my otg cable isn't working (slave function was disabled but host didn't worked). So I wanted to test it anyway. What do you need? only mass storage?
The compile could take a while (working on fixing cust toolchain build)
I am aiming on USB thumb drive, keyboard and mouse..thx..
Honeycomb 3.1 has USB Host support.
Hopefully someone can pull it out and use it somehow.
Since there's no source it might not be easy.
Or you can just wait for Ice cream Sandwich(Q4 2011), i'm guessing there will be Host support.
Any news on development?
i think the usb port of phone has no more power to use the flashdrive.
So is this a dead project? Or is there any hope left?
Not being picky or challenging to admin, I originally post this thread under development, which is should be more related since I am not asking generally how to "use" USB Host but related to kernel/drivers development....
I think this thread in general would not actually get much development attention at all...
Anyway, nope, no news, I understand hacks/dev is not a piece of cake, thanks for everyone who is working on the topic here!!!!!!!
and since CM distro do not support USB host at all, then I would suggest there may not be enough attention or momentum at all on this...
dusitmon123 said:
i think the usb port of phone has no more power to use the flashdrive.
Click to expand...
Click to collapse
I may not agree, I did use a O2Graphite with a USB host cable with a USB jostick, and keyboard+mouse on many CN made crappy Tablets, they just works...
Many USB devices do not drain that much power, especially some Flashdrives...
Hello
So is this thread as good as dead, or is anyone trying to develop this?
as far as seen on the thread, it seems dead.....
hello
the usb memory stick must be formatted in fat32 to work.
Which specfic cable works with it?
flavianoxxl said:
the usb memory stick must be formatted in fat32 to work.
Click to expand...
Click to collapse
Sent from my LG-P990 using Tapatalk
Nothing works with it, no-one has produced a kernel with OTG support for the P990.
No idea what that post is about.

Nexus 7 Car Install

I've decided to put together a Nexus 7 car install after pricing up an OEM retrofit for my E90 & quickly getting north of £1200 with no guarantees that everything would work as I wanted.
I've used Android devices to provide navigation & audio since getting a HTC Desire many years ago, but I've been caught out a couple of times recently using navigation on long journeys with my HTC One-X completely flattening its battery despite being on charge the whole time!! The last time left me navigation-less in a strange city, in rush hour traffic, with no way to contact anyone.
I've been reading around Nexus 7 car installs today & everything that I would like to do seems to have been done before, but I'd like some ideas for the best way to pull it all togther.
The main use for the Nexus will be to provide navigation & audio. I gather that Timur's kernel - USB ROM contains features which are suited to using the Nexus in a car install - are there any other ROMs I should have a look at?
I would like the install to look as professional as possible but be removable & reversible, so I'm thinking of a mounting it in a SHG-NX2000, & I would prefer to use a single USB connection to the Nexus rather than a USB & 3.5mm so from my googling today I gather I can achieve this with an OTG USB cable & a USB DAC.
I've not used an OTG cable before, but the ones I've seen on ebay seem only to be a couple of inches long - can anyone provide a link to longer one or can I just use an extension cable & stick the OTG cable near the hub? The idea I've got in mind is to run the host OTG cable from the Nexus into a powered USB hub located in the glove box or behind the dash. I would supply the power to the hub from a DC-DC convertor to make sure everything gets the power it needs. Are hubs usually wired to supply power to the host device as well as the connected devices? Are OTG cables available which allow the power to be supplied to the host? If so, I could use one of the ports on the powered hub to supply power to the Nexus via the OTG cable.
I don't have a spare line level input to my stock BMW headunit, but I do have an aux in on a 3.5mm socket which I don't mind re-routing & hard wiring to the output of the DAC - can someone link to a USB DAC best suited to this task?
I would also like to install a reversing camera. There are cameras available which either replace a license plate light, or mount around the license plate - I would prefer to use one of these over a webcam. I had an idea of using an Easycap to connect the license plate cam to the USB hub - has anyone done this? The license plate cams pick up their power from the reversing lights - is there a way of using the fact of the camera powering up to switch the Nexus to auto display the feed from camera when the car is put in to reverse? Taking this idea a step further, has anyone configured a system where if the car is then subsequently taken out of reverse gear the Nexus switches to a forward facing camera either for a fixed amount of time or until reverse gear is re-selected to give you alternating rear/forward views when parking up?
Shopping list so far:
Nexus 7 (1st gen) £119
SHG-NZ2000 £22.39
DC-DC convertor £5.50
10-port powered hub £6.19
Micro USB OTG Host £1.99
E90 License plate light CCD camera £17.00
Easycap £3.37
USB DAC £11.49
Total so far ~£185
Anything I've missed? Better components? Cheaper prices?
Any help or ideas greatly appreciated
I would think the only way for a rear cam to work is to modify it and your tablet ...no usb input... You could try to use the housing of a rear cam and put a web cam it and seal it up good then use that .... That way you'll get a wide veiwing angle ....
Sent from my HTC One S using XDA Premium 4 mobile app
I'm not sure I understand what you mean by 'no usb input'? I'm talking about connecting the CCD camera via the Easycap to the USB hub which is connected to the Nexus. It is because I don't think I'll be able to reseal the housing well enough that I don't want to use a webcam, plus the CCD cameras are powered when reverse is selected which I'm hoping should make driving an event easier.
xdafoundingmember said:
I would think the only way for a rear cam to work is to modify it and your tablet ...no usb input... You could try to use the housing of a rear cam and put a web cam it and seal it up good then use that .... That way you'll get a wide veiwing angle ....
Sent from my HTC One S using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Found this on a BMW forum:
Finally sewed up my Nexus 7 install!
It's very similar to what I had in mind. I've ordered the bits so I'll update this thread as & when progress is made.
Reversing camera hooked up to Nexus 7 via UVC Video Grabber
Nexus 7 Backup Camera - UVC Video grabber
Where do you buy that ?
Sent from my HTC One S using XDA Premium 4 mobile app
i was thinking of use official dock mound to the dash to make it look professional and removable(dock + magnets).
not sure if the usb on the back of the dock supports otg or not, cos i wanna connect up reverse camera and dac aswell
I considered doing something similar, but when I looked into it, it would seem that the official dock only charges and passes audio
eason86 said:
i was thinking of use official dock mound to the dash to make it look professional and removable(dock + magnets).
not sure if the usb on the back of the dock supports otg or not, cos i wanna connect up reverse camera and dac aswell
Click to expand...
Click to collapse
Any joy?
dreamonn said:
I'm not sure I understand what you mean by 'no usb input'? I'm talking about connecting the CCD camera via the Easycap to the USB hub which is connected to the Nexus. It is because I don't think I'll be able to reseal the housing well enough that I don't want to use a webcam, plus the CCD cameras are powered when reverse is selected which I'm hoping should make driving an event easier.
Click to expand...
Click to collapse
Hi there,
I was just wondering if you had any success with the camera? I've got a Nexus 7 install and want to wire in my existing Rca cam. I'm sorting out the reverse signal with a joycon exr steering wheel control but I want to know if the easycap thing you linked to earlier worked as a capture device on Android or whether I'd have to go for the UVC grabber in the other link which definitely works but is much more expensive!
Thanks!
Any update on these types of cameras?
I want to do the same thing, except the camera is in the front (not the back).
Any success with the EasyCap? It seems they have bad reviews on amazon, but maybe they work great for how we want to use it.
Also, have you tried using a 4 channel EasyCap? That way we could hook multiple cameras.
nexus 7 install
In the process of doing the same to mine.
2013 Nexus 7 rooted with automateit and tasker .
So far I've managed to get it to launch apps when power is supplied and shutdown when power is disconnected. But does anyone know of a way to get it to power on when power is supplied? I've tried reboot when power is supplied, but that only works if the tablet is already on.
[email protected] said:
In the process of doing the same to mine.
2013 Nexus 7 rooted with automateit and tasker .
So far I've managed to get it to launch apps when power is supplied and shutdown when power is disconnected. But does anyone know of a way to get it to power on when power is supplied? I've tried reboot when power is supplied, but that only works if the tablet is already on.
Click to expand...
Click to collapse
You have to edit the bootloader i did it to mine. just change a line wh ich will tell it to boot any time the power is on....
Here you go found it..
http://forum.xda-developers.com/showthread.php?t=1833120

Video out?

I've tried a USB-C hub with HDMI as well as a screen with a USB-C connector, which both work on my laptop. I don't expect anything to work, but did anyone try the USB-HDMI converters that were reported to work on F1 a while ago?
Having a low-latency video output would be a dream come true.
It dont work, i saw a video review before buying the poco X3 .... only lg, samsung, huawei flagships do that...
Sadly I wanted to mirror Snes and PSone emulators to TV with a USB-C/HDMI output dongle and play with my Dualshock 4.. but not with poco X3
Was wondering if the DisplayLink adapters work: https://forum.xda-developers.com/showpost.php?p=80746715&postcount=53 - as I know the other cables don't.
The standard is called MHL, and I don't think poco x3 supports it :/
NHL =no
USB c audio adapter /dac =no
YES, video out is possible on the POCOPHONE X3 NFC! )
Since it's my first post, I was prevented from posting outside links. Whenever there was a link, you will now read 'google it'
You read it right, fellers. :angel:
DisplayLink is the name of the magic. Let's break it down:
1. Acquire any of the many DisplayLink enabled dongles or desktop versions. Products at the link:
google it
2. Acquire a USB-A to USB-C OTG adapter like this one:
google it
3. Download and install (no-root required!) the android app "DisplayLink Presenter" in your Poco X3 from:
google it
4. If you've already installed the app and already got your dongle
- plug the adapter's USB-A female end to the dongle's USB_A male.
-plug the cable from your HDMI monitor/TV to the dongle.
-plug the adapter's USB-C end to your X3.
5. Give it a coupla seconds ... Magic! There pops up the same image on both your phone and your TV/monitor! It's a window from the DisplayLink Presenter app. Plug and play, no need to open the app. Close it out, turn your phone sideways and enjoy the picture. Hook up a BT keyboard/mouse and you're good to go.
6. YouTube, Netflix, Vimeo all run with no problem. Games work, apps work, PowerPoint presentations work. Word works. Browsing works.
7. Desktop mode doesn't work. Charging simultaneously doesn't work (with this set up, but there is workaround...). Audio embedded in PP presentation may glitch at times.
That's it, me frends. Enjoy your POCOPHONE X3 NFC mirrored image, with no lag, in the full glory of a large monitor/TV, to the delight of your eyes!
P.S.: And for those interested in going wireless, check this one out:
google Hyper Mirror
Peace.
Just an explanation for you, I've done a truck load of research? on this, while I was deciding what phone to buy.
USB Type C have different types just as USBs do. So USBs went from 1 to 3; USB Type C have both 2 and 3, then thunderbolt, etc.
Essentially, what Xiaomi have done, is use the USB2 internals within the newer Type C connectors. So we get OTG but no video out.
This also means we don't have any more than 480Mbps data transfer speed.
USB3 is 5GB/s, USB3.1 is 10GB/s.
They are actually call them USB2 Type C/USB3 Type C. I honestly don't think a lot of places selling adapters, cables, etc. actually understand what they are selling as they label them all as Type C.
The solution to this, as above, is Displaylink, or equivalent, which I believe are still all Displaylink underneath.
Soooo what you end up with is a nightmare, a lot of people might think it's not worth the headache and carting around everything, especially if you are prone to losing things.
The simplest way to put it is that you need a USB2 Type C OTG cable, which connects from Poco X3 to an adapter (Displaylink/Wavelink/etc.), and a HDMI cable, which connects from the adapter to monitor.
There are other options, depending on how much you want to spend.
The only thing I haven't been able to figure out 100% is whether or not the adaptors can take the lowly USB2 480mbps speed and convert it into 4k. My brain says no way, but due to not finding any people that have used the more expensive adapters, I don't have an actual answer.
If any of this is wrong, let me know, it's only what I've been able to figure out on my own, and funny enough, it's actually more difficult to find than you'd think. Especially when you didn't know what you are starting off from.
Okay so I've found an 'in the meantime' solution that might suit some people. I haven't worked out all the kinks yet, but it does work.
You might have heard of Genymotion, well it's not that. Genymotion who produce Genymotion do a range of applications for android and one of them is called scrcpy.
If you look up 'genymotion scrcpy' the github link should be the first result.
A lot of people seem to dismiss it as not worth even using, I have no idea why, it's very easy to setup and use. It comes up quite often in XDA as well.
You install it on your PC, connect your phone, and then a mirror of your phone comes up on your desktop. It appears to be fully functional, I downloaded a game of the sorts that I play, and it worked despite the rending issues. I've also played some video that I recorded, no issues at all playing that.
I do have some rendering issues but I'm pretty sure that's an individual thing, I use MXLinux, and I know I have a java issue (as in personal setup, not MXLinux), the errors that are displayed in the terminal as it was running all relate to java.
I am still working through all of the possible solutions with the 'video out' converters and adapters, hopefully before too long, I'll be able to actually show you a working example, as I know that there aren't any out there at present, or not that I've seen anyway. And seeing it working is completely different to someone just saying that they have it working in a comment, with no offer of proof that they have.
I use an app called "vysor" on all my android phones. All you need to do is just download the pc app and follow instructions. Basically you just plug your phone to pc like you will transfer data or charge it. And usb debugging must be enabled. When you enable usb debugging and connect your phone to pc, Vysor will install latest android app and that is all. Sounds will come from the phone so i suggest you use a pair of speakers or earphones.
gsser said:
I use an app called "vysor" on all my android phones. All you need to do is just download the pc app and follow instructions. Basically you just plug your phone to pc like you will transfer data or charge it. And usb debugging must be enabled. When you enable usb debugging and connect your phone to pc, Vysor will install latest android app and that is all. Sounds will come from the phone so i suggest you use a pair of speakers or earphones.
Click to expand...
Click to collapse
That's the same as MirrorLink used by cheap anything Java that advertises screen mirroring. Used it on a low end Linux machine via browser, lag and distortion, worse than screencast for me
Edit: the native Linux appimage worked well enough,but is limited to 1 Mbps and the full version is rather pricey 40USD. I'm the end,you still need a machine running, not just a single cable solution. Might be worth it for some, maybe try a month first to see how well it works for you
And vysor does not have input options from the machine to android, (MirrorLink does I think) so you'll need extra BT peripherals for input.
edit2: have to enable USB input emulation in Dev settings for KB/M to work. And a free alternative exists, its called "scrcpy", with identical functionality, no need for App on android. Vysor is just an overpriced GUI for a free app imho, probably targeted at Apple users
What about a USB to VGA cable? Will it work?
Guys, bad news?
This is not yet supported on Poco X3. But there was a problem when I updated the software on this device. My X3 immediately went dark after that, I was quite alarmed because this is my new phone when I won the competition to play stickman fighter with my friends. What should I do now?

Categories

Resources