Hi rocky
When you call hidWriteEx(VendorID, ProductID, BufferOut(0)), what you are doing is sending a packet as such out to the USB port.
So you can define the length of that buffer in your VB vode at the top of the code:
Private Const BufferInSize = 64
Private Const BufferOutSize = 64
and in your PBP code:
USBBufferSizeMax con 64 ' maximum buffer size
USBBufferSizeTX con 64 ' input
USBBufferSizeRX con 64 ' output
I think min is 8 bytes and max 64.
So just change these variables to cut down the amount of bytes you want to send.
BufferOut(0) is a report ID and data starts at BufferOut(1)
Regards
Sean.
Originally Posted by rocky79





Bookmarks