PORTS Forum
Ports and Interfaces => USB => Topic started by: m.alizadeh91 on August 14, 2011, 05:14:13 am
-
Hello Jan (again!!)
I was writing a code in C#.Net to access HID reports ( based on your project : generic-hid). The code was perfect for single
joy stick and receives a single report consists of some bytes for each button. After while i decided to try it with a twin joy stick.
Apparently it must be two report with different IDs, but it is just one report at each interval. How could i receive both reports?( Even i
try it with your program, but still it received just one report)
-
Did you take a look at the report descriptor of the device or are you making assumptions about the data format?
-
Actually i assumed it because i saw data format of single joy stick, so i'm pretty sure about data format.Anyway, How can i look at report descriptor?
-
in another word because data format of single joystick was just one report followed by some bytes, so certainly for twins there must be at least two data report or one data report with a larger size. but the size of report was same, so it must be two report.
-
Is it a composite device with two HID interfaces? If so, see:
http://www.lvr.com/forum/index.php?topic=416.msg1429#msg1429
Jan
-
I think so Jan.Thanks.
Cause twin joy sticks have two control that connected to PC via one USB, does mean that they have two same interface which each interface sends its own OUT reports to PC ??
sorry for bad English!!!
-
It can have two HID interfaces or a single interface with two top-level application collections.
Jan