Page 1 of 1

ECIO Project USB Keyboard...

Posted: Tue Aug 02, 2011 5:03 pm
by Sparkoids
Hi guys,

I'm trying to write some code for a PIC which includes an ECIO to emulate a USB PC Keyboard - just certain scan codes and a buttons E-Block.

Just thought perhaps someone would maybe have something available already to make my life easier!

Worth a shot I guess...

Thanks in advance...

Re: ECIO Project USB Keyboard...

Posted: Tue Aug 02, 2011 5:31 pm
by Benj
Hello,

Here is a program that reads values from a keypad and inputs them into the PC as a keyboard interface. You will probably have to change the target to the ECIO in the project options.

Re: ECIO Project USB Keyboard...

Posted: Tue Aug 02, 2011 5:36 pm
by Benj
Here is a excel document I put together to allow you to input the scan codes to the PC correctly.

Re: ECIO Project USB Keyboard...

Posted: Wed Aug 03, 2011 11:58 am
by Sparkoids
Thanks Ben ;-}

Re: ECIO Project USB Keyboard...

Posted: Wed Aug 03, 2011 12:12 pm
by Sparkoids
Just a quickie.

I see you are using scancodes 2 from your xls but where did you get the Directions from to assign to the keypad please and hash symbol?

I'm looking for the Function Key scancodes and they aren't on the spread and the Microsoft stuff on the net is unintelligible to me!

Cheers fella...

Re: ECIO Project USB Keyboard...

Posted: Wed Aug 03, 2011 4:37 pm
by Benj
Hello,

This document looks fairly simple and should cover most of the keys

http://www.google.co.uk/url?sa=t&source ... APZFiuCbTQ

Re: ECIO Project USB Keyboard...

Posted: Thu Aug 04, 2011 11:41 am
by Sparkoids
Hi Ben,

It's great except every key works on the ECIO in the simulator yet the Function Keys on the actual hardware, despite the LCD saying otherwise, are not sending the correct key to the PC which is really weird. For example:

F7 should send Hex 0x62 but sends Hex 0x52
F8 should send Hex 0x64 but sends Hex 0xa
F9 should send Hex 0x65 but sends Hex 0x6e

Have I discovered a bug!

Re: ECIO Project USB Keyboard...

Posted: Thu Aug 04, 2011 4:58 pm
by Sparkoids
Hi Ben,

It's working now! I reloaded your original code and that did the arrow keys OK then when I loaded my changes in it started working!

Weird but thanks for all the help as usual fella!

:D

Re: ECIO Project USB Keyboard...

Posted: Fri Aug 05, 2011 9:45 am
by Benj
Hi Sparkoids,

That's great news was a bit surprised yesterday at your findings so glad its all working correctly for you now.