CN104866114A - Hardware button control method and device and electronic equipment - Google Patents

Hardware button control method and device and electronic equipment Download PDF

Info

Publication number
CN104866114A
CN104866114A CN201410061743.XA CN201410061743A CN104866114A CN 104866114 A CN104866114 A CN 104866114A CN 201410061743 A CN201410061743 A CN 201410061743A CN 104866114 A CN104866114 A CN 104866114A
Authority
CN
China
Prior art keywords
processor
hardware button
change
south bridge
bridge chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410061743.XA
Other languages
Chinese (zh)
Other versions
CN104866114B (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

Abstract

The invention provides a hardware button control method and device and electronic equipment. The electronic equipment has various forms and comprises a first processor and a second processor; when a non-x86 operating system or an x86 operating system operates on the electronic equipment, the electronic equipment can apply the hardware button control method to obtain a state change situation of a hardware button through a second processor and sends the state change situation of the hardware button to a South Bridge chip; the South Bridge chip sends the state change situation to the first processor; the operating system operating on the first processor calls a driving program of the hardware button to finish a function which is currently executed by the hardware button; and therefore, when the operating system operates on the electronic equipment, the driving program used for message conversion does not need to be added out of the operating system, and additional program support is reduced.

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, particularly a kind of hardware button control method, device and electronic equipment.
Background technology
Along with popularizing of electronic equipment, an electronic equipment can possess variform, and for this electronic equipment, when the processor of electronic equipment runs the operating system of different editions, the hardware button in it can control in the following way:
The first, run non-x 86 operating system, each hardware button and SoC(System on a Chip in electronic equipment, system level chip) pin connection.When SoC detects the state change of hardware button, state situation of change is sent to processor, and non-x 86 operating system run in processor analyzes keypress function corresponding to state situation of change, and calls corresponding driver and complete this keypress function.
The second, runs x86 operating system, the Power(power supply in electronic equipment) key and EC(Embed Controller, embedded controller) a pin be connected, by the function of EC response Power key, complete powering on of electronic equipment.The state change of other hardware button is obtained by the driver operating in operating system, and then this driver is converted into HID(HumanInterface Devices, human interface device) message notifies that operating system completes corresponding function.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of hardware button control method, device and equipment, for not increasing under the prerequisite for the driver of transforming message, is completed the function of hardware button by operating system.Technical scheme is as follows:
The embodiment of the present invention provides a kind of hardware button control method, being applied to one has in polymorphic electronic equipment, described electronic equipment comprises first processor, the second processor, is connected to South Bridge chip between described first processor and described second processor, described first processor runs an operating system, described operating system completes the function of hardware button by the driver calling hardware button, wherein, described hardware button control method comprises:
Described second processor obtains the state situation of change of described hardware button, and the state situation of change of described hardware button shows the function of the current execution of described hardware button;
The state situation of change of described hardware button is sent to described South Bridge chip, to make described South Bridge chip, described state situation of change is sent to described first processor, and the described operating system run by described first processor calls the driver of hardware button, has carried out the function of the current execution of described hardware button.
Preferably, first universal input output pin of described second processor is connected with described hardware button, second universal input output pin of described second processor is connected with the 3rd general input and output pin of described South Bridge chip, and the 4th general input and output pin of described South Bridge chip is connected with the five-way input and output pin of described first processor;
Described second processor obtains the state situation of change of described hardware button, comprising: described second processor obtains the state situation of change of described hardware button by described first universal input output pin;
The state situation of change of described hardware button is sent to described South Bridge chip, comprise: the 3rd general input and output pin by described second universal input output pin, the state situation of change of described hardware button being sent to described South Bridge chip, by the 4th general input and output pin of described South Bridge chip, the state situation of change of described hardware button is sent to the five-way input and output pin of described first processor.
Preferably, described second processor obtains the state situation of change of hardware button, comprise: described second processor obtains the level situation of change inputing to described first universal input output pin, and described level situation of change is for representing the state situation of change of described hardware button.
Preferably, before described second processor obtains the state situation of change of hardware button, described method also comprises: record the pin annexation between described hardware button and described second processor, and the pin annexation between described second processor and described South Bridge chip.
Preferably, described pin annexation is recorded in the configuration file of described second processor;
Or described pin annexation is recorded in the storer of described second processor communication.
The embodiment of the present invention also provides a kind of hardware button control device, being applied to one has in polymorphic electronic equipment, described electronic equipment comprises first processor, the second processor, is connected to South Bridge chip between described first processor and described second processor, described first processor runs an operating system, described operating system completes the function of hardware button by the driver calling hardware button, wherein, described hardware button control device is arranged in described second processor, comprising:
Acquiring unit, for obtaining the state change of described hardware button, the state change of described hardware button shows the function of the current execution of described hardware button;
Transmitting element, for the state situation of change of described hardware button is sent to described South Bridge chip, to make described South Bridge chip, described state situation of change is sent to described first processor, and the described operating system run by described first processor calls the driver of hardware button, has carried out the function of the current execution of described hardware button.
Preferably, first universal input output pin of described second processor is connected with described hardware button, second universal input output pin of described second processor is connected with the 3rd general input and output pin of described South Bridge chip, and the 4th general input and output pin of described South Bridge chip is connected with the five-way input and output pin of described first processor;
Described acquiring unit is specifically for the state situation of change that obtained described hardware button by described first universal input output pin;
The state situation of change of described hardware button, specifically for the 3rd general input and output pin that by described second universal input output pin, the state situation of change of described hardware button is sent to described South Bridge chip, is sent to the five-way input and output pin of described first processor by described transmitting element by the 4th general input and output pin of described South Bridge chip.
Preferably, described acquiring unit is further used for: obtain the level situation of change inputing to described first universal input output pin, described level situation of change is for representing the state situation of change of described hardware button.
Preferably, described device also comprises: record cell, for recording the pin annexation between described hardware button and described second processor, and the pin annexation between described second processor and described South Bridge chip.
Preferably, described pin annexation is recorded in the configuration file of described second processor.
The embodiment of the present invention also provides one to have polymorphic electronic equipment, described electronic equipment comprises first processor, the second processor, is connected to South Bridge chip between described first processor and described second processor, described first processor runs an operating system, described operating system completes the function of hardware button by the driver calling hardware button, and described second processor comprises above-mentioned hardware button control device;
The state situation of change of described hardware button for obtaining the state change of described hardware button, and is sent to described South Bridge chip by described hardware button control device, and the state change of described hardware button shows the function of the current execution of described hardware button;
Described South Bridge chip, for being sent to described first processor by described state situation of change;
Described first processor, for being called the driver of hardware button by described operating system, has carried out the function of the current execution of described hardware button.
Preferably, first universal input output pin of described second processor is connected with described hardware button, second universal input output pin of described second processor is connected with the 3rd general input and output pin of described South Bridge chip, and the 4th general input and output pin of described South Bridge chip is connected with the five-way input and output pin of described first processor;
Described hardware button control device is used for, obtained the state situation of change of described hardware button by described first universal input output pin, and the state situation of change of described hardware button is sent to the 3rd general input and output pin of described South Bridge chip by described second universal input output pin;
The state situation of change of described hardware button is sent to the five-way input and output pin of described first processor by the 4th general input and output pin of described South Bridge chip.
Compared with prior art, the present invention includes following advantage:
In the present invention, have polymorphic and comprise the electronic equipment of first processor and the second processor, when this electronic equipment runs non-x 86 operating system or x86 operating system, it can obtain the state situation of change of hardware button by the second processor, and the state situation of change of hardware button is sent to South Bridge chip, to make South Bridge chip, state situation of change is sent to first processor, and the driver that the operating system run by first processor calls hardware button completes the function of the current execution of hardware button, such electronic equipment is when operation system, just do not need to increase driver for message conversion outward in operating system, reduce extra program support.
Certainly, implement arbitrary product of the present invention might not need to reach above-described all advantages simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of a kind of electronic equipment that the embodiment of the present invention provides;
Fig. 2 is the process flow diagram of a kind of hardware button control method that the embodiment of the present invention provides;
Fig. 3 is the connection diagram of a kind of electronic equipment that the embodiment of the present invention provides;
Fig. 4 is the process flow diagram of the another kind of hardware button control method that the embodiment of the present invention provides;
Fig. 5 is the structural representation of a kind of hardware button control device that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the another kind of hardware button control device that the embodiment of the present invention provides.
Embodiment
In order to understand the present invention better, below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, it illustrates the process flow diagram of the hardware button control method that the embodiment of the present invention provides, its application has in polymorphic electronic equipment, as having common notebook form and ipad(panel computer) in the electronic equipment of form, the structural representation of electronic equipment 200 can be consulted shown in Fig. 2, can include but not limited to: first processor 201, second processor 202, be connected to the South Bridge chip 203 between described first processor 201 and described second processor 202, described first processor 201 runs an operating system, described operating system can complete the function of hardware button by the driver calling hardware button.Namely when operator operates some hardware button, the function that the driver complete operation that operating system can call this hardware button will perform.
As increased Volume Up(volume as operator) this hardware button is when carrying out pressing operation, and represent that operator wants current volume to tune up, operating system then can be called and increase volume this driver to increase volume.
In embodiments of the present invention, hardware button control method can be performed by the second processor in electronic equipment, can comprise the following steps:
101: the state situation of change obtaining hardware button, the state situation of change of hardware button shows the function of the current execution of hardware button.
Be understandable that: when operator wishes to control electronic equipment by hardware button, when making hardware button perform the function of self, operator operates hardware button, now the state of hardware button changes, and therefore the state situation of change of hardware button can show the function of the current execution of hardware button.
When such as: operator is reduced by Volume Down(volume) this hardware button controls electronic equipment reduction volume output, operator can directly press this hardware button.Operator often presses hardware button once, and the state of hardware button then can change, and electronic equipment then can perform the function that volume corresponding to hardware button reduces.
102: the state situation of change of hardware button is sent to South Bridge chip, to make South Bridge chip, state situation of change is sent to first processor, and the operating system run by first processor calls the driver of hardware button, has carried out the function of the current execution of hardware button.
In embodiments of the present invention, South Bridge chip is as the communication bridge between first processor and the second processor, after the state situation of change receiving the hardware button that the second processor sends, the state situation of change of hardware button is sent to first processor, such first processor then can analyze the state situation of change of hardware button, and what obtain that current state changes is the function which hardware button and this hardware button current perform.The operating system operated in afterwards on first processor then can call the driver with this hardware button function, is completed the function of the current execution of hardware button by other devices in driver drive electronics.
What the state situation of change of such as hardware button showed that current state changes is that VolumeDown(volume reduces), and need to reduce volume output, then operating system can call the audio process having the driver reducing volume output function and come in drive electronics, and the volume reducing audio process exports.
Pass through technique scheme, have polymorphic and comprise the electronic equipment of first processor and the second processor, when no matter it runs non-x 86 operating system or x86 operating system, electronic equipment can obtain the state situation of change of hardware button by the second processor, and the state situation of change of hardware button is sent to South Bridge chip, to make South Bridge chip, state situation of change is sent to first processor, and the driver that the operating system run by first processor calls hardware button completes the function of the current execution of hardware button, such electronic equipment is when operation system, just do not need to increase driver for message conversion outward in operating system, reduce extra program support.
Further, in embodiments of the present invention, the communication of pin connected mode can be adopted between first processor and South Bridge chip and between the second processor and South Bridge chip, as shown in Figure 3, one GPIO(General Purpose Input Output of the second processor 202, universal input exports) pin 1 is connected with hardware button, second GPIO pin 2 of the second processor 202 is connected with the 3rd GPIO pin 3 of South Bridge chip 203, and the 4th GPIO pin 4 of South Bridge chip 203 is connected with the 5th GPIO pin 5 of first processor 201.
Based on the electronic equipment of this kind of structure, second processor 202 can obtain the state situation of change of hardware button by the first GPIO pin 1, and the state situation of change of hardware button is sent to the 3rd GPIO pin 3 of South Bridge chip 203 by the second GPIO pin 2, then the state situation of change of hardware button is sent to the 5th GPIO pin 5 of described first processor 201 by the 4th GPIO pin 4 of South Bridge chip 203.
When electronic equipment comprises multiple hardware button, each hardware button can pass through pin connected mode and the second processor communication, and the state situation of change of each hardware button is sent to first processor by pin by South Bridge chip by the second processor.And the pin being responsible for the state situation of change transmitting different hardware button is different, such first processor is when receiving the state situation of change of hardware button, and operating system can be just determine hardware button by the state situation of change of which pin reception hardware button by judgement.
Different because of the function when design of electronic devices being different hardware button design again, so after determining hardware button, namely the operating system operated in first processor can know the function that will perform and the driver called.This hardware button adopts the communication of pin connected mode can to simplify the operation flow process, is convenient to identify.
Refer to Fig. 4, it illustrates the process flow diagram of a kind of hardware button control method based on electronic equipment shown in Fig. 3, can comprise the following steps:
401: the pin annexation between record hardware button and the second processor, and the pin annexation between the second processor and South Bridge chip.
Wherein, pin annexation between hardware button and the second processor shows hardware button with which pin in the second processor is connected, and the pin annexation between the second processor and South Bridge chip then shows the state situation of change which pin to be transmitted which hardware button between the second processor and South Bridge chip by.
Above-mentioned pin annexation can be recorded in the configuration file of the second processor, the pin annexation recorded further between South Bridge chip and first processor is also needed, to show the state situation of change which pin to be transmitted which hardware button between South Bridge chip and first processor by South Bridge chip and first processor.
In addition, above-mentioned pin annexation can also be recorded in a memory storage, and first processor, South Bridge chip and the second processor can also obtain pin annexation from this memory storage.But this storage mode is under the prerequisite of saving the storage space in electronic equipment, increase interaction times and offered load.And the aforementioned mode stored in first processor, South Bridge chip and the second processor is without the need to obtaining pin annexation with the storage communication of outside, but take part storage space to a certain extent, do not limit the storage mode of pin annexation in embodiments of the present invention.
402: the second processors obtain the level situation of change inputing to the first GPIO pin, and level situation of change is for representing the state situation of change of hardware button.
Operator is when operating hardware button, and the level in the first coupled GPIO pin changes, and level situation of change therefore can be adopted to represent the state situation of change of hardware button.
Level situation of change is sent to the 3rd GPIO pin of South Bridge chip by 403: the second processors by the second GPIO pin, by the 4th GPIO pin of South Bridge chip, level situation of change is sent to the 5th GPIO pin of first processor.
First processor is when receiving the state situation of change of hardware button, and operating system can be just determine hardware button by the state situation of change of which pin reception hardware button by judgement.And then namely operating system can know the function that will perform and the driver called, call driver completes the function of hardware button.
Corresponding with said method embodiment, the embodiment of the present invention also provides a kind of hardware button control device, being applied to one has in polymorphic electronic equipment, the structural representation of electronic equipment can be consulted shown in Fig. 2, first processor can be comprised, second processor, be connected to the South Bridge chip between first processor and the second processor, first processor runs an operating system, operating system completes the function of hardware button by the driver calling hardware button, wherein, hardware button control device 500 is arranged in the second processor, its structural representation refers to shown in Fig. 5, can comprise: acquiring unit 501 and transmitting element 502, wherein,
Acquiring unit 501, for obtaining the state change of hardware button, the state change of hardware button shows the function of the current execution of hardware button.
Be understandable that: when operator wishes to control electronic equipment by hardware button, when making hardware button perform the function of self, operator operates hardware button, now the state of hardware button changes, and therefore the state situation of change of hardware button can show the function of the current execution of hardware button.
Transmitting element 502, for the state situation of change of hardware button is sent to South Bridge chip, to make South Bridge chip that state situation of change is sent to first processor, and the operating system run by first processor calls the driver of hardware button, has carried out the function of the current execution of hardware button.
In embodiments of the present invention, South Bridge chip is as the communication bridge between first processor and the second processor, after the state situation of change receiving the hardware button that the second processor sends, the state situation of change of hardware button is sent to first processor, such first processor then can analyze the state situation of change of hardware button, and what obtain that current state changes is the function which hardware button and this hardware button current perform.The operating system operated in afterwards on first processor then can call the driver with this hardware button function, is completed the function of the current execution of hardware button by other devices in driver drive electronics.
Application technique scheme, have polymorphic and comprise the electronic equipment of first processor and the second processor, when no matter it runs non-x 86 operating system or x86 operating system, electronic equipment can obtain the state situation of change of hardware button by the hardware button control device in the second processor, and the state situation of change of hardware button is sent to South Bridge chip, to make South Bridge chip, state situation of change is sent to first processor, and the driver that the operating system run by first processor calls hardware button completes the function of the current execution of hardware button, such electronic equipment is when operation system, just do not need to increase driver for message conversion outward in operating system, reduce extra program support.
Further, in embodiments of the present invention, the communication of pin connected mode can be adopted between first processor and South Bridge chip and between the second processor and South Bridge chip, as shown in Figure 3, first GPIO pin 1 of the second processor 202 is connected with hardware button, second GPIO pin 2 of the second processor 202 is connected with the 3rd GPIO pin 3 of South Bridge chip 203, and the 4th GPIO pin 4 of South Bridge chip 203 is connected with the 5th GPIO pin 5 of first processor 201.
Under this configuration, acquiring unit 501 can obtain the state situation of change of hardware button by the first GPIO pin.
The state situation of change of hardware button can be sent to the 3rd GPIO pin of South Bridge chip by transmitting element 502 by the second GPIO pin, by the 4th GPIO pin of South Bridge chip, the state situation of change of hardware button is sent to the 5th GPIO pin of first processor.
And in some examples, acquiring unit 501 can obtain the level situation of change inputing to the first GPIO pin.Because operator is when operating hardware button, the level in the first coupled GPIO pin changes, and level situation of change therefore can be adopted to represent the state situation of change of hardware button.
Above-mentioned this pin connects communication mode can make first processor when receiving the state situation of change of hardware button, and operating system can be just determine hardware button by the state situation of change of which pin reception hardware button by judgement.Different because of the function when design of electronic devices being different hardware button design again, so after determining hardware button, namely the operating system operated in first processor can know the function that will perform and the driver called.This hardware button adopts the communication of pin connected mode can to simplify the operation flow process, is convenient to identify.And adopting level situation of change to represent the state situation of change of hardware button, without the need to additionally increasing other devices, simplifying product structure.
Further, the hardware button control device that the embodiment of the present invention provides can also comprise: record cell 503, as shown in Figure 6, for recording the pin annexation between hardware button and the second processor, and the pin annexation between the second processor and South Bridge chip.
Wherein, pin annexation between hardware button and the second processor shows hardware button with which pin in the second processor is connected, and the pin annexation between the second processor and South Bridge chip then shows the state situation of change which pin to be transmitted which hardware button between the second processor and South Bridge chip by.
Above-mentioned pin annexation can be recorded in the configuration file of the second processor, the pin annexation recorded further between South Bridge chip and first processor is also needed, to show the state situation of change which pin to be transmitted which hardware button between South Bridge chip and first processor by South Bridge chip and first processor.
In addition, above-mentioned pin annexation can also be recorded in a memory storage, and first processor, South Bridge chip and the second processor can also obtain pin annexation from this memory storage.But this storage mode is under the prerequisite of saving the storage space in electronic equipment, increase interaction times and offered load.And the aforementioned mode stored in first processor, South Bridge chip and the second processor is without the need to obtaining pin annexation with the storage communication of outside, but take part storage space to a certain extent, do not limit the storage mode of pin annexation in embodiments of the present invention.
In addition, the embodiment of the present invention also provides one to have polymorphic electronic equipment, its structural representation as shown in Figure 2, first processor, the second processor can be comprised, be connected to South Bridge chip between first processor and the second processor, first processor runs an operating system, operating system completes the function of hardware button by the driver calling hardware button, and the second processor comprises above-mentioned hardware button control device.
Wherein, the state situation of change of hardware button for obtaining the state change of hardware button, and is sent to South Bridge chip by hardware button control device, and the state change of hardware button shows the function of the current execution of hardware button.
South Bridge chip, for being sent to first processor by state situation of change.Called the driver of hardware button by first processor by operating system, carry out the function of the current execution of hardware button.
Further, first processor in electronic equipment, pin between South Bridge chip and the second processor, can also be adopted to connect, as shown in Figure 3, first GPIO pin of the second processor is connected with hardware button, second GPIO pin of the second processor is connected with the 3rd GPIO pin of South Bridge chip, and the 4th GPIO pin of South Bridge chip is connected with the 5th GPIO pin of first processor.
Hardware button control device is used for, and is obtained the state situation of change of hardware button, and by the second GPIO pin, the state situation of change of hardware button is sent to the 3rd GPIO pin of South Bridge chip by the first GPIO pin.
The state situation of change of hardware button is sent to the 5th GPIO pin of first processor by the 4th GPIO pin of South Bridge chip.
In some example of the present invention, the second processor can obtain input to the first GPIO pin level situation of change to represent the state situation of change of hardware button.This employing level situation of change represents the state situation of change of hardware button, without the need to additionally increasing other devices, simplifies product structure.And above-mentioned pin connected mode can make first processor when receiving the state situation of change of hardware button, operating system can be just determine hardware button by the state situation of change of which pin reception hardware button by judgement.Different because of the function when design of electronic devices being different hardware button design again, so after determining hardware button, namely the operating system operated in first processor can know the function that will perform and the driver called.This hardware button adopts the communication of pin connected mode can to simplify the operation flow process, is convenient to identify.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
For convenience of description, various unit is divided into describe respectively with function when describing above device.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing of the present invention.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Above a kind of hardware button control method provided by the present invention, device and electronic equipment are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (12)

1. a hardware button control method, being applied to one has in polymorphic electronic equipment, described electronic equipment comprises first processor, the second processor, is connected to South Bridge chip between described first processor and described second processor, described first processor runs an operating system, described operating system completes the function of hardware button by the driver calling hardware button, wherein, described hardware button control method comprises:
Described second processor obtains the state situation of change of described hardware button, and the state situation of change of described hardware button shows the function of the current execution of described hardware button;
The state situation of change of described hardware button is sent to described South Bridge chip, to make described South Bridge chip, described state situation of change is sent to described first processor, and the described operating system run by described first processor calls the driver of hardware button, has carried out the function of the current execution of described hardware button.
2. method according to claim 1, it is characterized in that, first universal input output pin of described second processor is connected with described hardware button, second universal input output pin of described second processor is connected with the 3rd general input and output pin of described South Bridge chip, and the 4th general input and output pin of described South Bridge chip is connected with the five-way input and output pin of described first processor;
Described second processor obtains the state situation of change of described hardware button, comprising: described second processor obtains the state situation of change of described hardware button by described first universal input output pin;
The state situation of change of described hardware button is sent to described South Bridge chip, comprise: the 3rd general input and output pin by described second universal input output pin, the state situation of change of described hardware button being sent to described South Bridge chip, by the 4th general input and output pin of described South Bridge chip, the state situation of change of described hardware button is sent to the five-way input and output pin of described first processor.
3. method according to claim 2, it is characterized in that, described second processor obtains the state situation of change of hardware button, comprise: described second processor obtains the level situation of change inputing to described first universal input output pin, and described level situation of change is for representing the state situation of change of described hardware button.
4. method according to claim 3, it is characterized in that, before described second processor obtains the state situation of change of hardware button, described method also comprises: record the pin annexation between described hardware button and described second processor, and the pin annexation between described second processor and described South Bridge chip.
5. method according to claim 4, is characterized in that, described pin annexation is recorded in the configuration file of described second processor;
Or described pin annexation is recorded in the storer of described second processor communication.
6. a hardware button control device, being applied to one has in polymorphic electronic equipment, described electronic equipment comprises first processor, the second processor, is connected to South Bridge chip between described first processor and described second processor, described first processor runs an operating system, described operating system completes the function of hardware button by the driver calling hardware button, wherein, described hardware button control device is arranged in described second processor, comprising:
Acquiring unit, for obtaining the state change of described hardware button, the state change of described hardware button shows the function of the current execution of described hardware button;
Transmitting element, for the state situation of change of described hardware button is sent to described South Bridge chip, to make described South Bridge chip, described state situation of change is sent to described first processor, and the described operating system run by described first processor calls the driver of hardware button, has carried out the function of the current execution of described hardware button.
7. device according to claim 6, it is characterized in that, first universal input output pin of described second processor is connected with described hardware button, second universal input output pin of described second processor is connected with the 3rd general input and output pin of described South Bridge chip, and the 4th general input and output pin of described South Bridge chip is connected with the five-way input and output pin of described first processor;
Described acquiring unit is specifically for the state situation of change that obtained described hardware button by described first universal input output pin;
The state situation of change of described hardware button, specifically for the 3rd general input and output pin that by described second universal input output pin, the state situation of change of described hardware button is sent to described South Bridge chip, is sent to the five-way input and output pin of described first processor by described transmitting element by the 4th general input and output pin of described South Bridge chip.
8. device according to claim 7, it is characterized in that, described acquiring unit is further used for: obtain the level situation of change inputing to described first universal input output pin, described level situation of change is for representing the state situation of change of described hardware button.
9. device according to claim 8, it is characterized in that, described device also comprises: record cell, for recording the pin annexation between described hardware button and described second processor, and the pin annexation between described second processor and described South Bridge chip.
10. device according to claim 9, is characterized in that, described pin annexation is recorded in the configuration file of described second processor.
11. 1 kinds have polymorphic electronic equipment, it is characterized in that, described electronic equipment comprises first processor, the second processor, is connected to South Bridge chip between described first processor and described second processor, described first processor runs an operating system, described operating system completes the function of hardware button by the driver calling hardware button, and described second processor comprises the hardware button control device as described in claim 6 to 10 any one;
The state situation of change of described hardware button for obtaining the state change of described hardware button, and is sent to described South Bridge chip by described hardware button control device, and the state change of described hardware button shows the function of the current execution of described hardware button;
Described South Bridge chip, for being sent to described first processor by described state situation of change;
Described first processor, for being called the driver of hardware button by described operating system, has carried out the function of the current execution of described hardware button.
12. electronic equipments according to claim 11, it is characterized in that, first universal input output pin of described second processor is connected with described hardware button, second universal input output pin of described second processor is connected with the 3rd general input and output pin of described South Bridge chip, and the 4th general input and output pin of described South Bridge chip is connected with the five-way input and output pin of described first processor;
Described hardware button control device is used for, obtained the state situation of change of described hardware button by described first universal input output pin, and the state situation of change of described hardware button is sent to the 3rd general input and output pin of described South Bridge chip by described second universal input output pin;
The state situation of change of described hardware button is sent to the five-way input and output pin of described first processor by the 4th general input and output pin of described South Bridge chip.
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 true CN104866114A (en) 2015-08-26
CN104866114B 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)

Cited By (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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050044284A1 (en) * 2003-08-18 2005-02-24 Pescatore John C. Multi-host virtual bridge input-output switch
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050044284A1 (en) * 2003-08-18 2005-02-24 Pescatore John C. Multi-host virtual bridge input-output switch
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

Cited By (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

Also Published As

Publication number Publication date
CN104866114B (en) 2017-12-29

Similar Documents

Publication Publication Date Title
CN105653486A (en) Mobile terminal and method for reusing USB ports of processors thereof
US20100211921A1 (en) Development verification apparatus for universal chip
CN113872807A (en) Intelligent role selection for dual role devices
US8966443B2 (en) Method of bypassing an AUTOSAR software component of an AUTOSAR software system
CN106095489A (en) A kind of application controls method and mobile terminal
CN109240964B (en) Diagnostic equipment communication method, diagnostic terminal and diagnostic box
CN114726906B (en) Device interaction method, device, electronic device and storage medium
KR20050004209A (en) Connecting system-level functionality of domestic OS of mobile phone to any application OS
CN104866114A (en) Hardware button control method and device and electronic equipment
CN106604204B (en) Method and system for remotely controlling terminal application through Bluetooth
CN103605457B (en) The conversion method of a kind of widget and icon and intelligent terminal
CN203754167U (en) Handheld terminal for elevator debugging and maintenance
CN115134427B (en) Communication protocol coordination method, device, computer equipment and storage medium
CN106302707A (en) A kind of method and system creating shortcut
CN110515489A (en) Intelligent interaction device and its control method
CN100416531C (en) Multifunctional generalserial bus wireless bridge device and system device
CN113535020B (en) Method, apparatus, device, medium and product for generating application icons
CN101588646B (en) Mobile communication device with replaceable functional module
CN105204876A (en) System starting method and electronic equipment
CN103853572A (en) Starting-up method and electronic equipment
US20170142245A1 (en) Electronic apparatus with shareable input devices and input device sharing method thereof
CN106951128B (en) Method for adjusting driving signal, computer-readable storage medium and mobile terminal
CN110351692B (en) Data transmission method and device, storage medium and vehicle-mounted terminal
CN111078616A (en) Port control method, device, equipment and storage medium of USB hub
CN103631750A (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