Sending data to usb function

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
moofasa
Posts: 7
Joined: Fri Feb 18, 2005 5:26 pm
Location: S.Korea

Sending data to usb function

Post by moofasa »

(title renamed)
I'm writting a wheel client program,
especially for Logitech Driving Force.
it works on reading data from the function.
(90% of code is from ps2mouse driver)

but I met a wall,
currently have no idea on sending feedback data to the function.
How can i use the second data endpoint to send data?
Should i configure the device in differently way?

If i'm misunderstanding something, please let me know.
thanks in advance.
Sorry, for my poor English.~
ole
Posts: 92
Joined: Sat May 08, 2004 11:14 pm
Location: Czech Republic

Post by ole »

- get the endpoint descriptor
- find out what type the endpoint is (control, bulk, isochronous etc. - it's stored in the descriptor)
- find out wheter the endpoint is Input or Output endpoint (you need output endpoint if I understand well...)
- open the endpoint
- send the data according the type of the endpoint (control transfer, bulk transfer etc).
If the endpoint is bulk type you may look into usb_mass sources (in the CVS) .
moofasa
Posts: 7
Joined: Fri Feb 18, 2005 5:26 pm
Location: S.Korea

Post by moofasa »

thank you, ole.
finally my Driving force is dancing.

and hardcore reverse engineering is remained.
Sorry, for my poor English.~
Post Reply