Discussion in "AVR Discussion Forum" started by    Nestor_avr    Aug 18, 2013.
Thu Aug 29 2013, 11:48 pm
#11
Now compiled without errors, recorded the HEX and did not work it seems that the code is for ATMEGA48, I'll see if I can find one for ATmega8.
Tue Sep 03 2013, 03:06 pm
#12
As far as I know V-USB was initially designed for ATMega8 and then ported to different controllers. So code should work with ATmega8 maybe minor changes required. both mega8 and mega48 have same architectures so shouldn't be a problem porting ones code to other.
Tue Sep 03 2013, 05:39 pm
#13
I'll see if I can change the code, thanks for the answers.
Fri Mar 28 2014, 10:25 pm
#14
Anyone know what I have to include the code for the keyboard to be recognized in DOS?
Mon Mar 31 2014, 11:56 am
#15
Does your keyboard work with windows or Linux OS? if yes then DOS should have USB driver for that keyboard. Its an OS thing nothing you can do from controller side.
Mon Mar 31 2014, 06:21 pm
#16
Works on Windows and Linux after the OS is loaded, just do not work in DOS and other common USB keyboards work in DOS.

I found information and could not find out how to apply the code I have: http://www.pjrc.com/teensy/usb_keyboard.html and http://www.circuitsathome.com/mcu/lightweight-usb-host-part-6-hid


[ Edited Mon Mar 31 2014, 06:22 pm ]
Mon Mar 31 2014, 10:29 pm
#17
That's the reason I asked you. AVR USB implements generic USB keyboard driver which should work with any OS that supports USB keyboards. What key functions have you implemented in your code?
Mon Mar 31 2014, 11:12 pm
#18
In the code I have need to implement this generic USB driver and do not know how, I've attached the source in this post.
Wed Apr 02 2014, 10:09 am
#19
I looked into your code and also checked some other project of V-USB for HID. only few of them implements Boot Protocol. i.e. it may be possible that DOS uses bios drivers for USB devices. The USB HID keyboard code you are using does not implement boot protocol so it cannot be used with bios and probably DOS. Keyboards in market implements this interface subclass for keyboard to be working with BIOS.

You need to modify your usb descriptors to add this subclass like this:

USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
{
    ...
    .Interface =
    {
        ...             
        .Class        = 0x03,
        .SubClass     = 0x01,  // Boot Interface Subclass = 1
        .Protocol     = 0x01,  // Boot Keyboard = 1, Boot mouse = 2
        ... 


I know know what other changes needed in the source the above is just an example. Check www.fourwalledcubicle.com/LUFA.php which says to implement USB HID keyboard with boot protocol.

I just looked into the descriptor information in "rump - The Model M" HID keyboard source and looks like it implements boot protocol. You can download source from Github.

https://github.com/clee/rump

usbconfig.h mentions the interface subclass.
Fri Apr 04 2014, 07:26 pm
#20
Sorry for the delay to respond, I will do tests ums here to see if it works


[ Edited Fri Apr 04 2014, 08:14 pm ]

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Williamjef
Thu Apr 25 2024, 02:08 pm
SamuelSmise
Thu Apr 25 2024, 09:56 am
DustinErele
Thu Apr 25 2024, 08:44 am
ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm
Charlestehed
Wed Apr 24 2024, 05:20 pm
Robertgurse
Wed Apr 24 2024, 02:43 pm
Richardedils
Wed Apr 24 2024, 04:07 am