maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   N900 will not allow USB OTG! (https://talk.maemo.org/showthread.php?t=31921)

blue_led 2010-05-20 20:28

Re: N900 will not allow USB OTG!
 
afik if both data lines are low level this mean SE0 and ANY device peripheral or host ( even host ) can't use data channel.
if a peripheral is inserted into a host receptacle this is signaled by pulling d+ up so this differential "1" mean session can be started.
from peripheral POV those :R keep d- low for charger detection and d+ low for not initiate SRP because phy is MASTER on ulpi ( DIR signal is output on phy )
so all make sense

egoshin 2010-05-20 20:46

Re: N900 will not allow USB OTG!
 
Quote:

Originally Posted by blue_led (Post 668370)
afik if both data lines are low level this mean SE0 and ANY device peripheral or host ( even host ) can't use data channel.

It uses 15K Ohm resistors.

EDIT: at least it looks like.

javispedro 2010-05-20 21:38

Re: N900 will not allow USB OTG!
 
Quote:

Originally Posted by blue_led (Post 668313)
joerg you are partially wrong

Well, I think he's right. You cannot detect if a peripheral has been attached to the N900; you need to be in a "special" mode which forces the PHY to be powered, adequate pull up/downs, ....

It is theoretically feasible to be _always_ on this especial state, but I wonder about battery life...

Of course since you plan to use a self powered "docking station" you could use vbus sense for the task.

blue_led 2010-05-20 21:57

Re: N900 will not allow USB OTG!
 
Quote:

Originally Posted by javispedro (Post 668463)
Of course since you plan to use a self powered "docking station" you could use vbus sense for the task.

yes, this is my goal.
i want to differentiate attachment to pc or attacment to self powered charging capable docking station

even in manually activated host mode vbus sense can trigger without manual selection charging mode

some misunderstandings because my english knowledge is limited

Benson 2010-05-21 00:53

Re: N900 will not allow USB OTG!
 
Quote:

Originally Posted by eryx (Post 667130)
Can we use WiMax usb modem with this host mode? madwifi drivers theoretically can be easy compiled for N900.

Once host mode is working properly, yes, USB data modems of all varieties should work fine. But madwifi would have nothing to do with this -- USB data modems show up as a tty which is talked to with a modified Hayes command set.

The use of madwifi (or other wifi drivers) would be with a USB wifi stick; among benefits over the N900's wifi are 802.11a/n 5GHz band, and packet injection for aircrack-in-a-pocket. This (aircrack stuff) was done by some people on the N8x0 after OTG arrived, search about for exact details...

egoshin 2010-05-21 01:37

Re: N900 will not allow USB OTG!
 
Ha!

I found why N900 on USB-to-PC has a constant frequency 500MHz while USB cable from PC (not fast charger) is connected -

../../../arch/arm/mach-omap2/board-rx51.c:156: omap_pm_set_min_mpu_freq(dev, set ? 500000000 : 0);

... and it is called while resuming power for USB to communicate with gadget.

BLIZZARD 2010-05-21 04:37

Re: N900 will not allow USB OTG!
 
maybe try using easy debian? its a hole different os and also when i go to folder media it has mmc1, mmc2, and usb folders in it (i donts know if that helps)

eryx 2010-05-21 07:10

Re: N900 will not allow USB OTG!
 
Quote:

Originally Posted by Benson (Post 668638)
Once host mode is working properly, yes, USB data modems of all varieties should work fine. But madwifi would have nothing to do with this -- USB data modems show up as a tty which is talked to with a modified Hayes command set.

The use of madwifi (or other wifi drivers) would be with a USB wifi stick; among benefits over the N900's wifi are 802.11a/n 5GHz band, and packet injection for aircrack-in-a-pocket. This (aircrack stuff) was done by some people on the N8x0 after OTG arrived, search about for exact details...

Sorry! I mean "madwimax" driver. I try this soon.

MohammadAG 2010-05-21 07:53

Re: N900 will not allow USB OTG!
 
Quote:

Originally Posted by BLIZZARD (Post 668726)
maybe try using easy debian? its a hole different os and also when i go to folder media it has mmc1, mmc2, and usb folders in it (i donts know if that helps)

Host mode should be OS independant.

joerg_rw 2010-05-23 17:56

Re: N900 will not allow USB OTG!
 
http://mxr.maemo.org/fremantle/sourc...b_procfs.c#661

Code:

656        case 'H':
657                if (mbase) {
658                        reg = musb_readb(mbase, MUSB_DEVCTL);
659                        reg |= MUSB_DEVCTL_HR;
660                        musb_writeb(mbase, MUSB_DEVCTL, reg);
661                        /* MUSB_HST_MODE( ((struct musb*)data) ); */
662                        /* WARNING("Host Mode\n"); */
663                }
664                break;



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

vBulletin® Version 3.8.8