The Following 5 Users Say Thank You to pali For This Useful Post: | ||
![]() |
2012-07-29
, 01:13
|
|
Posts: 28 |
Thanked: 24 times |
Joined on Feb 2010
|
#62
|
To establish usb host mode and correct speed detection is boost needed.
So host mode with charging first activate host mode with boost and then switch to charging mode.
![]() |
2012-07-29
, 04:46
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#63
|
The Following User Says Thank You to Estel For This Useful Post: | ||
![]() |
2012-07-29
, 08:43
|
|
Posts: 28 |
Thanked: 24 times |
Joined on Feb 2010
|
#64
|
...which means You just use USB Y-cable (google for it)It's possible to buy such thing, but I would recommend DIY it.
host mode with charging first activate host mode with boost and then switch to charging mode.
The Following 3 Users Say Thank You to Helmy For This Useful Post: | ||
![]() |
2012-07-29
, 22:41
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#65
|
The Following User Says Thank You to Estel For This Useful Post: | ||
![]() |
2012-07-31
, 04:53
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#66
|
![]() |
2012-07-31
, 07:39
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#67
|
Pali, every time I edit PatternBoost to my liking, upon next start of usbmode, it forces mceledpattern to comment *out* PatternBoost, and add it again, with default settings set by You. It's very irritating, had to delete whole led-editing part of code from usbmode.sh (and check for it, 2 lines later).
Also, there is already PatternVboost, doing same thing, introduced by H-E-N since improved booston script by joerg (=since last update in -devel). This one was needed to be introduced manually, but many hostmode users have it already.
wouldn't it be good idea to check for PatternVboost (like now, script checks for PatternBoost), and if it is here, leave it alone and use - otherwise, adding PatternVboost, that will work with both USB Mode and H-E-N?
Thanks a lot in any case,
/Estel
// Edit
Pali, as for "pure" hostmode working, it's great - "automatically" enumerated my USB Hard-Drive on first try. although, when tracing dmesg output, at the same time when device is enumerated, I see "Forced hostmode error: High-speed device connected, but no high-speed mode selected".
My HD works in both full-speed and high-speed mode (most pendrives too, I think). Of course, during hostmode start, it wasn't enumerated on low-speed, and got enumerated (+blinked) only on full-speed test. Then, hostmode immediately decided "job done", and haven't started enumeration again (no more blinks on HD).
Have it changed to high-speed during-runtime, without another enumeration, or is it working in full-speed only? How can I check that, what should I search for in dmesg? How USB Mode handles devices that can work in *both* full-speed and high-speed (but, obviously, high-speed is preferable)?
Sorry for long description, but I think it's necessary to properly understand why I'm asking, and what I'm asking about
// edit 2
And another question - when it's already in hostmode and ke-recv mounted external USB disk, upon switching to peripheral, does umount automatically, or one should do it by hand, before activating periph. mode?
If it doesn't (umount automatically), maybe it would be good idea?
The Following 4 Users Say Thank You to pali For This Useful Post: | ||
![]() |
2012-07-31
, 18:46
|
|
Posts: 28 |
Thanked: 24 times |
Joined on Feb 2010
|
#68
|
![]() |
2012-07-31
, 21:30
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#69
|
And for usb disks in host mode maybe it will be really good to call umount. But problem can be how to determinate disks names (in /dev) which some from usb device (which will report lsusb)...
sda: sda1
![]() |
2012-07-31
, 22:36
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#70
|
So host mode with charging first activate host mode with boost and then switch to charging mode.