PIC received buffers don't match PC sent buffers via USB


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    Did you find this post helpful? Yes | No

    Default

    Jellis00,

    If you are using the EasyHID software you need to send the whole array of data, which is 8 bytes of data at a time. I have been using using this method for my latest project without any problems.

    Now, this is what I found out. The range of an array of data that you sent in VB6 would be between 1 an 8. The same array of data would have a range between 0 and 7 in PBP. In other words, a byte Data[1] in VB6 is the byte Data[0] in PBP, a byte Data[2] in VB6 is the byte Data[1] in PBP, and so on. Don't ask me why, I didn't write the EasyHID program.

    I hope that this helps. Let us know if you have any problems.

    Robert

  2. #2
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default This solved this problem!

    Quote Originally Posted by rsocor01 View Post
    Jellis00,
    Now, this is what I found out. The range of an array of data that you sent in VB6 would be between 1 an 8. The same array of data would have a range between 0 and 7 in PBP. In other words, a byte Data[1] in VB6 is the byte Data[0] in PBP, a byte Data[2] in VB6 is the byte Data[1] in PBP, and so on. Don't ask me why, I didn't write the EasyHID program.
    By incrementing the index by one on my VB6 buffers for the data the PBPro incoming buffers picked up the right data. Thanks for solving this problem for me!

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts