CN104866114B - A kind of hardware button control method, device and electronic equipment - Google Patents

A kind of hardware button control method, device and electronic equipment Download PDF

Info

Publication number
CN104866114B
CN104866114B CN201410061743.XA CN201410061743A CN104866114B CN 104866114 B CN104866114 B CN 104866114B CN 201410061743 A CN201410061743 A CN 201410061743A CN 104866114 B CN104866114 B CN 104866114B
Authority
CN
China
Prior art keywords
processor
hardware button
south bridge
bridge chip
state change
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
CN201410061743.XA
Other languages
Chinese (zh)
Other versions
CN104866114A (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 CN201410061743.XA priority Critical patent/CN104866114B/en
Publication of CN104866114A publication Critical patent/CN104866114A/en
Application granted granted Critical
Publication of CN104866114B publication Critical patent/CN104866114B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a kind of hardware button control method, device and electronic equipment, with electronic equipment polymorphic and including first processor and second processor, when the electronic equipment runs the operating system of non-x 86 or x86 operating systems, it can be with application hardware key control method, the state change situation of hardware button is obtained by second processor, and the state change situation of hardware button is sent to South Bridge chip, so that South Bridge chip sends state change situation to first processor, and the driver of hardware button is called to complete hardware button currently executed function by the operating system of first processor operation, so electronic equipment is when running operating system, avoid the need for increasing the driver for message conversion outside operating system, extra program is reduced to support.

Description

A kind of hardware button control method, device and electronic equipment
Technical field
The present invention relates to polymorphic technical field of electronic equipment, more particularly to a kind of hardware button control method, device and Electronic equipment.
Background technology
With the popularization of electronic equipment, an electronic equipment can possess variform, for this electronic equipment, work as electricity During the operating system of the processor operation different editions of sub- equipment, the hardware button in it can be controlled in the following way System:
The first, runs the operating system of non-x 86, each hardware button and SoC in electronic equipment(System on a Chip, system level chip)Pin connection.When SoC detects the state change of hardware button, state change situation is sent To processor, the operating system of non-x 86 run in processor analyzes keypress function corresponding to state change situation, and calls phase The driver answered completes the keypress function.
Second, x86 operating systems are run, the Power in electronic equipment(Power supply)Key and EC(Embed Controller, embedded controller)A pin be connected, by EC respond Power keys function, complete the upper of electronic equipment Electricity.The state change of other hardware buttons is obtained by the driver for operating in operating system, and then the driver is by its turn It is changed to HID(Human Interface Devices, human interface device)Message notifies the operating system to complete corresponding work( Energy.
The content of the invention
The technical problems to be solved by the invention are to provide a kind of hardware button control method, device and equipment, for On the premise of not increasing the driver for changing message, the function of hardware button is completed by operating system.Technical scheme is such as Under:
The embodiment of the present invention provides a kind of hardware button control method, has applied to one in polymorphic electronic equipment, The electronic equipment include first processor, second processor, be connected to the first processor and the second processor it Between South Bridge chip, the first processor runs an operating system, and the operating system is by calling the driving of hardware button Program completes the function of hardware button, wherein, the hardware button control method includes:
The second processor obtains the state change situation of the hardware button, the state change feelings of the hardware button Condition shows the hardware button currently executed function;
The state change situation of the hardware button is sent to the South Bridge chip, so that the South Bridge chip is by described in State change situation is sent to the first processor, and the operating system run by the first processor calls hardware The driver of button, to complete the hardware button currently executed function.
Preferably, the first universal input output pin of the second processor is connected with the hardware button, and described Second universal input output pin of two processors is connected with the 3rd general input and output pin of the South Bridge chip, the south 4th general input and output pin of bridge chip is connected with the 5th universal input output pin of the first processor;
The second processor obtains the state change situation of the hardware button, including:The second processor passes through The first universal input output pin obtains the state change situation of the hardware button;
The state change situation of the hardware button is sent to the South Bridge chip, including:It is general by described second Input and output pin sends the state change situation of the hardware button to the 3rd general input and output of the South Bridge chip Pin, the state change situation of the hardware button is sent to institute by the 4th general input and output pin of the South Bridge chip State the 5th universal input output pin of first processor.
Preferably, the second processor obtains the state change situation of hardware button, including:The second processor obtains Input is taken to the level change situation of the first universal input output pin, the level change situation is used to represent described hard The state change situation of part button.
Preferably, before the state change situation that the second processor obtains hardware button, methods described also includes: Record the pin annexation between the hardware button and the second processor, and the second processor and the south Pin annexation between bridge chip.
Preferably, the pin annexation is recorded in the configuration file of the second processor;
Or the pin annexation is recorded in the memory to be communicated with the second processor.
The embodiment of the present invention also provides a kind of hardware button control device, has polymorphic electronic equipment applied to one In, the electronic equipment includes first processor, second processor, is connected to the first processor and the second processor Between South Bridge chip, the first processor runs an operating system, and the operating system is by calling the drive of hardware button Dynamic program completes the function of hardware button, wherein, the hardware button control device is located in the second processor, including:
Acquiring unit, for obtaining the state change of the hardware button, the state change of the hardware button shows institute State hardware button currently executed function;
Transmitting element, for the state change situation of the hardware button to be sent to the South Bridge chip, so that described South Bridge chip sends the state change situation to the first processor, and the behaviour run by the first processor Make the driver that system calls hardware button, to complete the hardware button currently executed function.
Preferably, the first universal input output pin of the second processor is connected with the hardware button, and described Second universal input output pin of two processors is connected with the 3rd general input and output pin of the South Bridge chip, the south 4th general input and output pin of bridge chip is connected with the 5th universal input output pin of the first processor;
The acquiring unit is specifically used for:The shape of the hardware button is obtained by the first universal input output pin State situation of change;
The transmitting element is specifically used for:By the second universal input output pin by the state of the hardware button Situation of change is sent to the 3rd general input and output pin of the South Bridge chip, by the 4th universal input of the South Bridge chip The 5th universal input output that output pin sends the state change situation of the hardware button to the first processor is drawn Pin.
Preferably, the acquiring unit is further used for:Input is obtained to the electricity of the first universal input output pin Flat situation of change, the level change situation are used for the state change situation for representing the hardware button.
Preferably, described device also includes:Recording unit, for record the hardware button and the second processor it Between pin annexation, and the pin annexation between the second processor and the South Bridge chip.
Preferably, the pin annexation is recorded in the configuration file of the second processor.
The embodiment of the present invention, which also provides one kind, has polymorphic electronic equipment, and the electronic equipment includes the first processing Device, second processor, the South Bridge chip being connected between the first processor and the second processor, first processing Device runs an operating system, and the operating system is by calling the driver of hardware button to complete the function of hardware button, institute Stating second processor includes above-mentioned hardware button control device;
The hardware button control device is used to obtaining the state change of the hardware button, and by the hardware button State change situation, which is sent to the South Bridge chip, the state change of the hardware button, shows that the hardware button currently performs Function;
The South Bridge chip, for the state change situation to be sent to the first processor;
The first processor, it is described to complete for calling the driver of hardware button by the operating system Hardware button currently executed function.
Preferably, the first universal input output pin of the second processor is connected with the hardware button, and described Second universal input output pin of two processors is connected with the 3rd general input and output pin of the South Bridge chip, the south 4th general input and output pin of bridge chip is connected with the 5th universal input output pin of the first processor;
The hardware button control device is used for, and the hardware button is obtained by the first universal input output pin State change situation, and the state change situation of the hardware button is sent by the second universal input output pin To the 3rd general input and output pin of the South Bridge chip;
4th general input and output pin of the South Bridge chip by the state change situation of the hardware button send to 5th universal input output pin of the first processor.
Compared with prior art, the present invention includes advantages below:
In the present invention, there is polymorphic and including first processor and second processor electronic equipment, when the electronics When equipment runs the operating system of non-x 86 or x86 operating systems, it can obtain the state of hardware button by second processor Situation of change, and the state change situation of hardware button is sent to South Bridge chip, so that South Bridge chip is by state change situation Send to first processor, and call the driver of hardware button to complete hardware by the operating system of first processor operation and press Key currently executed function, such electronic equipment avoid the need for outside operating system increasing for disappearing when running operating system The driver of conversion is ceased, extra program is reduced and supports.
Certainly, any product for implementing the present invention it is not absolutely required to reach all the above advantage simultaneously.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
Fig. 1 is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of hardware button control method provided in an embodiment of the present invention;
Fig. 3 is the connection diagram of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 4 is the flow chart of another hardware button control method provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of hardware button control device provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another hardware button control device provided in an embodiment of the present invention.
Embodiment
For a better understanding of the present invention, below in conjunction with the accompanying drawing in the embodiment of the present invention, in the embodiment of the present invention Technical scheme be clearly and completely described, it is clear that described embodiment is only part of the embodiment of the present invention, and The embodiment being not all of.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work Under the premise of the every other embodiment that is obtained, belong to the scope of protection of the invention.
Referring to Fig. 1, it illustrates the flow chart of hardware button control method provided in an embodiment of the present invention, its application tool Have in polymorphic electronic equipment, such as there is common notebook form and ipad(Tablet personal computer)In the electronic equipment of form, electricity The structural representation of sub- equipment 200 can be with as shown in fig.2, can include but is not limited to:First processor 201, second processing Device 202, the South Bridge chip 203 being connected between the first processor 201 and the second processor 202, at described first Manage device 201 and run an operating system, the operating system can be by calling the driver of hardware button to complete hardware button Function.I.e. when operator operates to some hardware button, operating system can call the driving of the hardware button Program completes operation function to be performed.
Such as when operator is to Volume Up(Volume increases)When this hardware button carries out pressing operation, operator is represented Want to tune up current volume, operating system can then call increase this driver of volume to increase volume.
In embodiments of the present invention, hardware button control method can be performed by the second processor in electronic equipment, can To comprise the following steps:
101:The state change situation of hardware button is obtained, the state change situation of hardware button shows that hardware button is current The function of execution.
It is appreciated that:When operator wishes, by hardware button control electronics, to make hardware button perform itself Function when, operator operates to hardware button, and now the state of hardware button changes, therefore the shape of hardware button State situation of change may indicate that hardware button currently executed function.
Such as:Operator passes through Volume Down(Volume reduces)This hardware button control electronics reduces volume During output, operator can directly press the hardware button.Operator often presses hardware button once, and the state of hardware button is then It can change, electronic equipment can then perform the function that volume corresponding to hardware button reduces.
102:The state change situation of hardware button is sent to South Bridge chip, so that South Bridge chip is by state change situation Send to first processor, and the driver of hardware button is called by the operating system of first processor operation, it is hard to complete Part button currently executed function.
In embodiments of the present invention, South Bridge chip is as the communication bridge between first processor and second processor, After the state change situation for receiving the hardware button of second processor transmission, the state change situation of hardware button is sent to First processor, such first processor can then analyze the state change situation of hardware button, obtain current state and change Be function which hardware button and the current hardware button perform.The operating system operated in afterwards on first processor is then The driver with the hardware button function can be called, hardware is completed by other devices in driver drive electronics Button currently executed function.
Such as that the state change situation of hardware button shows that current state changes is Volume Down(Volume down It is small), and need to reduce volume output, then operating system can be called with the driver for reducing volume output function to drive electricity Audio process in sub- equipment, reduce the volume output of audio process.
Pass through above-mentioned technical proposal, there is polymorphic and including first processor and second processor electronic equipment, nothing When running the operating system of non-x 86 or x86 operating systems by it, electronic equipment can obtain hardware button by second processor State change situation, and the state change situation of hardware button is sent to South Bridge chip, so that South Bridge chip becomes state Change situation is sent to first processor, and calls the driver of hardware button to complete by the operating system of first processor operation Hardware button currently executed function, such electronic equipment avoid the need for increasing outside operating system when running operating system For the driver of message conversion, reduce extra program and support.
Further, in embodiments of the present invention, between first processor and South Bridge chip and second processor and south bridge Pin connected mode can be used to communicate between chip, as shown in figure 3, the first GPIO of second processor 202(General Purpose Input Output, universal input output)Pin 1 is connected with hardware button, the 2nd GPIO of second processor 202 Pin 2 is connected with the 3rd GPIO pin 3 of South Bridge chip 203, the 4th GPIO pin 4 and first processor of South Bridge chip 203 201 the 5th GPIO pin 5 is connected.
Based on the electronic equipment of this kind of structure, second processor 202 can obtain hardware button by the first GPIO pin 1 State change situation, and the state change situation of hardware button is sent to South Bridge chip 203 by the second GPIO pin 2 3rd GPIO pin 3, then sent the state change situation of hardware button to institute by the 4th GPIO pin 4 of South Bridge chip 203 State the 5th GPIO pin 5 of first processor 201.
When electronic equipment includes multiple hardware buttons, each hardware button can pass through pin connected mode and second Processor communication, and the state change situation of each hardware button is sent to by second processor by pin by South Bridge chip One processor.And the pin for being responsible for transmitting the state change situation of different hardware button is different, and such first processor is connecing When receiving the state change situation of hardware button, operating system can is by judging it is which pin to receive hardware button by State change situation determines hardware button.
It is again because different for the function of different hardware button design when designing electronic equipment, it is determined that hardware button Afterwards, the operating system operated in first processor can know the driver of function to be performed and calling.It is this Hardware button uses the communication of pin connected mode to be easy to identify with streamline operation.
Referring to Fig. 4, it illustrates a kind of flow chart of hardware button control method based on electronic equipment shown in Fig. 3, It may comprise steps of:
401:Record the pin annexation between hardware button and second processor, and second processor and south bridge core Pin annexation between piece.
Wherein, the pin annexation between hardware button and second processor shows in hardware button and second processor The connection of which pin, and the pin annexation between second processor and South Bridge chip then shows second processor and south bridge Which pin to transmit the state change situation of which hardware button between chip by.
Above-mentioned pin annexation can be recorded in the configuration file of second processor, handled in South Bridge chip and first The pin annexation further between record South Bridge chip and first processor is also needed in device, to show South Bridge chip and the Which pin to transmit the state change situation of which hardware button between one processor by.
In addition, above-mentioned pin annexation can also be recorded in a storage device, first processor, South Bridge chip and Two processors can also obtain pin annexation from the storage device.But this storage mode is being saved in electronic equipment Memory space on the premise of, increase interaction times and network load.It is and foregoing at first processor, South Bridge chip and second The mode stored in reason device accounts for a certain extent without can obtain pin annexation with the storage communication of outside With part memory space, the storage mode of pin annexation is not limited in embodiments of the present invention.
402:Second processor obtains input to the level change situation of the first GPIO pin, level change situation and is used for table Show the state change situation of hardware button.
When being operated to hardware button, the level in the first coupled GPIO pin changes operator, Therefore the state change situation of hardware button can be represented using level change situation.
403:Second processor is sent level change situation to the 3rd GPIO of South Bridge chip by the second GPIO pin Pin, level change situation is sent to the 5th GPIO pin of first processor by the 4th GPIO pin of South Bridge chip.
First processor when receiving the state change situation of hardware button, operating system can by judge be by Which pin receives the state change situation of hardware button to determine hardware button.And then operating system can be known to be held Capable function and the driver of calling, call driver complete the function of hardware button.
Corresponding with above method embodiment, the embodiment of the present invention also provides a kind of hardware button control device, is applied to One has in polymorphic electronic equipment, and the structural representation of electronic equipment can be with as shown in fig.2, can include the first processing Device, second processor, the South Bridge chip being connected between first processor and second processor, the operation of first processor operation one System, operating system by call hardware button driver complete hardware button function, wherein, hardware button control dress Put 500 to be located in second processor, its structural representation is referred to shown in Fig. 5, can be included:Acquiring unit 501 and transmission are single Member 502, wherein,
Acquiring unit 501, for obtaining the state change of hardware button, the state change of hardware button shows hardware button Currently executed function.
It is appreciated that:When operator wishes, by hardware button control electronics, to make hardware button perform itself Function when, operator operates to hardware button, and now the state of hardware button changes, therefore the shape of hardware button State situation of change may indicate that hardware button currently executed function.
Transmitting element 502, for the state change situation of hardware button to be sent to South Bridge chip, so that South Bridge chip will State change situation is sent to first processor, and the driving journey of hardware button is called by the operating system of first processor operation Sequence, to complete hardware button currently executed function.
In embodiments of the present invention, South Bridge chip is as the communication bridge between first processor and second processor, After the state change situation for receiving the hardware button of second processor transmission, the state change situation of hardware button is sent to First processor, such first processor can then analyze the state change situation of hardware button, obtain current state and change Be function which hardware button and the current hardware button perform.The operating system operated in afterwards on first processor is then The driver with the hardware button function can be called, hardware is completed by other devices in driver drive electronics Button currently executed function.
Using above-mentioned technical proposal, there is polymorphic and including first processor and second processor electronic equipment, nothing When running the operating system of non-x 86 or x86 operating systems by it, electronic equipment can pass through the hardware button in second processor Control device obtains the state change situation of hardware button, and the state change situation of hardware button is sent to South Bridge chip, So that South Bridge chip sends state change situation to first processor, and called firmly by the operating system of first processor operation The driver of part button completes hardware button currently executed function, and such electronic equipment is when running operating system, just not Need to increase the driver for message conversion outside operating system, reduce extra program and support.
Further, in embodiments of the present invention, between first processor and South Bridge chip and second processor and south bridge Pin connected mode can be used to communicate between chip, as shown in figure 3, the first GPIO pin 1 and hardware of second processor 202 Button is connected, and the second GPIO pin 2 of second processor 202 is connected with the 3rd GPIO pin 3 of South Bridge chip 203, south bridge core 4th GPIO pin 4 of piece 203 is connected with the 5th GPIO pin 5 of first processor 201.
Under this configuration, acquiring unit 501 can obtain the state change feelings of hardware button by the first GPIO pin Condition.
Transmitting element 502 can then be sent the state change situation of hardware button to south bridge core by the second GPIO pin 3rd GPIO pin of piece, the state change situation of hardware button is sent to first by the 4th GPIO pin of South Bridge chip Manage the 5th GPIO pin of device.
And in some examples, acquiring unit 501 can obtain input to the level change situation of the first GPIO pin. Because operator to hardware button when operating, the level in the first coupled GPIO pin changes, therefore The state change situation of hardware button can be represented using level change situation.
Above-mentioned this pin connection communication mode can make first processor receive the state change feelings of hardware button During condition, operating system can by judge be which pin is the state change situation of hardware button is received by come determine hardware by Key.It is again because different for the function of different hardware button design when designing electronic equipment, it is determined that after hardware button, transport Operating system of the row in first processor can know the driver of function to be performed and calling.This hardware is pressed Key uses the communication of pin connected mode to be easy to identify with streamline operation.And hardware is represented using level change situation The state change situation of button, without additionally increasing other devices, simplify product structure.
Further, hardware button control device provided in an embodiment of the present invention can also include:Recording unit 503, such as Fig. 6 It is shown, for recording the pin annexation between hardware button and second processor, and second processor and South Bridge chip Between pin annexation.
Wherein, the pin annexation between hardware button and second processor shows in hardware button and second processor The connection of which pin, and the pin annexation between second processor and South Bridge chip then shows second processor and south bridge Which pin to transmit the state change situation of which hardware button between chip by.
Above-mentioned pin annexation can be recorded in the configuration file of second processor, handled in South Bridge chip and first The pin annexation further between record South Bridge chip and first processor is also needed in device, to show South Bridge chip and the Which pin to transmit the state change situation of which hardware button between one processor by.
In addition, above-mentioned pin annexation can also be recorded in a storage device, first processor, South Bridge chip and Two processors can also obtain pin annexation from the storage device.But this storage mode is being saved in electronic equipment Memory space on the premise of, increase interaction times and network load.It is and foregoing at first processor, South Bridge chip and second The mode stored in reason device accounts for a certain extent without can obtain pin annexation with the storage communication of outside With part memory space, the storage mode of pin annexation is not limited in embodiments of the present invention.
In addition, the embodiment of the present invention, which also provides one kind, has polymorphic electronic equipment, its structural representation such as Fig. 2 institutes Show, first processor, second processor, the South Bridge chip being connected between first processor and second processor can be included, First processor runs an operating system, and operating system is by calling the driver of hardware button to complete the work(of hardware button Can, second processor includes above-mentioned hardware button control device.
Wherein, hardware button control device is used for the state change for obtaining hardware button, and the state of hardware button is become Change situation, which is sent to South Bridge chip, the state change of hardware button, shows hardware button currently executed function.
South Bridge chip, for state change situation to be sent to first processor.Operating system is passed through by first processor The driver of hardware button is called, to complete hardware button currently executed function.
Further, pin can also be used to connect between first processor, South Bridge chip and second processor in electronic equipment Connect, as shown in figure 3, the first GPIO pin of second processor is connected with hardware button, the second GPIO pin of second processor It is connected with the 3rd GPIO pin of South Bridge chip, the 4th GPIO pin of South Bridge chip and the 5th GPIO pin of first processor It is connected.
Hardware button control device is used for, and the state change situation of hardware button is obtained by the first GPIO pin, and leads to The second GPIO pin is crossed to send the state change situation of hardware button to the 3rd GPIO pin of South Bridge chip.
4th GPIO pin of South Bridge chip sends the state change situation of hardware button to the 5th of first processor GPIO pin.
In some examples of the present invention, second processor can obtain input to the level change feelings of the first GPIO pin Condition is to represent the state change situation of hardware button.This state change feelings that hardware button is represented using level change situation Condition, without additionally increasing other devices, simplify product structure.And above-mentioned pin connected mode can connect first processor When receiving the state change situation of hardware button, operating system can is by judging it is which pin to receive hardware button by State change situation determines hardware button.Again because when designing electronic equipment for different hardware button design function not Together, so it is determined that after hardware button, the operating system operated in first processor can know function to be performed And the driver called.This hardware button uses the communication of pin connected mode to be easy to identify with streamline operation.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to. For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is joined See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except other identical element in the process including the key element, method, article or equipment being also present.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented The function of each unit can be realized in same or multiple softwares and/or hardware during invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can Realized by the mode of software plus required general hardware platform.Based on such understanding, technical scheme essence On the part that is contributed in other words to prior art can be embodied in the form of software product, the computer software product It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are causing a computer equipment (Can be personal computer, server, or network equipment etc.)Perform some of each embodiment or embodiment of the invention Method described in part.
Detailed Jie has been carried out to a kind of hardware button control method, device and electronic equipment provided by the present invention above Continue, specific case used herein is set forth to the principle and embodiment of the present invention, and the explanation of above example is only It is the method and its core concept for being used to help understand the present invention;Meanwhile for those of ordinary skill in the art, according to this hair Bright thought, there will be changes in specific embodiments and applications, in summary, this specification content should not manage Solve as limitation of the present invention.

Claims (12)

1. a kind of hardware button control method, have applied to one in polymorphic electronic equipment, the electronic equipment includes the One processor, second processor, the South Bridge chip being connected between the first processor and the second processor, described One processor runs an operating system, and the operating system is by calling the driver of hardware button to complete the work(of hardware button Can, wherein, the hardware button control method includes:
The second processor obtains the state change situation of the hardware button, the state change situation table of the hardware button The bright hardware button currently executed function;
The state change situation of the hardware button is sent to the South Bridge chip, so that the South Bridge chip is by the state Situation of change is sent to the first processor, and the operating system run by the first processor calls hardware button Driver, to complete the hardware button currently executed function.
2. according to the method for claim 1, it is characterised in that the first universal input output pin of the second processor It is connected with the hardware button, the second universal input output pin of the second processor and the threeway of the South Bridge chip It is connected with input and output pin, the 4th general input and output pin of the South Bridge chip is logical with the 5th of the first processor the It is connected with input and output pin;
The second processor obtains the state change situation of the hardware button, including:The second processor passes through described First universal input output pin obtains the state change situation of the hardware button;
The state change situation of the hardware button is sent to the South Bridge chip, including:Pass through second universal input Output pin sends the state change situation of the hardware button to the 3rd general input and output pin of the South Bridge chip, The state change situation of the hardware button is sent to described by the 4th general input and output pin of the South Bridge chip 5th universal input output pin of one processor.
3. according to the method for claim 2, it is characterised in that the second processor obtains the state change of hardware button Situation, including:The second processor obtains input to the level change situation of the first universal input output pin, described Level change situation is used for the state change situation for representing the hardware button.
4. according to the method for claim 3, it is characterised in that the state that hardware button is obtained in the second processor becomes Before change situation, methods described also includes:The pin annexation between the hardware button and the second processor is recorded, And the pin annexation between the second processor and the South Bridge chip.
5. according to the method for claim 4, it is characterised in that the pin annexation is recorded in the second processor Configuration file in;
Or the pin annexation is recorded in the memory to be communicated with the second processor.
6. a kind of hardware button control device, have applied to one in polymorphic electronic equipment, the electronic equipment includes the One processor, second processor, the South Bridge chip being connected between the first processor and the second processor, described One processor runs an operating system, and the operating system is by calling the driver of hardware button to complete the work(of hardware button Can, wherein, the hardware button control device is located in the second processor, including:
Acquiring unit, for obtaining the state change of the hardware button, the state change of the hardware button shows described hard Part button currently executed function;
Transmitting element, for the state change situation of the hardware button to be sent to the South Bridge chip, so that the south bridge Chip sends the state change situation to the first processor, and the operation system run by the first processor System calls the driver of hardware button, to complete the hardware button currently executed function.
7. device according to claim 6, it is characterised in that the first universal input output pin of the second processor It is connected with the hardware button, the second universal input output pin of the second processor and the threeway of the South Bridge chip It is connected with input and output pin, the 4th general input and output pin of the South Bridge chip is logical with the 5th of the first processor the It is connected with input and output pin;
The acquiring unit is specifically used for:The state that the hardware button is obtained by the first universal input output pin becomes Change situation;
The transmitting element is specifically used for:By the second universal input output pin by the state change of the hardware button Situation is sent to the 3rd general input and output pin of the South Bridge chip, by the 4th general input and output of the South Bridge chip Pin sends the state change situation of the hardware button to the 5th universal input output pin of the first processor.
8. device according to claim 7, it is characterised in that the acquiring unit is further used for:Input is obtained to institute The level change situation of the first universal input output pin is stated, the level change situation is used for the shape for representing the hardware button State situation of change.
9. device according to claim 8, it is characterised in that described device also includes:Recording unit, it is described for recording Pin annexation between hardware button and the second processor, and the second processor and the South Bridge chip it Between pin annexation.
10. device according to claim 9, it is characterised in that the pin annexation is recorded in the second processing In the configuration file of device.
11. one kind has polymorphic electronic equipment, it is characterised in that the electronic equipment is including first processor, at second Reason device, the South Bridge chip being connected between the first processor and the second processor, the first processor operation one Operating system, the operating system is by calling the driver of hardware button to complete the function of hardware button, at described second Reason device includes hardware button control device;
The hardware button control device is used to obtaining the state change of the hardware button, and by the state of the hardware button Situation of change, which is sent to the South Bridge chip, the state change of the hardware button, shows the work(that the hardware button currently performs Energy;
The South Bridge chip, for the state change situation to be sent to the first processor;
The first processor, for calling the driver of hardware button by the operating system, to complete the hardware Button currently executed function.
12. electronic equipment according to claim 11, it is characterised in that the first universal input of the second processor is defeated Go out pin with the hardware button to be connected, the second universal input output pin and the South Bridge chip of the second processor 3rd general input and output pin is connected, the 4th general input and output pin and the first processor of the South Bridge chip 5th universal input output pin is connected;
The hardware button control device is used for, and the shape of the hardware button is obtained by the first universal input output pin State situation of change, and sent the state change situation of the hardware button to institute by the second universal input output pin State the 3rd general input and output pin of South Bridge chip;
4th general input and output pin of the South Bridge chip sends the state change situation of the hardware button to described 5th universal input output pin of first processor.
CN201410061743.XA 2014-02-24 2014-02-24 A kind of hardware button control method, device and electronic equipment Active CN104866114B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410061743.XA CN104866114B (en) 2014-02-24 2014-02-24 A kind of hardware button control method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410061743.XA CN104866114B (en) 2014-02-24 2014-02-24 A kind of hardware button control method, device and electronic equipment

Publications (2)

Publication Number Publication Date
CN104866114A CN104866114A (en) 2015-08-26
CN104866114B true CN104866114B (en) 2017-12-29

Family

ID=53911995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410061743.XA Active CN104866114B (en) 2014-02-24 2014-02-24 A kind of hardware button control method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN104866114B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562456A (en) * 2017-08-24 2018-01-09 歌尔科技有限公司 Key configurations method, button operation method, device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101158935A (en) * 2006-10-06 2008-04-09 国际商业机器公司 South bridge system and method
CN101246393A (en) * 2007-02-15 2008-08-20 华硕电脑股份有限公司 Computer device and keyboard input operation method
CN101369816A (en) * 2007-08-16 2009-02-18 纬创资通股份有限公司 Press key distinguishing method and its related computer equipment
US8065452B1 (en) * 2010-10-28 2011-11-22 Inventec Corporation Multifunctional universal serial bus wireless keyboard

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7415551B2 (en) * 2003-08-18 2008-08-19 Dell Products L.P. Multi-host virtual bridge input-output resource switch

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101158935A (en) * 2006-10-06 2008-04-09 国际商业机器公司 South bridge system and method
CN101246393A (en) * 2007-02-15 2008-08-20 华硕电脑股份有限公司 Computer device and keyboard input operation method
CN101369816A (en) * 2007-08-16 2009-02-18 纬创资通股份有限公司 Press key distinguishing method and its related computer equipment
US8065452B1 (en) * 2010-10-28 2011-11-22 Inventec Corporation Multifunctional universal serial bus wireless keyboard

Also Published As

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

Similar Documents

Publication Publication Date Title
CN105653486A (en) Mobile terminal and method for reusing USB ports of processors thereof
CN103841495B (en) A kind of audio frequency parameter method of adjustment and device
US20130031275A1 (en) Peripheral device identification for pairing
JP2022003772A (en) Wireless connection establishment method, apparatus, device, and storage medium
CN108476060A (en) Method and bimodulus bluetooth equipment for establishing classical bluetooth connection between bimodulus bluetooth equipment
CN104346050A (en) Information processing method and electronic equipment
KR102048222B1 (en) Apparatus and method for recognizing an external device in a communication system
US20230122238A1 (en) Account binding method, device, and system
WO2014161512A1 (en) Method and apparatus for network connection
CN112415367B (en) Drive chip abnormality detection method, drive chip abnormality detection device, electronic device and readable storage medium
CN110297658A (en) Functional unit sharing method, device and computer equipment
CN110944313B (en) Bluetooth connection method, device, storage medium and terminal
US20150341827A1 (en) Method and electronic device for managing data flow
CN104866114B (en) A kind of hardware button control method, device and electronic equipment
CN104052801B (en) A kind of information processing method and electronic equipment
CN111309307B (en) Method and device for integrating VUE page and workflow system
CN106604204B (en) Method and system for remotely controlling terminal application through Bluetooth
US20130238820A1 (en) Mobile device and usb system including the same
CN106792474A (en) The connection method of audio Bluetooth pairing, apparatus and system
CN103019968B (en) The control method that input equipment is registered in input processing example and device
CN110516176A (en) Processing method, device, electronic equipment and the readable storage medium storing program for executing of user's request
CN110515489A (en) Intelligent interaction device and its control method
US20150280933A1 (en) Electronic device and connection method thereof
CN114338770B (en) Cross-blockchain data processing method and device, storage medium and terminal equipment
CN107402898B (en) Information processing method and electronic equipment

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