ECIO Project USB Keyboard...

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
Sparkoids
Posts: 267
Joined: Mon Sep 14, 2009 10:34 am
Contact:

ECIO Project USB Keyboard...

Post 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...

User avatar
Benj
Matrix Staff
Posts: 15009
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: ECIO Project USB Keyboard...

Post 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.
Attachments
Ex2. Keyboard.fcf
(25.74 KiB) Downloaded 245 times

User avatar
Benj
Matrix Staff
Posts: 15009
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: ECIO Project USB Keyboard...

Post by Benj »

Here is a excel document I put together to allow you to input the scan codes to the PC correctly.
Attachments
HID Keyboard Scan Codes.xls
(37.5 KiB) Downloaded 186 times

Sparkoids
Posts: 267
Joined: Mon Sep 14, 2009 10:34 am
Contact:

Re: ECIO Project USB Keyboard...

Post by Sparkoids »

Thanks Ben ;-}

Sparkoids
Posts: 267
Joined: Mon Sep 14, 2009 10:34 am
Contact:

Re: ECIO Project USB Keyboard...

Post 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...

User avatar
Benj
Matrix Staff
Posts: 15009
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: ECIO Project USB Keyboard...

Post 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

Sparkoids
Posts: 267
Joined: Mon Sep 14, 2009 10:34 am
Contact:

Re: ECIO Project USB Keyboard...

Post 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!

Sparkoids
Posts: 267
Joined: Mon Sep 14, 2009 10:34 am
Contact:

Re: ECIO Project USB Keyboard...

Post 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

User avatar
Benj
Matrix Staff
Posts: 15009
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: ECIO Project USB Keyboard...

Post 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.

Post Reply