CN104868898B - A kind of electronic equipment and information processing method - Google Patents

A kind of electronic equipment and information processing method Download PDF

Info

Publication number
CN104868898B
CN104868898B CN201410062614.2A CN201410062614A CN104868898B CN 104868898 B CN104868898 B CN 104868898B CN 201410062614 A CN201410062614 A CN 201410062614A CN 104868898 B CN104868898 B CN 104868898B
Authority
CN
China
Prior art keywords
module
button
pole
output end
division
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
CN201410062614.2A
Other languages
Chinese (zh)
Other versions
CN104868898A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410062614.2A priority Critical patent/CN104868898B/en
Publication of CN104868898A publication Critical patent/CN104868898A/en
Application granted granted Critical
Publication of CN104868898B publication Critical patent/CN104868898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The embodiment of the invention discloses a kind of electronic equipment and information processing method, the electronic equipment includes push-button unit, and the push-button unit includes:Button module and COM port module;The COM port module includes multiple triggering pins;It is characterized in that, the push-button unit further includes multiple division modules;Wherein, the button module includes input terminal and multiple output ends, and the input terminal is connect with supply voltage output end;When the button module is in different conditions, the input terminal is connected with corresponding output end;One end of the multiple division module is connect with multiple output ends of the button module respectively, and the output end is corresponded with the division module;The other end of the multiple division module is connect with multiple triggering pins of the COM port module respectively, and the division module is corresponded with the triggering pin.

Description

A kind of electronic equipment and information processing method
Technical field
The present invention relates to terminal devices, and in particular to a kind of electronic equipment and information processing method.
Background technology
The method that button is realized in existing electronic equipment is mainly that key circuit is connected to the universal input of chipset Output(GPIO, General Purpose Input Output)Interface is changed when button changes by the variation of key circuit Become the current potential of GPIO interface, then by the current potential of pre-set driver regularly cycle detection GPIO interface, to real Existing button;The shortcomings that this scheme is since the definition of the GPIO interface of each electronic equipment is different, and there is no needles in processor To the event trigger mechanism of GPIO interface, so the current potential of GPIO interface must be detected by pre-set driver, from And can just know the state change of key circuit, it can cause resource overhead in electronic equipment very big in this way, reduce electronic equipment Performance.
Invention content
To solve existing technical problem, the embodiment of the present invention provides a kind of electronic equipment and information processing method, Without knowing the operation of button by the detection of driver, the resource overhead in electronic equipment can be substantially reduced, electricity is promoted The performance of sub- equipment.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is realized in:
An embodiment of the present invention provides a kind of electronic equipment, the electronic equipment includes push-button unit, the push-button unit Including:Button module and The Component Object Model COM port module;The COM port module includes multiple triggering pins;It is described to press Key unit further includes multiple division modules;Wherein,
The button module includes input terminal and multiple output ends, and the input terminal is connect with supply voltage output end;When When the button module is in different conditions, the input terminal is connected with corresponding output end;
One end of the multiple division module is connect with multiple output ends of the button module respectively, the output end with The division module corresponds;The multiple triggerings with the COM port module respectively of the other end of the multiple division module Pin connects, and the division module is corresponded with the triggering pin.
Electronic equipment and information processing method provided in an embodiment of the present invention, the electronic equipment include push-button unit, institute Stating push-button unit includes:Button module and The Component Object Model COM port module;The COM port module includes multiple triggerings Pin;The push-button unit further includes multiple division modules;Wherein, the button module includes input terminal and multiple output ends, The input terminal is connect with supply voltage output end;When the button module is in different conditions, the input terminal with it is corresponding Output end connection;One end of the multiple division module is connect with multiple output ends of the button module respectively, described defeated Outlet is corresponded with the division module;The other end of the multiple division module is more with the COM port module respectively A triggering pin connection, the division module are corresponded with the triggering pin.Using the technical solution of the embodiment of the present invention, The variation that key-press status is known by the potential change of the triggering pin in existing COM port in electronic equipment, without passing through The operation of button is known in the detection of driver, greatly reduces the resource overhead in electronic equipment, improves electronic equipment Performance.
Description of the drawings
Fig. 1 is the composed structure schematic diagram of the push-button unit of the electronic equipment of the embodiment of the present invention one;
Fig. 2 is the composed structure schematic diagram of the push-button unit of the electronic equipment of the embodiment of the present invention two;
Fig. 3 is the composed structure schematic diagram of the push-button unit of the electronic equipment of the embodiment of the present invention three;
Fig. 4 is the composed structure schematic diagram of the push-button unit of the electronic equipment of the embodiment of the present invention four;
Fig. 5 is the composed structure schematic diagram of the push-button unit of the electronic equipment of the embodiment of the present invention five;
Fig. 6 is the flow diagram of the information processing method of the embodiment of the present invention;
Fig. 7 is the flow diagram of the information processing method of another embodiment of the present invention.
Specific implementation mode
Below in conjunction with the accompanying drawings and specific embodiment the present invention is described in further detail.
An embodiment of the present invention provides a kind of electronic equipment, the electronic equipment can be desktop computer, laptop Deng with The Component Object Model(COM, Component Object Model)The terminal device of port;Fig. 1 is that the present invention is implemented The composed structure schematic diagram of the push-button unit of the electronic equipment of example one;As shown in Figure 1, the push-button unit includes:Button module 11 and COM port module 12;The COM port module 12 includes multiple triggering pins, and the multiple triggering draws angle in Fig. 1 such as Shown in C1 to Cn, the triggering pin is represented by Ci(I is positive integer, and i is less than or equal to n);The push-button unit further includes Multiple division modules 12;Wherein,
The button module 11 includes input terminal and multiple output ends, and the input terminal is in Fig. 1 as indicated at a, described more For a output end in Fig. 1 as shown in B1 to Bn, the output end is represented by Bi(I is positive integer, and i is less than or equal to n);It is described Input terminal A is connect with supply voltage output end;When the button module 11 is in different conditions, the input terminal A with it is corresponding Output end Bi connections;
One end of the multiple division module 12 is connect with multiple output end Bi of the button module 11 respectively, described defeated Outlet Bi is corresponded with the division module 12;The other end of the multiple division module 12 respectively with the COM port mould Multiple triggering pin Ci connections of block 13, the division module 12 and triggering pin Ci are corresponded.
Specifically, when the button module 11 is in a kind of state, input terminal A output corresponding with the state Hold Bi(Such as B1)Connection, by division module 12, corresponding triggering pin Ci in COM port module 13(Such as C1)Electricity Position is high potential;When the button module 12 is switched to another state, the input terminal A and another state are corresponding defeated Outlet Bi(Such as B2)Connection, by division module 12, corresponding triggering pin Ci in COM port module 13(Such as C2)'s Current potential becomes high potential, and triggering pin C1 then becomes low potential from original high potential;As a result, by identifying the COM port The potential change that pin Ci is triggered in module 13 determines the output end Bi of button module corresponding with the triggering pin Ci 11, The state of the button module 11 is determined according to the output end Bi.
Wherein, the multiple triggering pin is at least the two of COM port mould following pin in the block:DSR (DSR, Data Set Ready)Pin, data carrier detection(DCD, Data Carrier Detect)Pin, clear to send (CTS, Clear To Send)Pin, ring instruction(RI, Ring Indicator)Pin, request are sent(RTS, Request To Send)Pin;Above-mentioned triggering pin when current potential changes, can trigger the COM port module 13 identify it is described The current potential of triggering pin Ci changes, and obtains the output end of the corresponding button module of triggering pin Ci that current potential is got higher 11 Bi determines 11 state of the button module according to the output end Bi of the button module 11, and triggers the electronic equipment to institute The variation for stating 11 state of button module responds.
Using the technical solution of the embodiment of the present invention, pass through the triggering pin in existing COM port in electronic equipment Potential change knows the variation of key-press status, without knowing the operation of button by the detection of driver, greatly reduces electricity Resource overhead in sub- equipment improves the performance of electronic equipment.
The embodiment of the present invention additionally provides a kind of electronic equipment, and the electronic equipment can be desktop computer, notebook electricity Brain etc. has the terminal device of COM port;Fig. 2 is that the composed structure of the push-button unit of the electronic equipment of the embodiment of the present invention two is shown It is intended to;As shown in Fig. 2, the push-button unit includes:Button module 11 and COM port module 12;The COM port module 12 is wrapped Multiple triggering pins are included, in the present embodiment, the COM port module includes two triggering pins, and angle is drawn in described two triggerings In fig. 2 as shown in C1, C2, the triggering pin is represented by Ci(I is positive integer, and i is less than or equal to 2);The button list Member further includes multiple division modules 12, and in the present embodiment, the push-button unit includes two division modules, as shown in Figure 2 The first division module 121 and the second division module 122;Wherein,
The button module 11 includes input terminal and two output ends, the input terminal in fig. 2 as indicated at a, described two For a output end in fig. 2 as shown in B1, B2, the output end is represented by Bi(I is positive integer, and i is less than or equal to 2);It is described Input terminal A is connect with supply voltage output end;When the button module 11 is in different conditions, the input terminal A with it is corresponding Output end Bi connections;
One end of described two division modules 12 is connect with two output end Bi of the button module 11 respectively, described defeated Outlet Bi is corresponded with the division module 12;The other end of described two division modules 12 respectively with the COM port mould Two triggering pin Ci connections of block 13, the division module 12 and triggering pin Ci are corresponded.
Specifically, the division module 12 includes:First resistor R1 and second resistance R2;The button module 11 includes the One output end B1 and second output terminal B2;
When the button module 11 is in first state, the input terminal A of the button module 11 and the first output end B1 Connection;The first output end B1 is connect with the first pole of the first resistor R1 of first division module 121;First electricity The second pole for hindering R1 is connect with the first triggering pin C1 of the COM port module 13;The first pole of the second resistance R2 with The second pole of the first resistor R1 connects;The second pole of the second resistance R2 is grounded;
When the button module 11 is in the second state, the input terminal A and second output terminal B2 of the button module 11 Connection;The second output terminal B2 is connect with the first pole of the first resistor R1 of second division module 122;First electricity The second pole for hindering R1 is connect with the second triggering pin C2 of the COM port module 13;The first pole of the second resistance R2 with The second pole of the first resistor R1 connects;The second pole of the second resistance R2 is grounded.
In the present embodiment, when the button module 11 is in first state, input terminal A is connect with output end B1, is passed through First division module 121, the current potential of corresponding triggering pin C1 is high potential in COM port module 13;When the button mould When block 12 is switched to the second state, the input terminal A is connect with output end B2, passes through the second division module 121, COM port mould The current potential of corresponding triggering pin C2 becomes high potential in block 13, and triggering pin C1 then becomes low electricity from original high potential Position;As a result, by identifying the potential change of triggering pin Ci in the COM port module 13, determine and the triggering pin Ci The output end Bi of corresponding button module 11 determines the state of the button module 11 according to the output end Bi.
Wherein, the multiple triggering pin is at least the two of COM port mould following pin in the block:DSR pins, DCD Pin, CTS pins, RI pins, RTS pins;Above-mentioned triggering pin can trigger the COM port when current potential changes Module 13 identifies that the current potential of the triggering pin Ci changes, obtain triggering pin Ci that current potential is got higher it is corresponding it is described by The output end Bi of button module 11 determines 11 state of the button module according to the output end Bi of the button module 11, and triggers The electronic equipment responds the variation of 11 state of the button module.
Wherein, the state of the button module 11 may include bouncing, by inferior state, but be not limited to above two shape State.
Using the technical solution of the embodiment of the present invention, pass through the triggering pin in existing COM port in electronic equipment Potential change knows the variation of key-press status, without knowing the operation of button by the detection of driver, greatly reduces electricity Resource overhead in sub- equipment improves the performance of electronic equipment.
The embodiment of the present invention additionally provides a kind of electronic equipment, and the electronic equipment can be desktop computer, notebook electricity Brain etc. has the terminal device of COM port;Fig. 3 is that the composed structure of the push-button unit of the electronic equipment of the embodiment of the present invention three is shown It is intended to;As shown in figure 3, the push-button unit includes:Button module 11 and COM port module 12;The COM port module 12 is wrapped Multiple triggering pins are included, in the present embodiment, the COM port module includes three triggering pins, and angle is drawn in three triggerings In figure 3 as shown in C1, C2, C3, the triggering pin is represented by Ci(I is positive integer, and i is less than or equal to 3);The button Unit further includes multiple division modules 12, and in the present embodiment, the push-button unit includes three division modules, such as institute in Fig. 2 The first division module 121, the second division module 122, the third division module 123 shown;Wherein,
The button module 11 includes input terminal and three output ends, the input terminal in figure 3 as indicated at a, described three For a output end in figure 3 as shown in B1, B2, B3, the output end is represented by Bi(I is positive integer, and i is less than or equal to 3);Institute Input terminal A is stated to connect with supply voltage output end;When the button module 11 is in different conditions, the input terminal A with it is right The output end Bi connections answered;
One end of three division modules 12 is connect with three output end Bi of the button module 11 respectively, described defeated Outlet Bi is corresponded with the division module 12;The other end of three division modules 12 respectively with the COM port mould Three triggering pin Ci connections of block 13, the division module 12 and triggering pin Ci are corresponded.
Specifically, the division module 12 includes:First resistor R1 and second resistance R2;The button module 11 includes the One output end B1 and second output terminal B2;
When the button module 11 is in first state, the input terminal A of the button module 11 and the first output end B1 Connection;The first output end B1 is connect with the first pole of the first resistor R1 of first division module 121;First electricity The second pole for hindering R1 is connect with the first triggering pin C1 of the COM port module 13;The first pole of the second resistance R2 with The second pole of the first resistor R1 connects;The second pole of the second resistance R2 is grounded;
When the button module 11 is in the second state, the input terminal A and second output terminal B2 of the button module 11 Connection;The second output terminal B2 is connect with the first pole of the first resistor R1 of second division module 122;First electricity The second pole for hindering R1 is connect with the second triggering pin C2 of the COM port module 13;The first pole of the second resistance R2 with The second pole of the first resistor R1 connects;The second pole of the second resistance R2 is grounded;
When the button module 11 is in the third state, the input terminal A and third output end B3 of the button module 11 Connection;The third output end B3 is connect with the first pole of the first resistor R1 of the third division module 123;First electricity The second pole for hindering R1 is connect with the third of the COM port module 13 triggering pin C3;The first pole of the second resistance R2 with The second pole of the first resistor R1 connects;The second pole of the second resistance R2 is grounded.
In the present embodiment, when the button module 11 is in first state, input terminal A is connect with output end B1, is passed through First division module 121, the current potential of corresponding triggering pin C1 is high potential in COM port module 13;When the button mould When block 12 is switched to the second state, the input terminal A is connect with output end B2, passes through the second division module 121, COM port mould The current potential of corresponding triggering pin C2 becomes high potential in block 13, and triggering pin C1 then becomes low electricity from original high potential Position;As a result, by identifying the potential change of triggering pin Ci in the COM port module 13, determine and the triggering pin Ci The output end Bi of corresponding button module 11 determines the state of the button module 11 according to the output end Bi.
Wherein, the multiple triggering pin is at least the two of COM port mould following pin in the block:DSR pins, DCD Pin, CTS pins, RI pins, RTS pins;Above-mentioned triggering pin can trigger the COM port when current potential changes Module 13 identifies that the current potential of the triggering pin Ci changes, obtain triggering pin Ci that current potential is got higher it is corresponding it is described by The output end Bi of button module 11 determines 11 state of the button module according to the output end Bi of the button module 11, and triggers The electronic equipment responds the variation of 11 state of the button module.
Using the technical solution of the embodiment of the present invention, pass through the triggering pin in existing COM port in electronic equipment Potential change knows the variation of key-press status, without knowing the operation of button by the detection of driver, greatly reduces electricity Resource overhead in sub- equipment improves the performance of electronic equipment.
The embodiment of the present invention additionally provides a kind of electronic equipment, and the electronic equipment can be desktop computer, notebook electricity Brain etc. has the terminal device of COM port;Fig. 4 is that the composed structure of the push-button unit of the electronic equipment of the embodiment of the present invention four is shown It is intended to;As shown in figure 4, the push-button unit includes:Button module 11 and COM port module 12;The COM port module 12 is wrapped Multiple triggering pins are included, in the present embodiment, the COM port module includes four triggering pins, and angle is drawn in four triggerings In Fig. 4 as shown in C1, C2, C3, C4, the triggering pin is represented by Ci(I is positive integer, and i is less than or equal to 4);It is described Push-button unit further includes multiple division modules 12, and in the present embodiment, the push-button unit includes four division modules, such as Fig. 4 Shown in the first division module 121, the second division module 122, third division module 123 and the 4th division module 124;Its In,
The button module 11 includes input terminal and four output ends, the input terminal in Fig. 4 as indicated at a, described four For a output end in Fig. 4 as shown in B1, B2, B3, B4, the output end is represented by Bi(I is positive integer, and i is less than or equal to 4);The input terminal A is connect with supply voltage output end;When the button module 11 is in different conditions, the input terminal A With corresponding output end Bi connections;
One end of four division modules 12 is connect with four output end Bi of the button module 11 respectively, described defeated Outlet Bi is corresponded with the division module 12;The other end of four division modules 12 respectively with the COM port mould Four triggering pin Ci connections of block 13, the division module 12 and triggering pin Ci are corresponded.
Specifically, the division module 12 includes:First resistor R1 and second resistance R2;The button module 11 includes the One output end B1 and second output terminal B2;
When the button module 11 is in first state, the input terminal A of the button module 11 and the first output end B1 Connection;The first output end B1 is connect with the first pole of the first resistor R1 of first division module 121;First electricity The second pole for hindering R1 is connect with the first triggering pin C1 of the COM port module 13;The first pole of the second resistance R2 with The second pole of the first resistor R1 connects;The second pole of the second resistance R2 is grounded;
When the button module 11 is in the second state, the input terminal A and second output terminal B2 of the button module 11 Connection;The second output terminal B2 is connect with the first pole of the first resistor R1 of second division module 122;First electricity The second pole for hindering R1 is connect with the second triggering pin C2 of the COM port module 13;The first pole of the second resistance R2 with The second pole of the first resistor R1 connects;The second pole of the second resistance R2 is grounded;
When the button module 11 is in the third state, the input terminal A and third output end B3 of the button module 11 Connection;The third output end B3 is connect with the first pole of the first resistor R1 of the third division module 123;First electricity The second pole for hindering R1 is connect with the third of the COM port module 13 triggering pin C3;The first pole of the second resistance R2 with The second pole of the first resistor R1 connects;The second pole of the second resistance R2 is grounded;
When the button module 11 is in four states, the input terminal A and the 4th output end B4 of the button module 11 Connection;The 4th output end B4 is connect with the first pole of the first resistor R1 of the 4th division module 124;First electricity The second pole for hindering R1 is connect with the 4th triggering pin C4 of the COM port module 13;The first pole of the second resistance R2 with The second pole of the first resistor R1 connects;The second pole of the second resistance R2 is grounded.
In the present embodiment, when the button module 11 is in first state, input terminal A is connect with output end B1, is passed through First division module 121, the current potential of corresponding triggering pin C1 is high potential in COM port module 13;When the button mould When block 12 is switched to the second state, the input terminal A is connect with output end B2, passes through the second division module 121, COM port mould The current potential of corresponding triggering pin C2 becomes high potential in block 13, and triggering pin C1 then becomes low electricity from original high potential Position;As a result, by identifying the potential change of triggering pin Ci in the COM port module 13, determine and the triggering pin Ci The output end Bi of corresponding button module 11 determines the state of the button module 11 according to the output end Bi.
Wherein, the multiple triggering pin is at least the two of COM port mould following pin in the block:DSR pins, DCD Pin, CTS pins, RI pins, RTS pins;Above-mentioned triggering pin can trigger the COM port when current potential changes Module 13 identifies that the current potential of the triggering pin Ci changes, obtain triggering pin Ci that current potential is got higher it is corresponding it is described by The output end Bi of button module 11 determines 11 state of the button module according to the output end Bi of the button module 11, and triggers The electronic equipment responds the variation of 11 state of the button module.
Using the technical solution of the embodiment of the present invention, pass through the triggering pin in existing COM port in electronic equipment Potential change knows the variation of key-press status, without knowing the operation of button by the detection of driver, greatly reduces electricity Resource overhead in sub- equipment improves the performance of electronic equipment.
The embodiment of the present invention additionally provides a kind of electronic equipment, and the electronic equipment can be desktop computer, notebook electricity Brain etc. has the terminal device of COM port;Fig. 5 is that the composed structure of the push-button unit of the electronic equipment of the embodiment of the present invention five is shown It is intended to;As shown in figure 5, the push-button unit includes:Button module 11 and COM port module 12;The COM port module 12 is wrapped Multiple triggering pins are included, in the present embodiment, the COM port module includes five triggering pins, and angle is drawn in five triggerings In Figure 5 as shown in C1, C2, C3, C4, C5, the triggering pin is represented by Ci(I is positive integer, and i is less than or equal to 5);Institute It further includes multiple division modules 12 to state push-button unit, and in the present embodiment, the push-button unit includes five division modules, is such as schemed First division module 121, the second division module 122, third division module 123, the 4th division module 124 shown in 5 and Five division modules 125;Wherein,
The button module 11 includes input terminal and five output ends, the input terminal in Figure 5 as indicated at a, described five For a output end in Fig. 4 as shown in B1, B2, B3, B4, B5, the output end is represented by Bi(I is positive integer, and i is less than etc. In 5);The input terminal A is connect with supply voltage output end;When the button module 11 is in different conditions, the input Hold A and corresponding output end Bi connections;
One end of five division modules 12 is connect with five output end Bi of the button module 11 respectively, described defeated Outlet Bi is corresponded with the division module 12;The other end of five division modules 12 respectively with the COM port mould Five triggering pin Ci connections of block 13, the division module 12 and triggering pin Ci are corresponded.
Specifically, the division module 12 includes:First resistor R1 and second resistance R2;The button module 11 includes the One output end B1 and second output terminal B2;
When the button module 11 is in first state, the input terminal A of the button module 11 and the first output end B1 Connection;The first output end B1 is connect with the first pole of the first resistor R1 of first division module 121;First electricity The second pole for hindering R1 is connect with the first triggering pin C1 of the COM port module 13;The first pole of the second resistance R2 with The second pole of the first resistor R1 connects;The second pole of the second resistance R2 is grounded;
When the button module 11 is in the second state, the input terminal A and second output terminal B2 of the button module 11 Connection;The second output terminal B2 is connect with the first pole of the first resistor R1 of second division module 122;First electricity The second pole for hindering R1 is connect with the second triggering pin C2 of the COM port module 13;The first pole of the second resistance R2 with The second pole of the first resistor R1 connects;The second pole of the second resistance R2 is grounded;
When the button module 11 is in the third state, the input terminal A and third output end B3 of the button module 11 Connection;The third output end B3 is connect with the first pole of the first resistor R1 of the third division module 123;First electricity The second pole for hindering R1 is connect with the third of the COM port module 13 triggering pin C3;The first pole of the second resistance R2 with The second pole of the first resistor R1 connects;The second pole of the second resistance R2 is grounded;
When the button module 11 is in four states, the input terminal A and the 4th output end B4 of the button module 11 Connection;The 4th output end B4 is connect with the first pole of the first resistor R1 of the 4th division module 124;First electricity The second pole for hindering R1 is connect with the 4th triggering pin C4 of the COM port module 13;The first pole of the second resistance R2 with The second pole of the first resistor R1 connects;The second pole of the second resistance R2 is grounded;
When the button module 11 is in five states, the input terminal A and the 5th output end B5 of the button module 11 Connection;The 5th output end B5 is connect with the first pole of the first resistor R1 of the 5th division module 125;First electricity The second pole for hindering R1 is connect with the 5th triggering pin C5 of the COM port module 13;The first pole of the second resistance R2 with The second pole of the first resistor R1 connects;The second pole of the second resistance R2 is grounded.
In the present embodiment, when the button module 11 is in first state, input terminal A is connect with output end B1, is passed through First division module 121, the current potential of corresponding triggering pin C1 is high potential in COM port module 13;When the button mould When block 12 is switched to the second state, the input terminal A is connect with output end B2, passes through the second division module 121, COM port mould The current potential of corresponding triggering pin C2 becomes high potential in block 13, and triggering pin C1 then becomes low electricity from original high potential Position;As a result, by identifying the potential change of triggering pin Ci in the COM port module 13, determine and the triggering pin Ci The output end Bi of corresponding button module 11 determines the state of the button module 11 according to the output end Bi.
Wherein, the multiple triggering pin is at least the two of COM port mould following pin in the block:DSR pins, DCD Pin, CTS pins, RI pins, RTS pins;Above-mentioned triggering pin can trigger the COM port when current potential changes Module 13 identifies that the current potential of the triggering pin Ci changes, obtain triggering pin Ci that current potential is got higher it is corresponding it is described by The output end Bi of button module 11 determines 11 state of the button module according to the output end Bi of the button module 11, and triggers The electronic equipment responds the variation of 11 state of the button module.
Using the technical solution of the embodiment of the present invention, pass through the triggering pin in existing COM port in electronic equipment Potential change knows the variation of key-press status, without knowing the operation of button by the detection of driver, greatly reduces electricity Resource overhead in sub- equipment improves the performance of electronic equipment.
The embodiment of the present invention also provides a kind of information processing method, is applied in electronic equipment, the electronic equipment includes Push-button unit;The push-button unit includes:Button module, multiple division modules and COM port module;The COM port module Including multiple triggering pins;The button module includes input terminal and multiple output ends, the multiple output end and the multiple Division module connects one to one;The multiple division module connects one to one with the multiple triggering pin;It is pressed when described When button module is in different conditions, the input terminal is connected with corresponding output end;Fig. 6 is the information processing of the embodiment of the present invention The flow diagram of method;As shown in fig. 6, the method includes:
Step 601:The current potential for detecting multiple triggering pins described in the COM port module, determines any triggering pin Current potential when getting higher, obtain the output end for the corresponding button module of triggering pin that current potential is got higher.
In the present embodiment, COM port mould triggering pin in the block can trigger described when current potential changes COM port module identifies that the current potential of the triggering pin changes, and it is corresponding described to obtain the triggering pin that current potential is got higher The output end of button module.
Step 602:The button module state is determined according to the output end of the button module, so that the electronic equipment It is responded according to the variation of the button module state.
Here, each output end of the button module corresponds to a kind of state of the button module, can preset every The correspondence of a output end and state, when the button by getting higher acquisition in step 601 according to the current potential of triggering pin When the output end of module, it can determine that the output end is corresponding described by the correspondence of the retrieval output end and state The state of button module, so that the electronic equipment is responded according to the variation of the button module state.Preferably, described The processor that COM port module can trigger the electronic equipment responds the variation of the button module state.
Using the technical solution of the embodiment of the present invention, pass through the triggering pin in existing COM port in electronic equipment Potential change knows the variation of key-press status, without knowing the operation of button by the detection of driver, greatly reduces electricity Resource overhead in sub- equipment improves the performance of electronic equipment.
The embodiment of the present invention also provides a kind of information processing method, is applied in electronic equipment, the electronic equipment includes Push-button unit;The push-button unit includes:Button module, multiple division modules and COM port module;The COM port module Including multiple triggering pins;The button module includes input terminal and multiple output ends, the multiple output end and the multiple Division module connects one to one;The multiple division module connects one to one with the multiple triggering pin;It is pressed when described When button module is in different conditions, the input terminal is connected with corresponding output end;Fig. 7 is the information processing of the embodiment of the present invention The flow diagram of method;As shown in fig. 7, the method includes:
Step 701:Detect that the current potential at angle is drawn in any triggering in multiple triggering pins described in the COM port module When variation, the first testing result is obtained.
In the present embodiment, COM port mould triggering pin in the block can trigger described when current potential changes COM port module identifies that the current potential of the triggering pin changes, and obtains the first testing result.
Step 702:According to the first detection triggers delayer, with after the preset time of the delayer to institute The testing result after the first testing result is stated to be judged.
In the present embodiment, since the state change of button module can very frequently, the acquisition of testing result also can Very frequently, it in order to make electronic equipment make correct response to the state change of button module, avoids interfering, prolonging in this step When device effect be to make two testing results judgement phase at regular intervals;Wherein, the delayer can be set such as 100ms。
Step 703:Judge whether first testing result is that triggering is drawn the current potential at angle and got higher, when the result judged is yes When, execute step 704;When the result judged is no, step 705 is executed.
Step 704:The output end for obtaining the corresponding button module of the triggering pin, with true according to the output end The first state of the fixed button, the first state are the state after state transformation.
Step 705:The output end for obtaining the corresponding button module of the triggering pin, with true according to the output end Second state of the fixed button, second state are the state before state transformation.
In the present embodiment, due to the variation of button module state, the triggering pin of COM port module is inevitably resulted in In, the current potential of a triggering pin is got higher, and the current potential of a triggering pin is lower, and the triggering pin that current potential is got higher becomes for state The corresponding triggering pin of the button module output end after change, current potential be lower triggering pin be state change before it is described by The corresponding triggering pin of button module output end.
Step 706:The state change of the button module is determined according to the first state and second state, so that The electronic equipment is responded according to the variation of the button module state.
Using the technical solution of the embodiment of the present invention, pass through the triggering pin in existing COM port in electronic equipment Potential change knows the variation of key-press status, without knowing the operation of button by the detection of driver, greatly reduces electricity Resource overhead in sub- equipment improves the performance of electronic equipment.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention can be used can use storage in the computer that one or more wherein includes computer usable program code Medium(Including but not limited to magnetic disk storage and optical memory etc.)The form of the computer program product of upper implementation.
The present invention be with reference to according to the method for the embodiment of the present invention, equipment(System)And the flow of computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (9)

1. a kind of electronic equipment, the electronic equipment includes push-button unit, and the push-button unit includes:Button module and component pair As MODEL C OM port modules;The COM port module includes multiple triggering pins;It is characterized in that, the push-button unit also wraps Include multiple division modules;Wherein,
The button module includes input terminal and multiple output ends, and the input terminal is connect with supply voltage output end;When described When button module is in different conditions, the input terminal is connected with corresponding output end;
One end of the multiple division module is connect with multiple output ends of the button module respectively, the output end with it is described Division module corresponds;The other end of the multiple division module respectively with multiple triggering pins of the COM port module Connection, the division module are corresponded with the triggering pin.
2. electronic equipment according to claim 1, which is characterized in that the division module includes:First resistor and second Resistance;The button module includes the first output end and second output terminal;
When the button module is in first state, the input terminal of the button module is connect with the first output end;Described One output end is connect with the first pole of the first resistor of the first division module;Second pole of the first division module first resistor It is connect with the first triggering pin of the COM port module;First pole of the second resistance of first division module with it is described Second pole of the first resistor of the first division module connects;Second pole of the second resistance of first division module is grounded;
When the button module is in the second state, the input terminal of the button module is connect with second output terminal;Described Two output ends are connect with the first pole of the first resistor of the second division module;The second of the first resistor of second division module Pole is connect with the second triggering pin of the COM port module;First pole of the second resistance of second division module and institute State the second pole connection of the first resistor of the second division module;Second pole of the second resistance of second division module is grounded.
3. electronic equipment according to claim 1, which is characterized in that when the button module is in the third state, institute The input terminal for stating button module is connect with third output end;The of the first resistor of the third output end and third division module One pole connects;Second pole of the first resistor of the third division module and the third triggering pin of the COM port module connect It connects;First pole of the second resistance of the third division module and the second pole of the first resistor of the third division module connect It connects;Second pole of the second resistance of the third division module is grounded.
4. electronic equipment according to claim 1, which is characterized in that when the button module is in four states, institute The input terminal for stating button module is connect with the 4th output end;The of the first resistor of 4th output end and the 4th division module One pole connects;Second pole of the first resistor of the 4th division module and the 4th triggering pin of the COM port module connect It connects;First pole of the second resistance of the 4th division module and the second pole of the first resistor of the 4th division module connect It connects;Second pole of the second resistance of the 4th division module is grounded.
5. electronic equipment according to claim 1, which is characterized in that when the button module is in five states, institute The input terminal for stating button module is connect with the 5th output end;The of the first resistor of 5th output end and the 5th division module One pole connects;Second pole of the first resistor of the 5th division module and the 5th triggering pin of the COM port module connect It connects;First pole of the second resistance of the 5th division module and the second pole of the first resistor of the 5th division module connect It connects;Second pole of the second resistance of the 5th division module is grounded.
6. electronic equipment according to any one of claims 1 to 5, which is characterized in that
The multiple triggering pin is at least the two of COM port mould following pin in the block:DSR DSR pins, number RTS pins are sent according to carrier wave detection DCD pins, clear to send CTS pins, ring instruction RI pins, request.
7. a kind of information processing method is applied in electronic equipment, the electronic equipment includes push-button unit;It is characterized in that, The push-button unit includes:Button module, multiple division modules and COM port module;The COM port module includes multiple touches It carrys out the coffin upon burial foot;The button module includes input terminal and multiple output ends, the multiple output end and the multiple division module one One is correspondingly connected with;The multiple division module connects one to one with the multiple triggering pin;When the button module is in When different conditions, the input terminal is connected with corresponding output end;The method includes:
The current potential for detecting multiple triggering pins described in the COM port module, when determining that the current potential of any triggering pin is got higher, The output end for obtaining the corresponding button module of triggering pin that current potential is got higher, determines according to the output end of the button module The button module state, so that the electronic equipment is responded according to the variation of the button module state.
8. the method according to the description of claim 7 is characterized in that multiple described in the detection COM port module touch It carrys out the coffin upon burial the current potential of foot, when determining that the current potential is got higher, obtains the defeated of the corresponding button module of triggering pin that current potential is got higher Outlet, including:
When detecting that the potential change at angle is drawn in any triggering in multiple triggering pins described in the COM port module, obtain First testing result, according to the first detection triggers delayer, with after the preset time of the delayer to described Testing result after first testing result is judged;
Judge whether first testing result is that triggering is drawn the current potential at angle and got higher, and when judging result is to be, obtains described touch The output end of the corresponding button module of foot of carrying out the coffin upon burial, it is described to determine the first state of the button according to the output end First state is the state after state transformation;
When judging result is no, the output end of the corresponding button module of the triggering pin is obtained, with according to described defeated Outlet determines that the second state of the button, second state are the state before state transformation.
9. method according to claim 7 or 8, which is characterized in that the multiple triggering pin is that COM port mould is in the block At least the two of following pin:DSR DSR pins, data carrier detection DCD pins, clear to send CTS pins, ring Indicate that RI pins, request send RTS pins.
CN201410062614.2A 2014-02-24 2014-02-24 A kind of electronic equipment and information processing method Active CN104868898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410062614.2A CN104868898B (en) 2014-02-24 2014-02-24 A kind of electronic equipment and information processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410062614.2A CN104868898B (en) 2014-02-24 2014-02-24 A kind of electronic equipment and information processing method

Publications (2)

Publication Number Publication Date
CN104868898A CN104868898A (en) 2015-08-26
CN104868898B true CN104868898B (en) 2018-10-12

Family

ID=53914462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410062614.2A Active CN104868898B (en) 2014-02-24 2014-02-24 A kind of electronic equipment and information processing method

Country Status (1)

Country Link
CN (1) CN104868898B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106080371B (en) * 2015-08-31 2018-05-29 陈觉明 Automatic driving of motor vehicle auxiliary control appliance and its signal control display device
CN114188921B (en) * 2020-09-14 2023-11-21 凹凸电子(武汉)有限公司 Mobile device, battery pack, and protection method for battery pack

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101187833A (en) * 2006-11-15 2008-05-28 深圳迈瑞生物医疗电子股份有限公司 USB pedal switch device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050192911A1 (en) * 2003-10-02 2005-09-01 Mattern James M. Application program interface for postal security device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101187833A (en) * 2006-11-15 2008-05-28 深圳迈瑞生物医疗电子股份有限公司 USB pedal switch device

Also Published As

Publication number Publication date
CN104868898A (en) 2015-08-26

Similar Documents

Publication Publication Date Title
US10175852B2 (en) Information processing methods and electronic devices for classifying applications
CN109558282B (en) PCIE link detection method, system, electronic equipment and storage medium
US20170338682A1 (en) Charging position prompting method and electronic device
WO2014019124A1 (en) Touch event reporting method, device and mobile terminal
CN104699589B (en) Fan fault detection system and method
CN106095413B (en) A kind of configuration method and device of bluetooth driver
CN103777755B (en) A kind of information processing method and electronic equipment
JP2013122625A (en) Information processing device, input device, input device module, program, and input processing method
US9405393B2 (en) Information processing device, information processing method and computer program
CN104868898B (en) A kind of electronic equipment and information processing method
CN107577404B (en) Information processing method and device and electronic equipment
CN111190791A (en) Application exception reporting method and device and electronic equipment
WO2015181830A1 (en) User account switching interface
CN106020712B (en) Touch gesture recognition method and device
CN105892895A (en) Multi-finger sliding gesture recognition method and device as well as terminal equipment
CN108184015A (en) Irregular shaped region display methods and Related product
CN104898838A (en) Incoming call responding method and apparatus for handheld device
US9904402B2 (en) Mobile terminal and method for input control
TW201335848A (en) Method for extending the expansion of device drivers of electronic device and potable smart device
CN104598071A (en) Information processing method and electronic device
CN108762637A (en) Control method, apparatus and system
CN104699286B (en) The method and electronic equipment of a kind of information processing
CN108307054A (en) The detection method and Related product of drop information
CN104850522B (en) A kind of signal output method and device
US10620727B2 (en) Information processing method and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant