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)

bexley 2007-11-30 17:57

Re: N800 USB Host Mode Experiment
 
Sounds awesome and feasible. Can it please be for the N810 though? :)

xPAKxMaster 2007-11-30 21:19

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by bexley (Post 102722)
Sounds awesome and feasible. Can it please be for the N810 though? :)

for the n810 it is the same principle - the only difference is that you dont need the mini usb adapter:)

djs_tx 2007-12-05 02:13

Re: N800 USB Host Mode Experiment
 
Please help me understand the pinouts. Take a look at this link USB pinout.

The N800 has an USB mini connector on the side under the stand (third image from top on left side). A USB peripheral like a flash drive has a USB male "A" (top image on left side). So the adapter must have a mini B male on one end and a full size A on the other right?

Is it grounding the 5th pin marked "x" in the diagrams that tells the N800 to go into host mode?

I think so according to http://en.wikipedia.org/wiki/USB_OTG
David

Master of Gizmo 2007-12-06 12:06

Re: N800 USB Host Mode Experiment
 
Hi,

this host mode support is really great. I just successfully used my i2c-tiny-usb (http://www.harbaum.org/till/i2c_tiny_usb/) to my n800. And with the libusb already pre-installed it was a matter of seconds to get the demo app running on the n800 and having it access the i2c-interface chips and do some LED blinking.

BUT: I have sporadic resets. Not only with my USB hardware but also with e.g. a prolific usb/rs232 converter. I don't even have to run my own drivers or so. A simple "lsusb" will at a 1/3 chance make the n800 reboot.

Has anyone experienced this as well?

dblank 2007-12-06 19:00

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by Master of Gizmo (Post 105173)
BUT: I have sporadic resets. Not only with my USB hardware but also with e.g. a prolific usb/rs232 converter. I don't even have to run my own drivers or so. A simple "lsusb" will at a 1/3 chance make the n800 reboot.

Any errors in dmesg output?

kotzkind 2007-12-06 20:34

Re: N800 USB Host Mode Experiment
 
Anybody tried DVB-T usb-sticks?

If they are working, they would make the n8x0 to a more perfect device, than I imagined.

dblank 2007-12-06 21:41

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by kotzkind (Post 105336)
Anybody tried DVB-T usb-sticks?

I've not tried, but maybe after compiling modules, compiling mplayer with tv/v4l/whatever support, etc. it might be possible.

Here's a list of USB DVB-T cards supported in Linux:
http://www.linuxtv.org/wiki/index.php/DVB-T_USB_Devices

Mara 2007-12-06 23:01

Re: N800 USB Host Mode Experiment
 
Just got my USB adapters.... tried wiht a USB card reader and works perfect.

Also, for sake of fun, I also hooked up my second N800 to my first N800 as mass storage device and it worked! (It didn't even complain unsupported device... :D)

Is that running two N800 in SLI or Crossfire... :rolleyes::cool:

lumindigo85 2007-12-06 23:56

Re: N800 USB Host Mode Experiment
 
Does anyone have a USB-VGA adaptor. This would be interesting :)
http://cgi.ebay.co.uk/New-USB-VGA-Ad...QQcmdZViewItem

luca 2007-12-07 12:15

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by kotzkind (Post 105336)
Anybody tried DVB-T usb-sticks?

If they are working, they would make the n8x0 to a more perfect device, than I imagined.

I doubt the n800 has enugh horsepower to decode an mpeg stream at full resolution (though I'm used to satellite edit: and I know I have to transcode that, feeding the stream directly to the n800 doesn't work, maybe dvb-t with lower bitrate could work).
And usually these sticks draws a lot more power than the ~100mA that the n800 can supposedly deliver.

paratox 2007-12-07 12:23

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by convulted (Post 102183)

can anybody confirm this adapter works without switching?

skinny 2007-12-07 14:21

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by Tirithen (Post 101366)
I got my wireless USB keyboard working but it dropped a lot of characters until I added 5v from 4AA batteries...

I'm having the same problem.

I'm running OS2008 Beta and I've enabled host mode using the "echo host > /sys/devices/platform/musb_..." method (because I'm using a female-female adaptor, rather than a USB-OTG cable).

The keyboard is detected and "works", but drops a LOT of characters, making it unusable (worse than the repeating characters when using a BT keyboard... which was the problem I was trying to solve by going USB).

Is the only solution to supply power? Do other USB keyboards (mine is a KeySonic Nano) work correctly without power?

luca 2007-12-07 16:38

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by paratox (Post 105566)
can anybody confirm this adapter works without switching?

you need a mini b male to a female, not a mini a to a.

djs_tx 2007-12-07 17:24

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by Master of Gizmo (Post 105173)
Hi,

this host mode support is really great. I just successfully used my i2c-tiny-usb (http://www.harbaum.org/till/i2c_tiny_usb/) to my n800. And with the libusb already pre-installed it was a matter of seconds to get the demo app running on the n800 and having it access the i2c-interface chips and do some LED blinking.

BUT: I have sporadic resets. Not only with my USB hardware but also with e.g. a prolific usb/rs232 converter. I don't even have to run my own drivers or so. A simple "lsusb" will at a 1/3 chance make the n800 reboot.

Has anyone experienced this as well?

Extremely cool... I will be attempting to follow in your footsteps soon.

I would try repeating the lsusb with a powered hub in place and seeing if your problem is related to current draw.

David

dblank 2007-12-07 18:45

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by luca (Post 105564)
I doubt the n800 has enugh horsepower to decode an mpeg stream at full resolution (though I'm used to satellite edit: and I know I have to transcode that, feeding the stream directly to the n800 doesn't work, maybe dvb-t with lower bitrate could work).
And usually these sticks draws a lot more power than the ~100mA that the n800 can supposedly deliver.

Shouldn't the DVB-T device do most of the hard work (decoding) ?

I've run hardware decoders before on really crappy hardware, they didn't tax the CPU at all, maybe these devices are different, though. *shrug*

They probably do use more power than the N800 can supply, but it's actually possible to deliver up to 200mA.

Master of Gizmo 2007-12-07 21:28

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by djs_tx (Post 105670)
Extremely cool... I will be attempting to follow in your footsteps soon.

I would try repeating the lsusb with a powered hub in place and seeing if your problem is related to current draw.

David

You are right, i should give a hub a try. But a) is my device really low power and draws really only a few milliamps b) should drawing even a few milliamps more not reset the n800 and c) is a self powered hub somehow spoiling the fun :)

I have added a small section about my N800 experiments to my i2c-tiny-usb page at http://www.harbaum.org/till/i2c_tiny_usb . Just scroll down to the "Using the device with a Nokia N800" section.

P.S.: Where's the N810?? Can't wait to try this with the N810 ...
BTW: Did they add a micro AB receptable to the N810? Or do we face the same it-only-accepts-a-USB-B-plug problem again?

luca 2007-12-07 21:54

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by dblank (Post 105710)
Shouldn't the DVB-T device do most of the hard work (decoding) ?

No, at most it will do the demuxing (taking out one mpeg stream from the whole mux, and some usb2.0 sticks won't do even that), mpeg decoding (the real hard part) has to be done in software.

LurkerN 2007-12-07 22:19

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by Master of Gizmo (Post 105793)
P.S.: Where's the N810?? Can't wait to try this with the N810 ...
BTW: Did they add a micro AB receptable to the N810? Or do we face the same it-only-accepts-a-USB-B-plug problem again?

The N810 does contain a MicroAB port, but I have not been able to find a Micro-A to full-size B-plug or A-receptacle. Since Nokia does not officially support USB host in the tablets, we must wait for another device to support OTG Micro host so we can borrow those adapters. Until then we must use the same kludges used for the N800.

dblank 2007-12-07 23:03

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by luca (Post 105811)
No, at most it will do the demuxing (taking out one mpeg stream from the whole mux, and some usb2.0 sticks won't do even that), mpeg decoding (the real hard part) has to be done in software.

Wow, that sucks :)

Is there *any* USB2 DVB-T card that also does hardware decoding?

Maybe some day we could actually use that currently useless IVA processor in the tablets for things like this :)

convulted 2007-12-07 23:16

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by luca (Post 105643)
you need a mini b male to a female, not a mini a to a.

Oh yeah, I wonder how I missed that :)

mwiktowy 2007-12-07 23:36

Re: N800 USB Host Mode Experiment
 
Wow ... I am pretty happy that OS2008 on the N800 works with USB Flash Drives. That makes it even more impressive. It even popped up a USB applet that allowed me to unmount the drive before pulling it out.

Hopefully someone makes a nice little applet (maybe a super-set of the functionality of the current USB applet that pops up) that allows you to switch modes without the hassle of opening an xterm ... or maybe I will look into investing in a USB OTG cable.

Good stuff.

nrune 2007-12-08 13:08

Re: N800 USB Host Mode Experiment
 
Would someone please check the wiki to make sure that I have got it right?

http://internettablettalk.com/wiki/i..._using_OS_2008

Also has anyone tried Maemo Mapper with the maps on a usb thumbdrive? Save my flash memory for other stuff...

Thanks
Nrune

luca 2007-12-08 13:44

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by dblank (Post 105837)
Wow, that sucks :)

Well, not really: if you don't consider resource limited devices, like our tablet, any old computer (by today standards) can easily decode mpeg. And if it's not that old it can even decode HD streams (though, at least over here, for dvb-t there are only experimental transmissions)
Quote:

Is there *any* USB2 DVB-T card that also does hardware decoding?
I don't know any, but you could take a look at linuxtv.org

gemniii42 2007-12-08 14:01

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by LurkerN (Post 105821)
The N810 does contain a MicroAB port, but I have not been able to find a Micro-A to full-size B-plug or A-receptacle. Since Nokia does not officially support USB host in the tablets, we must wait for another device to support OTG Micro host so we can borrow those adapters. Until then we must use the same kludges used for the N800.

http://mancahk.trustpass.alibaba.com...USB_Cable.html

but you need to buy a thousand :(

/edit - or would this work?
http://www.motorazr.com/content/acce...-180--3050.htm
with a regular to mini usb converter.

LurkerN 2007-12-08 19:26

Re: N800 USB Host Mode Experiment
 
geminiii42:
The problem with either of those cables is that one would still need another adapter piece to connect to devices. However, if it works for data, the micro-to-mini adapter is the most ideal at this point. I've only seen them described in reference to charging, though.

Why do those Micro-A cables to full-size A-plug even exist in retail? Both ends are for host devices! They serve no purpose that a (soon to be commonplace) Micro-B cable does not fulfill.

DeeJay_XB 2007-12-08 19:53

Re: N800 USB Host Mode Experiment
 
this is an interesting article http://www.accesscomms.com.au/Reference/USB.htm

seems like there is a resistor that connects the ID pin to ground! someone more intelligent than me please research this and give a pin-out scheme for making this usb host cable :D

EDIT: http://www.maxim-ic.com/appnotes.cfm...e_number/1822/ seems like on the host side the ID (pin4) needs to be connected to ground (pin5)

mutex 2007-12-09 10:17

Re: N800 USB Host Mode Experiment
 
Hi guys
Yesterday I got an usb wifi dongle working on my N800(OS2880), it's based on the RaLink rt73 chip and the driver has support for packet injection (muuhahahahaha).

My question is: how do I get around the manual loading of the rt73 kernel module? do I have to edit some configuration files or something like that?

torx 2007-12-09 10:38

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by mutex (Post 106310)
Hi guys
Yesterday I got an usb wifi dongle working on my N800(OS2880), it's based on the RaLink rt73 chip and the driver has support for packet injection (muuhahahahaha).

My question is: how do I get around the manual loading of the rt73 kernel module? do I have to edit some configuration files or something like that?

modprobe the kernel module.

torx 2007-12-09 10:40

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by gemniii42 (Post 106011)

We can request for samples.

mutex 2007-12-09 11:00

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by torx (Post 106314)
modprobe the kernel module.

Tried that and it doesn't work, error msg is: cannot parse modules.dep
Do you know the path where is should copy the kernel module to?

kotzkind 2007-12-09 11:17

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by DeeJay_XB (Post 106121)
http://www.maxim-ic.com/appnotes.cfm...e_number/1822/ seems like on the host side the ID (pin4) needs to be connected to ground (pin5)

So we just have to do that(?):

-Take n800 usb cable
-Connect pin 4 and 5 on the part connected to the n8x0. (conductive lacquer?)
-buy female A to female A adapter

lumindigo85 2007-12-09 13:10

Re: N800 USB Host Mode Experiment
 
What if I buy a Mini USB - Mini USB OTG cable and an (active) USB HUB with a Mini USB connector? Will I be able to use the devices connected to the HUB? Or do I need a HUB that support OTG?

luca 2007-12-09 13:54

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by mutex (Post 106310)
Hi guys
Yesterday I got an usb wifi dongle working on my N800(OS2880), it's based on the RaLink rt73 chip and the driver has support for packet injection (muuhahahahaha).

Interesting, I have one of those, though I never managed to get packet injection working (didn't try really hard since I have an atheros based pc card that works fine).
Does the n800 supply enough juice for it or did you have to add external power?
Can you share the compiled module or is it included in the stock kernel (I'm not on os 2008 yet)?
edit: and does it mean that there's version of aircrack-ng workin on os2008?

mutex 2007-12-09 16:10

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by luca (Post 106360)
Interesting, I have one of those, though I never managed to get packet injection working (didn't try really hard since I have an atheros based pc card that works fine).
Does the n800 supply enough juice for it or did you have to add external power?
Can you share the compiled module or is it included in the stock kernel (I'm not on os 2008 yet)?
edit: and does it mean that there's version of aircrack-ng workin on os2008?

I had to run it trough the usb-hub in my monitor, I also installed fanoush kernel where otg-whitelist was disabled, don't know if that step was needed but the system stopped *****ing about "usb hub not supported".
You will need two files, the rt73.ko kernel module and rt73.bin firmware, pm me your e-mail and I'll send you the two files.
I have not tried packet injection, but my next step will be to compile
aireplay so that I can test it.
There's a package with aircrack-ng that runs on OS2008, but aireplay-ng is not included.

EDIT: you will also need the wireless-tools package

gemniii42 2007-12-09 16:27

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by LurkerN (Post 106109)
geminiii42:
The problem with either of those cables is that one would still need another adapter piece to connect to devices. However, if it works for data, the micro-to-mini adapter is the most ideal at this point. I've only seen them described in reference to charging, though.

Why do those Micro-A cables to full-size A-plug even exist in retail? Both ends are for host devices! They serve no purpose that a (soon to be commonplace) Micro-B cable does not fulfill.

Ok how about:
http://www.cellphone-store.com/motor...ata-cable.html

"Motorola SKN6238 USB to Micro-USB Data Cable. Motorola Data Cables allows the user to connect a wireless phone to a modem, enabling access to the internet, e-mail or fax*.

DeeJay_XB 2007-12-09 17:17

Re: N800 USB Host Mode Experiment
 
I can confirm that if you connect pin4 to pin5 on n800 side it switches automaticaly to usb host mode :) just tryied that and is Working!

kotzkind 2007-12-09 18:01

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by DeeJay_XB (Post 106415)
I can confirm that if you connect pin4 to pin5 on n800 side it switches automaticaly to usb host mode :) just tryied that and is Working!

How have you connected them? Pictures would be nice.

DeeJay_XB 2007-12-09 18:37

Re: N800 USB Host Mode Experiment
 
inside the nokia n800 usb connector are little holes, i used a small wire and put it to make contact inside 4th and 5th holes!after that i plugged nokia standard usb cable and at the other end a female to female usb adapter made from 2 front panel pc female connectors!after i put my usb drive in one female usb connector my n800 displayed the usb icon and opened filemanager and showed rhe files from usb stick!

dblank 2007-12-09 18:55

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by mutex (Post 106323)
Do you know the path where is should copy the kernel module to?

insmod will work no matter where the .ko is, just run:
insmod /path/to/file.ko

penguinbait 2007-12-09 20:17

Re: N800 USB Host Mode Experiment
 
CDROM DEB, it will autoload modules when installing and during boot.

http://www.internettablettalk.com/fo...476#post106476


All times are GMT. The time now is 04:29.

vBulletin® Version 3.8.8