Author Topic: Trying to use demo...documentation?  (Read 10023 times)

focusrsh

  • Member
  • ***
  • Posts: 4
Trying to use demo...documentation?
« on: March 12, 2016, 11:58:28 pm »
I downloaded the code and saw there is a demo program for Visual Studio.  But not a line of documentation!  When I ran it all I got was "My device not found."  Real helpful.
After walking though the code I saw a place where I could change the PID and VID of the USB device, so I changed them and at least it now reports that if found the device I am trying to control.

But what is this program suppose to do?
I see two up/down controls inside the Control Write Transfer group box.  Does that mean it will send only two bytes at a time when I click the button?

What do any of the buttons do?


Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Trying to use demo...documentation?
« Reply #1 on: March 13, 2016, 12:55:31 pm »
I'm sorry you're having trouble with the example code. Look for a readme file, or you can find the same information in the comments in the main form's code. If you're still having trouble, let us know which example you're using and what the problem is, and we'll try to help.

focusrsh

  • Member
  • ***
  • Posts: 4
Re: Trying to use demo...documentation?
« Reply #2 on: March 13, 2016, 01:42:36 pm »
The first thing I did was read the readme.txt file.  It is mostly a history of updates.

I know this is free code and I am grateful for it and your help.  But a "getting-started.txt" file in the downloaded zip file would really be useful.  It seems that some of the questions I have are answered on the main website, hidden a few layers down and away from the download section.  For example, I didn't know that the demo code is just for talking to the PIC with its 2-byte command structure, which explains why the demo code has the up/down controls for sending two bytes.  Once I found that, it started to make sense.  That doc should be in the download.  It would save a lot of confusion.

By the way, I am using the winusb_vb v2.2 downloaded form the website, because we are running Windows 7.

Looks like I need to buy one of the books.  Which one is applicable for working on a simple HID device?  Down the line, I need to also talk to a Chroma power supply.


Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Trying to use demo...documentation?
« Reply #3 on: March 13, 2016, 02:43:26 pm »
Thank you for your suggestions. USB Complete Fifth Edition covers HID and WinUSB in detail. More about the book is here:

http://janaxelson.com/usbc.htm