USB PC Keyboard

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Sparkoids
Posts: 267
Joined: Mon Sep 14, 2009 10:34 am
Has thanked: 30 times
Been thanked: 19 times
Contact:

USB PC Keyboard

Postby Sparkoids » Thu Jun 13, 2019 12:35 pm

Many many moons ago I used an example of a PC keyboard Flowcode sample that worked with FC5 and ECIO28.

I cannot find it anywhere now and wonder if anyone has a link to it or is able to PM it to me.


Thanks in advance,

James :-}

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1086
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 440 times
Been thanked: 492 times
Contact:

Re: USB PC Keyboard

Postby Steve001 » Thu Jun 13, 2019 12:41 pm

Hi Mate,

I remember that post too .. :mrgreen: but thought it was a PS2 one ? not USB

Is this it ..

https://www.matrixtsl.com/mmforums/viewtopic.php?f=26&t=8870

Regards
Steve

:edit, just thinking are you wanting to make a keyboard or read a keyboard ?
These users thanked the author Steve001 for the post:
Benj (Fri Jun 14, 2019 3:48 pm)
Rating: 5.26%
 
Success always occurs in private and failure in full view.

Sparkoids
Posts: 267
Joined: Mon Sep 14, 2009 10:34 am
Has thanked: 30 times
Been thanked: 19 times
Contact:

Re: USB PC Keyboard

Postby Sparkoids » Thu Jun 13, 2019 1:37 pm

Hi Steve,

It wasn't that one but that is good to study regardless.

I am trying to build a keyboard where the keys are pre-set so I press a button on an E-Block button bank and it sends an ascii code to the PC mimicking a keyboard.

I have the HID thing sorted and a variation that Ben R helped with back in the day but want to start from scratch and build from there.
These users thanked the author Sparkoids for the post:
Benj (Fri Jun 14, 2019 3:49 pm)
Rating: 5.26%
 

User avatar
Benj
Matrix Staff
Posts: 14371
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4447 times
Been thanked: 4145 times
Contact:

Re: USB PC Keyboard

Postby Benj » Fri Jun 14, 2019 3:48 pm

Hello,

The HID Keyboard section here should help. It has a Flowcode example and an Excel file showing the various byte combinations for different keys.

https://www.matrixtsl.com/wiki/index.php?title=Component:_ID_06a0a9b3_dd23_4592_a781_537a31b97c2a

Sparkoids
Posts: 267
Joined: Mon Sep 14, 2009 10:34 am
Has thanked: 30 times
Been thanked: 19 times
Contact:

Re: USB PC Keyboard

Postby Sparkoids » Sat Jun 15, 2019 11:38 am

Does anyone have any idea why the keyboard isn't recognised here please?

It does not recognise the HID as a keyboard for some reason and it's driving me bonkers!

Thanks in advance...
Attachments
USB_Prober_and_Windows_7__1_.jpg
USB_Prober_and_Windows_7__1_.jpg (159.88 KiB) Viewed 1579 times