This widget could not be displayed.
This widget could not be displayed.

LabVIEW

This widget could not be displayed.
cancel
Showing results for 
Search instead for 
Did you mean: 

send F2 key using serial com connection

Solved!
Go to solution

Hi ,

To enter to Bios in need press "F2" key .

how to enter F2 key using serial ?

is it string  ? 

F2.png 

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 1 of 10
(12,874 Views)

I don't think you can.  An F2 key is not a byte or character you can send over the serial port.  It is a special key that only the PC that is connected to that keyboard through a keyboard interface will know what to do with it.

 

You could try sending the byte 127 (decimal) which according to the ASCII table in the following link is the DEL byte:

 

https://www.asciitable.com/index/asciifull.gif&imgrefurl=https://www.asciitable.com/&h=488&w=715&tbn...

 

What is this device you are connected to giving you this screen?  I have doubts that even that would work.  You are trying to enter the BIOS which is happening at the lowest levels of this PC.  I don't think serial drivers would even be loaded yet.  At the BIOS stage, just enough drivers have been loaded to handle the screen and the keyboard connected to it.

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 2 of 10
(12,859 Views)

I am trying to enter to Bios of  Linux machine (CPU).
By SERIAL from my computer (7WIN)

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 3 of 10
(12,857 Views)

And how would you do it if you weren't using the Win7 computer?

It would be by using a keyboard plugged into the Linux PC.

 

Serial <> Keyboard.

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 4 of 10
(12,838 Views)

@hod77 wrote:

I am trying to enter to Bios of  Linux machine (CPU).
By SERIAL from my computer (7WIN)


Um... 

 

I did your research for you and found this PS/2 Mouse/Keyboard Protocol the rest is up to you.

========================
=== Engineer Ambiguously ===
========================
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 5 of 10
(12,828 Views)

yes

i have 2 options :

1. Win7 -> serial ->linux

2. linux key board 

 

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 6 of 10
(12,823 Views)

@hod77 wrote:

yes

i have 2 options :

1. Win7 -> serial ->linux

2. linux key board 

 


What's a "linux" keyboard and how does that differ from a "Windows" keyboard? 

 

Another idea I just had would be to use an Arduino Leonardo configured as a USB HID keyboard, you might be able to use the Arduino softserial library to talk "through" the Arduino from your computer serial port.

========================
=== Engineer Ambiguously ===
========================
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 7 of 10
(12,818 Views)

i still have no solution Smiley Sad

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 8 of 10
(12,727 Views)

If the keyboard is an old PS/2 model, you need something like this product (disclaimer: it's only an example: I never heard any info about it).

I found it by searching "serial to ps2 keyboard converter" on Internet.

This is an example for an equivalent product converting to USB keyboard (not sure if it supports function keys).

I'm curious about what you would like to do once you entered the BIOS menu.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 9 of 10
(12,721 Views)

The solution is:
Change in the Putty settings to VT100.
Press the F2 key and then I got "OQ"
It should be added at the beginning 27 or 0x1B (ESC)

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 10 of 10
(12,716 Views)