Any USB HID Examples?
Posted: Fri Oct 16, 2009 6:04 pm
Does anyone have any working example code in PB that shows how to -
1. Search list of HID's and find a specific HID & PID
2. Connect to that HID & PID and transfer data and receive data
I have done a search and the best I've found is http://www.purebasic.fr/english/viewtop ... =5&t=37721.
This does provide a list of HID's but does not provide any write functions.
I have a strange feeling that these are not the right API calls.
I am playing around with some electronics (microcontroller PIC18F4550) and would like to try USB.
I can set the HID & PID to anything and I have not planned any data structure yet but know that I will need to read and write up to 256 bytes at any one time.
RS232 connection works ok but I want to move away from this and start using USB.
I want to use HID and not CDC.
Thanks.
1. Search list of HID's and find a specific HID & PID
2. Connect to that HID & PID and transfer data and receive data
I have done a search and the best I've found is http://www.purebasic.fr/english/viewtop ... =5&t=37721.
This does provide a list of HID's but does not provide any write functions.
I have a strange feeling that these are not the right API calls.
I am playing around with some electronics (microcontroller PIC18F4550) and would like to try USB.
I can set the HID & PID to anything and I have not planned any data structure yet but know that I will need to read and write up to 256 bytes at any one time.
RS232 connection works ok but I want to move away from this and start using USB.
I want to use HID and not CDC.
Thanks.