LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulate Keyboard using serial pc port as an output. Use the pc as a Keyboard

Hi everyone,
 
I need to design an application to use a pc as a Keyboard using the serial port as an output to be connected to a ps2 port or serial port keyboard of another pc.
 
Is it possible? Anyone Knows a solution or an example?
 
I've seen a lot of examples about capturing keyboard events, but not about this case.
 
Thanks in advance,
 
Silvia
0 Kudos
Message 1 of 4
(5,689 Views)

Hi you can use the user32.dll of windows with the function keybd_event to type programmatically. So you would basically need on vi on the keyboardcomputer that will receive and send the data to the other computer and a second by on the keyboardless computer that will be receiving the data and use this information with the dll

Hope this helps!

Benjamin C
Principal Systems Engineer // CLA // CLED
0 Kudos
Message 2 of 4
(5,674 Views)
Hi Silvia, am now trying to do the same thing as you were trying. The only difference is that I need to output keyboard strokes to a PS/2 input into a circuit board, wherein the processor reads the keyboard input and processes the information.
 
Did you figure out how to do this yet. I am also at the beginners level, so a little help would be great from you or anyone.
 
Thanks,
 
Shoab
0 Kudos
Message 3 of 4
(5,594 Views)

One more thing I wanted to add is that since am not using a computer at the receiving end, the output data from the PC serial port has to be in PS2 format. But reading articles on some websites (http://www.computer-engineering.org/ps2keyboard/) it seems like I will need a 8042 keyboard controller to deal with all the handshaking and signal level protocol as the RS232 serial port protocol is quite different from that of the PS2 protocol.

In the setup that I have, at the receiving end of the keyboard data I have a PCB (that has a ST uPSD3354DV microprocessor), that reads the PS2 input and displays it on an onboard LCD screen.

So based on this information, if someone can provide me with some ideas or suggestions, that would be great.

Thank you in advance,

Shoab

0 Kudos
Message 4 of 4
(5,577 Views)