Click here to Skip to main content
11,576,354 members (59,623 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB VB.NET USB Parser
Hello ~
I've been studying a bit these days this really great library which is mcHID.dll (using this template in visual basic http://helmpcb.com/software/usb-hid-template-for-visual-basic-2005)

Actually i'm testing with different usb devices, and mainly joystick, and other exotic devices.
I'm just trying to build some custom software to use all of this in my way (i.e experimenting)

In the example of the joystick, i could get, VID, PID, etc... in order to connect and get the data
I also got its USB HID descriptor (like the one explained on this page http://helmpcb.com/electronics/usb-joystick)

I can connect to the device and get the value of BufferIn(0), BufferIn(1), etc...
But how to convert this data into the real value ?

Indeed how this : 00-BB-76-7F-8D-82-7C-35-7F-00-80-00-80-20-77 which is the event reported from my device, can be for example understood as pushing button 3, or moving the axis X and Y of 10.

I really understood that this should be formated using the USB description, but i cannot find anywhere any example showing this (with mcHID.dll + visual basic)

It would be really helpfull if someone can show me how to parse the data.

Thank you in advance !
Posted 23-Aug-12 18:52pm
sirong_144
Edited 23-Aug-12 19:31pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 251
1 Abhinav S 135
2 Lucifier Rocks 105
3 Dave Kreskowiak 80
4 F-ES Sitecore 80
0 OriginalGriff 705
1 Sergey Alexandrovich Kryukov 626
2 Abhinav S 483
3 F-ES Sitecore 410
4 Suvendu Shekhar Giri 365


Advertise | Privacy | Mobile
Web04 | 2.8.150603.1 | Last Updated 24 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100