|
2010-05-18
, 05:20
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#882
|
yes, I did see the log message. maybe my USB A F/F adapter is broken? or my USB hub??
here's the script I used:
Code:#!/bin/sh echo 5 > /sys/module/musb_hdrc/parameters/debug echo host >/sys/devices/platform/musb_hdrc/mode sleep 1 echo H >/proc/driver/musb_hdrc cat /sys/devices/platform/musb_hdrc/mode
The Following User Says Thank You to egoshin For This Useful Post: | ||
|
2010-05-18
, 21:50
|
Posts: 306 |
Thanked: 566 times |
Joined on Jan 2010
@ Romania
|
#883
|
The Following 5 Users Say Thank You to blue_led For This Useful Post: | ||
|
2010-05-18
, 23:38
|
|
Posts: 2,222 |
Thanked: 12,651 times |
Joined on Mar 2010
@ SOL 3
|
#884
|
musb->xceiv->state = OTG_STATE_A_WAIT_VRISE;
echo host >mode
The Following 4 Users Say Thank You to joerg_rw For This Useful Post: | ||
|
2010-05-19
, 00:43
|
Posts: 306 |
Thanked: 566 times |
Joined on Jan 2010
@ Romania
|
#885
|
|
2010-05-19
, 00:56
|
|
Posts: 2,222 |
Thanked: 12,651 times |
Joined on Mar 2010
@ SOL 3
|
#886
|
musb->xceiv->state = OTG_STATE_A_WAIT_VRISE;
The Following User Says Thank You to joerg_rw For This Useful Post: | ||
|
2010-05-19
, 01:06
|
Posts: 60 |
Thanked: 144 times |
Joined on Jan 2010
@ Philadelphia
|
#887
|
The Following User Says Thank You to flailingmonkey For This Useful Post: | ||
|
2010-05-19
, 06:16
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#888
|
The Following 2 Users Say Thank You to egoshin For This Useful Post: | ||
|
2010-05-19
, 06:36
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#889
|
[*]configure PHY to host setup = 2 pulldown R instead of 1 pullup for device mode
[*]disable VBUS interrupt triggering weird state changes in OTG state machine (either by switching off the interrupt in TWL4030, or by setting the driver to a mode where it ignores this interrupt)
[*]enable PHY originated "IRQ" (this in fact is a ULPI state message I guess) for detecting attachment of peripheral devices, I.E. sense when one of the D-lines is pulled high by the peripheral's pullup R from VBUS to D(+/-)
[*]on detection of peripheral attachment, start whatever a plain vanilla host does (ENUM etc)
The Following 2 Users Say Thank You to egoshin For This Useful Post: | ||
|
2010-05-19
, 06:52
|
|
Posts: 2,222 |
Thanked: 12,651 times |
Joined on Mar 2010
@ SOL 3
|
#890
|
Friends,
We need first to set USB H/W in host mode without Host Negotiation Protocol invocation.
I tried (briefly) FORCE_HOST mode but 1707 doesn't recognize a device connect. It is needed to eliminate initial PC connection from picture. It may be:
a) incorrect pulldown - and I am reading USB protocols to find which should be used and how. 1707 or other side may not able to read correctly with incorrect pulldowns.
b) a hub is not required to support any connection-style USB protocol (i used HUB to get USB stick mounted) - it should be in constant connect mode and send a periodic updates.
I plan to repeat a FORCE_HOST mode test with external Hard Disk which may support a "connection" protocol. But I also browse through my electronic equipment which has microusb - it SHOULD support "connect" message.
EDIT: if ARM USB gets "connect" message (actually - "session started") then musb driver works - my experiment proves that!
Also I try to figure out - is "connection" signaling is needed to switch USB in a real host mode or is not - the problem is that then I used FORCE_HOST mode then the slave device doesn't react on any write or read transfer - looked like other side is dead.
Finally, a driver doesn't support ADP at all but I think with manual host mode setup it should be not an issue for us.
The Following User Says Thank You to joerg_rw For This Useful Post: | ||
Tags |
awesomeness in the works, boulevard of broken deals, host, i am the dealbreaker, inspector gadget lies, mobidapter is a scam, nokia fanbois, otg, over 9000, usb, usbcontrol |
|
here's the script I used: