![]() |
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
BTW I believe the schematic wiki page is incorrect - the id pin apparently is connected to the twl4030 and generates an interrupt. Otherwise the usb state machine would not be moved to the a_idle state when the id pin is grounded and linkstat in /sys wouldn't say idpin. But I can't edit the page.
|
Re: N900 will not allow USB OTG!
Quote:
Quote:
Quote:
jOERG |
Re: N900 will not allow USB OTG!
Quote:
Quote:
Quote:
It works just fine. |
Re: N900 will not allow USB OTG!
Quote:
I think host mode is possible with the N900. I just highly doubt it will be "elegant" to use it. I dearly hope I'm wrong. I think that a custom kernel and a special cable isn't too ugly a solution... Maybe a special hand-held battery-powered hub that handles the hardware side of things... That would be fine, too... |
Re: N900 will not allow USB OTG!
Quote:
Quote:
Quote:
jOERG |
Re: N900 will not allow USB OTG!
1 Attachment(s)
hey, guys, we are talking too much about charge pump !
We don't neet it, bellow i'll explain why ! 1. An regular PC drive vbus with 5 volt ALL THE TIME so any peripherial stick, external drive, scanner, any junk usb device can work in that configuration, switching vbus is absolutely not mandatory to usb to work. it is switching on portable devices ONLY to conserve battery power and charge pump is necessary only because batt deliver only 3.7 v. final conclusion : we don't need switch vbus on n900. we can use a hacked cable with data lines coming from n900 and 5v from power adapter ( this config , device is called Accessory Power Adapter and i can porvide a link to some specs). N900 can charge battery when it is in host mode ( usb standard ALLOW this !! ) . charging circuits are INDEPENDENT from usb electronics and limitation, protection it is only at software level. nobody on earth can tell why n900 can't charge during communicating on host mode to any device. let stop this discussion. 2. discussions about vbus going to twl 4030 .. useless reason : acording twl internals this chip is doing monitorind of vbus for detecting valid state vbus. if n900 is in charge mode on vbus 5v is present and we assume 5v is alive and kicking so we can change host mode any time we want. monitoring vbus make sense for interrupts to wake up some daemons on usb software but we want to switch host mode manualy we need only drvvbus=false and nothing else THE LIMITATIONS ARE AT SOFTWARE LEVEL ( to be continued ) i try switch host mode but i have no success, digging in source code i can't find one f... byte of code performing even otg mode. until now starting coding for n900 ... another head desease |
Re: N900 will not allow USB OTG!
Quote:
I'm well aware we could have hostmode without chargepump, and the kernel drivers for usb hostmode are missing. Nevertheless having a correct VBUS provided by N900 will help a lot, as nobody wants to carry an additional battery powered 5V power supply with him all the time, to occasionally connect a device to N900. So I don't think we are talking about that 'too much'. Maybe we are talking about switching the PHY chip to hostmode (switch between 2k2 pullup and 2 * 15k pulldown) too little. And of course the main obstacle are the missing hostmode kernel drivers for now. jOERG |
Re: N900 will not allow USB OTG!
Quote:
good luck |
Re: N900 will not allow USB OTG!
@geohsia: try search for 'cf adapter' at the 'evil-bay'
|
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
I'm trying to follow these exciting technical developments in manually enabling host mode (compared to the logic involved in OTG detection). For the hostmode kernel drivers, would these not be available from TI, since the components are designed to work in OTG?
Hopefully closer inspection can soon reveal if the necessary capacitor exists or not! But if all these stars align, would this mean host mode without crazy cables and other hardware hacks? In other words, would the micro-b receptacle be a non-issue with working chargepump, twiddling the right registers and hostmode kernel drivers? |
Re: N900 will not allow USB OTG!
Quote:
The most crazy thing you need is a USB-A-FtoF adapter then jOERG |
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
[QUOTE=qole;575494I dearly hope I'm wrong. I think that a custom kernel and a special cable isn't too ugly a solution... Maybe a special hand-held battery-powered hub that handles the hardware side of things... That would be fine, too...[/QUOTE]
Here's the thing. My HDD is battery powered so does not need power to the USB. In my case I should be able to just use the regular cable. Hopefully. |
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
This is what I used but I don't know if it is related to this thread. |
Re: N900 will not allow USB OTG!
Quote:
At least this is what I was hoping for when I started the MRAWViewer project, before knowing that N900 lacked USB host mode! |
Re: N900 will not allow USB OTG!
Quote:
Say, can one connect USB DVB-T dongle through this, and it would work if N900 just had drivers? |
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
I still have my fingers crossed we can get USB OTG working though. |
Re: N900 will not allow USB OTG!
Quote:
jOERG |
Re: N900 will not allow USB OTG!
Quote:
Is it beyond the realms of writing a software interface that pretends the n900 is in "host" mode and then connect a device to the USB port? You start the software then tell it what you are connecting (e.g. keyboard or camera), plug the device in, click the "connected" button on the widget and then process the received data accordingly? This is obviously grossly simplified - I imagine custom kernel and USB modules would be needed but surely something like this is possible? |
Re: N900 will not allow USB OTG!
While doing this http://people.openmoko.org/joerg/n900/ I was able to identify N1140 USB Battery Charger chip as bq24150a -> http://www.ti.com/lit/gpn/bq24150. In this datasheet it's stated:
""To support USB OTG device, bq24150/1 provides VBUS (approximately 5.05 V) by boosting the battery voltage."" :D So if PMU GAIA really misses this charge pump capacitor, maybe that's because we actually don't need it, and it's been Nokia's idea to use bq24150 for this. Edit:: Nota bene this perfectly solves the "perpetuum mobile" problem - switching battery charger to VBUS-supply mode implies N900 will not start to charge from own powersupply cheers jOERG result: http://talk.maemo.org/showthread.php...339#post649339 |
Re: N900 will not allow USB OTG!
is it still not possible?
i mean usb host |
Re: N900 will not allow USB OTG!
You would hear if it was. It'd be pretty big news.
|
Re: N900 will not allow USB OTG!
N1140 ( bq24150a ) USB Battery Charger chip pin D4 ( OTG [ input ] ) is hardwired to D4280 ( ISP1707 ) pin F2 [ CHRG_DET ]
according to cips specifications, isp1707 signaling external power ( charger attached ) on vbus and BQ24150 receiving this signal will start boost vbus !!! when external power is applied ?!! this is a MONUMENTAL stupidity ..... or a smart idea but having bad implementation . the signal should be negated . if is not power on vbus you ( bq chip ) can boost vbus :D this hardwired signal should act as a protection -> if power is applied, don't boost vbus by mistake. a regular host device put power on vbus all the time like any computer so if exist power on vbus from external charger ( accessory charger adapter ) a device attached to n900 will use that, else BQ chip will put power on vbus . host mode limitation is software based |
Re: N900 will not allow USB OTG!
After reading bq24150 sheet last week I thought a bq24150 not under software control would start charging if there's power on vbus and OTG goes to 1.
|
Re: N900 will not allow USB OTG!
Quote:
OTG = Boost mode enable control or input current limiting selection pin. When OTG is in active status, bq24150/1 is forced to operate in boost mode. It has higher priority over I2C control and can be OTG D4 I disabled through control register. The logic voltage level at OTG active status can also be controlled. At POR, the OTG pin is default to be used as the input current limiting selection pin. When OTG = High, Iin – limit = 500mA and when OTG = Low, Iin – limit = 100mA, see the Control Register for details. so otg = chgr_det = 1 >> boost on charge , stupid otg = chgr_det = 0 >> no power , no boost , no host ( 3N :mad: ) how hell actually charging is made ? probably isp1707 is disabled by software and through 100k ( R4281 ) resistor otg=low resulting charging is enabled really, really stupid choice. quick and dirty and overall wrong |
Re: N900 will not allow USB OTG!
Quote:
BTW I'm not sure 1707 does assert CHRG_DET on sensing voltage on VBUS. For sure this would be kinda stupid, aiui the purpose of the CHRG_DET->OTG connection is like that: 1707 detects charger by sensing D+/- short, asserts CHRG_DET, 24150 switches to 500mA charge mode |
Re: N900 will not allow USB OTG!
isp1707 & bq2415x marriage ...passing the original thought
isp1707 perform automatic charger detection if ( CHGR_det_EN_N is true ) and because this pin is tied to ground on n900 the isp1707 chip perform this detection and assert 1 to CHGR_DET pin what BQ chip is doing with this ? well some things happen when an charger is connected 1) charger is connected and vbus rise to 5v 2) isp1707 perform charger detection and assert CHGR_DET = true AFTER t_chgr_det_dbnc time ( 25-113 ms ) bq asic start charging with initial current 100 mA 3) IF isp1707 detect low power charger ( hub 100/ 500 mA or computer 500 mA ) and will NOT assert CHGR_DET true leaving bq chip to charge battery with 100 mA. some reports are on forum saying charging from a hub take long time so here is the reason ( i can say more here ) IF isp1707 detect high power charger ( D+ and D- shorted ) will assert CHGR_DET = true and BQ chip switch high power mode ( 500 mA - 1250 mA ) until now all ok ! but ... if no charger is attached and sometimes we are blessed with host mode BQ chip start boost mode applyng 5v on vbus in two situation 1) otg pin function is activated but nobody is there to drive to true level 2) otg pin function is deactivated and (OPA_MODE=1 & HZ_Mode=0 ) is true until now ok for me . a unwanted situation can be achieved when otg pin function is activated and a charger is attached: BQ chip start boost and depending wich source have higher voltage some current flow to other ( vbus > vcharger 200mA flow or vcharger > vbus nothing happen, Bq chip stop injecting power ), disconecting charger will lead to a looked loop BQ chip power the bus and isp chip detect vbus and asserting CHGR_DET sustain boost by BQ chip until battery is exhausted, because otg pin take precedence over i2c, there is no way to stop this situation. some hardware logic missing here. this can be the reason why nokia not implement host mode ? there is no need to get vbus from isp chip or twl5030 and all configs of asics seems it can be made by software i think we can get host mode sometimes. We can check if BQ can drive vbus to 5V by writing an driver and using i2c bus we can activate boost function. anybody already started programming ? :D late edit: don't shoot me joerg_rw ! now, finally, I read what you wrote better. ( non english speaker here :o ) |
Re: N900 will not allow USB OTG!
Quote:
Quote:
In 32 second mode, when the OTG pin is in active status or the bit of operation mode (OPA_MODE) at control register is set to 1, the bq24150/1 operates in boost mode and delivers the power to VBUS from the battery. and At the beginning of boost operation, the bq24150/1 starts a 32-second timer that can be reset by host through I2C interface. Writing "1" to reset bit of TMR_RST in the control register resets the 32-second timer and TMR_RST is automatically set to "0" after the 32-second timer is reset. To keep in boost mode, the host must reset the 32-second timer repeatedly. Once the 32-second timer expires, the bq24150/1 turns off the boost converter, enunciate the fault pulse in STAT pin and set fault status bits in status register. Fault condition is cleared by POR or host control. Quote:
So I don't yet see any reason beyond OTG compliance issues with USB-cert-authority for Nokia to not offer HOST MODE |
Re: N900 will not allow USB OTG!
shame on me i forgot the timer
it is so hard tickling this timer for not implement host mode ? i don't think so . |
USB to N900
Can I connect USB or external hard directly to the N900?
|
Re: USB to N900
|
Re: USB to N900
"No"watch out for your peeeeople
|
Re: N900 will not allow USB OTG!
The thread "USB to N900" with three posts has been merged into this thread.
|
| All times are GMT. The time now is 15:09. |
vBulletin® Version 3.8.8