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)

luca 2007-12-09 23:10

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by mutex (Post 106395)
I had to run it trough the usb-hub in my monitor

Bummer, so we still don't have the ultimate mobile aircrack-ng device.
Quote:

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.
Thanks, as soon as I find the time to upgrade to 2008 I'll pm you (edit: actually I shouldn't need the firmware, since it's the same I'm using under x86, isn't it?)

locusf 2007-12-10 11:16

Re: N800 USB Host Mode Experiment
 
Is it possible to do Host-Mode using an adapter like this?
http://www.gefen.com/kvm/product.jsp?prod_id=3407

torx 2007-12-10 11:52

Re: N800 USB Host Mode Experiment
 
Alright guys. I HAVE FINALLY FOUND IT!

This is what we need:
http://www.buyextras.com/usbfemib5maa.html

I am 100% positive it is the right one.

P.S. Unfortunately for me, it ships to U.S. addresses only, so if anyone is willing to help send one over to me, do PM me.

lbattraw 2007-12-10 12:53

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by locusf (Post 106710)
Is it possible to do Host-Mode using an adapter like this?
http://www.gefen.com/kvm/product.jsp?prod_id=3407

That is precisely what I use! It's wonderful, and the only thing that could make it better is if someone came up with a cable that had a mini USB-A connector (for the n800/n810) on one end and a female A connector like the linked item has, for a direct connection. I'm quite tempted to hack a USB extension cable to replace the full size female A with a mini-male-A and add a small jack in the middle of the cable to provide 5V to power-hungry devices. I have a PSP on-the-go charger that can power something as power-intensive as a USB 30GB hard drive to plug into the connector. I'll post pictures if I get around to it.

Larry

Mara 2007-12-10 13:51

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by torx (Post 106717)
Alright guys. I HAVE FINALLY FOUND IT!

This is what we need:
http://www.buyextras.com/usbfemib5maa.html

I am 100% positive it is the right one.

P.S. Unfortunately for me, it ships to U.S. addresses only, so if anyone is willing to help send one over to me, do PM me.

I bought this last week, from ebay $0.99... Shipping was $3.75. (In fact I bought two to get one spare and save on combined shipping...)

I does work fine, but you need manually set the N800 to host mode. (Adapter does not have the ID pin configured for automatic operation (OTG).)

UPDATE: Since the other connector is 4-pin jack... it can't physically support OTG... But manual (forced) configuration works fine.

djasmith 2007-12-10 14:27

Re: N800 USB Host Mode Experiment
 
Greetings

How about one of the following solutions from Maplins ?

http://www.maplin.co.uk/Search.aspx?...L16BT&DOY=5m12

In particular the L16BT - USB A(F)-5pin(M) Adp

They have a number of gender changers there.

Your thoughts please :)

ttfn

Dave

kotzkind 2007-12-10 15:43

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by locusf (Post 106710)
Is it possible to do Host-Mode using an adapter like this?
http://www.gefen.com/kvm/product.jsp?prod_id=3407

Yes, this together with the orignal n800 cable should work. Then you have to switch to Hostmode manually.

If you want to switch automaticly to Host, you have to connect pin 4 and 5.
You can modify your cable, or modify the usb-port in the n800 (e.g. http://www.internettablettalk.com/fo...&postcount=118)

here is the end of the cable shown:
http://commons.wikimedia.org/wiki/Image:USB_AB_mini.svg


Quote:

Originally Posted by djasmith (Post 106751)
Greetings

How about one of the following solutions from Maplins ?

http://www.maplin.co.uk/Search.aspx?...L16BT&DOY=5m12

In particular the L16BT - USB A(F)-5pin(M) Adp

They have a number of gender changers there.

Your thoughts please :)

ttfn

Dave

The Problem is, that you just don't know if port 4 and 5 are connectet to each other. I haven't seen any description where it's mentioned. And if it would be one, they would call this adapter OTG adapter.


This is what we need:
http://www.abload.de/img/text103069nb.png

I only can find seperate female connectors but no male.It would be nice if someone finds male connectors somewhere to buy. Then we could make Adapters on our own that would 100% work.

torx 2007-12-10 17:16

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by Mara (Post 106741)
UPDATE: Since the other connector is 4-pin jack... it can't physically support OTG... But manual (forced) configuration works fine.

Alright alright, my bad! :D

Now let me try again.

I HAVE FINALLY FOUND THE CORRECT ONE!


http://www.twstore.com/gcusbafxm.html

It even says OTG-compatible, so I am 110% sure! :)

Anyway, it's 1 for $9.99 and 2 for $13. If you look at the info page, it says a $4 handling charge will be levied on orders under $10. So be smart and get 2 instead of 1!

ginronin 2007-12-11 07:00

Re: N800 USB Host Mode Experiment
 
NICE!!!!! I just bought an N800 (waiting for it to come on Thurs) and i got a miniUSB male to USB female adapter coming too. :D but i want to put an external HD on it so i can put all my vids and music on a 120GB HD and carry it with my N800.

I found the WD Passport ( http://www.westerndigital.com/en/pro...sp?DriveID=262 ) I want to get it and it doesn't need external power and it runs at 5400RPM but my question is will it be fast enough to play all my music and vids off with out any slow down?

dblank 2007-12-11 07:43

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by ginronin (Post 107063)
I found the WD Passport ( http://www.westerndigital.com/en/pro...sp?DriveID=262 ) I want to get it and it doesn't need external power and it runs at 5400RPM but my question is will it be fast enough to play all my music and vids off with out any slow down?

It might not need external power when connected to a desktop or laptop, but almost certainly will on the N800, which supplies a maximum of 200mA vs 500mA of a desktop/laptop.

Speed shouldn't be a problem, but power will.

TheGogmagog 2007-12-11 15:42

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by Mara (Post 106741)
I does work fine, but you need manually set the N800 to host mode. (Adapter does not have the ID pin configured for automatic operation (OTG).)

UPDATE: Since the other connector is 4-pin jack... it can't physically support OTG... But manual (forced) configuration works fine.

Can someone add the forced instructions to the wiki? This would be good for those using a plain gender bender and those of us not willing/able to ground the x pin.

I have a cable that physically lets me connect a USB flash drive, but it doesn't auto-register in file manager. I'm not sure what to do at this point. I've tried two things with no success, the commands wern't recognized (I did gainroot, I think). Can it be done without gaining root or red-pill mode?

DeeJay_XB 2007-12-11 17:27

Re: N800 USB Host Mode Experiment
 
ok i can confirm that usb pc keyboard is working perfect!can even use alt-tab to switch widows or f6 f7 f8 to full screen mode or zoom in/out ! how about a usb mouse? i've pluggd in a usb mouse but it doesn't do anything... maybe there needs to be a driver implemented to make the mouse work... please someone make a usb mouse work too :) PS: this things are witten with my full sized usb keyboard :D

djs_tx 2007-12-11 18:20

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by torx (Post 106791)
Alright alright, my bad! :D

Now let me try again.

I HAVE FINALLY FOUND THE CORRECT ONE!


http://www.twstore.com/gcusbafxm.html

It even says OTG-compatible, so I am 110% sure! :)

Anyway, it's 1 for $9.99 and 2 for $13. If you look at the info page, it says a $4 handling charge will be levied on orders under $10. So be smart and get 2 instead of 1!

I'd still test it before you post "110% sure". I'm not sure that "OTG compatible" is the same as "will induce OTG mode in an N800".

OTG compatible to me just means the pins are routed correctly to plug a slave device into a OTG compatible slot.

I don't think OTG compatible means "pins 4 and 5 are tied together so that the OTG chipset on the N800 will auto switch to host mode"

I'm looking at buying some connectors from Molex and building my own setup.

David

Mara 2007-12-11 18:24

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by DeeJay_XB (Post 107223)
ok i can confirm that usb pc keyboard is working perfect!can even use alt-tab to switch widows or f6 f7 f8 to full screen mode or zoom in/out ! how about a usb mouse? i've pluggd in a usb mouse but it doesn't do anything... maybe there needs to be a driver implemented to make the mouse work... please someone make a usb mouse work too :) PS: this things are witten with my full sized usb keyboard :D

Can you tell what brand/type keyboard are you using?

The reason I'm asking, that you might have found a very low power consuming keyboard. Earlier reports about USB keyboards I have seen before complain about dropped characters, etc... which is likely due to insufficient current supply from N800.

If you look at dmesg logs, how much it says you still have current budget left?

Benson 2007-12-11 18:51

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by djs_tx (Post 107239)
OTG compatible to me just means the pins are routed correctly to plug a slave device into a OTG compatible slot.

I don't think OTG compatible means "pins 4 and 5 are tied together so that the OTG chipset on the N800 will auto switch to host mode"

As I understand it, OTG compliant would mean that it works right. Of course, compatible can either mean "works" or "can be persuaded to work"; as this connector is not permitted for truly compliant cables (you're supposed to use the micro connector like on the N810), one that's right would have to be merely compatible, and one that's "close enough" would probably still say it.
But I'd be 90% certain it's good, and if not, it's still a cable.:)

sjgadsby 2007-12-11 18:55

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by torx (Post 106791)
I HAVE FINALLY FOUND THE CORRECT ONE!


http://www.twstore.com/gcusbafxm.html

It even says OTG-compatible, so I am 110% sure!

I bought two of those from Tech World Store a month or two ago in anticipation of the USB OTG support in OS2008. I had hoped that they were wired up correctly to let OS2008's automagic mode switching work. They aren't.

endzeit 2007-12-11 22:35

Re: N800 USB Host Mode Experiment
 
Any news on using a wifi usb stick with packet injection on the N800? (:

tarkness 2007-12-11 23:57

Re: N800 USB Host Mode Experiment
 
n800-IT-OS-2008 with self-built none OTG cable:

i`m using an logitech full sized keyboard without external power (without any dropped characters and even the right leds switch on if you press LOCK-buttons; num-block, F-keys, ctrl, super-/windows-key and "right-click-key" are working fine, too)

a friends mp3-player and a digi-cam (both self-powered) also auto-mounted and filemanager popped up to show the files

i need a POWERED usb hub for:
-a card reader (CF and MMC cards mount fine, transfers real fast and even filemanager pops up and shows the files.. other cards not tested)
-another keyboard (i think it`s from hama) with integrated usb 2x hub; disassembled it and found out that the usb-hub-ports are mounted on a little board where some other keys (play, stopp, volume +/-) are mounted.. i assume that this board/keys/hub-ports need too much power to run without powersupply

now it`s even more fun with the ITs ;) :D

endzeit 2007-12-12 00:04

Re: N800 USB Host Mode Experiment
 
Are there any portable and powered usb hubs?
(would be lovely if working with standard batteries)

Johnx 2007-12-12 00:52

Re: N800 USB Host Mode Experiment
 
I've used the CyberPower 420MP battery powered usb hub on my Zaurus C1000's USB OTG port. It runs on 4 included rechargeable AAA batteries and can also be plugged into AC to charge with a *not* included AC adapter. It can also charge from a desktop's USB port.The bad news: It's not powerful enough to spin-up a 1.8" USB hard drive. It's really close but even if it worked I'd be worried about it running out of juice during file transfers. It *is* powerful enough to run a USB flash memory stick that the Zaurus refused to work with when it was directly plugged in. Anyways, I guess it's buyer beware, but it only costs ~$20.

-John

petergunn 2007-12-12 03:03

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by endzeit (Post 107449)
Are there any portable and powered usb hubs?
(would be lovely if working with standard batteries)

Cyberpower CP-H420MP is a self powered HUB that uses 4xAAA rechargeables (will recharge itself if you plug it into a powered USB port).

However I don't have one and reviews on Amazon aren't great - but for $23 with free ship I might pick one up anyway. Batteries are extra if you don't already have some.

DeeJay_XB 2007-12-12 05:39

Re: N800 USB Host Mode Experiment
 
i'm using a genius usb full sized keyboard!now i plan to buy a a4tech mini usb keyboard

torx 2007-12-12 05:43

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by sjgadsby (Post 107260)
I bought two of those from Tech World Store a month or two ago in anticipation of the USB OTG support in OS2008. I had hoped that they were wired up correctly to let OS2008's automagic mode switching work. They aren't.

Aww, so what the hell now?

Can't wait to try out usb OTG.

pixelseventy2 2007-12-12 10:43

Re: N800 USB Host Mode Experiment
 
for any UK readers, aldi have roll-up usb keyboards for £6.99. I've not tried mine with the n800 yet, as I need to make/buy an adapter cable, but I see no reason why it won't as it's a standard HCI keyboard

skinny 2007-12-12 11:04

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by DeeJay_XB (Post 107545)
i'm using a genius usb full sized keyboard!now i plan to buy a a4tech mini usb keyboard

Hi DeeJay

Are you using an OTG cable (auto switching to host mode) or just a regular A-to-mini-B adapter (manual switching to host mode).

I'm just trying to clarify the differences between your working setup and my not-so-working one.

linuxrebel 2007-12-12 11:29

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by pixelseventy2 (Post 107608)
for any UK readers, aldi have roll-up usb keyboards for £6.99. I've not tried mine with the n800 yet, as I need to make/buy an adapter cable, but I see no reason why it won't as it's a standard HCI keyboard

I've got one of the role-ups from USLogic. Works fine. I just used a female to female adapter connected the two USB cables and it works.

tarkness 2007-12-12 13:12

Re: N800 USB Host Mode Experiment
 
http://www.conrad.de/goto.php?artikel=982411

hm :D if i would have 100€ now, i would build the driver and try it^^ but there aren`t any linux drivers out i think ..
unfortunatelly :D

BOFH 2007-12-12 14:01

Re: N800 USB Host Mode Experiment
 
Can somebody with a Dev box compile injection enabled RT73 drivers for me?

I want to test out my Wireless USB NIC with Kismet & AirCrack-NG ;

http://www.internettablettalk.com/fo...ad.php?t=13067

BOFH 2007-12-12 15:30

Re: N800 USB Host Mode Experiment
 
Hehe,

I think this would make a good USB Hub for the N8x0 :

http://cache.gizmodo.com/assets/2006/06/usb_hub_01.jpg

dan67sf 2007-12-12 15:31

Re: N800 USB Host Mode Experiment
 
This may have been mention already but here is another small keyboard, SOLIDTEK 4"X9" Super Mini USB Keyboard. I use it with my Samsung Q1U EL, but I hope to try it on the my N800 tonight.

DeeJay_XB 2007-12-12 15:46

Re: N800 USB Host Mode Experiment
 
@skinny - i'm using an otg cable (mini B to male A) and 2 usb female connectors for female to female connection!
the usb otg cable is made by simply connecting pin 4 to pin 5 on the n800 side!

gsagers 2007-12-12 15:52

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by pixelseventy2 (Post 107608)
for any UK readers, aldi have roll-up usb keyboards for £6.99. I've not tried mine with the n800 yet, as I need to make/buy an adapter cable, but I see no reason why it won't as it's a standard HCI keyboard

They have 'em in the US, also, for about $15. Last saw them about a month ago, and haven't tried them with the N800.

BOFH 2007-12-12 15:53

Re: N800 USB Host Mode Experiment
 
Anybody looking for Tech details on OTG ;

http://media.maxim-ic.com/images/app.../1822Fig01.gif

http://www.maxim-ic.com/appnotes.cfm...e_number/1822/

endzeit 2007-12-12 16:04

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by petergunn (Post 107499)
Cyberpower CP-H420MP is a self powered HUB that uses 4xAAA rechargeables (will recharge itself if you plug it into a powered USB port).

However I don't have one and reviews on Amazon aren't great - but for $23 with free ship I might pick one up anyway. Batteries are extra if you don't already have some.

thanks, but unfortunately it seems that i can't buy them in germany.
hm maybe i could import them from the US. :D

however, that hub should provide enough power for a wifi usb stick w/ packet injection
(next step: world domination with the ultimate portable aircrack device! :cool:)

skinny 2007-12-12 16:52

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by DeeJay_XB (Post 107723)
@skinny - i'm using an otg cable (mini B to male A) and 2 usb female connectors for female to female connection!
the usb otg cable is made by simply connecting pin 4 to pin 5 on the n800 side!

Thanks DeeJay

I was hoping you'd managed to get it working without an OTG cable, but nevermind... I can't imagine the OTG-ness of the connection would affect my problem (dropping characters) anyway.

skinny 2007-12-12 16:57

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by dan67sf (Post 107719)
This may have been mention already but here is another small keyboard, SOLIDTEK 4"X9" Super Mini USB Keyboard. I use it with my Samsung Q1U EL, but I hope to try it on the my N800 tonight.

That keyboard looks like a different branding of the KeySonic Nano... which I can't get working... dropping characters :(

Hope you have better luck!

DeeJay_XB 2007-12-12 17:08

Re: N800 USB Host Mode Experiment
 
any ideea how to make usb mouse to work?!?!

gsagers 2007-12-12 17:40

Re: N800 USB Host Mode Experiment
 
There's a known bug regarding mice that has been classified as WONT_FIX by Nokia on Bugzilla. I don't have a specific reference, but if you search for bluetooth mouse, you'll find references to it.

I must say though, it would be nice to be able to at least pipe it through to applications like rdesktop/vnc, even if it didn't work on the N800.

TheGogmagog 2007-12-12 19:34

Re: N800 USB Host Mode Experiment
 
How to manually set the N800 with OS2008 to host mode.
For use with typical or non-OTG connections. For example the USB cable that ships with the N800 combined with a Female A to A gender Bender.

1. Download becomeroot
http://eko.one.pl/maemo/dists/mistra....1-2_armel.deb
2. Open Xterm and type:
2.a. sudo gainroot
2.b. echo host> /sys/devices/platform/musb_hdrc/mode
-You will see a 'USB device not Supported' message, then it will work.
-Inserting a USB drive opened File Manager to the new drive.
-Insufficient power will cause some keyboards/mice to perform erratically.
3. To set N800 back to OTG mode, do:
3.a. echo otg > /sys/devices/platform/musb_hdrc/mode

Hint: Copy/Paste /sys/devices/platform/musb_hdrc/mode or Just use tab-completion. Type /sys/de <tab>/pla <tab>/mu <tab> and it will autocomplete the command line for you. (yoinked from below, thanks)
---------------------------------------
I am about to add the above to Wiki. Any Comments? I dropped the 'if otg mode doesn't take' since I tested it on mine and it went back to otg mode without problem.
**Ponders**
How to flash N800 using N800 instructions? (just joking)
Will the N800 charge via USB in host mode? Would that allow you overcharge the battery causing the famous Nokia Battery explosion? I tried it momentarily and the battery icon does not indicate charging.
I will test a mouse ported through a powered USB hub in a few hours.

gsagers 2007-12-12 20:25

Re: N800 USB Host Mode Experiment
 
Quote:

Originally Posted by TheGogmagog (Post 107859)
Hint: Copy/Paste /sys/devices/platform/musb_hdrc/mode since stylus board doesn't have _ , and thumboard inserts extra characters.

I agree, copy/paste is always nicer than typing, but there's two other ways around this.
1. The symbols section of the stylus board has the underscore (and the pipe character, which can be hard to find otherwise)
2. Just use tab-completion. Type /sys/de <tab>/pla <tab>/mu <tab> and it will autocomplete the command line for you. Invaluable, even if it's not as smart as the bash-completion package.:)


All times are GMT. The time now is 05:49.

vBulletin® Version 3.8.8