CN108268287A - A kind of serial ports redirects terminal software optimization implementation method - Google Patents
A kind of serial ports redirects terminal software optimization implementation method Download PDFInfo
- Publication number
- CN108268287A CN108268287A CN201611244967.XA CN201611244967A CN108268287A CN 108268287 A CN108268287 A CN 108268287A CN 201611244967 A CN201611244967 A CN 201611244967A CN 108268287 A CN108268287 A CN 108268287A
- Authority
- CN
- China
- Prior art keywords
- serial ports
- redirects
- keyboard
- serial
- terminal software
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
Abstract
The present invention provides a kind of serial ports and redirects terminal software optimization implementation method, including:Open the serial ports redirection function of target machine;It runs serial ports and redirects terminal software;Serial ports is set to redirect terminal parameter in System configurations interface;When judging to be provided with, start serial port terminal display interface;When judgement, there are during input through keyboard, judge whether that keyboard map module is needed to carry out turning meaning to input through keyboard content;When judging turn meaning, turn to anticipate and pass through the serial ports that operation of serial-port module is output to the target machine;When judging not needing to turn meaning, the content of input through keyboard is directly output to the serial ports of target machine by operation of serial-port module.The present invention can realize automatic conversion agreement code, realize that serial port terminal operation is completely the same with local operation, and can be according to preconfigured script effect, automatic loading Linux operating system leader, without blind operation, greatly facilitate user and carry out quick diagnosis configuration debugging efforts.
Description
Technical field
The present invention relates to computer science and technology fields more particularly to a kind of serial ports to redirect terminal software optimization realization side
Method.
Background technology
In network security product or embedded robot product, for security consideration, display screen or key is not configured usually
Disk for convenience of debugging, usually sets a serial ports dedicated for redirection function, client can pass through string in this kind of product
Mouth is connected on debugging machine, carries out the work such as diagnosis debugging configuration.
But redirect protocol specification, some function keys such as F1-F12 or Ctrl+ according to existing several serial port of mainboard
Alt+Del combinations are strong etc., and such key is required for being converted, and the realization of corresponding function key could be made in target machine,
And common serial port terminal software on the market, such as hyper terminal, SecureCRT or Putty terminals of increasing income that Microsoft carries are soft
Part all only realizes basic keyboard entry function conversion function.It is redirected, needed using serial ports on this kind of terminal software product
User is wanted to remember that function key or the strong conversion function of combination are good for, such as F1=ESC+1, the inconvenience of user and tired can be caused in this way
It is puzzled.Also, if realize that 3 keys restart function, Macintosh as conversion keys ESC+R, ESC+r, ESC+R, existing general
Terminal on be difficult press out such combined effect.In addition, the serial ports redirection in the BIOS stages is to be responsible for conversion by BIOS, into
It is taken over after entering system by operating system such as Linux etc., generally requires and carry out opening serial ports redirection setting in an operating system, when
Linux system is first entered, when being not yet turned on the setting of serial ports redirection function, if without keyboard and display, it can only
Blind operation is carried out, user's operation easily malfunctions.
In the prior art, also there are a kind of network interfaces to redirect agreement, functional stronger.But in start process, one
As network adapter can't normal use, configuration that can not directly by remotely carrying out BIOS Setup.Once and network
Disconnection is unable to control debugging target machine.
Based on case above, it is necessary to develop it is a kind of for the markets such as network security, more with humanized design
Serial port terminal software.
Invention content
Serial ports provided by the invention redirects terminal software optimization implementation method, can solve in the prior art ask
Topic, makes user pass through special terminal control software, realizes the button effect with local operation indifference, does not need to remember to turn meaning
Code, and can effectively realize that serial port terminal restarts goal systems function by button realization.And solve first entering be
During system, there are no configuration system terminal when need blind operation the problem of.
In a first aspect, the present invention, which provides a kind of serial ports, redirects terminal software optimization implementation method, including:
Step 1:Open the serial ports redirection function of target machine;
Step 2:It runs serial ports and redirects terminal software;
Step 3:Setting serial ports redirects terminal ginseng in the System configurations interface for redirecting terminal software in the serial ports
Number;
Step 4:When judging that the serial ports redirects terminal parameter setting completion, start the serial ports and redirect terminal
The serial port terminal display interface of software, for showing that the serial ports exported to the target machine redirects data;
Step 5:When judgement, there are during input through keyboard, continue to determine whether that the serial ports is needed to redirect terminal software
Keyboard map module carries out the content of the input through keyboard to turn meaning;
Step 6:When judging to need turn meaning to the content of the input through keyboard, to the content of the input through keyboard
The operation of serial-port module for carrying out turning meaning and terminal software being redirected by the serial ports is output to the serial ports of the target machine;When
When judgement does not need to turn meaning to input through keyboard content, the content of the input through keyboard is directly passed through into the operation of serial-port mould
Block is output to the serial ports of the target machine.
Optionally, it is additionally included in after above-mentioned steps one under BIOS environment and default resolution is set as to 115200 step
Suddenly.
Optionally, the step of terminal type is set as UTF8 under BIOS environment is additionally included in after above-mentioned steps one.
Optionally, above-mentioned serial ports redirects terminal software and is developed under Windows systems and use VS2008 Integrated Developments
Environment.
Optionally, above-mentioned serial ports redirection terminal parameter includes serial ports selection, Configuration of baud rate.
Optionally, above-mentioned keyboard map module carries out turning to anticipate using meaning code is turned to the content of the input through keyboard.
Optionally, above-mentioned target machine is network security product or embedded robot.
Serial ports provided in an embodiment of the present invention redirects terminal software optimization implementation method, can realize automatic conversion agreement
Code, remembers shift key without user, you can realizes serial port terminal operation and the completely the same effect of local operation, and is directed to
The booting operating systems such as Linux part, can be automatic to load according to preconfigured script effect, without blind operation, opens
The serial ports redirection function of the operating systems such as Linux greatly facilitates the industry user in the markets such as network security and robot
Carry out the demand of quick diagnosis configuration debugging efforts.
Description of the drawings
Fig. 1 is the functional block diagram that serial ports of the present invention redirects terminal software;
Fig. 2 is the flow chart that serial port terminal software optimization of the present invention is realized.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
Only it is part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill
Personnel's all other embodiments obtained without making creative work, shall fall within the protection scope of the present invention.
The present invention provides a kind of serial ports of mainboard and redirects terminal software optimization implementation method, specifically, including target machine
The unlatching and the operation of serial port terminal software that device serial ports redirects.
Particularly, target machine serial ports, which redirects, opens, i.e., BIOS's (Basic Input Output System)
Serial ports redirection function (Console Redirection) is arranged to Enabled, wherein serial ports redirection function in setup,
Refer to display and the function that input through keyboard terminal is exported or inputted through transitions into target machine serial ports end.It and will acquiescence
Resolution ratio is set as 115200, Terminal Type and is set as UTF8.
The serial port terminal software of the present invention is developed under Windows systems, uses VS2008 Integrated Development Environment.Fig. 1 shows
The serial ports for having gone out the present invention redirects the functional block diagram of terminal software.Wherein,
System configurations interface is available to client for carrying out the interface that configuration serial ports redirects terminal parameter, such as selects
Select serial ports, setting baud rate etc.;
Serial port terminal display interface exports content for the serial ports of display target machine;
Keyboard map module, for turning user's enter key to turn meaning code corresponding to the meaning salty orientation of bunchiness;
For carrying out bottom operation of serial-port, support is provided for upper layer application for operation of serial-port module;
Windows api interfaces are the interfaces that operating system provides, and upper layer application is facilitated to use system resource.
The flow chart of serial port terminal software is as shown in Figure 2.First, start the System configurations interface of serial port terminal, be supplied to
Client is used to that the parameter that serial ports redirects terminal, such as selection serial ports, setting baud rate etc. to be configured.Secondly, it is to user setting
No completion is judged, when user setting is completed, is started the display interface of serial port terminal, is shown the serial ports weight to target machine
Orient output data and content;When judging that user setting does not complete, current system configuration interface is rested on.Again, judgement is used
Whether family has input through keyboard, if without input through keyboard, rests on display and redirects output data to the serial ports of target machine
With the display interface of content;If there is input through keyboard, then continue to determine whether that keyboard is needed to turn meaning code to input through keyboard content
It carries out turning meaning.If it is determined that needing that input through keyboard content is carried out to turn meaning, then input through keyboard content is turned into meaning, and be output to string
Mouthful, it is given to target machine;If it is determined that not needing to that input through keyboard content is carried out to turn meaning, then directly input through keyboard content is exported
To serial ports, it is given to target machine.
Serial ports provided in an embodiment of the present invention redirects terminal software optimization implementation method, to common serial port terminal software
Improved, increase keyboard turn meaning function it is consistent with local operation, without remember again turn anticipate a code button, can facilitate
User uses serial ports redirection function.Also, user only needs to interact with target machine by serial ports in debugging, can save
The peripheral hardwares such as keyboard display, reduce cost.And the present invention can redirect control targe machine conveniently by serial ports, including
BIOS Setup are set, the operations such as installation system.It can also be quick to realize that configuration serial ports is whole when using linux system for the first time
Hold the function of output.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, all should by the change or replacement that can be readily occurred in
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (7)
1. a kind of serial ports redirects terminal software optimization implementation method, which is characterized in that including:
Step 1:Open the serial ports redirection function of target machine;
Step 2:It runs serial ports and redirects terminal software;
Step 3:Setting serial ports redirects terminal parameter in the System configurations interface for redirecting terminal software in the serial ports;
Step 4:When judging that the serial ports redirects terminal parameter setting completion, start the serial ports and redirect terminal software
Serial port terminal display interface, for showing serial ports export to the target machine redirection data;
Step 5:When judgement, there are the keyboards for during input through keyboard, continuing to determine whether that the serial ports is needed to redirect terminal software
Mapping block carries out the content of the input through keyboard to turn meaning;
Step 6:When judging to need turn meaning to the content of the input through keyboard, the content of the input through keyboard is carried out
The operation of serial-port module for turning meaning and terminal software being redirected by the serial ports is output to the serial ports of the target machine;Work as judgement
It is directly that the content of the input through keyboard is defeated by the operation of serial-port module when not needing to turn meaning to input through keyboard content
Go out the serial ports to the target machine.
2. serial ports according to claim 1 redirects terminal software optimization implementation method, which is characterized in that in the step
The step of default resolution is set as 115200 under BIOS environment is additionally included in after one.
3. serial ports according to claim 1 redirects terminal software optimization implementation method, which is characterized in that in the step
The step of terminal type is set as UTF8 under BIOS environment is additionally included in after one.
4. serial ports according to claim 1 redirects terminal software optimization implementation method, which is characterized in that the serial ports weight
Directional terminals software is developed under Windows systems and uses VS2008 Integrated Development Environment.
5. serial ports according to claim 1 redirects terminal software optimization implementation method, which is characterized in that the serial ports weight
Directional terminals parameter includes serial ports selection, Configuration of baud rate.
6. serial ports according to claim 1 redirects terminal software optimization implementation method, which is characterized in that the keyboard reflects
It penetrates module and the content of the input through keyboard is carried out turning to anticipate using meaning code is turned.
7. serial ports according to claim 1 redirects terminal software optimization implementation method, which is characterized in that the target machine
Device is network security product or embedded robot.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611244967.XA CN108268287B (en) | 2016-12-29 | 2016-12-29 | Serial port redirection terminal software optimization implementation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611244967.XA CN108268287B (en) | 2016-12-29 | 2016-12-29 | Serial port redirection terminal software optimization implementation method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108268287A true CN108268287A (en) | 2018-07-10 |
CN108268287B CN108268287B (en) | 2021-01-12 |
Family
ID=62753671
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611244967.XA Active CN108268287B (en) | 2016-12-29 | 2016-12-29 | Serial port redirection terminal software optimization implementation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108268287B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110990259A (en) * | 2019-10-30 | 2020-04-10 | 福建新大陆支付技术有限公司 | Test method of keyboard-free and screen-free equipment |
CN112905248A (en) * | 2021-01-29 | 2021-06-04 | 国电南瑞科技股份有限公司 | OpenPOWER-based out-of-band system deployment method, device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040078456A1 (en) * | 2002-10-17 | 2004-04-22 | Barry Kennedy | Serial port redirection using a management controller |
CN1658129A (en) * | 2005-03-01 | 2005-08-24 | 蔡高升 | Redirectional system and method of man-machine interactive input-output equipment of blind equipment |
CN104363117A (en) * | 2014-11-04 | 2015-02-18 | 浪潮电子信息产业股份有限公司 | IPMI (intelligent platform management interface) based method for serial port redirection |
CN105653995A (en) * | 2015-09-01 | 2016-06-08 | 刘晓建 | Repeatedly-use dependable computing apparatus of common computer man-computer interaction equipment |
CN106126243A (en) * | 2016-06-29 | 2016-11-16 | 浪潮电子信息产业股份有限公司 | A kind of method using serial ports to install operating system |
-
2016
- 2016-12-29 CN CN201611244967.XA patent/CN108268287B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040078456A1 (en) * | 2002-10-17 | 2004-04-22 | Barry Kennedy | Serial port redirection using a management controller |
CN1658129A (en) * | 2005-03-01 | 2005-08-24 | 蔡高升 | Redirectional system and method of man-machine interactive input-output equipment of blind equipment |
CN104363117A (en) * | 2014-11-04 | 2015-02-18 | 浪潮电子信息产业股份有限公司 | IPMI (intelligent platform management interface) based method for serial port redirection |
CN105653995A (en) * | 2015-09-01 | 2016-06-08 | 刘晓建 | Repeatedly-use dependable computing apparatus of common computer man-computer interaction equipment |
CN106126243A (en) * | 2016-06-29 | 2016-11-16 | 浪潮电子信息产业股份有限公司 | A kind of method using serial ports to install operating system |
Non-Patent Citations (2)
Title |
---|
林龙增 等: ""实现多个KVM虚拟机通信的串口转发器方法"", 《计算机技术与发展》 * |
黄可杰 等: ""Linux环境下I/O重定向与异步通信的实现"", 《计算机应用与软件》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110990259A (en) * | 2019-10-30 | 2020-04-10 | 福建新大陆支付技术有限公司 | Test method of keyboard-free and screen-free equipment |
CN112905248A (en) * | 2021-01-29 | 2021-06-04 | 国电南瑞科技股份有限公司 | OpenPOWER-based out-of-band system deployment method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108268287B (en) | 2021-01-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102819431B (en) | Setting method of logical orders, calling method of application program and mobile terminal | |
CN105117320B (en) | Electric terminal middle pipe ought to method and its electric terminal | |
TWI688866B (en) | Information sharing system and method | |
CN102804131A (en) | Apparatus and method of accessing a computer pre-boot routine | |
US8977968B2 (en) | Pseudo-remote terminal IOTA mobile diagnostics and electronic customer care | |
KR101195520B1 (en) | Remote control method and remote control apparatus for controlling a mobile terminal | |
CN108268287A (en) | A kind of serial ports redirects terminal software optimization implementation method | |
US20080005286A1 (en) | Step-wise command line interface for configuring network devices | |
US20180217728A1 (en) | Information transmission device and operating method therefor | |
WO2007019285A2 (en) | Methods and arrangements for performing desktop switching | |
CN112827163B (en) | Game paddle simulation method and mobile device | |
CN105630318A (en) | Operation interaction method and device | |
US6735767B1 (en) | Installation planning window | |
EP1895794B1 (en) | Remote management system and method for portable electronic devices | |
US8862683B2 (en) | KVM switch and KVM system | |
US10956034B2 (en) | Automatic virtual input device | |
JP2013148519A5 (en) | ||
US10853098B2 (en) | Interface processing method, electronic device, and graphical user interface | |
CN108241510A (en) | A kind of switching method of video card | |
CN105677156B (en) | Unlocking-free application access method and mobile terminal | |
US20120081286A1 (en) | Alerting user to shortcuts on computer | |
US20150268841A1 (en) | Method of Changing a User Interface to be a Dedicated SkypeTM Interface and Computer Program Product Thereof and Handheld Electronic Device | |
US11841993B1 (en) | Method and device for target information exfiltration out of a computing device based on lock key reflection by the computing device at an output keyboard end point | |
JP7477683B2 (en) | Information processing device, information processing method, and program | |
US20170150359A1 (en) | Augmenting mobile device access control modes with hardware buttons |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230704 Address after: B2, Floor 20, Yanxiang Science and Technology Building, No. 31, Gaoxin Middle Fourth Road, Maling Community, Yuehai Street, Nanshan District, Shenzhen, Guangdong 518057 Patentee after: Shenzhen Jiuniuyimao Intelligent Internet of Things Technology Co.,Ltd. Address before: 518107 5th floor, No.1, Yanxiang Zhigu chuangxiangdi, No.11, Gaoxin Road, Guangming New District, Shenzhen City, Guangdong Province Patentee before: EVOC INTELLIGENT TECHNOLOGY Co.,Ltd. |