CN113760110A - Device, system and switching method for realizing KVM switcher channel selection memory - Google Patents

Device, system and switching method for realizing KVM switcher channel selection memory Download PDF

Info

Publication number
CN113760110A
CN113760110A CN202111058023.4A CN202111058023A CN113760110A CN 113760110 A CN113760110 A CN 113760110A CN 202111058023 A CN202111058023 A CN 202111058023A CN 113760110 A CN113760110 A CN 113760110A
Authority
CN
China
Prior art keywords
channel
module
switching
action
value
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.)
Pending
Application number
CN202111058023.4A
Other languages
Chinese (zh)
Inventor
马晓光
刘毅枫
杨林鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Chaoyue Shentai Information Technology Co Ltd
Original Assignee
Xian Chaoyue Shentai Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xian Chaoyue Shentai Information Technology Co Ltd filed Critical Xian Chaoyue Shentai Information Technology Co Ltd
Priority to CN202111058023.4A priority Critical patent/CN113760110A/en
Publication of CN113760110A publication Critical patent/CN113760110A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes

Abstract

The invention provides a device, a system and a switching method for realizing KVM switcher channel selection memory, wherein the method comprises the following steps: after detecting the action of the switching key, judging whether a channel variable value exists in the nonvolatile storage area; if not, defaulting the first channel; if so, acquiring the value of the channel variable, and analyzing the acquired value; controlling channel switching action according to the analyzed information output instruction; and storing the value of the current channel variable into a nonvolatile storage area. After the current channel configuration is completed, the KVM switcher initializes the switching control action according to the value of the current channel variable, then the value of the current channel variable is stored in the nonvolatile storage area, and is timely updated after each switching action, so that the channel selection memory function is realized. The method is simple to operate, and the use experience of the user is improved.

Description

Device, system and switching method for realizing KVM switcher channel selection memory
Technical Field
The invention relates to the technical field of computers, in particular to a device, a system and a switching method for realizing channel selection memory of a KVM switcher.
Background
KVM is an abbreviation for Keyboard, Video, Mouse. The formal name of a KVM switch is KVM switch or KVM SWITCH. Simply speaking, a KVM switch allows a system administrator to control multiple servers or computer peripherals of a computer host through a set of keyboard, display and mouse, which means that only one person is needed to interact with all the computers, and certainly only one computer at a time. The switcher can save the expenses of a plurality of keyboards and displays and can also vacate larger desktop space. KVM switches are typically used in networks with multiple computers and other server sites where there is typically multiple computers but only one administrator or network manager. The cost of the switch varies from $200 for controlling eight PC ring switches to $2000 for controlling 10 Sun workstations. The larger the configuration overhead.
After the conventional KVM equipment is powered off and powered off, the channel selected after the switching last time cannot be memorized. When the KVM device is powered up again, the keyboard and mouse functions are displayed and implemented from the first channel by default. For the user, the probability of continuously using the channel selected last time is very high, switching from the default first channel to the channel selected last time can be realized only by pressing the switching key for multiple times at most, and the mode is complex in operation, and the use experience of the user is greatly influenced.
Disclosure of Invention
Aiming at the problem that the channels selected after the last switching cannot be memorized after the KVM equipment is powered off and powered down. When the KVM device is powered up again, the keyboard and mouse functions are displayed and implemented from the first channel by default. For a user, the probability of continuously using the channel selected last time is very high, switching from the default first channel to the channel selected last time can be realized only by pressing the switching key for multiple times at most, the mode is complicated in operation, and the use experience of the user is greatly influenced.
The technical scheme of the invention is as follows:
in a first aspect, the present invention provides a device for implementing channel selection and memory of a KVM switch, including a single chip, wherein the single chip is connected to a switch button;
the single chip microcomputer comprises a key action detection module, a judgment module, a nonvolatile storage area, a processing module and an instruction output module;
the key action detection module is used for detecting the action of switching the keys;
the judging module is used for judging whether a channel variable value exists in the nonvolatile storage area after detecting the action of the switching key;
the instruction output module is used for outputting an instruction to default the first channel when the judging module judges that the value of the channel variable does not exist in the nonvolatile storage area; and the processor is also used for outputting a channel switching instruction according to the information obtained by the analysis of the processing module
The processing module is used for acquiring the value of the channel variable when the judging module judges that the value of the channel variable exists in the nonvolatile storage area and analyzing the acquired value; and the method is also used for storing the value of the current channel variable into the nonvolatile storage area when the switching action is completed.
After the current channel configuration is completed, the KVM switcher initializes the switching control action according to the value of the current channel variable, then the value of the current channel variable is stored in the nonvolatile storage area, and is timely updated after each switching action, so that the channel selection memory function is realized. The method is simple to operate, and the use experience of the user is improved.
Preferably, the device further comprises a dial switch for selecting whether the channel needs to be switched or not by setting the dial switch;
the single chip microcomputer also comprises a port state detection module, and the dial switch is connected with the single chip microcomputer;
the port state detection module is used for detecting the level state of a port of the singlechip connected with the dial switch when the key action detection module detects the key action;
the instruction output module is used for outputting an instruction to default the first channel when the output port of the port state detection module is at a high level;
and the judging module is used for judging whether the channel variable value exists in the nonvolatile storage area or not when the output port of the port state detecting module is at a low level.
In order to realize the high efficiency of use, set up dial switch and singlechip and be connected, set up the dialling ware through operating personnel according to the demand like this, the singlechip switches the action according to setting up control.
Preferably, the device also comprises an initialization module for carrying out general initialization configuration after the singlechip is powered on;
the singlechip also comprises a power-on judging module which is used for judging whether the singlechip is powered on for the first time;
the instruction output module is used for outputting an instruction to default the first channel when the power-on judgment module judges that the single chip microcomputer is powered on for the first time and the key action detection module detects the action of switching the keys;
and the port state detection module is specifically used for detecting the level state of the port for indicating the switching channel when the power-on judgment module judges that the single chip microcomputer is not powered on for the first time and the key action detection module detects the switching key action.
By monitoring the power-on state, the single chip microcomputer is powered on for the first time, namely no effective data exists in the nonvolatile storage area of the single chip microcomputer, so that the first channel is directly defaulted under the condition, subsequent judgment is not needed, the switching speed is increased, and the time is saved.
Preferably, a GPIO port of the singlechip is connected with the dial switch;
and the port state detection module is specifically used for detecting the level state of the GPIO port when the power-on judgment module judges that the single chip microcomputer is not powered on for the first time and the key action detection module detects the switching key action. The set value of the dial switch is read through detecting the GPIO level, and the user experience is further improved.
In a second aspect, the present invention provides a system for implementing channel selection and memory of a KVM switch, a device for channel selection and memory, and a KVM switch;
the channel selection memory device is the device for realizing the channel selection memory of the KVM switch in the first aspect;
the command output module is connected with the KVM switcher and used for outputting a control command to control the KVM switcher to switch channels.
Preferably, the system further comprises a power module;
the power module is connected with the single chip microcomputer and used for supplying power to the point single chip microcomputer.
Preferably, the system further comprises a control module;
the control module is connected with the power supply module and used for controlling the power supply module to automatically power on the single chip microcomputer. And automation of the system switching process is realized.
In a third aspect, the present invention further provides a method for switching channel selection memory of a KVM switch, including the following steps:
after detecting the action of the switching key, judging whether a channel variable value exists in the nonvolatile storage area;
if not, defaulting the first channel;
if so, acquiring the value of the channel variable, and analyzing the acquired value;
controlling channel switching action according to the analyzed information output instruction;
and storing the value of the current channel variable into a nonvolatile storage area.
After the current channel configuration is completed, the KVM switcher initializes the switching control action according to the value of the current channel variable, then the value of the current channel variable is stored in the nonvolatile storage area, and is timely updated after each switching action, so that the channel selection memory function is realized. The method is simple to operate, and the use experience of the user is improved.
Preferably, after detecting the action of the switching key, the step of judging whether the value of the channel variable exists in the nonvolatile storage area comprises the following steps;
detecting the state of a switching key;
after detecting the action of the switching key, detecting the level state of a port for indicating a switching channel;
defaulting the first channel when the port is at a high level;
and when the port is at a low level, judging whether the value of the channel variable exists in the nonvolatile storage area.
Preferably, the step of detecting the state of the switching key further comprises:
powering on the single chip microcomputer, and carrying out general initialization configuration;
judging whether the single chip microcomputer is powered on for the first time;
if yes, after detecting the action of the switching key, defaulting the first channel;
if not, after detecting the action of the switching key, detecting the level state of the port for indicating the switching channel.
By monitoring the power-on state, the single chip microcomputer is powered on for the first time, namely no effective data exists in the nonvolatile storage area of the single chip microcomputer, so that the first channel is directly defaulted under the condition, subsequent judgment is not needed, the switching speed is increased, and the time is saved.
According to the technical scheme, the invention has the following advantages: in order to realize the channel selection memory function, the single chip microcomputer needs to record the current latest switched channel value into the nonvolatile storage area after detecting the action of the switching key and while executing the function of KVM switching control action. The single chip can be stored for a long time without loss after being powered off. Therefore, the single chip microcomputer immediately stores the data of the current channel variable originally stored in the RAM space lost in power failure into the nonvolatile storage area in the single chip microcomputer while executing the KVM switching control action each time. The method is simple to operate, and the use experience of the user is improved.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic block diagram of an apparatus of one embodiment of the present invention.
FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.
FIG. 3 is a schematic flow chart diagram of a method of one embodiment of the present invention.
Fig. 4 is a schematic flow chart of a method of another embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. The following explains key terms appearing in the present invention.
As shown in fig. 1, an embodiment of the present invention provides an apparatus for implementing channel selection memory of a KVM switch, including a single chip 10 connected to a switch button 20;
the single chip microcomputer 10 comprises a key action detection module 101, a judgment module 102, a nonvolatile storage area 103, a processing module 104 and an instruction output module 105;
a key action detection module 101, configured to detect an action of switching a key;
the judging module 102 is configured to judge whether a value of a channel variable exists in the nonvolatile storage area 103 after detecting a switching key action;
an instruction output module 105, configured to output an instruction to initialize and configure a current channel as a first channel, that is, a default first channel, when the determining module 102 determines that the value of the channel variable does not exist in the nonvolatile storage area 103; the channel switching module is further configured to output a channel switching instruction according to the information obtained by the analysis of the processing module 104;
the processing module 104 is configured to, when the determining module 102 determines that the value of the channel variable exists in the nonvolatile storage area 103, obtain the value of the channel variable, and analyze the obtained value; and also for storing the value of the current channel variable in the non-volatile storage area 104 when the switching action is completed.
After the current channel configuration is completed, the KVM switcher initializes the switching control action according to the value of the current channel variable, then the value of the current channel variable is stored in the nonvolatile storage area, and is timely updated after each switching action, so that the channel selection memory function is realized. The method is simple to operate, and the use experience of the user is improved.
The embodiment of the invention provides a device for realizing KVM switch channel selection memory, which comprises a single chip microcomputer, wherein a switch button 20 is connected to the single chip microcomputer 10;
the single chip microcomputer 10 comprises a key action detection module 101, a judgment module 102, a nonvolatile storage area 103, a processing module 104 and an instruction output module 105;
a key action detection module 101, configured to detect an action of switching a key;
the judging module 102 is configured to judge whether a value of a channel variable exists in the nonvolatile storage area 103 after detecting a switching key action;
an instruction output module 105, configured to output an instruction to initialize and configure a current channel as a first channel, that is, a default first channel, when the determining module 102 determines that the value of the channel variable does not exist in the nonvolatile storage area 103; the channel switching module is further configured to output a channel switching instruction according to the information obtained by the analysis of the processing module 104;
the processing module 104 is configured to, when the determining module 102 determines that the value of the channel variable exists in the nonvolatile storage area 103, obtain the value of the channel variable, and analyze the obtained value; and also for storing the value of the current channel variable in the non-volatile storage area 104 when the switching action is completed.
The device also comprises a dial switch 30, which is used for selecting whether the channel needs to be switched or not by setting the dial switch 30;
the single chip microcomputer 10 further comprises a port state detection module 106, and the dial switch 30 is connected with the single chip microcomputer 10;
the port state detection module 106 is used for detecting the level state of a port of the single chip microcomputer connected with the dial switch when the key action detection module 101 detects the key action;
an instruction output module 105, configured to output an instruction to initialize and configure a current channel as a first channel, that is, a default first channel, when an output port of the port state detection module 106 is at a high level;
the determining module 102 is configured to determine whether a value of a channel variable exists in the nonvolatile memory area 103 when the output port of the port status detecting module 106 is at a low level.
In order to realize the high efficiency of use, set up dial switch and singlechip and be connected, set up the dialling ware through operating personnel according to the demand like this, the singlechip switches the action according to setting up control.
It should be noted that the apparatus further includes an initialization module 107, configured to perform general initialization configuration after the single chip microcomputer 10 is powered on;
the single chip microcomputer 10 further comprises a power-on judging module 108 for judging whether the single chip microcomputer 10 is powered on for the first time;
the instruction output module 105 is configured to output an instruction to initialize and configure a current channel as a first channel, that is, a default first channel, when the power-on judgment module 108 judges that the single chip microcomputer is powered on for the first time and the key action detection module 101 detects a switching key action;
the port state detection module 106 is specifically configured to detect a level state of a port of the single chip microcomputer 10 connected to the dial switch 30 when the power-on judgment module 108 judges that the single chip microcomputer is not powered on for the first time and the key action detection module 101 detects a switching key action.
By monitoring the power-on state, because the single chip microcomputer is powered on for the first time, namely no effective data exists in the nonvolatile storage area of the single chip microcomputer, in this situation, the current channel is initialized and configured to be the first channel, namely the first channel is directly acquiescent, subsequent judgment is not needed, the switching speed is improved, and the time is saved.
It is further noted that a GPIO port of the single chip is connected with the dial switch; the port state detection module 106 is specifically configured to detect the level state of the GPIO port when the power-on determination module 108 determines that the single chip microcomputer is not powered on for the first time and the key action detection module 101 detects a switching key action. The set value of the dial switch is read through detecting the GPIO level, and the user experience is further improved.
As shown in fig. 2, the present invention further provides a system for implementing channel selection memory of a KVM switch, a device 1 for channel selection memory and a KVM switch 2;
the channel selection memory device 1 comprises a singlechip 10, wherein the singlechip 10 is connected with a switching key 20;
the single chip microcomputer 10 comprises a key action detection module 101, a judgment module 102, a nonvolatile storage area 103, a processing module 104 and an instruction output module 105;
a key action detection module 101, configured to detect an action of switching a key;
the judging module 102 is configured to judge whether a value of a channel variable exists in the nonvolatile storage area 103 after detecting a switching key action;
an instruction output module 105, configured to output an instruction to initialize and configure a current channel as a first channel, that is, a default first channel, when the determining module 102 determines that the value of the channel variable does not exist in the nonvolatile storage area 103; the channel switching module is further configured to output a channel switching instruction according to the information obtained by the analysis of the processing module 104;
the processing module 104 is configured to, when the determining module 102 determines that the value of the channel variable exists in the nonvolatile storage area 103, obtain the value of the channel variable, and analyze the obtained value; and also for storing the value of the current channel variable in the non-volatile storage area 104 when the switching action is completed.
The device also comprises a dial switch 30, which is used for selecting whether the channel needs to be switched or not by setting the dial switch 30;
the single chip microcomputer 10 further comprises a port state detection module 106, and the dial switch 30 is connected with the single chip microcomputer 10;
the port state detection module 106 is used for detecting the level state of a port of the single chip microcomputer connected with the dial switch when the key action detection module 101 detects the key action;
an instruction output module 105, configured to output an instruction to initialize and configure a current channel as a first channel, that is, a default first channel, when an output port of the port state detection module 106 is at a high level;
the determining module 102 is configured to determine whether a value of a channel variable exists in the nonvolatile memory area 103 when the output port of the port status detecting module 106 is at a low level.
In order to realize the high efficiency of use, set up dial switch and singlechip and be connected, set up the dialling ware through operating personnel according to the demand like this, the singlechip switches the action according to setting up control.
It should be noted that the apparatus further includes an initialization module 107, configured to perform general initialization configuration after the single chip microcomputer 10 is powered on;
the single chip microcomputer 10 further comprises a power-on judging module 108 for judging whether the single chip microcomputer 10 is powered on for the first time;
the instruction output module 105 is configured to output an instruction to initialize and configure a current channel as a first channel, that is, a default first channel, when the power-on judgment module 108 judges that the single chip microcomputer is powered on for the first time and the key action detection module 101 detects a switching key action;
the port state detection module 106 is specifically configured to detect a level state of a port of the single chip microcomputer 10 connected to the dial switch 30 when the power-on judgment module 108 judges that the single chip microcomputer is not powered on for the first time and the key action detection module 101 detects a switching key action.
By monitoring the power-on state, the single chip microcomputer is powered on for the first time, namely no effective data exists in the nonvolatile storage area of the single chip microcomputer, so that the first channel is directly defaulted, namely the current channel is initialized and configured into the first channel, subsequent judgment is not needed, the switching speed is increased, and the time is saved.
It is further noted that a GPIO port of the single chip is connected with the dial switch; the port state detection module 106 is specifically configured to detect the level state of the GPIO port when the power-on determination module 108 determines that the single chip microcomputer is not powered on for the first time and the key action detection module 101 detects a switching key action. The set value of the dial switch is read through detecting the GPIO level, and the user experience is further improved.
The command output module 105 is connected to the KVM switch 2, and is configured to output a control command to control the KVM switch 2 to perform channel switching.
It should be noted that the system further includes a power module 5 and a control module 6;
the power module 5 is connected with the single chip microcomputer 10 and used for supplying power to the single chip microcomputer 10.
And the control module 6 is connected with the power supply module 5 and is used for controlling the power supply module to automatically power on the singlechip. And automation of the system switching process is realized.
As shown in FIG. 3, an embodiment of the present invention further provides a switching method for selecting a memory for a KVM switch channel, comprising the following steps:
step 11: after detecting the action of the switching key, detecting the variable value of the channel in the nonvolatile storage area, and judging whether the value of the channel variable exists or not; if yes, go to step 13, otherwise, go to step 12;
step 12: initializing and configuring a current channel into a first channel; the default first channel; step 15 is executed;
step 13: acquiring a value of a channel variable, and analyzing the acquired value;
step 14: controlling channel switching action according to the analyzed information output instruction;
step 15: and storing the value of the current channel variable into a nonvolatile storage area.
After the current channel configuration is completed, the KVM switcher initializes the switching control action according to the value of the current channel variable, then the value of the current channel variable is stored in the nonvolatile storage area, and is timely updated after each switching action, so that the channel selection memory function is realized. The method is simple to operate, and the use experience of the user is improved.
As shown in fig. 4, an embodiment of the present invention further provides a method for switching a channel selection memory of a KVM switch, including the following steps:
step 21: powering on the single chip microcomputer, and carrying out general initialization configuration;
step 22: detecting the state of a switching key;
step 23: after detecting the action of the switching key, judging whether the singlechip is powered on for the first time; if yes, go to step 28; if not, executing step 24;
step 24: detecting a level state of a port for indicating switching of a channel; when the port is at high level, executing step 28, and when the port is at low level, executing step 25;
step 25: detecting the variable value of a channel in the nonvolatile storage area, and judging whether the value of the channel variable exists or not; if yes, go to step 26, otherwise go to step 28;
step 26: acquiring a value of a channel variable, and analyzing the acquired value;
step 27: controlling channel switching action according to the analyzed information output instruction; step 29 is executed;
step 28: initializing and configuring a current channel into a first channel; i.e. defaults to the first channel, step 29 is performed;
step 29: and storing the value of the current channel variable into a nonvolatile storage area.
By monitoring the power-on state, the single chip microcomputer is powered on for the first time, namely no effective data exists in the nonvolatile storage area of the single chip microcomputer, so that the first channel is directly defaulted under the condition, subsequent judgment is not needed, the switching speed is increased, and the time is saved.
In order to realize the channel selection memory function, the single chip microcomputer needs to record the current latest switched channel value into the nonvolatile storage area after detecting the action of the switching key and while executing the function of KVM switching control action. In the process of executing the single chip microcomputer, variables are generally stored in volatile storage areas such as an RAM (random access memory), and once the KVM (keyboard, video and mouse) equipment is powered off, data of current channel value variables stored in the single chip microcomputer are lost. The variable storage device stores the variable value into the nonvolatile storage area of the single chip microcomputer, and the single chip microcomputer can be stored for a long time without loss after being powered off. Therefore, the single chip microcomputer immediately stores the value of the current channel variable originally stored in the RAM space lost in power failure into the nonvolatile storage area in the single chip microcomputer while executing the KVM switching control action each time.
After the single chip microcomputer is electrified again, general initialization configuration is firstly carried out, and then the level state of the GPIO connected with the dial switch is detected. When the high level state is carried out, the current channel is initialized and configured to be the first channel; in a low level state, the variable value of the historical channel in the nonvolatile storage area is firstly inquired, and then the current channel is configured as the channel before the last shutdown (if the single chip microcomputer is powered on for the first time, namely no valid data exists in the nonvolatile storage area, the first channel is defaulted). After the current channel configuration is completed, executing KVM initialization switching control action according to the value of the current channel variable, then storing the value of the current channel variable into a nonvolatile storage area, and updating in time after each switching action, thereby realizing the channel selection memory function.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A device for realizing the channel selection memory of a KVM switcher is characterized by comprising a single chip microcomputer, wherein the single chip microcomputer is connected with a switching key;
the single chip microcomputer comprises a key action detection module, a judgment module, a nonvolatile storage area, a processing module and an instruction output module;
the key action detection module is used for detecting the action of switching the keys;
the judging module is used for judging whether a channel variable value exists in the nonvolatile storage area after detecting the action of the switching key;
the instruction output module is used for outputting an instruction to initialize and configure the current channel into a first channel when the judging module judges that the value of the channel variable does not exist in the nonvolatile storage area, namely, the default first channel; and the processor is also used for outputting a channel switching instruction according to the information obtained by the analysis of the processing module
The processing module is used for acquiring the value of the channel variable when the judging module judges that the value of the channel variable exists in the nonvolatile storage area and analyzing the acquired value; and the method is also used for storing the value of the current channel variable into the nonvolatile storage area when the switching action is completed.
2. The apparatus of claim 1, further comprising a toggle switch for selecting whether the channel needs to be switched by setting the toggle switch;
the single chip microcomputer also comprises a port state detection module, and the dial switch is connected with the single chip microcomputer;
the port state detection module is used for detecting the level state of a port of the singlechip connected with the dial switch when the key action detection module detects the key action;
the instruction output module is used for outputting an instruction to initialize and configure a current channel into a first channel when the output port of the port state detection module is at a high level, namely, the default first channel;
and the judging module is used for judging whether the channel variable value exists in the nonvolatile storage area or not when the output port of the port state detecting module is at a low level.
3. The apparatus of claim 2, further comprising an initialization module for performing general initialization configuration after the single-chip microcomputer is powered on;
the singlechip also comprises a power-on judging module which is used for judging whether the singlechip is powered on for the first time;
the instruction output module is used for outputting an instruction to initialize and configure a current channel into a first channel when the power-on judgment module judges that the singlechip is powered on for the first time and the key action detection module detects a switching key action, namely, the current channel is a default first channel;
and the port state detection module is specifically used for detecting the level state of the port of the singlechip connected with the dial switch after the key action detection module detects the switching key action when the power-on judgment module judges that the singlechip is not powered on for the first time.
4. The device of claim 3, wherein the GPIO port of the single chip is connected to the dial switch;
and the port state detection module is specifically used for detecting the level state of the GPIO port when the power-on judgment module judges that the single chip microcomputer is not powered on for the first time and the key action detection module detects the switching key action.
5. A system for realizing KVM switcher channel selection memory is characterized in that the channel selection memory device and the KVM switcher;
the device for channel selection memory is the device for implementing KVM switch channel selection memory as described in any one of claims 1 to 4;
the command output module is connected with the KVM switcher and used for outputting a control command to control the KVM switcher to switch channels.
6. The system according to claim 5, further comprising a power module;
the power module is connected with the single chip microcomputer and used for supplying power to the point single chip microcomputer.
7. The system according to claim 6, further comprising a control module;
the control module is connected with the power supply module and used for controlling the power supply module to automatically power on the single chip microcomputer.
8. A switching method for selecting memory of KVM switch channel is characterized in that the method comprises the following steps:
after detecting the action of the switching key, judging whether a channel variable value exists in the nonvolatile storage area;
if not, the current channel is initialized and configured as a first channel, namely the first channel is defaulted;
if so, acquiring the value of the channel variable, and analyzing the acquired value;
controlling channel switching action according to the analyzed information output instruction;
and storing the value of the current channel variable into a nonvolatile storage area.
9. The KVM switch channel selection memory switching method of claim 8, wherein the step of determining whether the channel variable value exists in the nonvolatile storage area after detecting the switch key action comprises;
detecting the state of a switching key;
after detecting the action of the switching key, detecting the level state of a port for indicating a switching channel;
when the port is in a high level, the current channel is initialized and configured as a first channel, namely a default first channel;
and when the port is at a low level, judging whether the value of the channel variable exists in the nonvolatile storage area.
10. The KVM switch channel selection memory switch method of claim 9, wherein the step of detecting the state of the switch button further comprises:
powering on the single chip microcomputer, and carrying out general initialization configuration;
judging whether the single chip microcomputer is powered on for the first time;
if yes, after detecting the action of switching the key, initializing and configuring the current channel into a first channel, namely, defaulting the first channel;
if not, after detecting the action of the switching key, detecting the level state of the port for indicating the switching channel.
CN202111058023.4A 2021-09-09 2021-09-09 Device, system and switching method for realizing KVM switcher channel selection memory Pending CN113760110A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111058023.4A CN113760110A (en) 2021-09-09 2021-09-09 Device, system and switching method for realizing KVM switcher channel selection memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111058023.4A CN113760110A (en) 2021-09-09 2021-09-09 Device, system and switching method for realizing KVM switcher channel selection memory

Publications (1)

Publication Number Publication Date
CN113760110A true CN113760110A (en) 2021-12-07

Family

ID=78794499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111058023.4A Pending CN113760110A (en) 2021-09-09 2021-09-09 Device, system and switching method for realizing KVM switcher channel selection memory

Country Status (1)

Country Link
CN (1) CN113760110A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202916806U (en) * 2012-11-19 2013-05-01 北京易艾斯德科技有限公司 Keyboard port switching device
US20140019648A1 (en) * 2012-07-12 2014-01-16 Hon Hai Precision Industry Co., Ltd. Keyboard, video and mouse (kvm) switch indicator and kvm switch system using the same
CN104123010A (en) * 2014-07-21 2014-10-29 山东超越数控电子有限公司 Method for processing KVM equipment channel memory function
CN104615271A (en) * 2015-02-28 2015-05-13 浪潮集团有限公司 Processing method for KVM (Kernel-based Virtual Machine) and processing device for KVM
CN112099749A (en) * 2020-09-22 2020-12-18 山东超越数控电子股份有限公司 Notebook computer supporting KVM function

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140019648A1 (en) * 2012-07-12 2014-01-16 Hon Hai Precision Industry Co., Ltd. Keyboard, video and mouse (kvm) switch indicator and kvm switch system using the same
CN202916806U (en) * 2012-11-19 2013-05-01 北京易艾斯德科技有限公司 Keyboard port switching device
CN104123010A (en) * 2014-07-21 2014-10-29 山东超越数控电子有限公司 Method for processing KVM equipment channel memory function
CN104615271A (en) * 2015-02-28 2015-05-13 浪潮集团有限公司 Processing method for KVM (Kernel-based Virtual Machine) and processing device for KVM
CN112099749A (en) * 2020-09-22 2020-12-18 山东超越数控电子股份有限公司 Notebook computer supporting KVM function

Similar Documents

Publication Publication Date Title
US10846160B2 (en) System and method for remote system recovery
CN111045901B (en) Container monitoring method and device, storage medium and electronic equipment
US20030033550A1 (en) Uninterruptible power supply (UPS) devices monitoring system
US10921870B2 (en) System and method for hybrid power supply
CN109542744A (en) Detect method, apparatus, storage medium and the terminal of terminal booting abnormal problem
US8335891B2 (en) Method and system for configuring a storage array
CN111158982B (en) Electronic device, first operating system, data processing method, and storage medium
US20040162898A1 (en) Dedicated networked device monitoring system
CN107894935A (en) OPS computer module detection process method, apparatus and electronic equipment
US20140365758A1 (en) Techniques for booting an information processing system
CN113760110A (en) Device, system and switching method for realizing KVM switcher channel selection memory
US20090070491A1 (en) Method for executing target programs with compound quick keys
CN111176958A (en) Information monitoring method, system and storage medium
CN116361106A (en) Log processing method and device, electronic equipment and storage medium
CN113849367B (en) Server, management method, device and system thereof, electronic equipment and storage medium
US20020095437A1 (en) Information processing apparatus, method for utilizing the same and program for information processing apparatus
CN109491825B (en) Method, device, storage medium and terminal for positioning abnormal starting problem
CN113127029A (en) Firmware updating method and device, electronic equipment and storage medium
CN110895008A (en) Air conditioner parameter updating method and device
CN113641524B (en) Reset method, device and equipment for single board starting overtime and readable storage medium
CN111562897B (en) Display switching method and system of blade server
CN113900715B (en) Information management system, method, device and storage medium
US20230259377A1 (en) User input predictive action system and method for user interfaces
CN112311560B (en) Remote wakeup method and remote wakeup system
CN211236889U (en) Circuit for configuring computer BIOS parameters by utilizing single chip microcomputer

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