Author Topic: Twin joy Sticks Reports!!!  (Read 9178 times)

m.alizadeh91

  • Member
  • ***
  • Posts: 17
Twin joy Sticks Reports!!!
« 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)

Guido Koerber

  • Frequent Contributor
  • ****
  • Posts: 72
Re: Twin joy Sticks Reports!!!
« Reply #1 on: August 14, 2011, 09:23:50 am »
Did you take a look at the report descriptor of the device or are you making assumptions about the data format?

m.alizadeh91

  • Member
  • ***
  • Posts: 17
Re: Twin joy Sticks Reports!!!
« Reply #2 on: August 14, 2011, 09:32:26 am »
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?

m.alizadeh91

  • Member
  • ***
  • Posts: 17
Re: Twin joy Sticks Reports!!!
« Reply #3 on: August 14, 2011, 09:35:58 am »
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.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Twin joy Sticks Reports!!!
« Reply #4 on: August 14, 2011, 11:51:09 am »
Is it a composite device with two HID interfaces? If so, see:

http://www.lvr.com/forum/index.php?topic=416.msg1429#msg1429



Jan

m.alizadeh91

  • Member
  • ***
  • Posts: 17
Re: Twin joy Sticks Reports!!!
« Reply #5 on: August 14, 2011, 02:36:31 pm »
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!!!

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Twin joy Sticks Reports!!!
« Reply #6 on: August 14, 2011, 10:15:18 pm »
It can have two HID interfaces or a single interface with two top-level application collections.

Jan