CN113485088B - Keyboard switching circuit and control method thereof - Google Patents

Keyboard switching circuit and control method thereof Download PDF

Info

Publication number
CN113485088B
CN113485088B CN202110719997.6A CN202110719997A CN113485088B CN 113485088 B CN113485088 B CN 113485088B CN 202110719997 A CN202110719997 A CN 202110719997A CN 113485088 B CN113485088 B CN 113485088B
Authority
CN
China
Prior art keywords
keyboard
signal
detection
switch
electrically connected
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.)
Active
Application number
CN202110719997.6A
Other languages
Chinese (zh)
Other versions
CN113485088A (en
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.)
Shanghai Wingtech Information Technology Co Ltd
Original Assignee
Shanghai Wingtech 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 Shanghai Wingtech Information Technology Co Ltd filed Critical Shanghai Wingtech Information Technology Co Ltd
Priority to CN202110719997.6A priority Critical patent/CN113485088B/en
Publication of CN113485088A publication Critical patent/CN113485088A/en
Application granted granted Critical
Publication of CN113485088B publication Critical patent/CN113485088B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B7/00Arrangements for obtaining smooth engagement or disengagement of automatic control
    • G05B7/02Arrangements for obtaining smooth engagement or disengagement of automatic control electric
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/52Testing for short-circuits, leakage current or ground faults

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The present disclosure relates to a keyboard switching circuit and a control method of the keyboard switching circuit, including: the device comprises a detection module, a signal change-over switch and a load current-limiting switch; the first input end of the detection module is electrically connected with the detection end of the first keyboard, the second input end of the detection module is electrically connected with the detection end of the second keyboard, and the first output end of the detection module is electrically connected with the first input end of the signal change-over switch and the first input end of the load current-limiting switch respectively; the first output end of the signal change-over switch is electrically connected with the communication end of the first keyboard, and the second output end of the signal change-over switch is electrically connected with the communication end of the second keyboard; the first output end of the load current-limiting switch is electrically connected with the power supply end of the first keyboard, and the second output end of the load current-limiting switch is electrically connected with the power supply end of the second keyboard; the configuration of the electronic equipment is improved in a matching mode that the same host equipment is compatible with two keyboards.

Description

Keyboard switching circuit and control method thereof
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a keyboard switching circuit and a control method of the keyboard switching circuit.
Background
With the increasing popularity of two-in-one (2-in-1) notebook computers, the functions of the notebook computers in the market are more and more perfect, and besides the requirement of normal office use, the two-in-one notebook computer also has the advantages of being light and thin, convenient to carry when going out, detachable in keyboard and the like. When the notebook computer is not provided with the keyboard, the notebook computer can be switched into a tablet mode (table mode), so that the notebook computer is convenient to play 3D games and watch various life and entertainment scenes of movies. When the notebook computer is provided with the keyboard, the notebook computer can meet the normal office requirement.
In addition, the two-in-one notebook can meet different office scene requirements according to different configured keyboards, for example, only a conventional leather sheath keyboard needs to be configured in normal office, but a suspended keyboard can be configured in scenes of watching movies, listening to music and the like, so that the trend of future development is that more than one keyboard is configured for the same two-in-one notebook. At present, the redundant configuration of a plurality of keyboards can be realized by modifying corresponding keyboard interfaces and main equipment shells, but the mode cannot realize the matching mode that the same main equipment is compatible with two keyboards.
Disclosure of Invention
In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a keyboard switching circuit and a control method of the keyboard switching circuit, so as to implement a matching manner that the same host device is compatible with two keyboards, and improve the configuration of an electronic device.
In a first aspect, an embodiment of the present disclosure provides a keyboard switching circuit, including: the device comprises a detection module, a signal change-over switch and a load current-limiting switch;
the first input end of the detection module is electrically connected with the detection end of the first keyboard, the second input end of the detection module is electrically connected with the detection end of the second keyboard, and the first output end of the detection module is electrically connected with the first input end of the load current-limiting switch;
the first output end of the signal change-over switch is electrically connected with the communication end of the first keyboard, and the second output end of the signal change-over switch is electrically connected with the communication end of the second keyboard;
a first output end of the load current-limiting switch is electrically connected with a power supply end of the first keyboard, and a second output end of the load current-limiting switch is electrically connected with a power supply end of the second keyboard;
the detection module respectively acquires an electric signal of the detection end of the first keyboard and an electric signal of the detection end of the second keyboard, and respectively outputs a first control signal to the signal change-over switch and the load current-limiting switch according to the acquired electric signal of the detection end of the first keyboard or the acquired electric signal of the detection end of the second keyboard so as to control the conduction states of the signal change-over switch and the load current-limiting switch.
Optionally, the system further comprises a main control module;
the first end of the main control module is electrically connected with the second output end of the detection module, the second end of the main control module is electrically connected with the second input end of the signal selector switch, and the third end of the main control module is electrically connected with the second input end of the load current-limiting switch;
and the detection module is used for outputting a second control signal when receiving the second control signal output by the second output end of the detection module, outputting key information to the signal switching switch and outputting a voltage signal to the load current-limiting switch.
Optionally, the main control module is further configured to switch to a flat mode when receiving an interrupt signal output by the second output terminal of the detection module.
Optionally, the main control module is further configured to output a cut-off signal to the load current limit switch when the communication terminal of the first keyboard is abnormal in communication or the communication terminal of the second keyboard is abnormal in communication.
Optionally, the system further comprises a power supply module;
the power module is electrically connected with the main control module and used for providing voltage signals for the main control module.
Optionally, the detection module includes a detection unit, a level conversion unit and an or gate;
the first input end of the detection unit is electrically connected with the detection end of the first keyboard, the second input end of the detection unit is electrically connected with the detection end of the second keyboard, the first output end of the detection unit is electrically connected with the first input end of the level conversion unit, the second output end of the detection unit is electrically connected with the second input end of the level conversion unit, the first output end of the level conversion unit is electrically connected with the first input end of the OR gate, the second output end of the level conversion unit is electrically connected with the second input end of the OR gate, and the first output end of the OR gate is respectively electrically connected with the first input end of the signal switching switch and the first input end of the load current limiting switch.
In a second aspect, an embodiment of the present disclosure further provides a control method for a keyboard switching circuit, where the control method includes:
acquiring an electric signal of a detection end of a first keyboard and an electric signal of a detection end of a second keyboard;
and outputting a first control signal to control the conduction state of the signal change-over switch and the load current-limiting switch according to the acquired electric signal of the detection end of the first keyboard and the acquired electric signal of the detection end of the second keyboard.
Optionally, after the first control signal is output according to the obtained electrical signal of the detection end of the first keyboard and the obtained electrical signal of the detection end of the second keyboard to control the conduction states of the signal switch and the load current limit switch, the method further includes:
and outputting a second control signal according to the obtained electric signal of the detection end of the first keyboard and the obtained electric signal of the detection end of the second keyboard to control the main control module to output key information to the signal switch and output a voltage signal to the load current-limiting switch.
Optionally, after the first control signal is output according to the obtained electrical signal of the detection end of the first keyboard and the obtained electrical signal of the detection end of the second keyboard to control the conduction states of the signal switch and the load current limit switch, the method further includes:
and outputting an interrupt signal according to the acquired electric signal of the detection end of the first keyboard and the acquired electric signal of the detection end of the second keyboard to control the main control module to switch to the flat mode.
Optionally, the method further includes:
and outputting a cut-off signal to a load current limiting switch when the communication abnormality of the communication end of the first keyboard or the communication abnormality of the communication end of the second keyboard is detected.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
the keyboard switching circuit provided by the embodiment of the disclosure comprises a detection module, a signal switching module and a load current-limiting switch, wherein the detection module of the keyboard switching circuit respectively outputs a first control signal to the signal switching switch and the load current-limiting switch according to the acquired electric signal of the detection end of the first keyboard and the acquired electric signal of the detection end of the second keyboard so as to control the conduction state of the signal switching switch and the load current-limiting switch, thereby realizing the matching mode that the same host equipment is compatible with the two keyboards, improving the configuration of electronic equipment and reducing the circuit complexity.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the embodiments or technical solutions in the prior art description will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic structural diagram of a keyboard switching circuit according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of another keyboard switching circuit provided in the embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of another keyboard switching circuit provided in the embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a control method of a keyboard switching circuit according to an embodiment of the present disclosure;
fig. 5 is a schematic flowchart of another control method of a keyboard switching circuit according to an embodiment of the present disclosure;
fig. 6 is a flowchart illustrating a control method of another keyboard switching circuit according to an embodiment of the present disclosure.
10, a detection module; 20. a signal transfer switch; 30. a load current limit switch; 40. a first keyboard; 50. a second keypad; 60. a main control module; 70. a power supply module; 101. a detection unit; 102. a level conversion unit; 103. an OR gate; a1, a detection end of a first keyboard 40; a2, a detection end of the second keyboard 50; b1, a signal end of the first keyboard 40; b2, signal end of the second keyboard 50; c1, a power source terminal of the first keypad 40; c2, a power supply terminal of the second keypad 50; 11. a first input of the detection module 10; 12. a second input of the detection module 10; 13. a first output of the detection module 10; 14. a second output of the detection module 10; 21. a first input of the signal switch 20; 22. a first output terminal of the signal changeover switch 20; 23. a second output terminal of the signal changeover switch 20; 24. a second input of the signal switch 20; 31. a first input of a load current limit switch 30; 32. a first output of the load current limit switch 30; 33. a second output of the load current limit switch 30; 34. a second input of the load current limit switch 30; 61. a first end of the master control module 60; 62. a second end of the master control module 60; 63. a third terminal of the main control module 60.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
Fig. 1 is a schematic structural diagram of a keyboard switching circuit provided in an embodiment of the present disclosure, and as shown in fig. 1, the keyboard switching circuit includes: the keyboard comprises a detection module 10, a signal change-over switch 20 and a load current-limiting switch 30, wherein a first input end 11 of the detection module 10 is electrically connected with a detection end A1 of a first keyboard 40, a second input end 12 of the detection module 10 is electrically connected with a detection end A2 of a second keyboard 50, and a first output end 13 of the detection module 10 is electrically connected with a first input end 21 of the signal change-over switch 20 and a first input end 31 of the load current-limiting switch 30 respectively. The first output end 22 of the signal switch 20 is electrically connected to the communication end B1 of the first keyboard 40, the second output end 23 of the signal switch 20 is electrically connected to the communication end B2 of the second keyboard 50, the first output end 32 of the load current limit switch 30 is electrically connected to the power end C1 of the first keyboard 40, the second output end 33 of the load current limit switch 30 is electrically connected to the power end C2 of the second keyboard 50, the detection module 10 respectively obtains an electrical signal of the detection end A1 of the first keyboard 40 and an electrical signal of the detection end A2 of the second keyboard 50, and respectively outputs a first control signal to the signal switch 20 and the load current limit switch 30 according to the obtained electrical signal of the detection end A1 of the first keyboard 40 or the obtained electrical signal of the detection end A2 of the second keyboard 50 to control the conduction states of the signal switch 20 and the load current limit switch 30.
As shown in fig. 1, in the keyboard switching circuit, a first input end 11 of a detection module 10 is electrically connected to a detection end A1 of a first keyboard 40, the first input end 11 of the detection module 10 obtains an electrical signal of the detection end A1 of the first keyboard 40, a second input end 12 of the detection module 10 is electrically connected to a detection end A2 of a second keyboard 50, and the second input end 12 of the detection module 10 obtains an electrical signal of the detection end A2 of the second keyboard 50. For example, if an electrical signal exists at the detection end A1 of the first keyboard 40 or the detection end A2 of the second keyboard 50, which represents that the first keyboard 40 or the second keyboard 50 is connected to the electronic device, when the first input end 11 of the detection module 10 acquires the electrical signal of the detection end A1 of the first keyboard 40, the first keyboard 40 is connected to the electronic device, and when the second input end 12 of the detection module 10 acquires the electrical signal of the detection end A2 of the second keyboard 50, the second keyboard 50 is connected to the electronic device.
When the detection module 10 acquires the electrical signal of the detection end A1 of the first keyboard 40 or the electrical signal of the detection end A1 of the second keyboard 50, it outputs a first control signal to the signal switch 20 and the load current limit switch 30, respectively, to control the on-state of the signal switch 20 and the load current limit switch 30. Specifically, when the first input end 11 of the detection module 10 acquires an electrical signal of the detection end A1 of the first keyboard 40, and the second input end 12 of the detection module 10 does not acquire an electrical signal of the detection end A1 of the second keyboard 50, the first output end 13 of the detection module 10 outputs a first control signal to the signal switch 20 to switch the signal switch 20 to the first output end 22 so that the signal switch 20 is electrically connected to the communication end B1 of the first keyboard 40, and outputs the first control signal to the load current limit switch 30 to switch the load current limit switch 30 to the first output end 32 so that the load current limit switch 30 is electrically connected to the power end C1 of the first keyboard 40. When the first input end 11 of the detection module 10 does not obtain the electrical signal of the detection end A1 of the first keyboard 40, the second input end 12 of the detection module 10 obtains the electrical signal of the detection end A2 of the second keyboard 50, the first output end 13 of the detection module 10 outputs the first control signal to the signal switch 20 to switch the signal switch 20 to the second output end 23 so that the signal switch 20 is electrically connected to the communication end B2 of the second keyboard 50, and outputs the first control signal to the load current limit switch 30 to switch the load current limit switch 30 to the second output end 33 so that the load current limit switch 30 is electrically connected to the power end C2 of the second keyboard 50.
The keyboard switching circuit provided by the embodiment of the disclosure comprises a detection module, a signal switching module and a load current-limiting switch, wherein the detection module of the keyboard switching circuit respectively outputs a first control signal to the signal switching switch and the load current-limiting switch according to the acquired electric signal of the detection end of the first keyboard and the acquired electric signal of the detection end of the second keyboard so as to control the conduction states of the signal switching switch and the load current-limiting switch, so that the same host device is compatible with two keyboards, the configuration of electronic equipment is improved, and the circuit complexity is reduced.
Optionally, on the basis of the foregoing embodiment, fig. 2 is a schematic structural diagram of another keyboard switching circuit provided in the present disclosure, and as shown in fig. 2, the keyboard switching circuit further includes a main control module 60, a first end 61 of the main control module 60 is electrically connected to the second output end 14 of the detection module 10, a second end 62 of the main control module 60 is electrically connected to the second input end 24 of the signal switch 20, and a third end 63 of the main control module 60 is electrically connected to the second input end 34 of the load current limit switch 30, and is configured to output key information to the signal switch 20 and output a voltage signal to the load current limit switch 30 when receiving a second control signal output by the second output end 14 of the detection module 10.
As shown in fig. 2, the keyboard switching circuit further includes a main control module 60, a first end 61 of the main control module 60 is electrically connected to a second output end 14 of the detection module 10, and when the first input end 11 of the detection module 10 obtains an electrical signal of the detection end A1 of the first keyboard 40, the second input end 12 of the detection module 10 does not obtain an electrical signal of the detection end A2 of the second keyboard 50, or the first input end 11 of the detection module 10 does not obtain an electrical signal of the detection end A1 of the first keyboard 40, and the second input end 12 of the detection module 10 obtains an electrical signal of the detection end A2 of the second keyboard 50, the second output end 14 of the detection module 10 outputs a second control signal to the main control module 60. The main control module 60 outputs the key information to the signal switch 20 through the second terminal 62 according to the obtained second control signal, and outputs the voltage signal to the load current limit switch 30 through the third terminal 63 according to the obtained second control signal.
Illustratively, when the first input terminal 11 of the detection module 10 acquires an electrical signal from the detection terminal A1 of the first keyboard 40 and the second input terminal 12 of the detection module 10 does not acquire an electrical signal from the detection terminal A2 of the second keyboard 50, the first output terminal 13 of the detection module 10 outputs a first control signal to the signal switch 20 to switch the signal switch 20 to the first output terminal 22 to electrically connect the signal switch 20 to the communication terminal B1 of the first keyboard 40, and outputs the first control signal to the load current limit switch 30 to switch the load current limit switch 30 to the first output terminal 32 to electrically connect the load current limit switch 30 to the power terminal C1 of the first keyboard 40. Meanwhile, the second output terminal 14 of the detection module 10 outputs a second control signal to the first terminal 61 of the main control module 60, the main control module 60 outputs key information to the signal switch 20 through the second terminal 62 according to the obtained second control signal, and the signal switch 20 receives the key information output by the main control module 60 and outputs the key information to the communication terminal B1 of the first keyboard 40 through the first output terminal 22, so that the first keyboard 40 receives the key information. In addition, the main control module 60 outputs a voltage signal to the load current-limiting switch 30 through the third terminal 63 according to the obtained second control signal, and the load current-limiting switch 30 receives the voltage signal output by the main control module 60 and provides the voltage signal to the power terminal C1 of the first keyboard 40 through the first output terminal 32. When the first input end 11 of the detection module 10 does not obtain the electrical signal of the detection end A1 of the first keyboard 40, and the second input end 12 of the detection module 10 obtains the electrical signal of the detection end A2 of the second keyboard 50, the first output end 13 of the detection module 10 outputs the first control signal to the signal switch 20 to switch the signal switch 20 to the second output end 23 so that the signal switch 20 is electrically connected to the communication end B2 of the second keyboard 50, and outputs the first control signal to the load current limit switch 30 to switch the load current limit switch 30 to the second output end 33 so that the load current limit switch 30 is electrically connected to the power end C2 of the second keyboard 50. Meanwhile, the second output terminal 14 of the detection module 10 outputs a second control signal to the first terminal 61 of the main control module 60, the main control module 60 outputs key information to the signal switch 20 through the second terminal 62 according to the obtained second control signal, and the signal switch 20 receives the key information output by the main control module 60 and outputs the key information to the communication terminal B2 of the second keyboard through the second output terminal 23, so that the second keyboard 50 receives the key information. In addition, the main control module 60 outputs a voltage signal to the load current-limiting switch 30 through the third terminal 63 according to the obtained second control signal, and the load current-limiting switch 30 receives the voltage signal output by the main control module 60 and provides the voltage signal to the power terminal C2 of the second keyboard 50 through the second output terminal 33.
The keyboard switching circuit provided by the embodiment of the disclosure further comprises a main control module, wherein the main control module outputs key information to the signal switch and outputs a voltage signal to the load current switch according to a second control signal output by the detection module, so that the key information is output to the communication end of the first keyboard or the communication end of the second keyboard according to the conducting state of the signal switch, and the voltage information is output to the power end of the first keyboard or the power end of the second keyboard according to the conducting state of the load current-limiting switch.
Optionally, with continued reference to fig. 2, the main control module 60 is further configured to switch to the flat panel mode upon receiving an interrupt signal output by the second output terminal 14 of the detection module 10.
When the first input end 11 of the detection module 10 does not acquire the electrical signal of the detection end A1 of the first keyboard 40, and the second input end 12 of the detection module 10 does not acquire the electrical signal of the detection end A2 of the second keyboard 50, the second output end 14 of the detection module 10 outputs an interrupt signal to the first end 61 of the main control module 60, at this time, the main control module 60 controls the key information output to the signal switch 20 and the voltage signal output to the load current limit switch 30 according to the received interrupt signal, that is, the second end 62 of the main control module 60 does not output the key information to the signal switch, and the third end 63 of the main control module 60 does not output the voltage signal to the load current limit switch 30, so that the electronic device is switched from the notebook computer mode to the tablet mode.
Optionally, the main control module 60 is further configured to output a cut-off signal to the load current limit switch 30 when receiving a communication abnormality of the communication terminal B1 of the first keyboard 40 or a communication abnormality of the communication terminal B2 of the second keyboard 50.
For example, referring to fig. 2, if the communication duration of the main control module 60 receiving the communication end of the first keyboard 40 or the second keyboard 50 exceeds the preset duration, for example, the preset duration is 10mS, at this time, there may be a short circuit of the external keyboard, that is, the first keyboard 40 or the second keyboard 50 has a short circuit, in order to avoid the influence of the short circuit of the first keyboard 40 or the second keyboard 50 on the host of the electronic device, at this time, the third end 63 of the main control module 60 outputs a cut-off signal to the load current-limiting switch 30, and controls the load current-limiting switch 30 to turn off, that is, no voltage signal is output to the power end of the first keyboard 40 or the second keyboard 50 through the load current-limiting switch 30.
Optionally, with reference to fig. 2, the keyboard switching circuit further includes a power module 70, where the power module 70 is electrically connected to the main control module 60 and configured to provide a voltage signal to the main control module 60.
Illustratively, as shown in fig. 2, the voltage signal is provided to the main control module 60 through the power module 70, and the main control module 60 outputs the voltage signal to the load current limit switch 30.
Optionally, on the basis of the foregoing embodiment, fig. 3 is a schematic structural diagram of a keyboard switching circuit provided in this disclosure, and as shown in fig. 3, the detecting module 10 includes a detecting unit 101, a level converting unit 102 and an or gate 103, a first input end of the detecting unit 101 is electrically connected to a detecting end A1 of the first keyboard 40, a second input end of the detecting unit 101 is electrically connected to a detecting end A2 of the second keyboard 50, a first output end of the detecting unit 101 is electrically connected to a first input end of the level converting unit 102, a second output end of the detecting unit 101 is electrically connected to a second input end of the level converting unit 102, a first output end of the level converting unit 102 is electrically connected to a first input end of the or gate 103, a second output end of the level converting unit 102 is electrically connected to a second input end of the or gate 103, and a first output end of the or gate 103 is electrically connected to the first input end 21 of the signal switch 20 and the first input end 31 of the load current limiting switch 30, respectively.
As shown in fig. 3, the detection module 10 includes a detection unit 101, a level conversion unit 102, and an or gate 103, when a first input end of the detection unit 101 obtains an electrical signal of a detection end A1 of the first keyboard 40, for example, when the first keyboard 40 is connected to an electronic device and the second keyboard 50 is not connected to the electronic device, the detection end A1 of the first keyboard 40 outputs a 5V voltage signal to the first input end of the detection unit 101, and the detection end A2 of the second keyboard 50 does not output a 5V voltage signal to the second input end of the detection unit 101 (where, the 5V voltage signal is an analog signal), at this time, the detection unit 101 outputs the detected electrical signal of the detection end A1 of the first keyboard 40 to the level conversion unit 102, and the level conversion unit 102 converts the analog signal of the detection end A1 of the first keyboard 40 output by the detection unit 101 into a level signal (for example, after the level conversion unit receives the analog signal, the level conversion unit converts the received analog signal into a high level signal, and when the level conversion unit does not receive the analog signal, where the low level signal and the digital signal correspond to the high level signal. The level conversion unit 102 converts the analog signal detected by the detection unit 101 into a digital signal, and outputs the digital signal to the or gate 103, that is, outputs a low level signal or a high level signal to the or gate 103, and the or gate 103 outputs a control signal according to the level signals received by the first input terminal and the second input terminal. Illustratively, when the first keyboard 40 is connected to the electronic device, the second keyboard 50 is not connected to the electronic device, the first input terminal of the detecting unit 101 receives the 5V electrical signal of the detecting terminal A1 of the first keyboard 40, the second input terminal of the detecting unit 101 does not receive the 5V electrical signal of the detecting terminal A2 of the second keyboard 50, the first output terminal of the detecting unit 101 outputs an analog signal to the first input terminal of the level converting unit 102, the second output terminal of the detecting unit 101 does not output an analog signal to the second input terminal of the level converting unit 102, the level converting unit 102 converts the analog signal received by the first input terminal into a digital signal (i.e., a high level), the level converting unit 102 converts the analog signal received by the second input terminal into a digital signal (i.e., a low level), when the first input terminal of the or gate 103 receives a high level signal, the second input terminal of the gate 103 receives a low level signal, or the gate 103 is in a conducting state, and outputs the first control signal to the signal switch 20 and the load switch 30, and the current limit switch 30 receives the current limit signal. For example, the first control signal output by the or gate 103 may be X1 (X11: X12), when the value of X11 in the first control signal is 1, and the value of X12 is 0, that is, the first control signal X1 (1:0), at this time, the signal switch 20 switches the first output terminal 22 of the switch 20 to be electrically connected to the communication terminal B1 of the first keyboard 40 according to the first control signal, and the load current limit switch 30 switches the first output terminal 32 of the load current limit switch 30 to be electrically connected to the power terminal C1 of the first keyboard 40 according to the first control signal. When the first control signal X1 (0:1) is asserted, the second output terminal 23 of the switch 20 is electrically connected to the communication terminal B2 of the second keyboard 50 according to the first control signal, and the load current limit switch 30 is electrically connected to the second output terminal 33 of the load current limit switch 30 according to the first control signal.
Optionally, on the basis of the foregoing embodiment, fig. 4 is a control method of a keyboard switching circuit provided in an embodiment of the present disclosure, where the keyboard switching circuit includes: a signal transfer switch and a load current limiting switch;
the control method comprises the following steps:
s110, acquiring an electric signal of the detection end of the first keyboard and an electric signal of the detection end of the second keyboard.
Specifically, when the electronic device is in the notebook mode, if an electric signal exists at the detection end of the first keyboard or at the detection end of the second keyboard, the first keyboard is accessed to the electronic device when the electric signal of the detection end of the first keyboard is detected, and the second keyboard is accessed to the electronic device when the electric signal of the detection end of the second keyboard is detected, so that the electric signal of the detection end of the first keyboard and the electric signal of the detection end of the second keyboard are obtained.
And S120, outputting a first control signal to control the conduction state of the signal change-over switch and the load current-limiting switch according to the acquired electric signal of the detection end of the first keyboard and the acquired electric signal of the detection end of the second keyboard.
Specifically, if the electric signal of the detection end of the first keyboard is acquired, but the electric signal of the detection end of the second keyboard is not acquired, it can be determined that the first keyboard is connected to the electronic device, the second keyboard is not connected to the electronic device, the first control signal is output according to the acquired electric signal of the detection end of the first keyboard and the acquired electric signal of the detection end of the second keyboard to control the switch of the first control signal to the first output end so that the switch of the signal switch is electrically connected with the communication end of the first keyboard, and the first control signal is output to control the switch of the load current limiting switch to the first output end so that the load current limiting switch is electrically connected with the power end of the first keyboard. Illustratively, if the electrical signal of the detection end of the first keyboard is acquired and the electrical signal of the detection end of the second keyboard is not acquired, the first control signal X1 (1:0) is output at this time, and if the electrical signal of the detection end of the second keyboard is acquired and the electrical signal of the detection end of the first keyboard is not acquired, the first control signal X1 (0:1) is output at this time.
According to the control method of the keyboard switching circuit, the electric signal of the detection end of the first keyboard and the electric signal of the detection end of the second keyboard are obtained, and the first control signal is output according to the obtained electric signal of the detection end of the first keyboard and the obtained electric signal of the detection end of the second keyboard to control the conduction state of the signal switching switch and the load current-limiting switch, so that the matching mode that the same host machine is compatible with the two keyboards is achieved, the configuration of electronic equipment is improved, and the circuit complexity is reduced.
Fig. 5 is another control method of a keyboard switching circuit provided in the embodiment of the present disclosure, and on the basis of the foregoing embodiment, the present embodiment further includes, after step S120:
s130, outputting a second control signal according to the obtained electric signal of the detection end of the first keyboard and the electric signal of the detection end of the second keyboard to control the main control module to output key information to the signal switch and output a voltage signal to the load current-limiting switch.
After the electric signal of the detection end of the first keyboard and the electric signal of the detection end of the second keyboard are obtained, a second control signal is output according to the obtained electric signal of the detection end of the first keyboard and the obtained electric signal of the detection end of the second keyboard to control the main control module to output key information to the signal switch and output a voltage signal to the load current-limiting switch, so that the key information is output to the signal switch and the voltage signal is output to the load current-limiting switch. .
According to the control method of the keyboard switching circuit, after the electric signal of the detection end of the first keyboard and the signal of the detection end of the second keyboard are obtained, the second control signal is output to control the main control module to output the case information to the signal switching switch and output the voltage signal to the load current limiting switch.
Fig. 6 is a control method of another keyboard switching circuit provided in an embodiment of the present disclosure, and this embodiment is based on the embodiment corresponding to fig. 4, and further includes, after step S120:
s131, outputting an interrupt signal according to the obtained electric signal of the detection end of the first keyboard and the electric signal of the detection end of the second keyboard to control the main control module to switch to a flat-panel mode.
In addition, when the electric signal of the detection end of the first keyboard is not acquired and the electric signal of the detection end of the second keyboard is not acquired, the main control module is controlled to be switched to the flat mode according to the acquired electric signal of the detection end of the first keyboard and the acquired electric signal output interrupt signal of the detection end of the second keyboard, namely the main control module is controlled not to output key information to the signal switch and not to output a voltage signal to the load current limiting switch, and the electronic equipment is switched from the notebook computer mode to the flat mode.
According to the control method of the keyboard switching circuit provided by the embodiment of the disclosure, when the electric signal of the detection end of the first keyboard is not obtained, and the electric signal of the detection end of the second keyboard is not obtained, the interrupt signal is output to control the main control module to switch to the flat mode, so that the electronic device is switched from the notebook computer mode to the flat mode.
Optionally, the control method further includes:
when the communication end of the first keyboard is detected to be abnormal or the communication end of the second keyboard is detected to be abnormal, the main control module is controlled to output a cut-off signal to the load current-limiting switch.
When the communication time length of the key information output by the signal switch received by the communication end of the first keyboard or the communication time length of the key information output by the signal switch received by the communication end of the second keyboard exceeds a preset time length, for example, the preset time length is 10mS, a situation of short circuit of the external keyboard may exist at the time, that is, the first keyboard or the second keyboard has a short circuit, in order to avoid the influence of the short circuit of the first keyboard or the second keyboard on the electronic device host, the main control module is controlled to output a cut-off signal to the load current-limiting switch at the time, the load current-limiting switch is controlled to be turned off, that is, no voltage signal is output to the power end of the first keyboard or the second keyboard through the load current-limiting switch.
According to the control method of the keyboard switching circuit, when the communication abnormality of the communication end of the first keyboard or the communication abnormality of the communication end of the second keyboard is detected, the cut-off signal is output to the load current-limiting switch to control the load current-limiting switch to be turned off, and the influence of the short circuit of the first keyboard or the second keyboard on the electronic equipment host is avoided.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A keyboard switching circuit, comprising: the device comprises a detection module, a signal change-over switch and a load current-limiting switch;
the first input end of the detection module is electrically connected with the detection end of the first keyboard, the second input end of the detection module is electrically connected with the detection end of the second keyboard, and the first output end of the detection module is electrically connected with the first input end of the load current-limiting switch;
the first output end of the signal change-over switch is electrically connected with the communication end of the first keyboard, and the second output end of the signal change-over switch is electrically connected with the communication end of the second keyboard;
a first output end of the load current-limiting switch is electrically connected with a power supply end of the first keyboard, and a second output end of the load current-limiting switch is electrically connected with a power supply end of the second keyboard;
the detection module respectively acquires an electric signal of a detection end of the first keyboard and an electric signal of a detection end of the second keyboard, and respectively outputs a first control signal to the signal change-over switch and the load current-limiting switch according to the acquired electric signal of the detection end of the first keyboard or the acquired electric signal of the detection end of the second keyboard so as to control the conduction states of the signal change-over switch and the load current-limiting switch;
the detection module comprises a detection unit, a level conversion unit and an OR gate;
the first input end of the detection unit is electrically connected with the detection end of the first keyboard, the second input end of the detection unit is electrically connected with the detection end of the second keyboard, the first output end of the detection unit is electrically connected with the first input end of the level conversion unit, the second output end of the detection unit is electrically connected with the second input end of the level conversion unit, the first output end of the level conversion unit is electrically connected with the first input end of the OR gate, the second output end of the level conversion unit is electrically connected with the second input end of the OR gate, and the first output end of the OR gate is respectively electrically connected with the first input end of the signal switching switch and the first input end of the load current limiting switch.
2. The keyboard switching circuit according to claim 1, further comprising a main control module;
the first end of the main control module is electrically connected with the second output end of the detection module, the second end of the main control module is electrically connected with the second input end of the signal switch, and the third end of the main control module is electrically connected with the second input end of the load current-limiting switch;
and the detection module is used for outputting a second control signal when receiving the second control signal output by the second output end of the detection module, outputting key information to the signal switching switch and outputting a voltage signal to the load current-limiting switch.
3. The keyboard switching circuit according to claim 2, wherein the main control module is further configured to switch to a tablet mode when receiving an interrupt signal output from the second output terminal of the detection module.
4. The keyboard switching circuit of claim 2, wherein the main control module is further configured to output a cut-off signal to the load current limit switch when receiving a communication end communication abnormality of the first keyboard or a communication end communication abnormality of the second keyboard.
5. The keyboard switching circuit of claim 2, further comprising a power module;
the power module is electrically connected with the main control module and used for providing voltage signals for the main control module.
6. A control method of a keyboard switching circuit, applied to the keyboard switching circuit of any one of claims 1-5, the control method comprising:
acquiring an electric signal of a detection end of a first keyboard and an electric signal of a detection end of a second keyboard;
and outputting a first control signal to control the conduction state of the signal changeover switch and the load current-limiting switch according to the acquired electric signal of the detection end of the first keyboard and the acquired electric signal of the detection end of the second keyboard.
7. The method according to claim 6, wherein after outputting the first control signal according to the obtained electrical signal at the detection end of the first keyboard and the obtained electrical signal at the detection end of the second keyboard to control the on-state of the switch and the load current limit switch, the method further comprises:
and outputting a second control signal according to the obtained electric signal of the detection end of the first keyboard and the obtained electric signal of the detection end of the second keyboard to control the main control module to output key information to the signal switch and output a voltage signal to the load current-limiting switch.
8. The method according to claim 6, wherein after outputting the first control signal according to the obtained electrical signal at the detection end of the first keyboard and the obtained electrical signal at the detection end of the second keyboard to control the on-state of the switch and the load current limit switch, the method further comprises:
and outputting an interrupt signal according to the acquired electric signal of the detection end of the first keyboard and the acquired electric signal of the detection end of the second keyboard to control the main control module to switch to the flat mode.
9. The control method according to claim 7, characterized by further comprising:
and outputting a cut-off signal to a load current limiting switch when the communication abnormality of the communication end of the first keyboard or the communication abnormality of the communication end of the second keyboard is detected.
CN202110719997.6A 2021-06-28 2021-06-28 Keyboard switching circuit and control method thereof Active CN113485088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110719997.6A CN113485088B (en) 2021-06-28 2021-06-28 Keyboard switching circuit and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110719997.6A CN113485088B (en) 2021-06-28 2021-06-28 Keyboard switching circuit and control method thereof

Publications (2)

Publication Number Publication Date
CN113485088A CN113485088A (en) 2021-10-08
CN113485088B true CN113485088B (en) 2023-03-14

Family

ID=77937761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110719997.6A Active CN113485088B (en) 2021-06-28 2021-06-28 Keyboard switching circuit and control method thereof

Country Status (1)

Country Link
CN (1) CN113485088B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5263171A (en) * 1990-03-27 1993-11-16 Cybex Corporation Device for interfacing two keyboards to one computer and for automatically connecting the active keyboard to the computer
CN1815410A (en) * 2005-02-03 2006-08-09 联想(北京)有限公司 Capacitive information input device and method for electronic device
CN101393476A (en) * 2007-09-21 2009-03-25 乐金电子(昆山)电脑有限公司 Touch screen mode converting device and method in conversion type flat-plate computer
CN201489450U (en) * 2009-07-01 2010-05-26 炎黄东方(北京)健康科技有限公司 Switching device and electronic device with same
CN111638862A (en) * 2020-06-12 2020-09-08 广西世纪创新显示电子有限公司 Switching system for multi-host multi-network shared display
CN212749209U (en) * 2020-03-05 2021-03-19 深圳微步信息股份有限公司 Keyboard access detection circuit and terminal equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6059164B2 (en) * 2014-02-14 2017-01-11 Necプラットフォームズ株式会社 Optical path switching device and communication method
CN112130746B (en) * 2020-10-06 2021-12-14 陈超 Method and system for intelligently switching control objects

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5263171A (en) * 1990-03-27 1993-11-16 Cybex Corporation Device for interfacing two keyboards to one computer and for automatically connecting the active keyboard to the computer
CN1815410A (en) * 2005-02-03 2006-08-09 联想(北京)有限公司 Capacitive information input device and method for electronic device
CN101393476A (en) * 2007-09-21 2009-03-25 乐金电子(昆山)电脑有限公司 Touch screen mode converting device and method in conversion type flat-plate computer
CN201489450U (en) * 2009-07-01 2010-05-26 炎黄东方(北京)健康科技有限公司 Switching device and electronic device with same
CN212749209U (en) * 2020-03-05 2021-03-19 深圳微步信息股份有限公司 Keyboard access detection circuit and terminal equipment
CN111638862A (en) * 2020-06-12 2020-09-08 广西世纪创新显示电子有限公司 Switching system for multi-host multi-network shared display

Also Published As

Publication number Publication date
CN113485088A (en) 2021-10-08

Similar Documents

Publication Publication Date Title
US7564966B2 (en) Recognition of audio device in portable terminal
US20060259649A1 (en) Interface switching apparatus and method
EP2503790B1 (en) Earphone system for mobile devices
US7723870B2 (en) Power switch system
US20120005385A1 (en) Communication circuit of inter-integrated circuit device
CN101534349A (en) Method and apparatus for determining external connection device in mobile terminal
CN104267781B (en) The reusable mobile terminal of docking station and its method of docking station multiplexing
CN115395762B (en) Single-inductor voltage transformation multi-voltage independent output circuit and related product
CN106164886A (en) Peripheral unit, host apparatus and processing method
KR20230016675A (en) Data cables and charging devices
JP2010009208A (en) Interface device and mobile terminal apparatus
CN104932999A (en) USB (universal serial bus) interface mode switching device and intelligent terminal
CN113485088B (en) Keyboard switching circuit and control method thereof
CA2989841A1 (en) Power adapter, terminal device, charging system, and charging method
US20090111336A1 (en) Split connector and method
CN112988109B (en) Single-audio interface signal switching circuit and single-audio interface switching device
US20120036294A1 (en) Computer integrated display integrated display and control method of the same
CN109218914B (en) Audio playing device and audio transmission circuit
CN211351077U (en) Connecting equipment
US20090167099A1 (en) Switch Device for Switching Different Type Signals
TW201020792A (en) Signal processing unit and method for plug-in detection and electronic device
CN100440406C (en) Control apparatus for an end key and a portable terminal employing the same
WO2006128059A2 (en) Electrical interface extension with isolation function
CN220455805U (en) 8K ultra-high definition KVM switch based on DP interface
US20120142219A1 (en) Control device and control system using the same

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