Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Incoming ascii code to usb pc keyboard key translation

Status
Not open for further replies.

dsk2858

Member level 2
Joined
Aug 17, 2011
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Chennai,India
Activity points
1,683
HI to all the forum members,

I designed a board with 8keys, as we all know that with the help of this 8keys we can produce 256 combinations.


i took few combinations and written code to generate ASCII values with respected those combinations which matches our standard PS-2 keyboard ASCII values.

FOR EXAMPLE
combination ASCII(HEX) KEYBOARD FUNCTION
00101011 41 A
00101100 42 B
00101101 43 C
. . .
. . .
. . .
10000000 09 TAB
10000001 0D ENTER
10000010 E2 WINDOWS
. . .
. . .
. . .

here i attached a video of it where i printed alphabets and numbers in hyper terminal window.


https://www.youtube.com/watch?v=nLH0l6dD7wA&feature=g-upl&context=G20dd7bcAUAAAAAAAAAA

but now i need to control my computer with the combination of this 8key board instead of standard ps-2 key board.

i connected the board to the computer through USB interface not RS232.

now i need to translate those ASCII CODE TO USB PC KEYBOARD functionality.


QUESTIONS?

Should i need any Hardware in between the board i designed and the PC.

OR should i need any software to be loaded on the PC so that it would convert the incoming ASCII value in to key board functionality so that i can control my PC (i.e., like when we connect a standard PS-2 OR USB based keyboards to our PC it asks for drivers).

AND with what baud rate should i transmit those ASCII values to the computer , for the above example i used 9600 baud rate.
 

Is this not the same as your question here?

https://www.edaboard.com/threads/243665/#post1042674

Anyway, of course you need to do something to make the PC take your serial data as keyboard input. Windows doesn't natively support a serial keyboard.

The best idea was the one I already gave you. You could also write a VB (or whatever language) program that accepts the serial data and pushes it into Windows as keyboard input - like many automation programs do. I bet you can find some open source or example code for this.

Another hint: Google 'keyboard wedge'
 
Last edited:

Yes it was the same post , sorry for that .... my need where not fulfilled so i posted again ....

i will go through your suggestions and return back.....

for got to share one thing with you all ........

when i goggled before posting this quarry i found a hardware which converts the ASCII values in to pc keyboard key translation.

HTML:
http://www.vetra.com/335text.html

but i found that the price of it is tooooo high

thanku
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top