![]() |
Re: N900 will not allow USB OTG!
Quote:
Slightly off topic, and a bit dangerous (cause of NOLO), but does anyone have 2 N900s to try flashing the other using the on board flasher? (or if flasher-3.5 works for the N8x0 then someone with an N8x0 could try connecting the device to the N900 and running flasher (flasher, not flasher-3.5)) |
Re: N900 will not allow USB OTG!
Odd and a bit off-topic, but why when I tried scrolling back a few pages in this thread I ended up being in http://forum.internettablettalk.com, and not http://talk.maemo.org? odd stuff... Did they change the domain? because if I replace the internettablettalk address with the talk.maemo address, I still get the exact same thread.
|
Re: N900 will not allow USB OTG!
Quote:
Back on topic... |
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
Quite obviously attachment of a device to N900 can not be detected unless N900 is in hostmode. So any popup requester offering a hostmode option ("host ( docking station )") is rather nonsense. The whole hassle about VBUS-supply from N900 is just because we are not in a clean plain hostmode, and tricking the OTG statemachine from B-state into A-state includes a rather complex negotiation scheme about which of both OTG devices supposed to form the session is responsible now for providing VBUS power (if any of both) - so the OTG statemachine has quite a number of useless and partially nonfunctional tests like OTG_STATE-A_VBUS_RISE etc pp (exact names may differ), and we need to do a lot of messing around with VBUS supply to make these useless tests succeed. For a plain vanilla correctly implemented hostmode, all those tests are moot and should be disabled. and again what I believe will become my mantra and signature for the next few dozen posts: We need to put "echo host >mode" to work, we need to switch PHY chip to host config which is 2* pulldown R. |
Re: N900 will not allow USB OTG!
I can now successfully mount my USB stick and here is how I did it:
Warning: only for experts!! It may damage your USB device. This not the real hostmode. It is an unstable hack to get some debug information. 1. install the kernel from (removed. insiders know where to find it) (contains MohammadAG patch and hcm's i2c debug patch) 2. boot and connect N900 via USB cable to PC, select PC suite mode 3. execute the script http://maemory.com/N900/kernel/usb/usb 4. connect your stick via USB F/F adapter to N900, wait a moment The resulting syslog excerpt is here http://maemory.com/N900/kernel/usb/syslog.gz for this I enabled USB debugging 5 before connecting to PC, so that we know what the driver does when switching to peripheral mode. |
Re: N900 will not allow USB OTG!
1 Attachment(s)
now, I have logged the I2C communication to BQ24150 for a whole charge-discharge-cycle.
I deleted lots of unnecessary lines from the logfile, but kept some stuff which is not directly related to i2c. All i2c entries are just to device 0x6b (ensured by if-statement in the kernel sourcefile, logging all i2c-messages would be way too much to analyze) I found out the following times which might be interesting: - 00:29:07 started charging - 02:16:23 battery is full (after that: sometimes charging, sometimes not => patented battery management :) ) - 09:07:11 unplugged charger - 19:28:19 shutdown because of empty battery the whole day, nothing was plugged into the usb port (I only played lots of videos to discharge the battery quickly ;) ) attached you find an image from batterygraph showing the charge/discharge. the log is too large, therefor its here (2,5MB) |
Re: N900 will not allow USB OTG!
Quote:
Note that I'm not sure what I'm talking about when I say "powered down." It might be low power ulpi protocol, it might be really powered down (but 1707 is connected to vbat?), ... |
Re: N900 will not allow USB OTG!
Quote:
BUT i want a docking station with 7 usb A receptacle capable to power N900 while is in host mode . I want charge battery because the charging hardware is independent from usb controller i can write a module doing what i want as appendices to a n900 in plain host mode with all vbus code removed i don't give up on this as a proof of concept i post a picture with a ACA with mini A receptacles for data and charger . this device can power and charge a device while this device is in plain host . in fact i don't know if this board can handle otg voltages & states and i don't care 2 month ago i tried on n900 this adapter but F..bme was in place http://talk.maemo.org/showpost.php?p...5&postcount=17 |
Re: N900 will not allow USB OTG!
Quote:
ID PULLUP may be missed sometime but DM and DP are pulldowned. |
All times are GMT. The time now is 05:50. |
vBulletin® Version 3.8.8