CN103677881A - Method for controlling electronic device, and electronic device - Google Patents
Method for controlling electronic device, and electronic device Download PDFInfo
- Publication number
- CN103677881A CN103677881A CN201210345877.5A CN201210345877A CN103677881A CN 103677881 A CN103677881 A CN 103677881A CN 201210345877 A CN201210345877 A CN 201210345877A CN 103677881 A CN103677881 A CN 103677881A
- Authority
- CN
- China
- Prior art keywords
- operating system
- parameter
- electronic equipment
- state
- boot
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a method for controlling an electronic device, and the electronic device. The method comprises the following steps of: acquiring a state parameter used for determining whether an operation system needing to be loaded by the electronic device is a first operation system or a second operation system; setting the guide parameter of the electronic device to a first guide parameter on the basis that the state parameter determines the operation system needing to be loaded by the electronic device to be the first operation system, so that the electronic device can load the first operation system based on the first guide parameter; setting the guide parameter of the electronic device to a second guide parameter on the basis that the state parameter determines the operation system needing to be loaded by the electronic device to be the second operation system, so that the electronic device can load the second operation system based on the second guide parameter.
Description
Technical field
The application relates to computer realm, relates in particular to a kind of method and electronic equipment of controlling electronic equipment.
Background technology
Along with scientific and technical development, electronic technology has also obtained development at full speed, and the kind of electronic product is also more and more, and people have also enjoyed the various facilities that development in science and technology brings.People can pass through various types of electronic equipments now, enjoy the comfortable life bringing along with development in science and technology.Such as, computing machine has become an indispensable part in people's life, people can use computing machine to browse news, receiving and dispatching mail, watch film, music appreciating, play games etc.
Development along with electronic technology, the operating system of computing machine is also constantly updated, a plurality of operating system is usually installed on computing machine, the safety for computing machine on the one hand, can after an operating system collapse, by other operating system, continue operation computing machine, on the other hand in order to experience the function of new operating system, newer operating system has more outstanding performance relatively, and older operating system has more stable performance, such as WINDOWS8 64 bit manipulation systems are compared with WIIDOWSXP 32-bit operating system, have faster starting up speed with the more memory management of efficiency, but on some software supports, be not so good as WINDOWSXP 32-bit operating system, so user is computed time, usually need between a plurality of operating system, switch, but the BIOS(Basic Input Output System that each operating system needs, Basic Input or Output System (BIOS)) arrange different, such as WINDOWS8 64 bit manipulation systems and non-WINDOWS8 64 bit manipulation systems have been installed on computing machine, if need to start WINDOWS8 64 bit manipulation systems, need to a series of options be changed to the setting of supporting WINDOWS8 64 bit manipulation systems in the BIOS of personal computer, such as by Secure boot(clean boot) option changes to enabled, by CSM(Code Security Module, code security module) option changes to disabled, by Boot priority(start priority) option changes to UEFI(Unified Extensible FirmwareInterface, unified Extensible Firmware Interface) first etc., if need to start non-WINDOWS8 64 bit manipulation systems, need these options to be set to other value, normally to start this operating system.
But in the process of inventor's invention technical scheme in realizing the embodiment of the present invention, find that above-mentioned technology at least exists following technical matters:
Due to can only be when the change directive that user inputs being detected, just can change the relevant option of boot parameter, so existing can not be based on operating system, automatically adjust the technical matters of boot parameter, such as, what in the BIOS chip of computing machine, store is the setting under non-WINDOWS8 64 bit manipulation systems, if need to switch to WINDOWS8 64 bit manipulation systems, needing to enter BIOS arranges the page option of being correlated with and changes to support, COMPUTER DETECTION is after the change directive of user's input, relevant option in BIOS could be changed to the setting of supporting WINDOWS8 64 bit manipulation systems, then could normally start WINDOWS8 64 bit manipulation systems, what in BIOS chip, store for another example is the setting under WINDOWS8 64 bit manipulation systems, if need to switch to non-WINDOWS8 64 bit manipulation systems, needing to enter BIOS arranges the page option of being correlated with and changes to the non-WINDOWS8 64 bit manipulation systems of supporting, COMPUTER DETECTION is after the change directive of user's input, relevant option in BIOS could be changed to the setting of supporting non-WINDOWS8 64 bit manipulation systems, then could normally start this operating system, adjustment process is extremely loaded down with trivial details, and easily make a mistake.
Summary of the invention
The embodiment of the present invention, by a kind of method and electronic equipment of controlling electronic equipment is provided, solved in prior art and can not, based on operating system, automatically adjust the technical matters of the technical matters of boot parameter.
The present embodiment provides a kind of method of controlling electronic equipment, be applied on an electronic equipment, described electronic equipment at least comprises the first operating system and the second operating system, described the first operating system is loaded into described electronic equipment by the first boot parameter, described the second operating system is loaded into described electronic equipment by the second boot parameter, wherein, described the first boot parameter is not identical with described the second boot parameter, described method comprises: obtain a state parameter, described state parameter is for determining that the operating system that described electronic equipment need to load is described the first operating system or described the second operating system, when determining that based on described state parameter operating system that described electronic equipment need to load is described the first operating system, the boot parameter of described electronic equipment is set to described the first boot parameter, so that described electronic equipment can load described the first operating system based on described the first boot parameter, when determining that based on described state parameter operating system that described electronic equipment need to load is described the second operating system, the boot parameter of described electronic equipment is set to described the second boot parameter, so that described electronic equipment can load described the second operating system based on described the second boot parameter.
Alternatively, described acquisition one state parameter, specifically comprises: read the state of a default register, obtain a reading result; When described reading result shows described default register in the first state, obtain the first state parameter; When described reading result shows described default register in the second state, obtain the second state parameter.
Alternatively, described state parameter is for determining that the operating system that described electronic equipment need to load is described the first operating system or described the second operating system, specifically comprise: when described state parameter is described the first state parameter, determine that the operating system that described electronic equipment need to load is described the first operating system; When described state parameter is described the second state parameter, determine that the operating system that described electronic equipment need to load is described the second operating system.
Alternatively, at the described state that reads a default register, before obtaining a reading result, described method also comprises: by the switch being connected with described default register, the state of described default register is set.
Alternatively, described by the switch being connected with described default register, the state of described default register is set, specifically comprise: at described switch during in the first connection status, described in control inputs, the level of default register is the first level, so that described default register is in described the first state; At described switch during in the second connection status, the level of default register is second electrical level described in control inputs, so that described default register is in described the second state.
Alternatively, described method also comprises: by the button being connected with described switch, adjust the connection status of described switch, described button is positioned on the casing of described electronic equipment and is exposed to the outside surface of described casing.
Alternatively, before described acquisition one state parameter, described method also comprises: obtain a precedence information; When described precedence information shows that described state parameter is the first priority, obtain described state parameter.
Alternatively, the boot parameter of described electronic equipment is set to described the first boot parameter, is specially: change at least one option of described boot parameter, to obtain described the first boot parameter.
The present embodiment also provides a kind of electronic equipment, described electronic equipment at least comprises the first operating system and the second operating system, described the first operating system is loaded into described electronic equipment by the first boot parameter, described the second operating system is loaded into described electronic equipment by the second boot parameter, wherein, described the first boot parameter is not identical with described the second boot parameter, and described electronic equipment comprises: casing, one circuit board, is arranged in described casing, one control chip, be arranged on described circuit board, be used for obtaining a state parameter, described state parameter is for determining that the operating system that described electronic equipment need to load is described the first operating system or described the second operating system, and when determining that based on described state parameter operating system that described electronic equipment need to load is described the first operating system, the boot parameter of described electronic equipment is set to described the first boot parameter, so that described electronic equipment can load described the first operating system based on described the first boot parameter, when determining that based on described state parameter operating system that described electronic equipment need to load is described the second operating system, the boot parameter of described electronic equipment is set to described the second boot parameter, so that described electronic equipment can load described the second operating system based on described the second boot parameter.
Alternatively, described control chip is specifically for reading the state of a default register, obtain a reading result, and when described reading result shows described default register in the first state, obtain the first state parameter, when described reading result shows described default register in the second state, obtain the second state parameter.
Alternatively, described control chip is specifically for when described state parameter is described the first state parameter, determine that the operating system that described electronic equipment need to load is described the first operating system, when described state parameter is described the second state parameter, determine that the operating system that described electronic equipment need to load is described the second operating system.
Alternatively, described electronic equipment also comprises a switch being connected with described default register, and described switch is positioned on described circuit board, for the state of described default register is set.
Alternatively, at described switch during in the first connection status, the level of inputting the first pin of described default register is the first level, described default register is in described the first state, at described switch during in the second connection status, the level of inputting the first pin of described default register is second electrical level, and described default register is in described the second state.
Alternatively, described electronic equipment also comprises a button being connected with described switch, is positioned on described casing and is exposed to the outside surface of described casing, for adjusting the connection status of described switch.
Alternatively, described control chip, specifically for before described acquisition one state parameter, obtains a precedence information, and when described precedence information shows that described state parameter is the first priority, obtains described state parameter.
Alternatively, described control chip is specifically for changing at least one option of described boot parameter, to obtain described the first boot parameter.
The one or more technical schemes that provide in the embodiment of the present invention, at least have following technique effect or advantage:
1, owing to having adopted the technological means of carrying out the boot parameter of Lookup protocol electronic equipment according to state parameter, make electronic equipment to be set to different boot parameters according to different state parameter boot parameters, further make electronic equipment to load different operating system by the boot parameter based on different, so, efficiently solve in prior art and can not, based on operating system, automatically adjust the technical matters of the technical matters of boot parameter.
2, owing to having adopted the technological means of the state of the default register of connection status control that is positioned at the switch on Electron Equipment Circuit Board, so, by the connection status of gauge tap, just can control easily the state of default register, then can the boot parameter of Lookup protocol electronic equipment and the state consistency of default register, thereby make electronic equipment can load corresponding operating system, so efficiently solve, can not, based on operating system, automatically adjust the technical matters of boot parameter.
3, owing to having adopted the button that is positioned on electronic device shell and is exposed to casing outer surface to carry out the technological means of the connection status of gauge tap, make user by the button connection status of gauge tap easily just, to control the state of default register, thereby the boot parameter of Lookup protocol electronic equipment is consistent with the state parameter of default register, make electronic equipment can load corresponding operating system, so, user does not open the casing of electronic equipment, just can change the state of button to change the state of default register, thereby the boot parameter that then changes electronic equipment reaches the object of the boot parameter of a key change electronic equipment, thereby can conveniently switch the operating system of electronic equipment.
4, owing to being provided with priority for state parameter, when state parameter is the first priority, electronic equipment arranges boot parameter according to state parameter, switching operating system easily, when state parameter is not the first priority, according in advance arrange load operation system, even if now change state parameter can not changed boot parameter yet, while having avoided electronic equipment load operation system, get muddled.
Accompanying drawing explanation
The functional block diagram of the electronic equipment that Fig. 1 provides for one embodiment of the invention;
The method flow diagram of the control electronic equipment that Fig. 2 provides for one embodiment of the invention;
The schematic diagram that the default register that Fig. 3 provides for one embodiment of the invention is connected with control chip;
The schematic diagram that the default register that Fig. 4 provides for one embodiment of the invention is connected with switch;
The schematic diagram that the button that Fig. 5 provides for one embodiment of the invention is connected with switch.
Embodiment
The embodiment of the present invention, by a kind of method and electronic equipment of controlling electronic equipment is provided, all needs to enter the technical matters of adjusting relevant option in BIOS at every turn while having solved switching operating system in prior art.
Technical scheme in the embodiment of the present invention is all to need to enter the technical matters of adjusting relevant option in BIOS while solving above-mentioned switching operating system at every turn, and general thought is as follows:
Obtain a state parameter, this state parameter is for determining that the operating system that electronic equipment need to load is the first operating system or the second operating system.
When determining that based on this state parameter operating system that electronic equipment need to load is the first operating system, relevant option in the boot parameter of electronic equipment is changed to the setting of supporting the first operating system, thereby obtain the first boot parameter, like this, can be so that electronic equipment can load the first operating system based on the first boot parameter.
When determining that based on this state parameter operating system that electronic equipment need to load is the second operating system, relevant option in the boot parameter of electronic equipment is changed to the setting of supporting the second operating system, thereby obtain the second boot parameter, like this, can be so that electronic equipment can load the second operating system based on the second boot parameter.
In order better to understand technique scheme, below in conjunction with Figure of description and concrete embodiment, technique scheme is described in detail.
The present embodiment provides a kind of electronic equipment, please refer to Fig. 1, and Fig. 1 is the functional block diagram of the electronic equipment that provides of the present embodiment, and this electronic equipment comprises: casing 101; Circuit board 102, is arranged in casing 101; Control chip 103, is arranged on circuit board 102.
The present embodiment also provides a kind of method of controlling electronic equipment, can be applied on above-mentioned electronic equipment, this electronic equipment at least comprises the first operating system and the second operating system, the first operating system is 64 bit manipulation systems, the second operating system is 32-bit operating system, the first operating system is loaded into electronic equipment by the first boot parameter, the second operating system is loaded into electronic equipment by the second boot parameter, wherein, the first boot parameter is not identical with the second boot parameter, please refer to Fig. 2, Fig. 2 is the method flow diagram of the control electronic equipment that provides of the embodiment of the present invention, the method comprises:
S1: obtain a state parameter, state parameter is for determining that the operating system that electronic equipment need to load is the first operating system or the second operating system;
S2: when determining that based on state parameter operating system that electronic equipment need to load is the first operating system, the boot parameter of electronic equipment is set to the first boot parameter, so that electronic equipment can load the first operating system based on the first boot parameter;
S3: when determining that based on state parameter operating system that electronic equipment need to load is the second operating system, the boot parameter of electronic equipment is set to the second boot parameter, so that electronic equipment can load the second operating system based on the second boot parameter.
In ensuing part, will take electronic equipment as desktop computer, boot parameter is that BIOS is example, carries out at length describing for example, certain, in actual applications, electronic equipment can be also other electronic equipments, such as notebook computer.
In step S1, obtain a state parameter, state parameter, for determining that the operating system that electronic equipment need to load is the first operating system or the second operating system, specifically, can comprise: read the state of a default register, obtain a reading result; When reading result shows default register in the first state, obtain the first state parameter, when reading result shows default register in the second state, obtain the second state parameter.
In the present embodiment, please refer to Fig. 3, Fig. 3 is the schematic diagram that default register is connected with control chip, read the state of a default register, obtain a reading result, can be specifically that the control chip 103 of desktop computer reads the state of default register 104, thereby obtain a reading result.In concrete application, control chip can be the BIOS chip in desktop computer, can be also the special control chip arranging, and the state of default register 104 can be divided into the first state and the second state, such as being low level state or high level state.In actual applications, default register 104 can be arranged on circuit board 102, also can be arranged on other positions of desktop computer, as long as can be for control chip 104 reading state parameters.
After obtaining reading result by above-mentioned steps, the control chip 103 of desktop computer can determine that needing the operating system loading is the first operating system or the second operating system according to reading result.In concrete application, can be to show that at reading result default register 104 is in the first state, the control chip 103 of desktop computer obtains the first state parameter, at reading result, show that default register 104 is in the second state, the control chip 103 of desktop computer obtains the second state parameter.
In abovementioned steps, the control chip 103 of desktop computer has obtained the first state parameter or the second state parameter, in ensuing part, by introducing, according to state parameter, determine that the operating system that desktop computer need to load is the process of the first operating system or the second operating system.
State parameter is for determining that the operating system that electronic equipment need to load is the first operating system or the second operating system, specifically can comprise: when state parameter is the first state parameter, determine that the operating system that electronic equipment need to load is the first operating system; When state parameter is the second state parameter, determine that the operating system that electronic equipment need to load is the second operating system.
In the present embodiment, the control chip 103 of desktop computer has read the state of default register 104, and the first state parameter or the second state parameter have been obtained according to the state of default register 104, when state parameter is the first state parameter, the control chip 103 of desktop computer can determine that the operating system that desktop computer need to load is the first operating system, when state parameter is the second state parameter, the control chip 103 of desktop computer can determine that the operating system that desktop computer need to load is the second operating system.
In actual applications, default register 104 in the present embodiment can also replace with other devices, such as replacing with a circuit, can judge according to the output voltage of this circuit or output current the state of this circuit, those skilled in the art can, according to actual conditions, adopt suitable mode with practical requirement.
In step S2, when the operating system that definite electronic equipment need to load in abovementioned steps S1 is the first operating system, boot parameter that can electronic equipment is set to the first boot parameter, so that electronic equipment can load the first operating system based on the first boot parameter.Specifically, the boot parameter of electronic equipment is set to the first boot parameter, can be specifically, and at least one option of the boot parameter of change electronic equipment, to obtain the first boot parameter.
In the present embodiment, can be that the state parameter that obtains in step S1 is while showing that operating system that desktop computer need to load is the first operating system, the control chip 103 of desktop computer can be set to the first boot parameter by boot parameter, so that desktop computer can load the first operating system according to the first boot parameter after arranging.In concrete application, while being WINDOWS8 64 bit manipulation system such as the first operating system, the Secure boot option in BIOS can be changed to enabled, CSM option is changed to disabled, Boot priority option is changed to UEFI first etc., to obtain the first boot parameter, make desktop computer to load WINDOWS8 64 bit manipulation systems according to the first boot parameter.
In the present embodiment, the control chip 103 of desktop computer is changing to boot parameter after the first boot parameter, the first operating system that also the first boot parameter is corresponding is set to first of boot sequence, makes desktop computer to load the first operating system according to the first boot parameter.
In step S3, when the operating system that definite electronic equipment need to load in abovementioned steps S1 is the second operating system, boot parameter that can electronic equipment is set to the second boot parameter, so that electronic equipment can load the second operating system based on the second boot parameter.Specifically, the boot parameter of electronic equipment is set to the second boot parameter, can be specifically, and at least one option of the boot parameter of change electronic equipment, to obtain the second boot parameter.
In the present embodiment, can be that the state parameter that obtains in step S1 is while showing that operating system that desktop computer need to load is the second operating system, the control chip 103 of desktop computer can be set to the second boot parameter by boot parameter, so that desktop computer can load the second operating system according to the second boot parameter after arranging.In concrete application, while being non-WINDOWS8 64 bit manipulation system such as the second operating system, it can be for example WINDOWSXP 32-bit operating system, the Secure boot option in BIOS, CSM option, Boot priority option etc. can be changed to the pattern of supporting WINDOWSXP 32-bit operating system, to obtain the second boot parameter, make desktop computer to load WINDOWSXP 32-bit operating system according to the second boot parameter.
In the present embodiment, the control chip 103 of desktop computer is changing to boot parameter after the second boot parameter, the second operating system that also the second boot parameter is corresponding is set to first of boot sequence, makes desktop computer to load the second operating system according to the second boot parameter.
In order to control easily the state of default register, thereby can control the operating system that electronic equipment need to load, the method that the present embodiment provides also comprises: by the switch being connected with default register, the state of default register is set.
In the present embodiment, by the switch 105 being connected with default register 104, the state of default register 104 is set, specifically can comprise: at switch 105 during in the first connection status, the level of the default register 104 of control inputs is the first level, so that default register 104 is in the first state; At switch 105, during in the second connection status, the level of the default register 104 of control inputs is second electrical level, so that default register 104 is in the second state.
In actual applications, desktop computer can comprise a switch 105 being connected with default register 104, this switch 105 can be for arranging the state of default register 104, this switch 105 can be a wire jumper, also can be the circuit that can reach said function, please refer to Fig. 4, Fig. 4 is the schematic diagram that switch 105 that the present embodiment provides is connected with default register 104, default register 104 can use the powered battery on mainboard, or use the special battery arranging, even if change like this connection status of switch 105 when desktop computer does not access power supply, the state of default register 104 also can change, can be because of the reason of default register 104 power supplies, the connection status that has caused changing switch 105 does not but have the situation of the state of the default register 104 of change to occur.
As shown in Figure 4, switch 105 be take wire jumper and is described as example herein, at wire jumper during in the first connection status, such as being a kind of state in vacant state or short circuit state, can control the level that power supply is input to default register 104 is the first level, such as being high level, thereby can be so that the state of default register 104 be the first state, at wire jumper in the second connection status time, such as being a kind of state different from aforementioned wire jumper state, that is to say, when if the first connection status of wire jumper is vacant state, the second connection status of wire jumper can be short circuit state, when if the first connection status of wire jumper is short circuit state, the second connection status of wire jumper can be vacant state, can control the level that power supply is input to default register 104 is second electrical level, such as being low level, thereby can be so that the state of default register 104 be the second state.
In concrete application, because the connection status of wire jumper is different, so it is also different to be input to the height of the level of presetting register, those skilled in the art only need to arrange the corresponding relation between the connection status of wire jumper and the state of default register according to actual conditions, and the connection status that can reach change wire jumper just can be changed the object of the state of default register.
For the connection status of gauge tap easily, the method that the present embodiment provides also comprises: by the button being connected with switch, adjust the connection status of switch, button is positioned on the casing of electronic equipment and is exposed to the outside surface of casing.
In the present embodiment, desktop computer can also comprise a button 106 being connected with switch 105, please refer to Fig. 4, Fig. 4 is the schematic diagram that button 106 that the embodiment of the present invention provides is connected with switch 105, this button 106 can be positioned on the casing 101 of desktop computer, and being exposed to the outside surface of casing 101, this button 106 can be for adjusting the connection status of switch.
In concrete application, button 106 can be one can left and right or the button stirred up and down, by responding the left and right of button or moving up and down, thereby adjust the connection status of switch, button 106 can also be a button that can receive pressing operation, the pressing operation receiving by response, adjusts the connection status of switch then.
In actual applications, those skilled in the art can also change with software the state of default register 104, such as in using the process of desktop computer, current is the first operating system, restart to switch to before the second operating system closing the first operating system, can provide an option to select for user, if user selects to switch to the second operating system, desktop computer receives after user's selection result, will generate a steering order, the state of controlling default register 104 changes to the second state, after desktop computer restarts, the state parameter obtaining is exactly the second state parameter, thereby obtain the second boot parameter, the second operating system will be loaded in desktop computer by the second boot parameter.
In order to control better electronic equipment, while making electronic equipment load operation system, there will not be disorder, at the state that reads a default register, before obtaining a reading result, the method can also comprise: obtain a precedence information; When precedence information shows that state parameter is the first priority, obtain state parameter.
Specifically, because the electronic equipments such as desktop computer can read the setting of BIOS option in actual use from BIOS chip, and according to BIOS the operating system that guides electronic equipment to load is specifically set, and the method that the present embodiment provides is because needs read the state of presetting register, and according to the state change boot parameter of default register, such as when the state at default register is the first state, boot parameter can be changed to the first boot parameter, namely the option in boot parameter is set to support the first operating system, or when the state of default register is the second state, boot parameter can be changed to the second boot parameter, namely the option in boot parameter is set to support the second operating system, thereby make electronic equipment can load the operating system corresponding with the state of register.
Therefore, obtain a state parameter in step S1 before, the method that the present embodiment provides also comprises: obtain a precedence information, when precedence information shows that state parameter is the first priority, obtain state parameter.In the present embodiment, can set in advance the priority level of state parameter, and be stored in a region, desktop computer is before obtaining state parameter, obtain precedence information, and parses priority information, thereby can obtain state parameter in precedence information priority level, when precedence information shows that the priority level of state parameter is the first priority, obtain state parameter, thereby can change according to state parameter the boot parameter of desktop computer, thereby can load the operating system needing by boot parameter.
When precedence information shows that the priority level of state parameter is not the first priority, can be first priority that is set to of storing in the BIOS chip with desktop computer, the boot parameter of desktop computer can be the boot parameter of storing in BIOS chip, by boot parameter, can load the operating system corresponding with boot parameter, that is to say, no matter there is any variation in state parameter now, can not have influence on desktop computer load operation system yet, so user can be when need to switching the operating system of desktop computer, the priority of state parameter is adjusted into the first priority, thereby switching operating system easily, when not needing to switch the operating system of desktop computer, can according in advance arrange load operation system, even if now change state parameter can not changed boot parameter yet, while having avoided electronic equipment load operation system, get muddled.
In ensuing part, by the electronic equipment of introducing in detail the present embodiment and providing, this electronic equipment at least comprises the first operating system and the second operating system, the first operating system is loaded into electronic equipment by the first boot parameter, and the second operating system is loaded into electronic equipment by the second boot parameter, wherein, the first boot parameter is not identical with the second boot parameter, please refer to Fig. 1, Fig. 1 is the functional block diagram of the electronic equipment that provides of the present embodiment, and this electronic equipment comprises: casing 101, one circuit board 102, is arranged in casing 101, one control chip 103, be arranged on circuit board 102, be used for obtaining a state parameter, state parameter is for determining that the operating system that electronic equipment need to load is the first operating system or the second operating system, and when determining that based on state parameter operating system that electronic equipment need to load is the first operating system, the boot parameter of electronic equipment is set to the first boot parameter, so that electronic equipment can load the first operating system based on the first boot parameter, when determining that based on state parameter operating system that electronic equipment need to load is the second operating system, the boot parameter of electronic equipment is set to the second boot parameter, so that electronic equipment can load the second operating system based on the second boot parameter.
Further, as shown in Figure 4, the electronic equipment that the present embodiment provides also comprises a default register 104, control chip 103 is specifically for reading the state of a default register 104, obtain a reading result, and when reading result shows default register 104 in the first state, obtain the first state parameter, when reading result shows default register 104 in the second state, obtain the second state parameter.
Further, control chip 103 is specifically for when state parameter is the first state parameter, determine that the operating system that electronic equipment need to load is the first operating system, when state parameter is the second state parameter, determine that the operating system that electronic equipment need to load is the second operating system.
Further, as shown in Figure 4, electronic equipment also comprises a switch 105 being connected with default register 104, and switch 105 is positioned on circuit board 102, for the state of default register 104 is set.
Further, at switch 105 during in the first connection status, the level of the first pin of the default register 104 of input is the first level, default register 104 is in the first state, at switch 105 during in the second connection status, the level of the first pin of the default register 104 of input is second electrical level, and default register 104 is in the second state.
Further, as shown in Figure 5, electronic equipment also comprises a button 106 being connected with switch 105, is positioned on casing 101 and is exposed to the outside surface of casing 101, for adjusting the connection status of switch 105.
Further, control chip 103, specifically for before obtaining a state parameter, obtains a precedence information, and when precedence information shows that state parameter is the first priority, obtains state parameter.
Further, control chip 103 is specifically at least one option of change boot parameter, to obtain the first boot parameter.
Technical scheme in the invention described above embodiment, at least has following technique effect or advantage:
1, owing to having adopted the technological means of carrying out the boot parameter of Lookup protocol electronic equipment according to state parameter, make electronic equipment to be set to different boot parameters according to different state parameter boot parameters, further make electronic equipment to load different operating system by the boot parameter based on different, so, efficiently solve in prior art and can not, based on operating system, automatically adjust the technical matters of the technical matters of boot parameter.
2, owing to having adopted the technological means of the state of the default register of connection status control that is positioned at the switch on Electron Equipment Circuit Board, so, by the connection status of gauge tap, just can control easily the state of default register, then can the boot parameter of Lookup protocol electronic equipment and the state consistency of default register, thereby make electronic equipment can load corresponding operating system, so efficiently solve, can not, based on operating system, automatically adjust the technical matters of boot parameter.
3, owing to having adopted the button that is positioned on electronic device shell and is exposed to casing outer surface to carry out the technological means of the connection status of gauge tap, make user by the button connection status of gauge tap easily just, to control the state of default register, thereby the boot parameter of Lookup protocol electronic equipment is consistent with the state parameter of default register, make electronic equipment can load corresponding operating system, so, user does not open the casing of electronic equipment, just can change the state of button to change the state of default register, thereby the boot parameter that then changes electronic equipment reaches the object of the boot parameter of a key change electronic equipment, thereby can conveniently switch the operating system of electronic equipment.
4, owing to being provided with priority for state parameter, when state parameter is the first priority, electronic equipment arranges boot parameter according to state parameter, switching operating system easily, when state parameter is not the first priority, according in advance arrange load operation system, even if now change state parameter can not changed boot parameter yet, while having avoided electronic equipment load operation system, get muddled.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to process flow diagram and/or the block scheme of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block scheme each flow process and/or the flow process in square frame and process flow diagram and/or block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computing machine or other programmable data processing device is produced for realizing the device in the function of flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computing machine or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame on computing machine or other programmable devices.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.
Claims (16)
1. a method of controlling electronic equipment, be applied on an electronic equipment, it is characterized in that, described electronic equipment at least comprises the first operating system and the second operating system, described the first operating system is loaded into described electronic equipment by the first boot parameter, and described the second operating system is loaded into described electronic equipment by the second boot parameter, wherein, described the first boot parameter is not identical with described the second boot parameter, and described method comprises:
Obtain a state parameter, described state parameter is for determining that the operating system that described electronic equipment need to load is described the first operating system or described the second operating system;
When determining that based on described state parameter operating system that described electronic equipment need to load is described the first operating system, the boot parameter of described electronic equipment is set to described the first boot parameter, so that described electronic equipment can load described the first operating system based on described the first boot parameter;
When determining that based on described state parameter operating system that described electronic equipment need to load is described the second operating system, the boot parameter of described electronic equipment is set to described the second boot parameter, so that described electronic equipment can load described the second operating system based on described the second boot parameter.
2. the method for claim 1, is characterized in that, described acquisition one state parameter, specifically comprises:
Read the state of a default register, obtain a reading result;
When described reading result shows described default register in the first state, obtain the first state parameter;
When described reading result shows described default register in the second state, obtain the second state parameter.
3. method as claimed in claim 2, is characterized in that, described state parameter, for determining that the operating system that described electronic equipment need to load is described the first operating system or described the second operating system, specifically comprises:
When described state parameter is described the first state parameter, determine that the operating system that described electronic equipment need to load is described the first operating system;
When described state parameter is described the second state parameter, determine that the operating system that described electronic equipment need to load is described the second operating system.
4. method as claimed in claim 2, is characterized in that, at the described state that reads a default register, before obtaining a reading result, described method also comprises:
By the switch being connected with described default register, the state of described default register is set.
5. method as claimed in claim 4, is characterized in that, described by the switch being connected with described default register, and the state of described default register is set, and specifically comprises:
At described switch during in the first connection status, the level of default register is the first level described in control inputs, so that described default register is in described the first state;
At described switch during in the second connection status, the level of default register is second electrical level described in control inputs, so that described default register is in described the second state.
6. method as claimed in claim 4, is characterized in that, described method also comprises:
By the button being connected with described switch, adjust the connection status of described switch, described button is positioned on the casing of described electronic equipment and is exposed to the outside surface of described casing.
7. the method for claim 1, is characterized in that, before described acquisition one state parameter, described method also comprises:
Obtain a precedence information;
When described precedence information shows that described state parameter is the first priority, obtain described state parameter.
8. the method for claim 1, is characterized in that, the boot parameter of described electronic equipment is set to described the first boot parameter, is specially:
Change at least one option of described boot parameter, to obtain described the first boot parameter.
9. an electronic equipment, it is characterized in that, described electronic equipment at least comprises the first operating system and the second operating system, described the first operating system is loaded into described electronic equipment by the first boot parameter, described the second operating system is loaded into described electronic equipment by the second boot parameter, wherein, described the first boot parameter is not identical with described the second boot parameter, and described electronic equipment comprises:
Casing;
One circuit board, is arranged in described casing;
One control chip, be arranged on described circuit board, be used for obtaining a state parameter, described state parameter is for determining that the operating system that described electronic equipment need to load is described the first operating system or described the second operating system, and when determining that based on described state parameter operating system that described electronic equipment need to load is described the first operating system, the boot parameter of described electronic equipment is set to described the first boot parameter, so that described electronic equipment can load described the first operating system based on described the first boot parameter, when determining that based on described state parameter operating system that described electronic equipment need to load is described the second operating system, the boot parameter of described electronic equipment is set to described the second boot parameter, so that described electronic equipment can load described the second operating system based on described the second boot parameter.
10. electronic equipment as claimed in claim 9, it is characterized in that, described control chip is specifically for reading the state of a default register, obtain a reading result, and when described reading result shows described default register in the first state, obtain the first state parameter, when described reading result shows described default register in the second state, obtain the second state parameter.
11. electronic equipments as claimed in claim 10, it is characterized in that, described control chip is specifically for when described state parameter is described the first state parameter, determine that the operating system that described electronic equipment need to load is described the first operating system, when described state parameter is described the second state parameter, determine that the operating system that described electronic equipment need to load is described the second operating system.
12. electronic equipments as claimed in claim 10, is characterized in that, described electronic equipment also comprises a switch being connected with described default register, and described switch is positioned on described circuit board, for the state of described default register is set.
13. electronic equipments as claimed in claim 12, is characterized in that, at described switch, during in the first connection status, the level of inputting the first pin of described default register is the first level, and described default register is in described the first state;
At described switch, during in the second connection status, the level of inputting the first pin of described default register is second electrical level, and described default register is in described the second state.
14. electronic equipments as claimed in claim 12, is characterized in that, described electronic equipment also comprises a button being connected with described switch, are positioned on described casing and are exposed to the outside surface of described casing, for adjusting the connection status of described switch.
15. electronic equipments as claimed in claim 9, it is characterized in that, described control chip, specifically for before described acquisition one state parameter, obtains a precedence information, and when described precedence information shows that described state parameter is the first priority, obtain described state parameter.
16. electronic equipments as claimed in claim 9, is characterized in that, described control chip is specifically for changing at least one option of described boot parameter, to obtain described the first boot parameter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210345877.5A CN103677881A (en) | 2012-09-17 | 2012-09-17 | Method for controlling electronic device, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210345877.5A CN103677881A (en) | 2012-09-17 | 2012-09-17 | Method for controlling electronic device, and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103677881A true CN103677881A (en) | 2014-03-26 |
Family
ID=50315543
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210345877.5A Pending CN103677881A (en) | 2012-09-17 | 2012-09-17 | Method for controlling electronic device, and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103677881A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106155657A (en) * | 2014-12-26 | 2016-11-23 | 美商安迈科技股份有限公司 | The method of UEFI firmware and computer system thereof |
CN112492748A (en) * | 2021-01-14 | 2021-03-12 | 四川赛狄信息技术股份公司 | Missile-borne, airborne and vehicle-mounted data processing printed board |
CN112631669A (en) * | 2020-12-30 | 2021-04-09 | 北京天融信网络安全技术有限公司 | Method, device, computer equipment and medium for starting embedded system |
-
2012
- 2012-09-17 CN CN201210345877.5A patent/CN103677881A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106155657A (en) * | 2014-12-26 | 2016-11-23 | 美商安迈科技股份有限公司 | The method of UEFI firmware and computer system thereof |
CN106155657B (en) * | 2014-12-26 | 2019-10-11 | 美商安迈国际有限责任公司 | UEFI firmware method and computer system thereof |
CN112631669A (en) * | 2020-12-30 | 2021-04-09 | 北京天融信网络安全技术有限公司 | Method, device, computer equipment and medium for starting embedded system |
CN112492748A (en) * | 2021-01-14 | 2021-03-12 | 四川赛狄信息技术股份公司 | Missile-borne, airborne and vehicle-mounted data processing printed board |
CN112492748B (en) * | 2021-01-14 | 2021-04-23 | 四川赛狄信息技术股份公司 | Missile-borne, airborne and vehicle-mounted data processing printed board |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5743245B2 (en) | Mobile device and method for publishing and managing a set of performance scaling algorithms | |
CN111142711B (en) | Firmware configuration method and device, storage medium and mobile terminal | |
US20080178031A1 (en) | Power control apparatus and method thereof | |
TW201234169A (en) | Coordinating performance parameters in multiple circuits | |
CN105556417A (en) | Electronic device for controlling power and method therefor | |
US20120272088A1 (en) | Dynamic bus clock rate adjusting method and device | |
CN104516747A (en) | System switching method and electronic device | |
JP2013089060A (en) | Device and method for controlling startup sequence, and power supply system | |
CN113031752A (en) | Chip voltage adjusting method, performance testing method and device and electronic equipment | |
CN105824379A (en) | Electronic equipment | |
CN108156310A (en) | A kind of method and system of finger prints processing, terminal device and computer-readable medium | |
EP2667284A1 (en) | Control system | |
CN101071329A (en) | Power supply control device for multi-core processor and its method | |
CN103677881A (en) | Method for controlling electronic device, and electronic device | |
CN106681772A (en) | Acceleration method, device and terminal for starting application | |
KR101979665B1 (en) | A Method For Driving Condition Control based on Driving state and Electronic Device supporting the same | |
CN102360303A (en) | Method for upgrading handheld terminal software, and handheld terminal | |
CN103092304B (en) | Power supply control method of dual graphics card module and computer device using the method | |
CN101646227A (en) | Power management method for mobile terminal and mobile terminal | |
CN105282327A (en) | Control method, electronic device and external device | |
US8954717B2 (en) | System capable of booting through a universal serial bus device and method thereof | |
CN101963946B (en) | A computer supported multi-section mobile terminal downloads method and the device of software version | |
CN106155733B (en) | Method and device for running application program | |
CN105138323A (en) | Information processing method and electronic equipment | |
JP6649579B2 (en) | Electronic system, function expansion device and power management program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140326 |
|
RJ01 | Rejection of invention patent application after publication |