maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   N800 USB Host Mode Experiment (https://talk.maemo.org/showthread.php?t=4177)

Mara 2008-01-02 18:37

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by mplawner (Post 119415)
Just use osso-statusbar-cpu and create custom commands calliing your two scripts. Be sure the 2 scripts are included in your /etc/sudoers file, of course.

Now that's a great idea! Why didn't I think about this before?

enbrewer 2008-01-03 02:53

Re: N800 USB Host Mode Experiment
 
Texrat, I've got the same Motorola adapter and it works great on my n810 - whatever cables or adapters are working on the n800 will connect with the adapter into the n810. I haven't found an OTG cable yet, but I can manually switch to Host mode and read USB drives and such.

EIPI 2008-01-03 04:38

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by mplawner (Post 119415)
Just use osso-statusbar-cpu and create custom commands calliing your two scripts. Be sure the 2 scripts are included in your /etc/sudoers file, of course.

I added this alternate method of accessing Host/Otg modes to the wiki.

t3h 2008-01-03 07:28

Re: N800 USB Host Mode Experiment
 
I got myself an A to Mini-A cable (couldn't find a mini-B). The difference is that the bottom part is slightly thicker. When I get home, I'll file down the edges the little it needs and see if I can make it fit. The pinout should be the same.

Also, I am told that host mode freezes during device enumeration on the latest OS2008 - has anyone experienced (/solved) this?

Greyghost 2008-01-03 16:41

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by Mara (Post 119093)
I did create shell scripts and files for application entries to switch between host and otg modes.

I've been following this thread from the beginning, hoping to 'get my head around' the host/otg usb modes, and thanks to your clear and simple instructions, Mara, I was finally able to achieve this goal! In the words of HJS, "Woo Hoo!"

Thanks also to the many others who contributed to this thread by way of asking the very questions I was going to ask and finally to EIPI for putting up the step-by-step instructions on the wiki.

FYI, I was able to hook up directly to a long unused thumbdrive and as a bonus for my first little test, re-discovered a collection of 'old' pics and documents I'd meant to save and forgotten where I'd left them.

Next I hooked up my Sony DSC T100 and voila, it works, seamlessly! Even better, I was able to use Maemopicasa (thanks again TahitiBob) to load pics up to my web albums directly from the camera!!

I feel as if some of the hidden potential of the IT has finally been unlocked for me and I'm grateful to members of this forum for making that possible.:D

Cptnodegard 2008-01-03 17:20

Re: N800 USB Host Mode Experiment
 
Got my N800 today, updated to OS2008 and the USB OTG cable i made with help from here worked 100%! Connected botha flash drive and a keyboard, both worked

madman999 2008-01-03 21:07

Re: N800 USB Host Mode Experiment
 
got this working with a usb hub and a couple of memory sticks. works with a usb to ps2 keyboard changer too!

ps2 mouse doesn;t seem to work though.

making the cable actually seems easier than it sounded. after cannibalizing a USB extension cable to get the female end and a mini usb cable from, stripped away the ends of the male mini usb, shorted pins 4 and 5 and connected the wires 1-1, 2-2, 3-3 and 4-4.

the only odd thing is that the devices i plugged in, i got a message say that they weren;t supported but lo and behold, they showed up. any light on what those error messages mean?

just awesome!

Mara 2008-01-03 21:14

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by madman999 (Post 120195)
the only odd thing is that the devices i plugged in, i got a message say that they weren;t supported but lo and behold, they showed up. any light on what those error messages mean?

The only "supported" device I have found so far is another N800... when I plug that into the first N800 it shows different message (don't remember now...) and I can browse the other N800 memory cards from the first N800... :rolleyes::cool:

My guess is that there is very limited number of device "profiles" built into the N800 kernel. If exact profile wasn't found it will say "Unsupported device".

EDIT: I just connected my 2 N800's together with USB cable and the Host N800 doesn't say anything. It just opens up the file manager to browse files.

madman999 2008-01-03 21:34

Re: N800 USB Host Mode Experiment
 
so this is a totally harmless message? great!

this increases the usefulness of my N800. Now I don;t have to get an expensive SDHC card and have limitless storage!

alos, i don;t have launch any scripts as it seems to connect automatically. certainly a good reason to upgrade to OS2008.

Mara 2008-01-04 02:32

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by EIPI (Post 119370)
Mara's method of enabling Host and OTG modes is now in the Wiki. Enjoy!

I just cleaned up the scripts and modifed the application names to more consistent... as well as added clear step by step instructions in my original post. I packed all four files into one single zip file too.

Funtionality is exactly the same as before, so you do not need to "upgrade". You can find the link into the post from the wiki page above.

Cptnodegard 2008-01-04 23:22

Re: N800 USB Host Mode Experiment
 
eye candy
playing a divx3 file, 850kbps 512x384 resolution on mplyaer, directly off a flash pen in host mode

http://captain-odegard.com/n800/host.jpg

Karel Jansens 2008-01-05 00:25

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by Cptnodegard (Post 121057)
eye candy
playing a divx3 file, 850kbps 512x384 resolution on mplyaer, directly off a flash pen in host mode

Does the GUI launcher see the files on the flash drive?

Cptnodegard 2008-01-05 00:29

Re: N800 USB Host Mode Experiment
 
Dunno what a GUI launcher is, but file manager launches automatically and i can browse it like the memory cards

gemniii42 2008-01-05 02:06

Re: N800 USB Host Mode Experiment
 
At least there seems to be duct tape in the picture!

tz1 2008-01-05 03:52

Re: N800 USB Host Mode Experiment
 
Does anyone know if for the N800 it uses the sense line like the N810? I.e. if in the mini-B connector, pins 4 and 5 are shorted (instead of 4 being a no-connect) and the chip is in OTG mode if it will automatically switch from peripheral to host?

jgallen23 2008-01-05 05:00

Re: N800 USB Host Mode Experiment
 
anybody able to get an ipod to work?

tz1 2008-01-05 13:12

Re: N800 USB Host Mode Experiment
 
With my n810, and a powered hub, an iPod is recognized, and will mount if it is a FAT (Windows) format unit. A Mac-native iPod's partition table isn't recognized, nor is hfsplus a stock filesystem.

The files are visible in the filesystem just like any Flash Drive. I suspect if GTKpod was ported it would work too.

ydant 2008-01-05 21:19

Re: N800 USB Host Mode Experiment
 
tz1: Is the powered hub really necessary for the ipod? I'd think (and hope), having its own battery, it'd be designed to not need power off of the USB port...

tz1 2008-01-05 21:42

Re: N800 USB Host Mode Experiment
 
The (5G video) iPod apparently wants to recharge or something else so asks for more than 200mA. The nano or the flash only might not have these problems. Also note it will ask for the peak power usage, not average or typical. The question is not whether it needs it (and defragging a full FAT 5G will drop the battery to zero on a PC), but what it asks for.

I should try my old 3g (recharges via Firewire) - it might not ask for much from the USB.

It might also be possible - but dangerous - to override the current check.

speculatrix 2008-01-05 23:15

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by tz1 (Post 121150)
Does anyone know if for the N800 it uses the sense line like the N810? I.e. if in the mini-B connector, pins 4 and 5 are shorted (instead of 4 being a no-connect) and the chip is in OTG mode if it will automatically switch from peripheral to host?

yes. see my post about a nano keyboard and the maplin adaptor.

Kozzi 2008-01-06 18:37

Re: N800 USB Host Mode Experiment
 
Anyone here tried DigiTV-tuner or is there any chance for this to work ?

Cptnodegard 2008-01-06 18:39

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by Kozzi (Post 121995)
Anyone here tried DigiTV-tuner or is there any chance for this to work ?

extremely unlikely. that kind of ddevice isnt anywhere near plug and play

niklas 2008-01-06 19:40

Re: N800 USB Host Mode Experiment
 
I would say it's technically possible but you will probably need to do some things:
1. Yuou will need a power source for it like a powered USB Hub
2. You will need to compile a kernel V4L (Video for Linux) driver for it
3. You will need to port some TV Software, V4L is available on the tablet though so the bare minimum would be a simple gstreamer command.

rittf800 2008-01-07 01:12

Re: N800 USB Host Mode Experiment
 
Hi

Just for your information:
I have gotten the following devices to work:
* 3Com USB Ethernet 3C460B, module pegasus.ko
* Future Technology Devices International usbtoserial adapter, module ftdi_sio.ko
* Magellan Explorist 500 in nmea mode, module cdc_adm.ko. With gpsd this one works with maemomapper, the device is /dev/ttyACM0. The Filetransfer mode works too as a regular usb storage device. Beware that the explorist will use the USB connection for powering itself.

All of these with just the regular nokia usb cable, and an A-Female to A-Female adapter.
I compiled the modules myself in scratchbox, following this guide:
http://maemo.org/development/documen...for_maemo.html
and the regular scratchbox and maemo4sdk guides off course.
If someone is interested, I will put the binary modules online somewhere.

rittf800 2008-01-07 01:14

Re: N800 USB Host Mode Experiment
 
More tested devices:
* A cherry usb g83 keyboard
* An IDREAM 512mb mp3 player
And the following, but only through a powered hub:
* Medion 128mb usb stick
* HAMA SDHC cardreader

tz1 2008-01-07 17:25

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by rittf800 (Post 122198)
Hi
* Magellan Explorist 500 in nmea mode, module cdc_adm.ko. With gpsd this one works with maemomapper, the device is /dev/ttyACM0.

Do you mean cdc_acm.ko?

ydant 2008-01-07 17:26

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by tz1 (Post 121534)
The (5G video) iPod apparently wants to recharge or something else so asks for more than 200mA. The nano or the flash only might not have these problems. Also note it will ask for the peak power usage, not average or typical. The question is not whether it needs it (and defragging a full FAT 5G will drop the battery to zero on a PC), but what it asks for.

I should try my old 3g (recharges via Firewire) - it might not ask for much from the USB.

It might also be possible - but dangerous - to override the current check.

Do I remember correctly that the iPod won't charge over USB1, but will still act as a harddrive? Maybe that was another device. IF that is the case, is it possible to force Linux to report the port as USB1 instead? Probably drifting a bit far off topic, but I was hoping to use the N810 and my ipod together once I get around to rigging up the necessary connectors/cable. Thanks for the explanation. :)

jgallen23 2008-01-07 18:07

Re: N800 USB Host Mode Experiment
 
I got my ipod working, but only with a powered usb hub connected to it.

petergunn 2008-01-08 04:43

Re: N800 USB Host Mode Experiment
 
FYI - just tried adding power via 4xAAA NiMH with two different 2.5in usb drives. Has just enough current to spin it up when fully charged but isn't reliable and wont work after a few mins.

Cptnodegard 2008-01-08 09:17

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by petergunn (Post 123027)
FYI - just tried adding power via 4xAAA NiMH with two different 2.5in usb drives. Has just enough current to spin it up when fully charged but isn't reliable and wont work after a few mins.

Tried the same, but with me it wouldnt even spin up

atlas95 2008-01-08 10:09

Re: N800 USB Host Mode Experiment
 
Hello, Sorry I'm french and I havn't find my "problem".
I have a n810, I have do the kernel,apps tweak for get working the usb host, but now, I just search a link/shop, (ebay?) where I can find the mini usb cable to a female usb.

Could you help me, thanks

fredoll 2008-01-08 10:21

Re: N800 USB Host Mode Experiment
 
you could try LDLC : they have a AF-AF (A Female to A Female) Adapter for less than 4 euros
Fred

penguinbait 2008-01-08 17:31

Re: N800 USB Host Mode Experiment
 
My new favorite usb adapter


http://penguinbait.com/adapter1.jpg
http://penguinbait.com/adapter2.jpg

Purchased at http://www.jaykang.com/ Ripped me off on shipping still trying to recoup, but got my adapter quickly.

USB A-Type Female to USB Mini-B Type 5 Pin Male Adapter
http://www.jaykang.com/usbafetousbm1.html

bluehash 2008-01-08 17:39

Re: N800 USB Host Mode Experiment
 
Does it have OTG support

Cptnodegard 2008-01-08 17:41

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by bluehash (Post 123370)
Does it have OTG support

r more precisely, does it AUTOMATICALLY switch to host mode? AAll such adapters can support host, but most require manually setting host mode on.

How much was shipping?

tz1 2008-01-08 17:48

Re: N800 USB Host Mode Experiment
 
Does it have pins 4 and 5 on the mini-b connected so it will automatically select USB OTG Host mode?

penguinbait 2008-01-08 17:54

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by Cptnodegard (Post 123371)
r more precisely, does it AUTOMATICALLY switch to host mode? AAll such adapters can support host, but most require manually setting host mode on.

How much was shipping?

It does not do OTG automagically, but I have mine in host and never use usb transfer. It sure beats my nokia cable with the female to female converter. I used to have a 3 foot cable, this is much nicer.

it was like $9.50 shipping, it said UPS. It was shipped via first class mail, for under 1$. He gave me some line about shipping system was down, so he sent it via USPS. I have asked him to send me another adapter to make up for the shipping. Still waiting to hear back. He has been very responsive though. There are probably other sites out there with the same adapter, (I only found one other but I didn't like the shape)

Anyway just sharing, take it or leave it :)

Cptnodegard 2008-01-08 17:55

Re: N800 USB Host Mode Experiment
 
oh well, not that interesting if it doest go to host automatically. I have a home made adapter that does, but i'd sure love to have one spare

EIPI 2008-01-08 18:05

Re: N800 USB Host Mode Experiment
 
I got mine from www.yourcablestore.com for $5.95 USD shipped to Canada. I think I used their ebay storefront though, and not their website to get it. Excellent experience, and they gave me a $1.00 coupon to apply to my next order. Any takers on the coupon code? I doubt I'll need to get another one anytime soon.

EDIT - Taking a line from Mara, I too am not affiliated in anyway with the store I am recommending for the USB adapter. Just relating my experience using them, and I have this discount code I won't use - so just tying to help out someone else!

Cptnodegard 2008-01-08 18:13

Re: N800 USB Host Mode Experiment
 
I sent another mail to PC mobile asking wheter or not the Zen Vision M usb host cable is an min iA or a mini B (http://www.pc-mobile.net/cmuh1.jpg). If it's A, it should be what we need, even if it needs modifying.


All times are GMT. The time now is 17:54.

vBulletin® Version 3.8.8