This is my first post in this Forum, so first of all: Hi TinyClr Community
In the last weeks i was playing around with my FEZSpider, trying to create a simulation of a PS3 controller, so i can control my PS3 with the touchpad.
Please do not ask why iam doing thisā¦ itās ā¦ just be cause i can
I figured out most of the usb-descriptor-issues and finally made my device be accepted as ps3 controller on a PC (so far so good, yay!)
Now when i connect to my PS3, the communication stops at some point (i got a blinky LED telling me when data was written to the usb-stream).
After some more searching (aka. googleing) i found out that there might be calls to the endpoint zero/setup channel of my usb-client which im not answering correctly.
Now whatever i do or try, even though opening a stream on endpoint 0 will succeed, cannot read any data from it at any time.
The essence of what im doing is:
on power up: create a usb stream on ep 0/0
wait/poll for ārunningā state.
start a thread trying to poll data from the stream
Does anyone of you have a piece of code, where he utilizes the zero-endpoint and receive data from the host?
Im using a FEZ-Spider.
Neither Microsoft.SPOTā¦Usb nor GHIā¦Usb libs work
A lot of us here do things because they are cool No other good reasons.
Unfortunately, EP0 is for control and so it is handled by the NETMF core. I am not sure if there is a way around this without major changes on the design. In worst case, I would post this request on NETMF codeplex.
EP0 is used for the debugging interface. Itās a shame the FEZ Spider isnāt open source ā this would be a relatively easy thing to change in the firmware.
One thing I forgot to mention is, that Iām starting the spider in serial-debugger mode, so the spider itself shouldnāt really need the USB client for anything else than provide power.
Iām really wondering Noone ever needed to make use of control signals sent to the device. Can the default devices that are implemented live without these?
I found the codeplex page, but im actually not sure where to post a question like this.
Also I checked out the current NETFM sources, but couldnt even find the code whre EP 0 is handled.
If someone could give me a hint i might be able to patch and compile them on my own.