maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N810 (https://talk.maemo.org/forumdisplay.php?f=28)
-   -   USB 2.0 OTG on N810 (https://talk.maemo.org/showthread.php?t=10732)

qole 2007-11-29 20:04

Re: USB 2.0 OTG on N810
 
So, to get USB host mode working on the N800, according to the thread that LurkerN directed us to, starting with this post, you need to do the following:

1. Flash your N800 with OS2008
2. become root
3. enter:

echo host > /sys/devices/platform/musb_hdrc/mode

4. plug in your hub / keyboard / flash drive / digital camera
5. N800 complains about not recognizing the device
6. Device works anyway!

convulted 2007-11-29 22:20

Re: USB 2.0 OTG on N810
 
If you have the correct cable, you do not need to enter anything... it is fully transparent.

dblank 2007-11-29 23:10

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by convulted (Post 102205)
If you have the correct cable, you do not need to enter anything... it is fully transparent.

Isn't that only for devices that support OTG?

qole 2007-11-29 23:28

Re: USB 2.0 OTG on N810
 
Yeah, people trying to make OTG work with the N800 are reporting intermittent problems. I think the main problem is that the N800 doesn't have the right sort of connector (Mini AB?) for OTG and auto-mode-switching.

When OS2008 is finally released to the general public (or I finally get too impatient and download the beta, whichever comes first), I'll write a couple of simple one-line scripts to switch between USB modes.

convulted 2007-11-30 00:19

Re: USB 2.0 OTG on N810
 
I'll have the cable next week, when I willl be able to confirm what I just said. However some people DID report fully transparent operation with "norrmal" devices.

bexley 2007-11-30 02:10

Re: USB 2.0 OTG on N810
 
This is still about USB OTG on the N810, right?

I know more people have N800's, but there's already a huge thread about USB host mode on the N800.

Where did you get your cable, convulted?

theflew 2007-11-30 21:51

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by convulted (Post 102205)
If you have the correct cable, you do not need to enter anything... it is fully transparent.

Is this the necessary cable for USB OTG for the N810?

http://neostar.manufacturer.globalso.../USB-Cable.htm

You can't buy directly from them, but it's a start is someone at least makes it.

bexley 2007-12-05 02:20

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by convulted (Post 102253)
I'll have the cable next week, when I willl be able to confirm what I just said. However some people DID report fully transparent operation with "norrmal" devices.

Let us know when you get it, or at least what type it is and where you found it. I'm not totally clear on what kind it should be.

pdonner 2007-12-05 03:14

Re: USB 2.0 OTG on N810
 
Yeah but how much of a draw is the external flash memory on the unit?

Nik1 2007-12-10 02:59

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by qole (Post 102129)
So, to get USB host mode working on the N800, according to the thread that LurkerN directed us to, starting with this post, you need to do the following:

1. Flash your N800 with OS2008
2. become root
3. enter:

echo host > /sys/devices/platform/musb_hdrc/mode

4. plug in your hub / keyboard / flash drive / digital camera
5. N800 complains about not recognizing the device
6. Device works anyway!

Digital camera? You mean accessing the photos stored one the memory card, not the camera itself? Although, it would be interesting if we could connect a USB webcam.

locusf 2007-12-10 19:59

Re: USB 2.0 OTG on N810
 
http://www.verkkokauppa.com/producti...g/21081_01.jpg

Can you make OTG work with something like this? Or is the cable an absolute necessity?

bexley 2007-12-10 20:22

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by Nik1 (Post 106609)
Digital camera? You mean accessing the photos stored one the memory card, not the camera itself? Although, it would be interesting if we could connect a USB webcam.

Usually, only cheap cameras have built-in flash. Either way, accessing the built-in memory or the removable flash card on a camera should both be simple if the camera supports OTG. Most if not all non-dSLR's don't, and even lots of dSLR's don't.

My Nikon D80 does though, and I'm waiting to get to Radio Shack for an adapter to convert the non-N810 side of Nokia's cable from USB A to mini (what the camera takes).

bexley 2007-12-10 20:28

Re: USB 2.0 OTG on N810
 
I don't know if an adapter can in some way make a USB OTG cable non-OTG-compatible. I'm a tad confused about that, since all of my OTG devices (my Nikon D80 camera, my iRiver X5 MP3 player, and now the Nokia N810) came with cables, ostensibly because they're OTG-capable.

Actually, my MP3 player that does USB OTG has a proprietary connected--looks like a mini USB jack but with a different shaped metal housing. So, that's also a hint that these cables are usually included because they're required to use OTG with the device.

Anyway, I initially replied just to say that the N810 comes with a USB cable that (needless to say) fits into the micro USB jack on one end and has a regular, male USB A plug on the other. Getting a female-to-female plug for regular USB A would let you then use any USB A-to-whatever cable instead of finding an adapter for everything.

Or, find an adapter for what you need. It depends on what cables you've got lying around and what you'll be using this for.

kotzkind 2007-12-10 21:21

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by bexley (Post 106881)
I don't know if an adapter can in some way make a USB OTG cable non-OTG-compatible.

You just have to connect id and ground at the host (OTG A) side:
http://media.maxim-ic.com/images/app.../1822Fig02.gif

some users have reported that they don't have to switch on the n800 to host mode manually when they connect pin 4(id) and 5(ground)

http://www.internettablettalk.com/fo...&postcount=116

Nik1 2007-12-10 21:45

Re: USB 2.0 OTG on N810
 
Anyone experiment with usb mice or keyboards?

convulted 2007-12-10 22:04

Re: USB 2.0 OTG on N810
 
USB keyboard should be a breeze. I have even connected a wireless USB mouse to my N800 via a normal cable (using the `echo host > ...` command) and got some garbage output into /dev/input/mouse0 whenever I moved the mouse. I also got the cursor displayed. The key problem is that I dunno how to connect the two :)
Everything should be identical on the N810.

kotzkind 2007-12-10 22:09

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by Nik1 (Post 106902)
Anyone experiment with usb mice or keyboards?

It should be the same as on the n800 with os 2008:

http://www.internettablettalk.com/fo...?t=4177&page=4
(from post #36 on should be intresting for you)

jgallen23 2007-12-10 22:30

Re: USB 2.0 OTG on N810
 
I bought this for my n800 http://www.twstore.com/gcusbafxm.html and decided to upgrade to the n810, will that adapter work with the n810?

sparkling 2007-12-10 22:47

Re: USB 2.0 OTG on N810
 
The pictured item will not connect directly to the N810.

N800 = Mini receptacle
N810 = Micro receptacle

jgallen23 2007-12-10 23:01

Re: USB 2.0 OTG on N810
 
well that sucks.

Karel Jansens 2007-12-10 23:49

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by jgallen23 (Post 106942)
well that sucks.

It's not as if it's been a closely garded secret or something.

convulted 2007-12-10 23:50

Re: USB 2.0 OTG on N810
 
Do you know how much it would cost to ship it to the UK? I could take it off your hands; that website does not ship internationally AFAIK.

Nik1 2007-12-11 01:13

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by convulted (Post 106912)
USB keyboard should be a breeze. I have even connected a wireless USB mouse to my N800 via a normal cable (using the `echo host > ...` command) and got some garbage output into /dev/input/mouse0 whenever I moved the mouse. I also got the cursor displayed. The key problem is that I dunno how to connect the two :)
Everything should be identical on the N810.

USB keyboard works perfectly, but the mouse I have seems to suck too much power, i'll to find a cheaper generic laser mouse. How did you manage to get a working cursor?

gemniii42 2007-12-16 13:57

Re: USB 2.0 OTG on N810
 
Just to keep this thread alive and not start a new one -
I've checked ALL the posts twice and out of all 100+ posts it seems that only the Neostar cable looks like it can do anything to solve our problem.
I need to be able to hook up standard thumb drives and 2.5" external drives (like WD 250Gb passport) I would expect to have to provide external power (AA battery/ies).
Has anyone found a solution?

bexley 2007-12-16 14:04

Re: USB 2.0 OTG on N810
 
Don't we just need a USB A female-female adapter in conjunction with the included Nokia cable to be able to plug in "regular" USB?

locusf 2007-12-16 14:41

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by bexley (Post 109253)
Don't we just need a USB A female-female adapter in conjunction with the included Nokia cable to be able to plug in "regular" USB?

What I have learned in this thread, the answer is no. Check out the N800 host-mode experiment thread too for more information.

bexley 2007-12-16 15:14

Re: USB 2.0 OTG on N810
 
I thought that the N810 is in a different boat for USB OTG host mode.

gemniii42 2007-12-16 15:56

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by bexley (Post 109253)
Don't we just need a USB A female-female adapter in conjunction with the included Nokia cable to be able to plug in "regular" USB?

If it is that simple why hasn't anyone done it and reported how to do it?

We will probably require an adapter with some sort of "power injection".
/edit for dsylexic keyboard

bexley 2007-12-16 17:00

Re: USB 2.0 OTG on N810
 
The power issue is a seperate one. The easy and obvious method would be using a powered hub for which you could also build a battery pack, no?

Anyway, what we're talking about is the required cable, regardless of whether the device you want to use will need extra power or not.

aki 2007-12-16 18:52

Re: USB 2.0 OTG on N810
 
for what it's worth, I managed to get a self-powered external HD connected to the n810. I just used the standard cable with a Female/female usb adapter to connect all the cables together - no other hardware. The instructions are the same for the n810 as it is for the n800. I want to do some throughput tests but haven't had a chance to yet.

gemniii42 2007-12-16 20:55

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by aki (Post 109338)
for what it's worth, I managed to get a self-powered external HD connected to the n810. I just used the standard cable with a Female/female usb adapter to connect all the cables together - no other hardware. The instructions are the same for the n810 as it is for the n800. I want to do some throughput tests but haven't had a chance to yet.

Great!! that's what I was talking about!!

and
Quote:

The power issue is a seperate one. The easy and obvious method would be using a powered hub for which you could also build a battery pack, no?

Anyway, what we're talking about is the required cable, regardless of whether the device you want to use will need extra power or not.
Actually the thread is USB 2.0 OTG on N810, and if the device requires power you will not get it to work without it.
I would prefer not to haul around an adapter plus a powered hub, I would like to be able to use a minimal battery pack to power a thumb drive.

bexley 2007-12-16 21:15

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by gemniii42 (Post 109383)
Great!! that's what I was talking about!!

And it's exactly what I said to do.

Quote:

Actually the thread is USB 2.0 OTG on N810, and if the device requires power you will not get it to work without it.
Thanks for the attitude, but the topic I was replying about was something specific: the USB cable or adapter needed to use the N810 in host mode.

Besides, you're not exactly right with your statement as the N810 does seem to provide power, just not enough current for all types of devices.

And there's no reason to address the power issue anyway unless I were talking about specific devices and whether or not they need more power. The question of how to boost the current if you need to isn't a mystery. You just need to decide on your own solution. Portable hubs get pretty small, but if that's not small enough get a Y-cable to power the device via a battery pack while it's connected to the N810.

Google will tell you how to build the battery pack and it will also find you the Y-cable you need for a couple bucks.

Or find something like this (though I didn't read through to see if this is specifically what you'd want): http://www.google.com/products?q=%22...&lmode=unknown

You may even be able to find some kind of USB adapter with a built-in battery that does the job. I'd check eBay for these kinds of things that tend to come out of Hong Kong.

aki 2007-12-18 21:06

Re: USB 2.0 OTG on N810
 
Finally ran a quick test on the n810 to see the write/read speeds to my external HD. In short, write 100Megs, 37secs, read 100Megs, 30secs. Only did a single iteration so it's not a very reasonable sample size ;)

Code:

/media/usb/sdb2 # time dd bs=1M count=100 if=/dev/zero of=test.bin
100+0 records in
100+0 records out
real    0m 36.81s
user    0m 0.00s
sys    0m 4.48s

/media/usb/sdb2 # time dd bs=1M count=100 of=/dev/zero if=test.bin
100+0 records in
100+0 records out
real    0m 30.75s
user    0m 0.02s
sys    0m 11.05s
/media/usb/sdb2 #

/media/usb/sdb2 # ls -hl *bin
-rw-r--r--    1 user    root      100.0M Dec 18 12:40 test.bin

Good enough for what I need. I've been using a vosonic X's drive vp3320 with it's external power supply to do the quick test.

jgallen23 2007-12-25 06:44

Re: USB 2.0 OTG on N810
 
this should work, right?

http://www.amazon.com/USB-Gender-Cha.../dp/B000BSN4UY

pixelseventy2 2007-12-25 18:31

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by jgallen23 (Post 115126)

Yes, but probably without the auto-switching. I use one on my n800

locusf 2007-12-27 10:21

Re: USB 2.0 OTG on N810
 
I ran into trouble by setting the host mode enabled in my N810. Now I can't connect to Internet with my phone, but wifi works ok. Can someone please tell me how to disable the host mode (ie. the default value to put to the file that enables host-mode)?

gemniii42 2007-12-27 12:33

Re: USB 2.0 OTG on N810
 
RE: Gender changers -
It seems one of the best present methods for using the N810 w/ stock cable for a USB stick is to use a USB Gender Changer,A Female to A Female.

Every place I found one on the web it seems they wanted exorbitant prices for shipping ($5 and up per PIECE) and on a PIECE basis, not grouped. I did find one place (Directron ) I've dealt with throughout the years that sells them and lets you combine with other orders.

Thus I needed an IDE DVD burner, they had a good price on what I wanted, I ordered two of the gender changers and the burner, total shipping $8. With just 2 gender changers shipping was $7.

And for anyone that would like to take the hassle of buying a bunch of them and selling them back to the community for low shipping costs (which I thought of doing) you can get 10 of them for $25. Right now they are "on sale" for $3@ or 10 for $25.

Note - don't work for Directron, just a satisfied customer.

shivalwolf 2007-12-27 23:39

Re: USB 2.0 OTG on N810
 
Is there a list somewhere of the USB modules that the n810 kernel has particularly i am wondering if it has the USB-serial module (it creates a serial interface for USB devices)

Also does the n810 support creating PPP sessions does it have the ppp modules.

If both are true i am hoping i should be able to use after putting the device into USB host and having a powered hub plug in my hsdpa modem and create a connection. I have not yet got a n810 but im seriously looking at it as a replacement to my HTC universal

aki 2007-12-28 05:07

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by gemniii42 (Post 116039)
RE: Gender changers -
It seems one of the best present methods for using the N810 w/ stock cable for a USB stick is to use a USB Gender Changer,A Female to A Female.

Just to add to a list of suppliers. I've been using Dealextreme. It does take an agonizingly long time for things to arrive (3-4 weeks) but all my orders have come through yet. I've been using the following gender changer and they're selling it for 1.48$.

http://www.dealextreme.com/details.dx/sku.2646

Now, if they would only start stocking micro usb cables ;)

dblank 2007-12-28 05:46

Re: USB 2.0 OTG on N810
 
Quote:

Originally Posted by shivalwolf (Post 116370)
Is there a list somewhere of the USB modules that the n810 kernel has particularly i am wondering if it has the USB-serial module (it creates a serial interface for USB devices)

Also does the n810 support creating PPP sessions does it have the ppp modules.


PPP support is in the kernel, but for USB to Serial adapters you'll need a module compiled for whatever chipset your adapter uses.

Few modules are included out of box, but pretty much any Linux kernel module can be compiled.

There's a guide to kernel and module compilation for the tablets here: http://maemo.org/development/documen...for_maemo.html


All times are GMT. The time now is 02:33.

vBulletin® Version 3.8.8