Reply
Thread Tools
Guest | Posts: n/a | Thanked: 0 times | Joined on
#241
Hi I cant install h-e-n when I click to install I get a message:
Unable to install 'h-e-n (USB Hostmode GUI)' conflicting application packages.

when I click on details I got:
kernel-modules-maemo
 

The Following User Says Thank You to For This Useful Post:
Posts: 18 | Thanked: 9 times | Joined on Aug 2010
#242
Originally Posted by Estel View Post
It MAY be the same problem cheve had with mounting - being too hasty. until i learned to click "VBUST ON" 2-3 seconds after plugging cable, and "Enumerate" after another 6-7 seconds, many times i get same errors.

Also, remember to always unplug device (be it HUB, stick, mouse, whatever) from N900 before trying to start from scratch. Cable and adapter can sit on N900, but nothing can be connected to them. You can connect anything only after setting speed (then, do not exceed 3-4 seconds before You click VBUS ON, but also don't do it 0.1 second after plugging device - not too late, not too early), otherwise you get exact same errors. At least, that is in my case, always, 100% reproduceable.
Hmmm... I tried this with a new powered USB hub with my keyboard+mouse, but no luck. What's strange is that the keyboard and mouse work fine by themselves when not through a hub.

Here is dmesg output after a failed attempt and also a success with just the mouse:

Code:
[115066.722564] twl4030_usb twl4030_usb: HW_CONDITIONS 0xd0/208; link 2
[115071.094238] twl4030_usb twl4030_usb: HW_CONDITIONS 0x50/80; link 1
[115071.361694] twl4030_usb twl4030_usb: HW_CONDITIONS 0xd0/208; link 2
[115081.727203] Forced hostmode error: no device attached
[115081.727264] usb usb1: usb resume
[115081.750335] hub 1-0:1.0: hub_resume
[115081.750396] hub 1-0:1.0: port 1: status 0301 change 0001
[115081.860473] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[115081.860534] hub 1-0:1.0: port 1, status 0301, change 0000, 1.5 Mb/s
[115081.984863] usb 1-1: new low speed USB device using musb_hdrc and address 96
[115086.984893] usb 1-1: khubd timed out on ep0in len=0/64
[115088.747558] twl4030_usb twl4030_usb: HW_CONDITIONS 0x50/80; link 1
[115088.748199] regulator_disable: not in use by this consumer
[115088.748229] regulator_disable: not in use by this consumer
[115091.985260] usb 1-1: khubd timed out on ep0in len=0/64
[115092.110046] usb 1-1: device descriptor read/64, error -19
[115092.344238] usb 1-1: device descriptor read/64, error -19
[115092.516143] hub 1-0:1.0: port 1 not reset yet, waiting 50ms
[115092.578582] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115092.789581] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115093.000518] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115093.000549] hub 1-0:1.0: port_wait_reset: err = -16
[115093.000579] hub 1-0:1.0: port 1 not enabled, trying reset again...
[115093.212341] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115093.422424] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115093.633483] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115093.633514] hub 1-0:1.0: port_wait_reset: err = -16
[115093.633544] hub 1-0:1.0: port 1 not enabled, trying reset again...
[115093.844177] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115094.055572] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115094.266296] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115094.266326] hub 1-0:1.0: port_wait_reset: err = -16
[115094.266357] hub 1-0:1.0: port 1 not enabled, trying reset again...
[115094.477264] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115094.688171] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115094.899078] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115094.899139] hub 1-0:1.0: port_wait_reset: err = -16
[115094.899169] hub 1-0:1.0: port 1 not enabled, trying reset again...
[115095.110046] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115095.320892] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115095.537231] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115095.537292] hub 1-0:1.0: port_wait_reset: err = -16
[115095.537322] hub 1-0:1.0: port 1 not enabled, trying reset again...
[115095.537353] hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[115095.594207] hub 1-0:1.0: port 1 not reset yet, waiting 50ms
[115095.656707] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115095.867584] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115096.078552] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115096.078582] hub 1-0:1.0: port_wait_reset: err = -16
[115096.078582] hub 1-0:1.0: port 1 not enabled, trying reset again...
[115096.289428] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115096.500579] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115096.711334] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115096.711364] hub 1-0:1.0: port_wait_reset: err = -16
[115096.711395] hub 1-0:1.0: port 1 not enabled, trying reset again...
[115096.922393] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115097.133239] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115097.344146] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115097.344177] hub 1-0:1.0: port_wait_reset: err = -16
[115097.344207] hub 1-0:1.0: port 1 not enabled, trying reset again...
[115097.555175] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115097.766082] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115097.977264] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115097.977325] hub 1-0:1.0: port_wait_reset: err = -16
[115097.977355] hub 1-0:1.0: port 1 not enabled, trying reset again...
[115098.187988] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115098.399108] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115098.609924] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115098.609954] hub 1-0:1.0: port_wait_reset: err = -16
[115098.609985] hub 1-0:1.0: port 1 not enabled, trying reset again...
[115098.610015] hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[115098.672424] hub 1-0:1.0: port 1 not reset yet, waiting 50ms
[115098.735046] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115098.945770] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115099.156860] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115099.156890] hub 1-0:1.0: port_wait_reset: err = -16
[115099.156921] hub 1-0:1.0: port 1 not enabled, trying reset again...
[115099.367675] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115099.578765] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115099.789581] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115099.789611] hub 1-0:1.0: port_wait_reset: err = -16
[115099.789642] hub 1-0:1.0: port 1 not enabled, trying reset again...
[115100.000427] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115100.211669] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115100.422668] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115100.422698] hub 1-0:1.0: port_wait_reset: err = -16
[115100.422729] hub 1-0:1.0: port 1 not enabled, trying reset again...
[115100.633514] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115100.844360] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115101.055145] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115101.055206] hub 1-0:1.0: port_wait_reset: err = -16
[115101.055236] hub 1-0:1.0: port 1 not enabled, trying reset again...
[115101.266143] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115101.477325] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115101.688232] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[115101.688262] hub 1-0:1.0: port_wait_reset: err = -16
[115101.688293] hub 1-0:1.0: port 1 not enabled, trying reset again...
[115101.688323] hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[115101.688415] hub 1-0:1.0: unable to enumerate USB device on port 1
[115101.688476] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[115101.688537] hub 1-0:1.0: port 1 enable change, status 00000301
[115104.289550] hub 1-0:1.0: hub_suspend
[115104.289642] usb usb1: bus auto-suspend
[115105.623199] twl4030_usb twl4030_usb: HW_CONDITIONS 0xd0/208; link 2
[115110.182006] twl4030_usb twl4030_usb: HW_CONDITIONS 0x50/80; link 1
[115121.703704] slide (GPIO 71) is now open
[115172.261596] twl4030_usb twl4030_usb: HW_CONDITIONS 0xd0/208; link 2
[115173.784454] usb usb1: usb resume
[115173.805023] hub 1-0:1.0: hub_resume
[115173.805084] hub 1-0:1.0: port 1: status 0301 change 0001
[115173.914672] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[115173.914794] hub 1-0:1.0: port 1, status 0301, change 0000, 1.5 Mb/s
[115174.039611] usb 1-1: new low speed USB device using musb_hdrc and address 100
[115174.190979] usb 1-1: skipped 1 descriptor after interface
[115174.191497] usb 1-1: default language 0x0409
[115174.193450] usb 1-1: uevent
[115174.193634] usb 1-1: usb_probe_device
[115174.193695] usb 1-1: configuration #1 chosen from 1 choice
[115174.195739] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[115174.196075] usb 1-1:1.0: uevent
[115174.196350] usbhid 1-1:1.0: usb_probe_interface
[115174.196380] usbhid 1-1:1.0: usb_probe_interface - got id
[115174.213684] input: PS/2+USB Mouse as /class/input/input6
[115174.273864] generic-usb 0003:04F3:0212.0003: input: USB HID v1.11 Mouse [PS/2+USB Mouse] on usb-musb_hdrc-1/input0
[115174.274810] /home/builder1/maemo-fremantle-armel-extras-devel/work/kernel-power-2.6.28/drivers/usb/core/inode.c: creating file '100'
[115174.275512] usb 1-1: New USB device found, idVendor=04f3, idProduct=0212
[115174.275543] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[115174.275573] usb 1-1: Product: PS/2+USB Mouse
[115174.275573] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[115174.275634] hub 1-0:1.0: port 1 enable change, status 00000303
[115179.323333] twl4030_usb twl4030_usb: HW_CONDITIONS 0x50/80; link 1
[115224.234832] slide (GPIO 71) is now closed
 
Posts: 18 | Thanked: 9 times | Joined on Aug 2010
#243
Woah! I switched to "full speed" instead of "low speed" with the hub and keyboard+mouse combo and now it works! Also, switching to "full speed" instead of "high speed" seems to have fixed my sd card reader (I had been sure it was USB 2.0... guess not)
 
Posts: 18 | Thanked: 9 times | Joined on Aug 2010
#244
Originally Posted by Estel View Post
1. start hostmode as normal, select speed, vbus, enumerate, mount if You connected storage media...

2. without disabling HEN, open xterm and use:

boostoff

3. Next, do (in case that Your charging script is renamed to "charger" and put into root directory):

/charger

script will start its job... From my experience, if second output is like:

Status: 0x10 Mode: CHARGING Full: 0 WallCharger: 0 Battery Voltage: 4150 NAC: 1987 Battery level: 97 %

But, if Your second line in output after executing "/charger" is like:

Status: 0x20 Mode: STANDBY Full: 0 WallCharger: 0 Battery Voltage: 3967 NAC: 1999 Battery level: 97 %

...then you need to press ctrl+c (that will stop script and allow You to type in same terminal window again) and execute:

/charger

...again. This time You're done for sure.

Last but not least, Your question about externally-powered things, like hard disc. I suppose that you know about "y-cable" thing to charge while hostmode, OR - method that i prefer - USB 2.0 active HUB (this way You DON'T need "y-cable"). Then, if your HDD or CD/DVd is powered externally by own power supply - that doesn't matter for charging while hostmode at all. HDD use own power, and Your N900 use Y-cable power or active HUB power.
By "active hub" do you just mean a powered hub? Will any powered hub work for this? Even if I don't charge while in hostmode a powered hub should reduce the drain on my n900 battery, right?

I tried this with my powered hub earlier. Got my mouse/keyboard/sd reader all working ("full speed") and then ran boostoff. Instantly the devices stopped working. Ran the charge script, the devices still were not working. Am I doing something wrong?
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#245
Yea, active hub SHOULD mean powered HUB - I use "should" because with so much designs and sometimes, pseudo-designs, You can never be sure. anyway, in 99% powered hubs, You will also get power on line connected to N900 - not so much possibility for manufacturers to limit that, would require very complicated circuit and probably conflict with device power-on-port discovery - so N900 should charge.

It's indeed strange that Your devices stop working when You try to use charger script. Maybe Your power supply can't provide enough current to power both keyboard/mouse and N900? Its strange a little, because mouse and keyboard don't need much power.
 
Posts: 7 | Thanked: 0 times | Joined on May 2011 @ india
#246
hi techs...first of let me thank all d developers and ppl on this thread who r helping us to make h-e-n working on our charming n900...
jus becoz of this thread i was able to make use of such a grt feature hidden in n900...thanks ppl
now i ve also got some issues wid h-e-n on my device...
it reads my keyboard,mouse and my 4gb pendrive but it fails to read my 1 TB.i cant figure it out.though the light gets light up when connect to n900 but it says unable to connect no file system found....plz plz help me make it work...my hard drive(1tb) is working perfectly in my lappy...
ps. my hard drive does not require an external power..
Attached Files
File Type: txt hostmode.txt (15.5 KB, 167 views)

Last edited by vivek4ever; 2011-05-26 at 22:23.
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#247
Originally Posted by vivek4ever View Post
ps. my hard drive does not require an external power..
First of all, are You sure that in this specific case, You don't need external power supply? As it was mentioned in HEN wiki and many posts, N900 can provide only 200 mA of current, where Your laptop (or any "regular" computer" port) is capable of putting 500 mA.

Thats the case, why many power-hungry peripherals that work fine on desktop/laptop need powered hub or Y-cable on N900.

also, You may want to read cheve feedback few posts before - he succeed getting his HD to work by just slowing down mounting process (that's probably unrelated, but worth try)

---

Side note - and thats only my personal opinion - if You consider using less "luser like" shortcuts in Your posts, it would be much easy to read them.
 

The Following User Says Thank You to Estel For This Useful Post:
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#248
Originally Posted by Estel View Post
Yea, active hub SHOULD mean powered HUB - I use "should" because with so much designs and sometimes, pseudo-designs, You can never be sure. anyway, in 99% powered hubs, You will also get power on line connected to N900 - not so much possibility for manufacturers to limit that, would require very complicated circuit and probably conflict with device power-on-port discovery - so N900 should charge.

It's indeed strange that Your devices stop working when You try to use charger script. Maybe Your power supply can't provide enough current to power both keyboard/mouse and N900? Its strange a little, because mouse and keyboard don't need much power.
Sorry to have to tell you this isn't correct - most hubs separate external power from upstream port, if only by a very cheap single-diode-design (see http://freeyourphone.de/portal_v1/vi...ed1805c3#p6266 and http://people.openmoko.org/joerg/Y-Cable/USB-HUB.jpg , http://people.openmoko.org/joerg/Y-Cable/USB-HUB.txt ).
Some hubs (obviously the one in post above that estel answered is one of them) even *sense* if there's power from upstream and accordingly power up the downstream ports, even though external power to hub is applied.

Generally speaking you'll need the Y-cable between N900 and hub, not usually though between hub and peripheral.

There's a very simple test if *your* hub supplies power to upstream port: power the hub, connect *switched off* N900 to upstream port with adapter. If N900 shows any reaction (startup, LED flashing etc) then the hub delivers power to N900. Otherwise not.

cheers
jOERG
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N

Last edited by joerg_rw; 2011-05-27 at 15:51.
 

The Following User Says Thank You to joerg_rw For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#249
Again no need to sorry - it's very useful info, that you provided. I'm sorry that i provided wrong info -strange thing, that all USB 2.0 HUBS i used doesn't separate power from upstream port, i was really sure that it's common habit.

If they tend to separate it, they do it with some rationale, do they? What is the danger of using non-separating USB hub?

I encountered only one strange - amusing, but not dangerous - thing when using such a hub. It was powered by ATX power supply, that i use also to power my other things around computer, like WC (water cooling, not toilet) fan controller - using 5V to operate and 12V to power up ventilators. One time, my ATX was turned off, while HUB still connected to it and to my notebook. What was my surprise, when on notebook power-on, Fan controller also waked up - fans we're not turning, but controller itself worked. It turned out that power from my notebook flow by the upstream port of HUB and its power plug to the (powered down) ATX power supply, then, by its lines, to fan controller. I just wonder if this single-diode design can also separate-to-powerplug power, not only powerplug-to-separate - will check that.
 
Posts: 7 | Thanked: 0 times | Joined on May 2011 @ india
#250
Originally Posted by Estel View Post
First of all, are You sure that in this specific case, You don't need external power supply? As it was mentioned in HEN wiki and many posts, N900 can provide only 200 mA of current, where Your laptop (or any "regular" computer" port) is capable of putting 500 mA.


Thats the case, why many power-hungry peripherals that work fine on desktop/laptop need powered hub or Y-cable on N900.

also, You may want to read cheve feedback few posts before - he succeed getting his HD to work by just slowing down mounting process (that's probably unrelated, but worth try)




---

Side note - and thats only my personal opinion - if You consider using less "luser like" shortcuts in Your posts, it would be much easy to read them

i m preety sure it does not require external power source.i ve also tried cheve method of slow mounting but it didnt solve my problem.
what do i do now? plz go through my attachment.
do i need to use a usb hub/y connector and a usb charger to supply d deficient charge??

Last edited by vivek4ever; 2011-05-30 at 14:42.
 
Reply

Tags
awesome!, bada rox, h-e-n hostmode, more noise

Thread Tools

 
Forum Jump


All times are GMT. The time now is 02:43.