![]() |
Re: [Announce] USB hostmode beta release
Quote:
|
Re: [Announce] USB hostmode beta release
Quote:
also check with top if filemanager is active and use cpu check if use this sequence filemanager close, unmount, some wait, vbust off, some wait, exit make any difference i don't have problems with battery |
Re: [Announce] USB hostmode beta release
It also happens with your script, and AFAIK, it's related to kernel parts of hostmode, so you probably experience it without noticing ;) My proposition wasn't of course meant to "proper" fix this issue - as your script doesn't affect kernel part - bu rather, to introduce some way of "cheating" device that charger is connected, which is ugly workaround.
Of course freemangordon amazed me again, so i think we can rest assured it'll be fixed properly ;) /Estel |
Re: [Announce] USB hostmode beta release
Quote:
|
Re: [Announce] USB hostmode beta release
I've PM'ed You few days ago, that I was still using Your special kernel build, until I realized, that I can't properly enumerate *any* USB device with it. Maybe PM was somehow "missed in action"? I got one report about my PM being supposedly redirected to /dev/null, so it may be some problem on my side.
Anyway, flashing regular kp49 back solved the issue. Still, it's possible that some hardware voodoo with cables/female-female adapter happened (despite I tried reconnecting, reboots, etc many times), and I was during long trip when this all happened, so I got limited testing possibilities. if You're absolutely sure it should work, I can flash it again and test thoroughly in my "home lab". /Estel |
Re: [Announce] USB hostmode beta release
Quote:
I'd never suggest to change that to a "you need an external power supply or it won't work". What I thought of though is displaying a notifier "if you want to use charging, plug in your power supply NOW!", then for maybe 5s detect/check if there's already 5V applied, then depending on the result either enter charging hostmode or vboost hostmode. In the specs for my never finished jrbme/hostmode script this was dealt with by parameter --power-auto (as opposed by --power-external and --power-vboost [default]). [edit] anyway note that due to speed settings need to be done with NO vbus power applied, any external power supply will be mutually exclusive to speed autodetection :-S (blue-led will know what I'm talking of, as he already implemented vboost joggling to do the speed detection)[/edit] Further related parameters were --power-notify-timeout <seconds>, with "0" meaning that user has to click on "ok" in that notifier, and there's been another specified parameter --power-manual which would open a "charging? yes/no" requester. Quite obviously any script (also) for charging hostmode needs to wait for external power to get applied before ENUM etc gets started. And once we started vboost we can't detect presence of external power anymore. Thus the above sketched scheme. :-D :-D cheers jOERG |
Re: [Announce] USB hostmode beta release
Quote:
cheers jOERG |
Re: [Announce] USB hostmode beta release
Quote:
If it would be looking like that, I'm totally supporting concept of auto-enabling charging while hostmode. /Estel |
Re: [Announce] USB hostmode beta release
2 Attachment(s)
Quote:
enable charge is an option ( manual connection of external source required ) so an button in status area menu is enough anyway i found an workaround ( hardware mod ) for ALL hostmode problems. i am glad to share with you details bq27200 have an unused GPIO pin, out mode is open drain transistor 5mA sink capable. by connecting this pin ( 9 ) to R4283 - C4280 - F4 ( isp 1707 ) node we can controll voltage applied to the usb phy. bq chip can sink all curent flowing r4283 to ground ( 5V / 1k = 5mA ) if any piece of code will program gpio pin of bq27200 as input this don't affect normal usb operation what we get ? independent source of vbus speed selection. even if external 5V is applied, permanently to n900 we can any time make speed selection by programming pin 9 of bq27200 as output and assert low this is equivalent to toggle boostoff , booston . so charging any time or boosting to 5v the bus line the job is freed of any constraint the link between 27200 and 1707 can be easily done ( no underchip conections ) |
Re: [Announce] USB hostmode beta release
Quote:
Quote:
A tip from me: if you could rather manage to pulldown the ID pin, this should work way more in the originally intended way. If you make PHY1707 send a msg "ID pin low" to musb_hdrc core, you won't need to 'abuse' test_mode for hostmode, and thus the limitation regarding switching speeds won't apply anymore. --> GENUINE OTG hostmode, without H-E-N (well almost, modulo vboost which isn't controlled by kernel anyway) Anyway, brilliant :-D Keep on hacking! cheers jOERG |
| All times are GMT. The time now is 01:28. |
vBulletin® Version 3.8.8