Nexus One USB host driver

ManticoreX

Member
Jun 24, 2010
28
4
0
Oh I think I understand now. With your patch the nexus one will be in host mode, so accessing the files by connecting the usb from PC to phone will not work traditionally so these are workarounds.

Great, I look forward to getting my cables and giving it a try!
 

pikipirs

Senior Member
Jan 23, 2009
316
83
0
android.ccpcreations.com
Perfect for the Nexus One, but isn't this extremely dangerous with PCs? Both the hub and the PC providing power to Vbus, isn't that a short circuit?
Nevertheless, I ordered one.
The polarity in the host cable is reversed (as it should be) so it doesn't produce a short circuit. The only problem would be if the two devices had different grounds (like from two sockets that come from two different power sources, for example power plant and solar).

I would imagine this would be dangerous for the notebook though, seeing as how the hub makes it being powered in some sort of frankensteinish mode where half of the motherboard is (under)powered and half of it is without power.

In any case, no danger to our Nexus.
 

sonic74

Senior Member
Jan 3, 2010
163
18
0
Schwabach
sven.killig.de
The polarity in the host cable is reversed (as it should be) so it doesn't produce a short circuit. The only problem would be if the two devices had different grounds (like from two sockets that come from two different power sources, for example power plant and solar).
Short circuit was the wrong term, but wouldn't it be a problem if the two voltages weren't exactly the same, which they won't be? There will be a potential gradient which will lead to current flowing, won't it?
 

ManticoreX

Member
Jun 24, 2010
28
4
0
Not sure if anyone has asked, but what keyboard is that in your video. It seems to be about the size I am looking for.
***.adesso.com/en/home/keyboards/142-akb-110b.html looks similar.
 

sonic74

Senior Member
Jan 3, 2010
163
18
0
Schwabach
sven.killig.de
Wonder if any of these would work too under Debian?

I successfully used the plugable UD-160-A. Very Linux-friendly company, the CEO is engaged in the DisplayLink open source driver development.

They look like they're DL-165 based and 3 of the 4 units have 4 USB ports so I could power the USB OTG cable with two USB ports leaving two USB ports available.
You only need 1 USB downstream port to power the USB OTG cable.
 

ManticoreX

Member
Jun 24, 2010
28
4
0
Thanks for your help. I ended up ordering the keyboard I linked, and the cables to set this up. When everything gets here I will post my setup (which will hopfully work)
 

sonic74

Senior Member
Jan 3, 2010
163
18
0
Schwabach
sven.killig.de
I have Trust HU-5870V 7-port USB hub and it has power in the host cable when it's connected to the power adapter.

I just received the OTG cable today and I tried it with this hub. It doesn't need any additional cables, apart from power block and the OTG cable. No dual-power USB cable needed. The nexus is charging when connected over OTG.
I can't believe it: I just tested my TiVECO TM-UH710 and it does the same! I'm baffled :confused:
But certainly perfect for the Nexus One :)
 

roastlechon

Member
Jun 14, 2008
22
3
0
Hey guys!
I got mine working! I'm typing on my phone using a wireless keyboard! Lololololol.
The keys that don't work are the numpad keys, caps lock, and a few keys are used for sleep button, navigating, etc.

@sonic74 What is the issue with WiFi not working when this mode is activated?
 

pikipirs

Senior Member
Jan 23, 2009
316
83
0
android.ccpcreations.com
Say one would create random images (two scenarios: a simple animation like a ball bouncing around the screen, or a complex animation like random noise) and would feed them to the displaylink usb adapter.

What would the max FPS be? How about under the lowest possible resolution (I guess that would be VGA) for the external display?

I'm asking because I'd like to buy an adapter, but since I live in Europe, those are ridiculously pricy (almost twice the price as in the U.S.) and I have to be convinced that it will be a wise investment.
 

sonic74

Senior Member
Jan 3, 2010
163
18
0
Schwabach
sven.killig.de
What would the max FPS be?
Depends on the technique:
  • de.killig.Framebuffer.java: Easy to use, but much touching and copying bits around. Enough to display content with low refresh rate.
  • /dev/graphics/fb1: Faster through memory mapping. X11 usable.
  • libtubecable: Even faster with huffman coding. Watching TV on 800*480 possible.
  • Original Windows driver and DL-1x5: Fastest with the new DL 2+ compression. Supposedly HD video capable.
 
Last edited:

Dan2552

Member
May 10, 2010
32
2
0
I got this working with a friend's USB keyboard. However, my Apple keyboard (small thing, no numpad) doesn't seem to work. Any ideas, are there more modules I need to load other than usbcore.ko ehci-hcd.ko usbhid.ko ?

edit--
perhaps it's because the keyboard acts as a USB hub as well (it has 2 female USB ports)?
 
Last edited:

nurre

Senior Member
Jul 6, 2007
191
8
0
I saw you had linux running in 1920x1200 and had some stability issues. Have the been solved?

I got a bunch of iphones at work, I'd love to skip carrying my laptop one day, boot up linux on my phone and work from that. I'm not too worried about maxing the resolution, but I'd need enough resources to run firefox/chrome + fuse and a text editor editing files on a remote server. Would be WAY cool ;)


Same thing bringing a small box for tvout to client meetings and running demo's off it. Would be incredibly neat !