I know it is a long thread, but I think it might save you
http://www.picbasic.co.uk/forum/showthread.php?t=5418
Ioannis
I know it is a long thread, but I think it might save you
http://www.picbasic.co.uk/forum/showthread.php?t=5418
Ioannis
Thanks Ioannis for the post. I have read through most of the thread. Descriptor files very so much from device to device and there is the old way of doing USB and the new way of doing USB it is hard to determine where the actual problem is located. I will keep looking.
If you find a working example would appreciate if you post.
George
You can download the zip file from the link I posted. It contains a fully working example on 4550 chip and a Visual Basic application (executable and source code) for the PC side.
Have you checked this?
Ioannis
Ioannis,
I have downloaded the code and examined it. The problem is every descriptor file is different. Even ones that state they are for HID USB Keyboards are different. Finding one the compiles without errors and works as a keyboard is the problem. The benefit of emulating a true HID USB Keyboard is there is no need for special drivers on the PC side, or the Linux side for that matter.
George,
I will definitely post a solution when I find it. More than one person on this forum has expressed their aggravation with trying to get this to work.
http://www.picbasic.co.uk/forum/showthread.php?t=19333
Last edited by Cobra_Phil; - 18th January 2015 at 03:49.
I had tested the code as is (mister-e's code I mean) and worked first time with no problem.
Maybe your troubles are in the PC side? Can you test on another PC?
Ioannis
Ioannis,
I am specifically looking for PBP code that emulates a USB Keyboard. Unless I am missing it, I don't see that example in the link you posted. The link you posted has a descriptor file in it, but it is for a vendor defined device.
ReportDescriptor1
; vendor defined usage page
retlw 0x06
retlw 0x00
retlw 0xFF
retlw 0x09
retlw 0x00 ; vendor defined usage
A HID USB Keyboard will have 0x06 as the keyboard defined device. You would be able to plug this into anything that accepted a USB keyboard and it should work.
retlw 0x09
retlw 0x06 ;keyboard useage
Bookmarks