Discussion in "AVR Discussion Forum" started by    Nestor_avr    Aug 18, 2013.
Wed Apr 09 2014, 04:51 pm
#31
I did not say that. the only thing I said is "version is different". So you need to make sure whatever code you add should comply with new source.

ok.. regarding your problem.. replace the old descriptor with:
const PROGMEM char usbHidReportDescriptor[USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH] = {
    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)
    0x09, 0x06,                    // USAGE (Keyboard)
    0xa1, 0x01,                    // COLLECTION (Application)
    0x05, 0x07,                    //   USAGE_PAGE (Keyboard)
    0x19, 0xe0,                    //   USAGE_MINIMUM (Keyboard LeftControl)
    0x29, 0xe7,                    //   USAGE_MAXIMUM (Keyboard Right GUI)
    0x15, 0x00,                    //   LOGICAL_MINIMUM (0)
    0x25, 0x01,                    //   LOGICAL_MAXIMUM (1)
    0x75, 0x01,                    //   REPORT_SIZE (1)
    0x95, 0x08,                    //   REPORT_COUNT (8)
    0x81, 0x02,                    //   INPUT (Data,Var,Abs)
    0x95, 0x01,                    //   REPORT_COUNT (1)
    0x75, 0x08,                    //   REPORT_SIZE (8)
    0x81, 0x03,                    //   INPUT (Cnst,Var,Abs)
    0x95, 0x05,                    //   REPORT_COUNT (5)
    0x75, 0x01,                    //   REPORT_SIZE (1)
    0x05, 0x08,                    //   USAGE_PAGE (LEDs)
    0x19, 0x01,                    //   USAGE_MINIMUM (Num Lock)
    0x29, 0x05,                    //   USAGE_MAXIMUM (Kana)
    0x91, 0x02,                    //   OUTPUT (Data,Var,Abs)
    0x95, 0x01,                    //   REPORT_COUNT (1)
    0x75, 0x03,                    //   REPORT_SIZE (3)
    0x91, 0x03,                    //   OUTPUT (Cnst,Var,Abs)
    0x95, 0x06,                    //   REPORT_COUNT (6)
    0x75, 0x08,                    //   REPORT_SIZE (8)
    0x15, 0x00,                    //   LOGICAL_MINIMUM (0)
    0x25, 0x65,                    //   LOGICAL_MAXIMUM (101)
    0x05, 0x07,                    //   USAGE_PAGE (Keyboard)
    0x19, 0x00,                    //   USAGE_MINIMUM (Reserved (no event indicated))
    0x29, 0x65,                    //   USAGE_MAXIMUM (Keyboard Application)
    0x81, 0x00,                    //   INPUT (Data,Ary,Abs)
    0xc0                           // END_COLLECTION  
};

Also update USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH in usbconfig.h file from 35 to 63
#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH    63   /* total length of report descriptor */


try and let me know...
Wed Apr 09 2014, 10:02 pm
#32
I changed as you said, has compiled without errors just did not work in the bios and did not work on windows.
Fri Apr 11 2014, 11:14 am
#33
then probably this is not the only thing that needs to be modified. other part might also be there. why dont you use ibm keyboard code as base and modify the key scan routine with yours? it should work for you right?
Fri Apr 11 2014, 04:18 pm
#34
code ibm keyboard works in bios only matrix and is not suitable for what I need.
I wanted to make the code work in bios Hidkeys more I do not have enough knowledge to do this.
Sun Apr 13 2014, 12:00 am
#35
I think if you replace the keyboard scan code with your hid key scan code it should work I guess. I am won't be able to help you with code as I am travelling this week. I can only provide you pointers for now.
Sun Apr 13 2014, 04:41 pm
#36
I'll continue testing until you return.
Mon Apr 14 2014, 02:56 pm
#37
I will be coming back on Monday. So it's a long week. Do post results of your testing. I will be checking website regularly.
Wed Apr 23 2014, 05:31 pm
#38
@ajay_bhargav i tried to separate the part of the matrix code that works in the bios to put inside HIDKEYS more code did not work.
Fri Apr 25 2014, 09:55 am
#39
Did you configure GPIOs as per HID keys? IBM Keyboard project uses bigger matrix so you need to carefully do the changes. I dont remember if they are using same controller in both the projects. Can you attach modification that you've done?

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

AntoniaRoons
Fri Apr 19 2024, 09:59 pm
carpinteyrowrl
Fri Apr 19 2024, 02:51 pm
DonaldJAX
Fri Apr 19 2024, 01:08 pm
Lewisuhakeply
Thu Apr 18 2024, 06:00 pm
Darrellciz
Thu Apr 18 2024, 11:07 am
Charlessber
Thu Apr 18 2024, 09:29 am
BartonSem
Thu Apr 18 2024, 04:56 am
DonaldKnown
Thu Apr 18 2024, 12:24 am