WO2015103917A1 - Management method and apparatus of wireless routing device - Google Patents

Management method and apparatus of wireless routing device Download PDF

Info

Publication number
WO2015103917A1
WO2015103917A1 PCT/CN2014/093594 CN2014093594W WO2015103917A1 WO 2015103917 A1 WO2015103917 A1 WO 2015103917A1 CN 2014093594 W CN2014093594 W CN 2014093594W WO 2015103917 A1 WO2015103917 A1 WO 2015103917A1
Authority
WO
WIPO (PCT)
Prior art keywords
operating system
routing device
wireless routing
current
started
Prior art date
Application number
PCT/CN2014/093594
Other languages
French (fr)
Chinese (zh)
Inventor
陈建
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
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 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2015103917A1 publication Critical patent/WO2015103917A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1417Boot up procedures

Definitions

  • the present invention relates to a wireless routing technology, and in particular, to a wireless routing device management method and a corresponding wireless routing device management apparatus.
  • a wireless routing device is a routing device with wireless coverage capabilities such as Wifi functionality.
  • Wireless routing devices are mainly used for wireless Internet access of users' terminal devices such as desktop computers, notebook computers, tablet computers, and smart mobile phones.
  • the wireless routing device After the wireless routing device is powered on, its boot program will boot the operating system. After the operating system is successfully started, the wireless routing device is in normal working state.
  • the inventor has found that the wireless routing device cannot be started normally when the operating system of the wireless routing device is damaged, and the repair operation of the operating system of the wireless routing device requires the user to have certain professional knowledge. Completed; therefore, the operational reliability of the wireless routing device needs to be further improved.
  • the present invention has been made in order to provide a wireless routing device management method, a corresponding wireless routing device management apparatus, a computer program, and a computer readable medium that overcome the above problems or at least partially solve the above problems.
  • a wireless routing device management method is provided.
  • the wireless routing device is provided with two sets of operating systems, and the method includes the following steps: during the startup process of the wireless routing device, reading The current operating system identifier stored in the wireless routing device; booting the corresponding operating system in the wireless routing device according to the current operating system identifier; detecting the state of the currently started operating system; detecting that the currently started operating system is faulty In the case of the state, the current operating system identifier stored in the wireless routing device is modified to another operating system identifier other than the currently started operating system, and the current operating system identifier stored in the wireless router device is returned. step.
  • a wireless routing device management apparatus wherein the wireless routing device is provided with two sets of operating systems, and the apparatus comprises: a reading module adapted to be in a startup process of the wireless routing device The reading module is configured to boot a corresponding operating system in the wireless routing device according to the current operating system identifier, and the detecting module is configured to detect a state of the currently started operating system. Modify the processing module to detect the current When the booted operating system is in a fault state, the current operating system identifier stored in the wireless routing device is modified to another operating system identifier other than the currently started operating system, and the reading module is triggered to read the wireless route again. The current operating system ID stored in the device.
  • a computer program comprising computer readable code that causes the wireless routing device management method to be executed when the electronic device runs the computer readable code.
  • a computer readable medium storing a computer program as described above is provided.
  • the wireless routing device management method and device of the present invention modifies the current operating system identifier stored in the wireless routing device to two by setting two sets of operating systems in the wireless routing device and if the currently started operating system is not successfully started. Set another operating system identifier in the operating system, and then boot the corresponding operating system to perform the boot operation according to the modified current operating system identifier, so that when the operating system of the wireless routing device is damaged, the wireless
  • the routing device can also be started and operated normally by using another operating system; the invention can also determine the state of another operating system after a set of operating systems are normally started, and perform corresponding repair operations on the operating system in which the startup failure occurs; The invention thus improves the operational reliability of the wireless routing device.
  • FIG. 1 is a flowchart of a method for managing a wireless routing device according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for managing a wireless routing device according to Embodiment 2 of the present invention
  • FIG. 3 is a flowchart of a method for managing a wireless routing device according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic diagram of a wireless routing device management apparatus according to Embodiment 4 of the present invention.
  • Figure 5 shows a block diagram of an electronic device for performing the method of the present invention
  • Figure 6 shows a schematic diagram of a memory unit for holding or carrying program code implementing the method according to the invention.
  • Embodiment 1 A wireless routing device management method.
  • the present embodiment sets two sets of operating systems in the wireless routing device, and the two operating systems can be respectively disposed in two different ROMs in the wireless routing device, so that the implementation
  • the wireless routing device can be a wireless routing device of a dual ROM dual operating system, so that in the case that a set of operating systems in the wireless routing device has a startup failure, the embodiment can also trigger another set of wireless routing devices.
  • the operating system is normally started, so that the wireless routing device can work normally.
  • the operating system in which the startup failure occurs in the wireless routing device can be repaired.
  • the current operating system flag bit can be set in the wireless routing device. For example, when the current operating system flag is 0, the first operating system is the current operating system, and the current operating system flag is 1. Indicates that the second operating system is the current operating system. In the case where the two sets of operating systems are disposed in two different ROMs, the current operating system flag bit may also be referred to as the current ROM flag bit.
  • the boot program in the wireless routing device performs multiple operations including booting the operating system.
  • This embodiment can be read by the boot program in the wireless routing device. Take the operation of the current operating system ID.
  • the embodiment may identify the corresponding operating system according to the current operating system identifier, and boot the corresponding operating system to start.
  • the corresponding operating system can be identified by the boot program in the wireless routing device, and the corresponding operating system is booted.
  • the current routing state information of the current operating system is also stored in the wireless routing device of the embodiment.
  • the information may be used to indicate whether the current operating system is successfully started.
  • the current operating system startup state information may be whether the current operating system successfully starts the flag bit;
  • the information can also be used to indicate the number of times the current operating system fails to start.
  • the current operating system startup status information can be the current operating system startup failure counter.
  • the current operating system startup status information is whether the current operating system successfully starts the flag.
  • the value of the current operating system success start flag may be set to a value indicating that the startup failed (eg, 1); for example, When the current operating system identifier is the first operating system identifier and the first operating system is booted, the value of the current operating system startup flag is set to 1 (indicating that the current operating system fails to start).
  • the current count value of the current operating system startup failure counter may be modified to the current count.
  • the setting operation of the current operating system startup state information may be performed by a booting program in the wireless routing device.
  • detecting the status of the currently started operating system may be detecting a startup result of the currently started operating system, or detecting an operating state of the currently started operating system.
  • the operating system currently started in the wireless routing device may fail to start due to the destruction of the operating system file.
  • the status of the currently started operating system can be detected in a plurality of manners.
  • the running status timer starts to count, and after the operating system is successfully started, The timing value of the running status timer is periodically reset to zero, so that the running status timer is not reset to zero in the case that the operating system fails to be started; thus, by reading the running time timer, the current value can be determined.
  • the startup result of the startup operating system is the startup success or the startup failure.
  • the value of the current operating system success startup flag is set to The value of the successful startup (such as 0), so that the operating system fails to start, the value of the current operating system successfully started flag will not be changed, but will still maintain the value indicating the startup failure (such as 1); this way, by reading the current operating system after the operating system starts to start and after a predetermined time interval No successful start flag values can determine the current boot is the result of the operating system is started successfully, or failed to start.
  • the current count value of the current operating system startup failure counter is changed to an initial count value (such as 0), so that the operating system fails to start.
  • the current count value (such as 1 or 2) of the current operating system startup failure counter is not modified to the initial count value (such as 0); thus, the current operating system is read after the operating system is started and after a predetermined time interval.
  • the current count value of the startup failure counter can be used to determine that the startup result of the currently started operating system is successful. It is a startup failure.
  • this embodiment may also use other methods to detect the startup result of the currently started operating system, which will not be described here.
  • the currently started operating system is in a fault state, and the currently started operating system may not be successfully started, or may be not operated normally after the operating system is successfully started.
  • the currently started operating system is not successfully started, and the following two different situations may exist:
  • Case 1 In the case that it is detected that the currently started operating system has not been successfully started this time, the currently started operating system may not be successfully started; for example, a trigger signal is generated when the running timer of the running state timer reaches a predetermined timing value.
  • the trigger signal is received, it is determined that the currently started operating system has not been successfully started; for example, the value of the current operating system successfully started flag flag read after the operating system is started and after a predetermined time interval indicates that the startup fails. Then it is determined that the currently started operating system has not been successfully started.
  • Case 2 When the currently started operating system is detected for a predetermined number of times (usually multiple times, of course, once), the currently started operating system may not be successfully started; for example, in the operating system. After the current count value of the current operating system startup failure counter read after being started and separated by a predetermined time interval reaches a predetermined number of times, it is determined that the currently started operating system has not been successfully started.
  • the current operating system identifier stored in the wireless routing device should be modified to be other than the currently started operating system.
  • Another set of operating system identifiers, and returning to the step of reading the current operating system identifier stored in the wireless routing device in the above S100 (for example, by triggering the wireless routing device to be warm-started, the boot program is run, and the bootstrap program guides the corresponding The operating system is booted so that another set of operating systems can be booted, thus avoiding the problem that the current operating system is damaged and the wireless routing device is not working properly.
  • the current count value of the current operating system startup failure counter may be set to an initial count value.
  • the information that the non-currently started operating system is not successfully started may be stored in the wireless routing device (ie, information that another set of operating systems has not been successfully started); For a specific example, if another operating system is successfully set in the wireless routing device, if the operating system that is currently started is not successfully started, this embodiment will successfully start the flag of another operating system. The value is set to the value that is not successfully started (if set to 1). In the case that it is determined that the currently started operating system is successfully started, this embodiment will set the value of another set of operating system successfully started. The value to be successfully started (if set to 0).
  • the current operating system stored in the wireless routing device may not be modified first.
  • the identifier does not set the value of the successful startup flag of another operating system to a value that is not successfully started, but directly returns to the step of reading the current operating system identifier stored in the wireless routing device in the above S100. In order to try to boot the current operating system to start again, this can rule out that the current operating system is not really damaged, but may be due to some factors (such as external factors) temporarily causing the current operating system to not start successfully.
  • the embodiment can read the information that the non-currently started operating system stored in the wireless routing device is not successfully started, and according to the obtained information, the non-current is not successfully started.
  • the booted operating system that is, the operating system that did not boot successfully performs the repair operation.
  • the above repair operation may be specifically: copying the currently successfully started operating system, and overwriting the file of the operating system that has not been successfully started by using the copied operating system file; for example, copying the file of the operating system in a ROM to the wireless routing Another ROM of the device.
  • the foregoing repair operation may also be specifically: downloading an operating system of the wireless routing device by using a network (for example, using an address of a server pre-stored in the wireless routing device to send an operating system download request of the wireless routing device to the server, and the download request may carry a wireless route The specific model of the device and/or the version information of the operating system, etc., and then use the downloaded operating system file to overwrite the file of the operating system that has not been successfully started, for example, storing the downloaded operating system file in the wireless routing device.
  • a network for example, using an address of a server pre-stored in the wireless routing device to send an operating system download request of the wireless routing device to the server, and the download request may carry a wireless route
  • the specific model of the device and/or the version information of the operating system, etc. and then use the downloaded operating system file to overwrite the file of the operating system that has not been successfully started, for example, storing the downloaded operating system file in the wireless routing device.
  • Embodiment 2 A method for managing a wireless routing device. The method of this embodiment will be described in detail below with reference to FIG.
  • the boot program After the S200 and the wireless routing device are powered on or cold-started, the boot program reads the current operating system flag stored in the wireless routing device.
  • setting the current operating system flag bit to 0 indicates the operating system in the ROM 1
  • the current operating system flag bit is 1 indicating the operating system in the ROM 2.
  • the boot program boots the operating system in the ROM1 according to the value of the current operating system flag bit.
  • the system starts or boots the operating system in ROM2 to start; at the same time, the boot program sets the current count value of the counter in the wireless routing device to the current count value plus one.
  • the counter is the current operating system startup failure counter in the first embodiment.
  • the boot program exits after the operating system system in boot ROM 1 is booted or the operating system in boot ROM 2 is booted.
  • the operating system in S220, ROM1 or ROM2 is booted under the booting of the boot program, and the operating system in ROM1 or ROM2 sets the current count value of the counter to the initial count value (e.g., 0) after its successful startup.
  • the initial count value e.g., 0
  • step S240 Determine whether the current count value of the counter is an initial count value, and determine whether the current count value exceeds a predetermined number of times. If the current count value of the counter is not the initial count value and exceeds the predetermined number of times, then go to step S250; if the current count value of the counter If it is not the initial count value and does not exceed the predetermined number of times, it goes directly to step S200; if the current count value of the counter is the initial count value, it goes to step S260.
  • Step S250 Change the value of the current operating system flag stored in the wireless routing device from 0 to 1 or from 1 to 0, and set whether the other operating system set in the wireless routing device successfully starts the flag.
  • the value is set to indicate that the value has not been successfully started (such as setting the current value to 1), and at the same time, the current counter value of the above counter is set to the initial count value, and then, by triggering the hot start operation of the wireless routing device, returning to Step S200.
  • This step indicates that the currently started operating system has been successfully started, and the wireless routing device can work normally; the successfully started operating system reads the information that the non-currently started operating system stored in the wireless routing device is not successfully started, and according to the information.
  • the specific modification operation is as described in the first embodiment, and will not be described in detail herein.
  • the embodiment (such as a successfully started operating system) should re-set the information that the non-currently started operating system does not successfully start, such as setting the current value of the successful startup flag of another operating system to Indicates the value of a successful start (if set to 0).
  • Embodiment 3 A method for managing a wireless routing device. The method of this embodiment will be described in detail below with reference to FIG. 3.
  • the boot program After the S300 and the wireless routing device are powered on or cold-started, the boot program reads the current operating system flag stored in the wireless routing device.
  • setting the current operating system flag bit to 0 indicates the operating system in the ROM 1
  • the current operating system flag bit is 1 indicating the operating system in the ROM 2.
  • the boot program boots the operating system in the ROM1 to boot or boot the operating system in the ROM2 according to the value of the current operating system flag. Meanwhile, the boot program will be in the wireless routing device.
  • the current count value of the counter is set to the current count value plus one, and the operating state timer of the operating system starts timing.
  • the above counter is the current operating system startup failure counter in the first embodiment.
  • the above timer is mainly used to monitor whether the operating system is successfully started and whether the operating system that is successfully started has a deadlock status.
  • the boot program exits after the operating system system in boot ROM 1 is booted or the operating system in boot ROM 2 is booted.
  • the operating system in S320, ROM1 or ROM2 is booted under the booting of the boot program, and the operating system in ROM1 or ROM2 sets the current counter value of the counter to the initial count value (such as 0) after its successful startup, and
  • the timing value of the above running state timer is periodically reset to zero; when the timing value of the running state timer reaches a predetermined timing value, a trigger signal for triggering the hot start of the wireless routing device is generated.
  • step S330 Determine whether a trigger signal for triggering the hot start of the wireless routing device is received. If the trigger signal is received, go to step S340, otherwise continue to wait for the trigger signal.
  • step S340 Determine whether the current count value of the counter is an initial count value, and determine whether the current count value exceeds a predetermined number of times. If the current count value of the counter is not the initial count value and exceeds the predetermined number of times, then go to step S350; if the current count value of the counter If it is not the initial count value and does not exceed the predetermined number of times, it goes directly to step S300; if the current count value of the counter is the initial count value, it proceeds to step S360.
  • Step S350 Change the value of the current operating system flag stored in the wireless routing device from 0 to 1 or from 1 to 0, and set whether the other operating system set in the wireless routing device successfully starts the flag.
  • the value is set to indicate that the value has not been successfully started (such as setting the current value to 1), and at the same time, the current counter value of the above counter is set to the initial count value, and then, by triggering the hot start operation of the wireless routing device, returning to Step S300.
  • this step indicates that the currently started operating system has been successfully started and is in a normal running state, that is, the wireless routing device is in a normal working state; the successfully started operating system reads that the non-currently started operating system stored in the wireless routing device does not successfully start. According to the information, the non-currently-initiated operating system (that is, the operating system that has not been successfully started) is not successfully started.
  • the specific modification operation is as described in the first embodiment, and is not detailed here. Description.
  • the embodiment (such as a successfully started operating system) should re-set the information that the non-currently started operating system does not successfully start, such as setting the current value of the successful startup flag of another operating system to Indicates the value of a successful start (if set to 0).
  • Embodiment 4 A wireless routing device management apparatus. The device is disposed in a wireless routing device, and two sets of operating systems are disposed in the wireless routing device.
  • the device shown in FIG. 4 mainly includes: a reading module 400, a guiding module 410, a detecting module 420, The processing module 430 and the repair module 440 are modified.
  • the reading module 400 is coupled to the boot module 410.
  • the reading module 400 is primarily adapted to read the current operating system identification stored in the wireless routing device during startup of the wireless routing device.
  • the current operating system flag bit can be set in the wireless routing device of the embodiment. For example, when the current operating system flag is 0, the first operating system is the current operating system, and the current operating system flag is 1, Indicates that the second operating system is the current operating system. In the case where the two sets of operating systems are disposed in two different ROMs, the current operating system flag bit may also be referred to as the current ROM flag bit.
  • the booting program in the wireless routing device performs a plurality of operations, such as booting the operating system, and the reading module 400 of the embodiment can be set in the booting program. That is, when the boot program is started up, the read module 400 reads the operation of the current operating system identifier.
  • the boot module 410 is connected to the detection module 420 in addition to the read module 400.
  • the boot module 410 is primarily adapted to boot a corresponding operating system in the wireless routing device based on the current operating system identification.
  • the guiding module 410 can identify the corresponding operating system according to the current operating system identifier, and boot the corresponding operating system to start.
  • the guiding module 410 in this embodiment may be disposed in a booting program of the wireless routing device.
  • the current routing state information of the current operating system is also stored in the wireless routing device of the embodiment.
  • the information may be used to indicate whether the current operating system is successfully started.
  • the current operating system startup state information may be whether the current operating system successfully starts the flag bit;
  • the information can also be used to indicate the number of times the current operating system fails to start.
  • the current operating system startup status information can be the current operating system startup failure counter.
  • the current operating system startup state information is that the current operating system successfully starts the flag bit
  • the current operating system may successfully start the flag bit.
  • the value is set to indicate the value of the startup failure (such as 1); if the boot module 410 recognizes that the current operating system identifier is the first operating system identifier and boots the first operating system, the current operating system is successful.
  • the value of the startup flag is set to 1 (indicating that the current operating system failed to start).
  • the current count value of the current operating system startup failure counter may be modified during the boot module 410 identifying the current operating system identifier and booting the corresponding operating system startup process.
  • Count The current count value of the counter is incremented by one.
  • the detection module 420 is connected to the modification processing module 430 in addition to the boot module 410.
  • the detection module 420 is primarily adapted to detect the status of the currently activated operating system.
  • the detecting module 420 detects that the state of the currently started operating system may be that the detecting module 420 detects the startup result of the currently started operating system, or that the detecting module 420 detects the working state of the currently started operating system.
  • the detecting module 420 can detect the startup result of the currently started operating system in various manners; a specific example, when the operating system starts to start, the running state timer starts counting, and after the operating system starts successfully, the operating state is periodically started. The timer value of the timer is reset to zero, so that in the case that the operating system fails to start, the above running state timer is not reset to zero; thus, the detecting module 420 can determine the current starting by reading the running value of the running state timer.
  • the result of the startup of the operating system is whether the startup is successful or the startup fails.
  • the value of the successful startup flag of the current operating system is set to a value indicating that the startup is successful ( If 0), in the case that the operating system fails to start, the value of whether the current operating system successfully starts the flag bit will not be changed, but will still maintain the value indicating the startup failure (such as 1);
  • Module 420 reads the current operating system after the operating system begins to boot and after a predetermined time interval
  • Successful start flag values can determine the result of initiating the current operating system to start is to start successfully, or failed to start.
  • the current count value of the current operating system startup failure counter is modified to an initial count value (such as 0), so that the operating system fails when the operating system fails to start.
  • the current count value of the startup failure counter (such as 1 or 2, etc.) will not be modified to the initial count value (such as 0); thus, the detection module 420 fails to read the current operating system startup after the operating system is started and after a predetermined time interval.
  • the current count value of the counter can determine whether the startup result of the currently started operating system is successful or failed.
  • the detection module 420 can also use other methods to detect the startup result of the currently started operating system, which will not be described here.
  • the modification processing module 430 is connected to the reading module 400 in addition to the detection module 420.
  • the modification processing module 430 is mainly configured to modify the current operating system identifier stored in the wireless routing device to another operating system identifier other than the currently started operating system, if it is detected that the currently started operating system is not successfully started. And triggering the reading module 400 to read the current operating system identity stored in the wireless routing device again.
  • the modification processing module 430 should all use the wireless routing device.
  • the current operating system identifier stored in the medium is modified to another operating system identifier in addition to the currently started operating system, and the reading module 400 is triggered to read the current operating system identifier stored in the wireless routing device, so that the booting module 410 can Boot another set of operating systems to start, so as to avoid the problem that the current operating system is damaged and the wireless routing device is not working properly.
  • the modification processing module 430 may set the current count value of the current operating system startup failure counter to the initial count value.
  • the modification processing module 430 can also store, in the wireless routing device, information that the non-currently started operating system is not successfully started (that is, information that another operating system does not successfully start); a specific example, the wireless routing device is provided with If another operating system successfully starts the flag, in the case that it is determined that the currently started operating system has not been successfully started, the modification processing module 430 sets the value of the successful startup flag of the other operating system to not successfully started. The value of the setting (if set to 1), in the case that it is determined that the currently started operating system is successfully started, the modification processing module 430 sets the value of the successful startup flag of another operating system to the value of the successful startup. (if set to 0).
  • the modification processing module 430 may not modify the storage in the wireless routing device first.
  • the current operating system identifier does not set the value of the successful startup flag of another operating system to a value that is not successfully started, but directly triggers the reading module 400 to read the current operating system stored in the wireless routing device. Identification, so that the boot module 410 can try to boot the current operating system to start again, so that the current operating system can be excluded from being completely damaged, and may be caused by some factors (such as external factors) temporarily causing the current operating system to not be successfully started. phenomenon.
  • the repair module 440 is mainly configured to repair the operating system that has not been successfully started according to the information that the non-currently started operating system stored in the wireless routing device is not successfully started, in the case that the currently started operating system is successfully started.
  • the repair module 440 can read the information that the non-currently started operating system stored in the wireless routing device is not successfully started, and does not successfully start according to the obtained information.
  • the non-currently booted operating system (that is, the operating system that did not boot successfully) performs a repair operation.
  • the foregoing repair operation may be specifically: the repair module 440 performs a copy operation on the currently successfully started operating system, and overwrites the file of the operating system that has not been successfully started by using the file of the copied operating system. For example, copy the file of the operating system in one ROM to another ROM of the wireless routing device.
  • the repair operation may also be specifically: the repair module 440 uses the network to download the operating system of the wireless routing device (for example, using the server address pre-stored in the wireless routing device to send an operating system download request of the wireless routing device to the server, and the download request may be Carrying the specific model of the wireless routing device and/or the version information of the operating system, etc.), and then the repair module 440 overwrites the file of the operating system that has not been successfully started by using the file of the operating system obtained by the download, for example, the repair module 440 will download the obtained file.
  • the files of the operating system are stored in another ROM of the wireless routing device.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the wireless routing device management device in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (such as a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • FIG. 5 illustrates an electronic device in which the wireless routing device management method of the present invention can be implemented.
  • the electronic device conventionally includes a processor 1210 and a computer program product or computer readable medium in the form of a memory 1220.
  • the memory 1220 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 1220 has a memory space 1230 for program code 1231 for performing any of the method steps described above.
  • storage space 1230 for program code may include various program codes 1231 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units as described with reference to FIG.
  • the storage unit may have a storage section or a storage space or the like arranged similarly to the storage 1220 in the electronic device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit comprises a program 1231' for performing the steps of the method according to the invention, ie a code readable by a processor such as 1210, which when executed by the electronic device causes the electronic device to perform the above Each step in the described method.

Abstract

Disclosed in the present invention are a management method and apparatus of wireless routing device. The wireless routing device has two operating systems provided therein, and the management method comprises: reading the current operating system identification stored in the wireless routing device during the startup process of the wireless routing device; leading the corresponding operating system in the wireless routing device to start according to the current operating system identification; detecting the state of the currently started operating system; and in the case that the currently started operating system is detected to be in a failure state, modifying the current operating system identification stored in the wireless routing device into the other operating system identification other than the currently started operating system, and returning to the step of reading the current operating system identification stored in the wireless routing device.

Description

无线路由设备管理方法和装置Wireless routing device management method and device 技术领域Technical field
本发明涉及无线路由技术,具体涉及一种无线路由设备管理方法以及相应的无线路由设备管理装置。The present invention relates to a wireless routing technology, and in particular, to a wireless routing device management method and a corresponding wireless routing device management apparatus.
背景技术Background technique
无线路由设备是带有无线覆盖功能(如Wifi功能)的路由设备。无线路由设备主要用于用户的终端设备(如台式计算机、笔记型计算机、平板电脑以及智能移动电话等)的无线上网。A wireless routing device is a routing device with wireless coverage capabilities such as Wifi functionality. Wireless routing devices are mainly used for wireless Internet access of users' terminal devices such as desktop computers, notebook computers, tablet computers, and smart mobile phones.
无线路由设备在接通电源后,其引导程序会引导操作系统启动,操作系统成功启动后,无线路由设备处于正常工作状态。After the wireless routing device is powered on, its boot program will boot the operating system. After the operating system is successfully started, the wireless routing device is in normal working state.
发明人在实现本发明过程中发现,在无线路由设备的操作系统被损坏的情况下,无线路由设备会无法正常启动,而对无线路由设备的操作系统的修复操作需要用户具备一定的专业知识才能完成;因此,无线路由设备的工作可靠性有待于进一步提高。In the process of implementing the present invention, the inventor has found that the wireless routing device cannot be started normally when the operating system of the wireless routing device is damaged, and the repair operation of the operating system of the wireless routing device requires the user to have certain professional knowledge. Completed; therefore, the operational reliability of the wireless routing device needs to be further improved.
发明内容Summary of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的无线路由设备管理方法、相应的无线路由设备管理装置、计算机程序以及计算机可读介质。In view of the above problems, the present invention has been made in order to provide a wireless routing device management method, a corresponding wireless routing device management apparatus, a computer program, and a computer readable medium that overcome the above problems or at least partially solve the above problems.
依据本发明的一个方面,提供了一种无线路由设备管理方法,所述无线路由设备中设置有两套操作系统,且所述方法包括下述步骤:在无线路由设备的启动过程中,读取无线路由设备中存储的当前操作系统标识;根据所述当前操作系统标识引导无线路由设备中相应的操作系统启动;检测当前启动的操作系统的状态;在检测出所述当前启动的操作系统处于故障状态的情况下,将无线路由设备中存储的当前操作系统标识修改为除当前启动的操作系统之外的另一套操作系统标识,并返回上述读取无线路由设备中存储的当前操作系统标识的步骤。According to an aspect of the present invention, a wireless routing device management method is provided. The wireless routing device is provided with two sets of operating systems, and the method includes the following steps: during the startup process of the wireless routing device, reading The current operating system identifier stored in the wireless routing device; booting the corresponding operating system in the wireless routing device according to the current operating system identifier; detecting the state of the currently started operating system; detecting that the currently started operating system is faulty In the case of the state, the current operating system identifier stored in the wireless routing device is modified to another operating system identifier other than the currently started operating system, and the current operating system identifier stored in the wireless router device is returned. step.
根据本发明的另一方面,提供了一种无线路由设备管理装置,所述无线路由设备中设置有两套操作系统,且所述装置包括:读取模块,适于在无线路由设备的启动过程中,读取无线路由设备中存储的当前操作系统标识;引导模块,适于根据当前操作系统标识引导无线路由设备中相应的操作系统启动;检测模块,适于检测当前启动的操作系统的状态;修改处理模块,适于在检测出当前 启动的操作系统处于故障状态的情况下,将无线路由设备中存储的当前操作系统标识修改为除当前启动的操作系统之外的另一套操作系统标识,并触发读取模块再次读取无线路由设备中存储的当前操作系统标识。According to another aspect of the present invention, there is provided a wireless routing device management apparatus, wherein the wireless routing device is provided with two sets of operating systems, and the apparatus comprises: a reading module adapted to be in a startup process of the wireless routing device The reading module is configured to boot a corresponding operating system in the wireless routing device according to the current operating system identifier, and the detecting module is configured to detect a state of the currently started operating system. Modify the processing module to detect the current When the booted operating system is in a fault state, the current operating system identifier stored in the wireless routing device is modified to another operating system identifier other than the currently started operating system, and the reading module is triggered to read the wireless route again. The current operating system ID stored in the device.
根据本发明的另一个方面,提供了一种计算机程序,其包括计算机可读代码,当电子设备运行所述计算机可读代码时,导致所述的无线路由设备管理方法被执行。According to another aspect of the present invention, a computer program is provided comprising computer readable code that causes the wireless routing device management method to be executed when the electronic device runs the computer readable code.
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了如上所述的计算机程序。According to still another aspect of the present invention, a computer readable medium storing a computer program as described above is provided.
本发明的无线路由设备管理方法以及装置通过在无线路由设备中设置两套操作系统,且在当前启动的操作系统没有成功启动的情况下,将无线路由设备中存储的当前操作系统标识修改为两套操作系统中的另一套操作系统标识,并根据修改后的当前操作系统标识再次引导相对应的操作系统执行启动操作,这样,在无线路由设备的一套操作系统被损坏的情况下,无线路由设备还可以利用另一套操作系统正常启动并工作;本发明还可以在一套操作系统正常启动后判别另一套操作系统的状态,并对出现启动故障的操作系统执行相应的修复操作;从而本发明提高了无线路由设备的工作可靠性。The wireless routing device management method and device of the present invention modifies the current operating system identifier stored in the wireless routing device to two by setting two sets of operating systems in the wireless routing device and if the currently started operating system is not successfully started. Set another operating system identifier in the operating system, and then boot the corresponding operating system to perform the boot operation according to the modified current operating system identifier, so that when the operating system of the wireless routing device is damaged, the wireless The routing device can also be started and operated normally by using another operating system; the invention can also determine the state of another operating system after a set of operating systems are normally started, and perform corresponding repair operations on the operating system in which the startup failure occurs; The invention thus improves the operational reliability of the wireless routing device.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.
附图说明DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。本实施例的附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those skilled in the art from a The drawings of the present embodiments are only for the purpose of illustrating the preferred embodiments and are not intended to limit the invention. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图1示出了根据本发明实施例一的无线路由设备管理方法流程图;1 is a flowchart of a method for managing a wireless routing device according to Embodiment 1 of the present invention;
图2示出了根据本发明实施例二的无线路由设备管理方法流程图;2 is a flowchart of a method for managing a wireless routing device according to Embodiment 2 of the present invention;
图3示出了根据本发明实施例三的无线路由设备管理方法流程图;3 is a flowchart of a method for managing a wireless routing device according to Embodiment 3 of the present invention;
图4示出了根据本发明实施例四的无线路由设备管理装置示意图;4 is a schematic diagram of a wireless routing device management apparatus according to Embodiment 4 of the present invention;
图5示出了用于执行本发明的方法的电子设备的框图;以及Figure 5 shows a block diagram of an electronic device for performing the method of the present invention;
图6示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元示意图。Figure 6 shows a schematic diagram of a memory unit for holding or carrying program code implementing the method according to the invention.
具体实施方式 detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided so that this disclosure will be more fully understood and the scope of the disclosure will be fully disclosed.
实施例一、无线路由设备管理方法。Embodiment 1 A wireless routing device management method.
为了提高无线路由设备的工作可靠性,本实施例在无线路由设备中设置了两套操作系统,且这两套操作系统可以分别设置于无线路由设备中的两个不同的ROM中,从而本实施例可以使无线路由设备成为双ROM双操作系统的无线路由设备,这样,在无线路由设备中的一套操作系统出现启动故障的情况下,本实施例还可以触发无线路由设备中的另一套操作系统正常启动,进而使无线路由设备能够正常工作;另外,本实施例还可以对无线路由设备中出现启动故障的操作系统进行修复。In order to improve the operational reliability of the wireless routing device, the present embodiment sets two sets of operating systems in the wireless routing device, and the two operating systems can be respectively disposed in two different ROMs in the wireless routing device, so that the implementation For example, the wireless routing device can be a wireless routing device of a dual ROM dual operating system, so that in the case that a set of operating systems in the wireless routing device has a startup failure, the embodiment can also trigger another set of wireless routing devices. The operating system is normally started, so that the wireless routing device can work normally. In addition, in this embodiment, the operating system in which the startup failure occurs in the wireless routing device can be repaired.
下面结合图1对本实施例的方法进行详细说明。The method of this embodiment will be described in detail below with reference to FIG. 1.
S100、在无线路由设备的启动过程中,读取无线路由设备中存储的当前操作系统标识。S100. During the startup process of the wireless routing device, read the current operating system identifier stored in the wireless routing device.
具体的,本实施例可以在无线路由设备中设置当前操作系统标志位,例如,当前操作系统标志位为0时,表示第一套操作系统为当前操作系统,当前操作系统标志位为1时,表示第二套操作系统为当前操作系统。在两套操作系统设置于两个不同的ROM中的情况下,上述当前操作系统标志位也可以称为当前ROM标志位。Specifically, in this embodiment, the current operating system flag bit can be set in the wireless routing device. For example, when the current operating system flag is 0, the first operating system is the current operating system, and the current operating system flag is 1. Indicates that the second operating system is the current operating system. In the case where the two sets of operating systems are disposed in two different ROMs, the current operating system flag bit may also be referred to as the current ROM flag bit.
无线路由设备在加电冷启动或者热启动等情况下,无线路由设备中的引导程序会执行引导操作系统启动在内的多项操作,本实施例可以由无线路由设备中的引导程序来执行读取当前操作系统标识的操作。In the case of a wireless routing device, such as a cold start or a hot start, the boot program in the wireless routing device performs multiple operations including booting the operating system. This embodiment can be read by the boot program in the wireless routing device. Take the operation of the current operating system ID.
S110、根据当前操作系统标识引导无线路由设备中相应的操作系统启动。S110. Boot the corresponding operating system in the wireless routing device according to the current operating system identifier.
具体的,本实施例在读取当前操作系统标识后,可以根据当前操作系统标识识别出相应的操作系统,并引导该相应的操作系统启动。本实施例可以由无线路由设备中的引导程序来识别相应的操作系统,并引导相应的操作系统启动。Specifically, after reading the current operating system identifier, the embodiment may identify the corresponding operating system according to the current operating system identifier, and boot the corresponding operating system to start. In this embodiment, the corresponding operating system can be identified by the boot program in the wireless routing device, and the corresponding operating system is booted.
本实施例的无线路由设备中还存储有当前操作系统启动状态信息,该信息可以用于表示当前操作系统是否启动成功,如当前操作系统启动状态信息可以为当前操作系统是否成功启动标志位;该信息也可以用于表示当前操作系统启动失败的次数,如当前操作系统启动状态信息可以为当前操作系统启动失败计数器。The current routing state information of the current operating system is also stored in the wireless routing device of the embodiment. The information may be used to indicate whether the current operating system is successfully started. For example, the current operating system startup state information may be whether the current operating system successfully starts the flag bit; The information can also be used to indicate the number of times the current operating system fails to start. For example, the current operating system startup status information can be the current operating system startup failure counter.
在当前操作系统启动状态信息为当前操作系统是否成功启动标志位的情 况下,在识别当前操作系统标识并引导相应的操作系统启动过程中,可以将当前操作系统是否成功启动标志位的取值设置为表示启动失败的取值(如1);例如,在识别出当前操作系统标识为第一套操作系统标识并引导第一套操作系统启动过程中,将当前操作系统是否成功启动标志位的取值设置为1(表示当前操作系统启动失败)。The current operating system startup status information is whether the current operating system successfully starts the flag. In the case that the current operating system identifier is recognized and the corresponding operating system is booted, the value of the current operating system success start flag may be set to a value indicating that the startup failed (eg, 1); for example, When the current operating system identifier is the first operating system identifier and the first operating system is booted, the value of the current operating system startup flag is set to 1 (indicating that the current operating system fails to start).
在当前操作系统启动状态信息为当前操作系统启动失败计数器的情况下,在识别当前操作系统标识并引导相应的操作系统启动过程中,可以将当前操作系统启动失败计数器的当前计数值修改为当前计数值与预定步长之和;例如,在识别出当前操作系统标识为第一套操作系统标识并引导第一套操作系统启动过程中,将当前操作系统启动失败计数器的当前计数值加1。In the case that the current operating system startup status information is the current operating system startup failure counter, during the process of identifying the current operating system identifier and booting the corresponding operating system, the current count value of the current operating system startup failure counter may be modified to the current count. The sum of the value and the predetermined step size; for example, the current count value of the current operating system startup failure counter is incremented by one during the process of identifying that the current operating system identifier is the first set of operating system identifiers and booting the first set of operating systems.
本实施例可以由无线路由设备中的引导程序来执行上述当前操作系统启动状态信息的设置操作。In this embodiment, the setting operation of the current operating system startup state information may be performed by a booting program in the wireless routing device.
S120、检测当前启动的操作系统的状态。S120. Detect the status of the currently started operating system.
具体的,检测当前启动的操作系统的状态可以为检测当前启动的操作系统的启动结果,也可以为检测当前启动的操作系统的工作状态。Specifically, detecting the status of the currently started operating system may be detecting a startup result of the currently started operating system, or detecting an operating state of the currently started operating system.
无线路由设备中当前启动的操作系统有可能会由于操作系统的文件被破坏等原因而致使其启动失败。The operating system currently started in the wireless routing device may fail to start due to the destruction of the operating system file.
本实施例可以通过多种方式来检测当前启动的操作系统的状态;一个具体的例子,本实施例中的操作系统在开始启动时,运行状态计时器开始计时,在操作系统启动成功后,会定时将运行状态计时器的计时值归零,从而在操作系统启动失败的情况下,上述运行状态计时器一直不会被归零;这样,通过读取运行状态计时器的计时值可以判断出当前启动的操作系统的启动结果是启动成功,还是启动失败;另一个具体的例子,本实施例中的操作系统在启动成功后,会将上述当前操作系统是否成功启动标志位的取值设置为表示启动成功的取值(如0),从而在操作系统启动失败的情况下,上述当前操作系统是否成功启动标志位的取值不会被改变,而仍然会维持在表示启动失败的取值(如1);这样,通过在操作系统开始启动且间隔预定时间间隔后读取当前操作系统是否成功启动标志位的取值就可以判断出当前启动的操作系统的启动结果是启动成功,还是启动失败。再一个具体的例子,本实施例中的操作系统在启动成功后,会将上述当前操作系统启动失败计数器的当前计数值修改为初始计数值(如0),从而在操作系统启动失败的情况下,上述当前操作系统启动失败计数器的当前计数值(如1或者2等)不会被修改为初始计数值(如0);这样,通过在操作系统启动且间隔预定时间间隔后读取当前操作系统启动失败计数器的当前计数值就可以判断出当前启动的操作系统的启动结果是启动成功,还 是启动失败。In this embodiment, the status of the currently started operating system can be detected in a plurality of manners. In a specific example, when the operating system in this embodiment starts to start, the running status timer starts to count, and after the operating system is successfully started, The timing value of the running status timer is periodically reset to zero, so that the running status timer is not reset to zero in the case that the operating system fails to be started; thus, by reading the running time timer, the current value can be determined. The startup result of the startup operating system is the startup success or the startup failure. In another specific example, after the startup of the operating system in this embodiment succeeds, the value of the current operating system success startup flag is set to The value of the successful startup (such as 0), so that the operating system fails to start, the value of the current operating system successfully started flag will not be changed, but will still maintain the value indicating the startup failure (such as 1); this way, by reading the current operating system after the operating system starts to start and after a predetermined time interval No successful start flag values can determine the current boot is the result of the operating system is started successfully, or failed to start. In another specific example, after the startup of the operating system in this embodiment is successful, the current count value of the current operating system startup failure counter is changed to an initial count value (such as 0), so that the operating system fails to start. The current count value (such as 1 or 2) of the current operating system startup failure counter is not modified to the initial count value (such as 0); thus, the current operating system is read after the operating system is started and after a predetermined time interval. The current count value of the startup failure counter can be used to determine that the startup result of the currently started operating system is successful. It is a startup failure.
当然,本实施例还可以采用其他方式来检测当前启动的操作系统的启动结果,在此不再一一例举说明。Of course, this embodiment may also use other methods to detect the startup result of the currently started operating system, which will not be described here.
S130、在检测出当前启动的操作系统处于故障状态的情况下,将无线路由设备中存储的当前操作系统标识修改为除当前启动的操作系统之外的另一套操作系统标识,并返回到上述S100中的读取无线路由设备中存储的当前操作系统标识的步骤。S130. When detecting that the currently started operating system is in a fault state, modify the current operating system identifier stored in the wireless routing device to another operating system identifier other than the currently started operating system, and return to the foregoing. The step of reading the current operating system identifier stored in the wireless routing device in S100.
具体的,在本实施例中,检测出当前启动的操作系统处于故障状态可以为当前启动的操作系统没没有成功启动,也可以为操作系统在成功启动后没有正常运行。本实施例检测出当前启动的操作系统没有成功启动可以存在如下两种不同的情况:Specifically, in this embodiment, it is detected that the currently started operating system is in a fault state, and the currently started operating system may not be successfully started, or may be not operated normally after the operating system is successfully started. In this embodiment, it is detected that the currently started operating system is not successfully started, and the following two different situations may exist:
情况一、在检测出当前启动的操作系统本次没有成功启动的情况下即可以认为当前启动的操作系统没有成功启动;例如,在运行状态计时器的计时值达到预定计时值时产生触发信号,在接收到该触发信号时确定当前启动的操作系统没有成功启动;再例如,在操作系统开启启动且间隔预定时间间隔后读取到的当前操作系统是否成功启动标志位的取值表示启动失败,则确定当前启动的操作系统没有成功启动。Case 1: In the case that it is detected that the currently started operating system has not been successfully started this time, the currently started operating system may not be successfully started; for example, a trigger signal is generated when the running timer of the running state timer reaches a predetermined timing value. When the trigger signal is received, it is determined that the currently started operating system has not been successfully started; for example, the value of the current operating system successfully started flag flag read after the operating system is started and after a predetermined time interval indicates that the startup fails. Then it is determined that the currently started operating system has not been successfully started.
情况二、在检测出当前启动的操作系统连续预定次数(通常为多次,当然,也可以为一次)没有成功启动的情况下才可以认为当前启动的操作系统没有成功启动;例如,在操作系统启动且间隔预定时间间隔后读取到的当前操作系统启动失败计数器的当前计数值达到预定次数,则确定当前启动的操作系统没有成功启动。Case 2: When the currently started operating system is detected for a predetermined number of times (usually multiple times, of course, once), the currently started operating system may not be successfully started; for example, in the operating system. After the current count value of the current operating system startup failure counter read after being started and separated by a predetermined time interval reaches a predetermined number of times, it is determined that the currently started operating system has not been successfully started.
无论是采用上述情况一,还是采用上述情况二,一旦确定出当前启动的操作系统没有成功启动,则均应将无线路由设备中存储的当前操作系统标识修改为除当前启动的操作系统之外的另一套操作系统标识,并返回到上述S100中的读取无线路由设备中存储的当前操作系统标识的步骤(如通过触发无线路由设备热启动,而使引导程序运行,并由引导程序引导相应的操作系统启动),以便于可以引导另一套操作系统启动,这样,可以避免当前操作系统被损坏而导致无线路由设备无法正常工作的问题。Regardless of the above case 1, or the above case 2, once it is determined that the currently started operating system has not been successfully started, the current operating system identifier stored in the wireless routing device should be modified to be other than the currently started operating system. Another set of operating system identifiers, and returning to the step of reading the current operating system identifier stored in the wireless routing device in the above S100 (for example, by triggering the wireless routing device to be warm-started, the boot program is run, and the bootstrap program guides the corresponding The operating system is booted so that another set of operating systems can be booted, thus avoiding the problem that the current operating system is damaged and the wireless routing device is not working properly.
本实施例在确定出当前启动的操作系统没有成功启动而引导另一套操作系统启动的情况下,可以将当前操作系统启动失败计数器的当前计数值设置为初始计数值。In this embodiment, when it is determined that the currently started operating system does not successfully start and another set of operating systems is booted, the current count value of the current operating system startup failure counter may be set to an initial count value.
另外,在确定出当前启动的操作系统没有成功启动的情况下(如当前操作系统是否成功启动标志位的取值表示启动失败,再如当前操作系统启动失败计 数器的当前计数值超过预定计数值等),本实施例还可以在无线路由设备中存储非当前启动的操作系统没有成功启动的信息(即另一套操作系统没有成功启动的信息);一个具体的例子,无线路由设备中设置有另一套操作系统是否成功启动标志位,在确定出当前启动的操作系统没有成功启动的情况下,本实施例会将另一套操作系统是否成功启动标志位的取值设置为没有成功启动的取值(如设置为1),在确定出当前启动的操作系统成功启动的情况下,本实施例会将另一套操作系统是否成功启动标志位的取值设置为成功启动的取值(如设置为0)。In addition, in the case that it is determined that the currently started operating system has not been successfully started (for example, if the current operating system successfully starts the flag, the value indicates that the startup fails, and then the current operating system fails to start. The current count value of the counter exceeds a predetermined count value, etc.), in this embodiment, the information that the non-currently started operating system is not successfully started may be stored in the wireless routing device (ie, information that another set of operating systems has not been successfully started); For a specific example, if another operating system is successfully set in the wireless routing device, if the operating system that is currently started is not successfully started, this embodiment will successfully start the flag of another operating system. The value is set to the value that is not successfully started (if set to 1). In the case that it is determined that the currently started operating system is successfully started, this embodiment will set the value of another set of operating system successfully started. The value to be successfully started (if set to 0).
在本实施例中,如果检查出当前操作系统虽然本次启动失败,但是,当前操作系统启动失败计数器的当前计数值并没有达到预定次数,则可以先不修改无线路由设备中存储的当前操作系统标识,也不将另一套操作系统是否成功启动标志位的取值设置为没有成功启动的取值,而是直接返回到上述S100中读取无线路由设备中存储的当前操作系统标识的步骤,以便于可以尝试引导当前操作系统再次启动,这样,可以排除当前操作系统并没有真正被损坏,而可能是由于某些因素(如外界因素)暂时导致当前操作系统没有成功启动的现象。In this embodiment, if it is checked that the current operating system fails to start, but the current count value of the current operating system startup failure counter does not reach the predetermined number of times, the current operating system stored in the wireless routing device may not be modified first. The identifier does not set the value of the successful startup flag of another operating system to a value that is not successfully started, but directly returns to the step of reading the current operating system identifier stored in the wireless routing device in the above S100. In order to try to boot the current operating system to start again, this can rule out that the current operating system is not really damaged, but may be due to some factors (such as external factors) temporarily causing the current operating system to not start successfully.
在检测出当前启动的操作系统成功启动的情况下,本实施例可以读取无线路由设备中存储的非当前启动的操作系统没有成功启动的信息,并根据取得的信息对没有成功启动的非当前启动的操作系统(即没有成功启动的操作系统)执行修复操作。In the case that the currently started operating system is successfully started, the embodiment can read the information that the non-currently started operating system stored in the wireless routing device is not successfully started, and according to the obtained information, the non-current is not successfully started. The booted operating system (that is, the operating system that did not boot successfully) performs the repair operation.
上述修复操作可以具体为:对当前成功启动的操作系统进行复制,并利用复制的操作系统的文件覆盖没有成功启动的操作系统的文件;例如,将一个ROM中的操作系统的文件复制到无线路由设备的另一个ROM中。The above repair operation may be specifically: copying the currently successfully started operating system, and overwriting the file of the operating system that has not been successfully started by using the copied operating system file; for example, copying the file of the operating system in a ROM to the wireless routing Another ROM of the device.
上述修复操作也可以具体为:利用网络下载无线路由设备的操作系统(如利用无线路由设备中预先存储的服务器地址向服务器发送无线路由设备的操作系统下载请求,且该下载请求中可以携带无线路由设备的具体型号和/或者操作系统的版本信息等),然后,利用下载获得的操作系统的文件覆盖没有成功启动的操作系统的文件,例如,将下载获得的操作系统的文件存储在无线路由设备的另一个ROM中。The foregoing repair operation may also be specifically: downloading an operating system of the wireless routing device by using a network (for example, using an address of a server pre-stored in the wireless routing device to send an operating system download request of the wireless routing device to the server, and the download request may carry a wireless route The specific model of the device and/or the version information of the operating system, etc., and then use the downloaded operating system file to overwrite the file of the operating system that has not been successfully started, for example, storing the downloaded operating system file in the wireless routing device. Another ROM.
实施例二、无线路由设备管理方法。下面结合图2对本实施例的方法进行详细说明。Embodiment 2: A method for managing a wireless routing device. The method of this embodiment will be described in detail below with reference to FIG.
S200、无线路由设备在加电冷启动或者热启动后,引导程序读取无线路由设备中存储的当前操作系统标志位。在本实施例中,设定当前操作系统标志位为0表示ROM1中的操作系统,当前操作系统标志位为1表示ROM2中的操作系统。After the S200 and the wireless routing device are powered on or cold-started, the boot program reads the current operating system flag stored in the wireless routing device. In this embodiment, setting the current operating system flag bit to 0 indicates the operating system in the ROM 1, and the current operating system flag bit is 1 indicating the operating system in the ROM 2.
S210、引导程序根据当前操作系统标志位的取值引导ROM1中的操作系统系 统启动或者引导ROM2中的操作系统启动;同时,引导程序将无线路由设备中的计数器的当前计数值设置为当前计数值加1。该计数器即上述实施例一中的当前操作系统启动失败计数器。引导程序在引导ROM1中的操作系统系统启动或者引导ROM2中的操作系统启动后退出。S210. The boot program boots the operating system in the ROM1 according to the value of the current operating system flag bit. The system starts or boots the operating system in ROM2 to start; at the same time, the boot program sets the current count value of the counter in the wireless routing device to the current count value plus one. The counter is the current operating system startup failure counter in the first embodiment. The boot program exits after the operating system system in boot ROM 1 is booted or the operating system in boot ROM 2 is booted.
S220、ROM1或者ROM2中的操作系统在引导程序的引导下启动,且ROM1或者ROM2中的操作系统在其成功启动后,会将上述计数器的当前计数值设置为初始计数值(如0)。The operating system in S220, ROM1 or ROM2 is booted under the booting of the boot program, and the operating system in ROM1 or ROM2 sets the current count value of the counter to the initial count value (e.g., 0) after its successful startup.
S230、在引导程序引导ROM1或者ROM2中的操作系统开始启动且间隔预定时间段之后,读取无线路由设备中的计数器的当前计数值。S230. Read the current count value of the counter in the wireless routing device after the operating system in the boot program boot ROM 1 or the ROM 2 starts to start and after a predetermined period of time.
S240、判断计数器的当前计数值是否为初始计数值,并判断当前计数值是否超过预定次数,如果计数器的当前计数值不是初始计数值且超过预定次数,则到步骤S250;如果计数器的当前计数值不是初始计数值且没有超过预定次数,则直接到步骤S200;如果计数器的当前计数值为初始计数值,则到步骤S260。S240. Determine whether the current count value of the counter is an initial count value, and determine whether the current count value exceeds a predetermined number of times. If the current count value of the counter is not the initial count value and exceeds the predetermined number of times, then go to step S250; if the current count value of the counter If it is not the initial count value and does not exceed the predetermined number of times, it goes directly to step S200; if the current count value of the counter is the initial count value, it goes to step S260.
S250、将无线路由设备中存储的当前操作系统标志位的取值由0修改为1或者由1修改为0,并将无线路由设备中设置的另一套操作系统是否成功启动标志位的当前取值设置为表示没有成功启动的取值(如将当前取值设置为1),同时,将上述计数器的当前计数值设置为初始计数值,然后,通过触发无线路由设备的热启动操作而返回到步骤S200。S250. Change the value of the current operating system flag stored in the wireless routing device from 0 to 1 or from 1 to 0, and set whether the other operating system set in the wireless routing device successfully starts the flag. The value is set to indicate that the value has not been successfully started (such as setting the current value to 1), and at the same time, the current counter value of the above counter is set to the initial count value, and then, by triggering the hot start operation of the wireless routing device, returning to Step S200.
S260、本步骤表示当前启动的操作系统已经成功启动,无线路由设备可以正常工作;成功启动的操作系统读取无线路由设备中存储的非当前启动的操作系统没有成功启动的信息,并根据该信息对没有成功启动的非当前启动的操作系统(即前次没有成功启动的操作系统)进行修复,具体的修改操作如上述实施例一中的描述,在此不再详细说明。S260. This step indicates that the currently started operating system has been successfully started, and the wireless routing device can work normally; the successfully started operating system reads the information that the non-currently started operating system stored in the wireless routing device is not successfully started, and according to the information. For a non-currently-initiated operating system that has not been successfully started, that is, an operating system that has not been successfully started, the specific modification operation is as described in the first embodiment, and will not be described in detail herein.
在修复完成后,本实施例(如成功启动的操作系统)应对非当前启动的操作系统没有成功启动的信息进行重新设置,如将另一套操作系统是否成功启动标志位的当前取值设置为表示成功启动的取值(如设置为0)。After the repair is completed, the embodiment (such as a successfully started operating system) should re-set the information that the non-currently started operating system does not successfully start, such as setting the current value of the successful startup flag of another operating system to Indicates the value of a successful start (if set to 0).
实施例三、无线路由设备管理方法。下面结合图3对本实施例的方法进行详细说明。Embodiment 3: A method for managing a wireless routing device. The method of this embodiment will be described in detail below with reference to FIG. 3.
S300、无线路由设备在加电冷启动或者热启动后,引导程序读取无线路由设备中存储的当前操作系统标志位。在本实施例中,设定当前操作系统标志位为0表示ROM1中的操作系统,当前操作系统标志位为1表示ROM2中的操作系统。After the S300 and the wireless routing device are powered on or cold-started, the boot program reads the current operating system flag stored in the wireless routing device. In this embodiment, setting the current operating system flag bit to 0 indicates the operating system in the ROM 1, and the current operating system flag bit is 1 indicating the operating system in the ROM 2.
S310、引导程序根据当前操作系统标志位的取值引导ROM1中的操作系统系统启动或者引导ROM2中的操作系统启动;同时,引导程序将无线路由设备中的 计数器的当前计数值设置为当前计数值加1,且操作系统的运行状态计时器开始计时。上述计数器即上述实施例一中的当前操作系统启动失败计数器。上述计时器主要用于监测操作系统是否成功启动以及成功启动的操作系统是否出现死锁状态等。引导程序在引导ROM1中的操作系统系统启动或者引导ROM2中的操作系统启动后退出。S310. The boot program boots the operating system in the ROM1 to boot or boot the operating system in the ROM2 according to the value of the current operating system flag. Meanwhile, the boot program will be in the wireless routing device. The current count value of the counter is set to the current count value plus one, and the operating state timer of the operating system starts timing. The above counter is the current operating system startup failure counter in the first embodiment. The above timer is mainly used to monitor whether the operating system is successfully started and whether the operating system that is successfully started has a deadlock status. The boot program exits after the operating system system in boot ROM 1 is booted or the operating system in boot ROM 2 is booted.
S320、ROM1或者ROM2中的操作系统在引导程序的引导下启动,且ROM1或者ROM2中的操作系统在其成功启动后,会将上述计数器的当前计数值设置为初始计数值(如0),并会定时将上述运行状态计时器的计时值归零;该运行状态计时器的计时值在达到预定计时值时会产生触发无线路由设备热启动的触发信号。The operating system in S320, ROM1 or ROM2 is booted under the booting of the boot program, and the operating system in ROM1 or ROM2 sets the current counter value of the counter to the initial count value (such as 0) after its successful startup, and The timing value of the above running state timer is periodically reset to zero; when the timing value of the running state timer reaches a predetermined timing value, a trigger signal for triggering the hot start of the wireless routing device is generated.
S330、判断是否接收到触发无线路由设备热启动的触发信号,如果接收到触发信号,则到步骤S340,否则持续等待该触发信号。S330. Determine whether a trigger signal for triggering the hot start of the wireless routing device is received. If the trigger signal is received, go to step S340, otherwise continue to wait for the trigger signal.
S340、判断计数器的当前计数值是否为初始计数值,并判断当前计数值是否超过预定次数,如果计数器的当前计数值不是初始计数值且超过预定次数,则到步骤S350;如果计数器的当前计数值不是初始计数值且没有超过预定次数,则直接到步骤S300;如果计数器的当前计数值为初始计数值,则到步骤S360。S340. Determine whether the current count value of the counter is an initial count value, and determine whether the current count value exceeds a predetermined number of times. If the current count value of the counter is not the initial count value and exceeds the predetermined number of times, then go to step S350; if the current count value of the counter If it is not the initial count value and does not exceed the predetermined number of times, it goes directly to step S300; if the current count value of the counter is the initial count value, it proceeds to step S360.
S350、将无线路由设备中存储的当前操作系统标志位的取值由0修改为1或者由1修改为0,并将无线路由设备中设置的另一套操作系统是否成功启动标志位的当前取值设置为表示没有成功启动的取值(如将当前取值设置为1),同时,将上述计数器的当前计数值设置为初始计数值,然后,通过触发无线路由设备的热启动操作而返回到步骤S300。S350. Change the value of the current operating system flag stored in the wireless routing device from 0 to 1 or from 1 to 0, and set whether the other operating system set in the wireless routing device successfully starts the flag. The value is set to indicate that the value has not been successfully started (such as setting the current value to 1), and at the same time, the current counter value of the above counter is set to the initial count value, and then, by triggering the hot start operation of the wireless routing device, returning to Step S300.
S360、本步骤表示当前启动的操作系统已经成功启动并处于正常运行状态,即无线路由设备处于正常工作状态;成功启动的操作系统读取无线路由设备中存储的非当前启动的操作系统没有成功启动的信息,并根据该信息对没有成功启动的非当前启动的操作系统(即前次没有成功启动的操作系统)进行修复,具体的修改操作如上述实施例一中的描述,在此不再详细说明。S360, this step indicates that the currently started operating system has been successfully started and is in a normal running state, that is, the wireless routing device is in a normal working state; the successfully started operating system reads that the non-currently started operating system stored in the wireless routing device does not successfully start. According to the information, the non-currently-initiated operating system (that is, the operating system that has not been successfully started) is not successfully started. The specific modification operation is as described in the first embodiment, and is not detailed here. Description.
在修复完成后,本实施例(如成功启动的操作系统)应对非当前启动的操作系统没有成功启动的信息进行重新设置,如将另一套操作系统是否成功启动标志位的当前取值设置为表示成功启动的取值(如设置为0)。After the repair is completed, the embodiment (such as a successfully started operating system) should re-set the information that the non-currently started operating system does not successfully start, such as setting the current value of the successful startup flag of another operating system to Indicates the value of a successful start (if set to 0).
实施例四、无线路由设备管理装置。该装置设置于无线路由设备中,且该无线路由设备中设置有两套操作系统。Embodiment 4: A wireless routing device management apparatus. The device is disposed in a wireless routing device, and two sets of operating systems are disposed in the wireless routing device.
下面结合图4对本实施例的装置进行详细说明。The apparatus of this embodiment will be described in detail below with reference to FIG.
图4中示出的装置主要包括:读取模块400、引导模块410、检测模块420、 修改处理模块430以及修复模块440。The device shown in FIG. 4 mainly includes: a reading module 400, a guiding module 410, a detecting module 420, The processing module 430 and the repair module 440 are modified.
读取模块400与引导模块410连接。读取模块400主要适于在无线路由设备的启动过程中,读取无线路由设备中存储的当前操作系统标识。The reading module 400 is coupled to the boot module 410. The reading module 400 is primarily adapted to read the current operating system identification stored in the wireless routing device during startup of the wireless routing device.
具体的,本实施例的无线路由设备中可以设置当前操作系统标志位,例如,当前操作系统标志位为0时,表示第一套操作系统为当前操作系统,当前操作系统标志位为1时,表示第二套操作系统为当前操作系统。在两套操作系统设置于两个不同的ROM中的情况下,上述当前操作系统标志位也可以称为当前ROM标志位。Specifically, the current operating system flag bit can be set in the wireless routing device of the embodiment. For example, when the current operating system flag is 0, the first operating system is the current operating system, and the current operating system flag is 1, Indicates that the second operating system is the current operating system. In the case where the two sets of operating systems are disposed in two different ROMs, the current operating system flag bit may also be referred to as the current ROM flag bit.
在无线路由设备加电冷启动或者热启动等情况下,无线路由设备中的引导程序会执行引导操作系统启动在内的多项操作,本实施例的读取模块400可以设置于引导程序中,即引导程序在被启动运行时,读取模块400读取当前操作系统标识的操作。In the case that the wireless routing device is powered on or the like, the booting program in the wireless routing device performs a plurality of operations, such as booting the operating system, and the reading module 400 of the embodiment can be set in the booting program. That is, when the boot program is started up, the read module 400 reads the operation of the current operating system identifier.
引导模块410除了与读取模块400连接之外还与检测模块420连接。引导模块410主要适于根据当前操作系统标识引导无线路由设备中相应的操作系统启动。The boot module 410 is connected to the detection module 420 in addition to the read module 400. The boot module 410 is primarily adapted to boot a corresponding operating system in the wireless routing device based on the current operating system identification.
具体的,在读取模块400读取当前操作系统标识后,引导模块410可以根据当前操作系统标识识别出相应的操作系统,并引导该相应的操作系统启动。本实施例中的引导模块410可以设置于无线路由设备的引导程序中。Specifically, after the reading module 400 reads the current operating system identifier, the guiding module 410 can identify the corresponding operating system according to the current operating system identifier, and boot the corresponding operating system to start. The guiding module 410 in this embodiment may be disposed in a booting program of the wireless routing device.
本实施例的无线路由设备中还存储有当前操作系统启动状态信息,该信息可以用于表示当前操作系统是否启动成功,如当前操作系统启动状态信息可以为当前操作系统是否成功启动标志位;该信息也可以用于表示当前操作系统启动失败的次数,如当前操作系统启动状态信息可以为当前操作系统启动失败计数器。The current routing state information of the current operating system is also stored in the wireless routing device of the embodiment. The information may be used to indicate whether the current operating system is successfully started. For example, the current operating system startup state information may be whether the current operating system successfully starts the flag bit; The information can also be used to indicate the number of times the current operating system fails to start. For example, the current operating system startup status information can be the current operating system startup failure counter.
在当前操作系统启动状态信息为当前操作系统是否成功启动标志位的情况下,在引导模块410识别当前操作系统标识并引导相应的操作系统启动过程中,可以将当前操作系统是否成功启动标志位的取值设置为表示启动失败的取值(如1);如在引导模块410识别出当前操作系统标识为第一套操作系统标识并引导第一套操作系统启动过程中,将当前操作系统是否成功启动标志位的取值设置为1(表示当前操作系统启动失败)。In the case that the current operating system startup state information is that the current operating system successfully starts the flag bit, in the process that the boot module 410 identifies the current operating system identifier and boots the corresponding operating system, the current operating system may successfully start the flag bit. The value is set to indicate the value of the startup failure (such as 1); if the boot module 410 recognizes that the current operating system identifier is the first operating system identifier and boots the first operating system, the current operating system is successful. The value of the startup flag is set to 1 (indicating that the current operating system failed to start).
在当前操作系统启动状态信息为当前操作系统启动失败计数器的情况下,在引导模块410识别当前操作系统标识并引导相应的操作系统启动过程中,可以将当前操作系统启动失败计数器的当前计数值修改为当前计数值与预定步长之和;例如,在识别当前操作系统标识并识别出当前操作系统标识为第一套操作系统标识并引导第一套操作系统启动过程中,将当前操作系统启动失败计 数器的当前计数值加1。In the case that the current operating system startup status information is the current operating system startup failure counter, the current count value of the current operating system startup failure counter may be modified during the boot module 410 identifying the current operating system identifier and booting the corresponding operating system startup process. The sum of the current count value and the predetermined step size; for example, the current operating system fails to be started during the process of identifying the current operating system identifier and identifying that the current operating system identifier is the first set of operating system identifiers and booting the first set of operating systems. Count The current count value of the counter is incremented by one.
检测模块420除了与引导模块410连接之外,还与修改处理模块430连接。检测模块420主要适于检测当前启动的操作系统的状态。The detection module 420 is connected to the modification processing module 430 in addition to the boot module 410. The detection module 420 is primarily adapted to detect the status of the currently activated operating system.
具体的,检测模块420检测当前启动的操作系统的状态可以为检测模块420检测当前启动的操作系统的启动结果,也可以为检测模块420检测当前启动的操作系统的工作状态。检测模块420可以通过多种方式来检测当前启动的操作系统的启动结果;一个具体的例子,操作系统在开始启动时,运行状态计时器开始计时,在操作系统启动成功后,会定时将运行状态计时器的计时值归零,从而在操作系统启动失败的情况下,上述运行状态计时器一直不会被归零;这样,检测模块420通过读取运行状态计时器的计时值可以判断出当前启动的操作系统的启动结果是启动成功,还是启动失败;另一个具体的例子,操作系统在启动成功后,会将上述当前操作系统是否成功启动标志位的取值设置为表示启动成功的取值(如0),从而在操作系统启动失败的情况下,上述当前操作系统是否成功启动标志位的取值不会被改变,而仍然会维持在表示启动失败的取值(如1);这样,检测模块420通过在操作系统开始启动且间隔预定时间间隔后读取当前操作系统是否成功启动标志位的取值就可以判断出当前启动的操作系统的启动结果是启动成功,还是启动失败。再一个具体的例子,操作系统在启动成功后,会将上述当前操作系统启动失败计数器的当前计数值修改为初始计数值(如0),从而在操作系统启动失败的情况下,上述当前操作系统启动失败计数器的当前计数值(如1或者2等)不会被修改为初始计数值(如0);这样,检测模块420通过在操作系统启动且间隔预定时间间隔后读取当前操作系统启动失败计数器的当前计数值就可以判断出当前启动的操作系统的启动结果是启动成功,还是启动失败。Specifically, the detecting module 420 detects that the state of the currently started operating system may be that the detecting module 420 detects the startup result of the currently started operating system, or that the detecting module 420 detects the working state of the currently started operating system. The detecting module 420 can detect the startup result of the currently started operating system in various manners; a specific example, when the operating system starts to start, the running state timer starts counting, and after the operating system starts successfully, the operating state is periodically started. The timer value of the timer is reset to zero, so that in the case that the operating system fails to start, the above running state timer is not reset to zero; thus, the detecting module 420 can determine the current starting by reading the running value of the running state timer. The result of the startup of the operating system is whether the startup is successful or the startup fails. In another specific example, after the startup is successful, the value of the successful startup flag of the current operating system is set to a value indicating that the startup is successful ( If 0), in the case that the operating system fails to start, the value of whether the current operating system successfully starts the flag bit will not be changed, but will still maintain the value indicating the startup failure (such as 1); Module 420 reads the current operating system after the operating system begins to boot and after a predetermined time interval Successful start flag values can determine the result of initiating the current operating system to start is to start successfully, or failed to start. In another specific example, after the startup is successful, the current count value of the current operating system startup failure counter is modified to an initial count value (such as 0), so that the operating system fails when the operating system fails to start. The current count value of the startup failure counter (such as 1 or 2, etc.) will not be modified to the initial count value (such as 0); thus, the detection module 420 fails to read the current operating system startup after the operating system is started and after a predetermined time interval. The current count value of the counter can determine whether the startup result of the currently started operating system is successful or failed.
当然,检测模块420还可以采用其他方式来检测当前启动的操作系统的启动结果,在此不再一一例举说明。Of course, the detection module 420 can also use other methods to detect the startup result of the currently started operating system, which will not be described here.
修改处理模块430除了与检测模块420连接之外,还与读取模块400连接。修改处理模块430主要适于在检测出当前启动的操作系统没有成功启动的情况下,将无线路由设备中存储的当前操作系统标识修改为除当前启动的操作系统之外的另一套操作系统标识,并触发读取模块400再次读取无线路由设备中存储的当前操作系统标识。The modification processing module 430 is connected to the reading module 400 in addition to the detection module 420. The modification processing module 430 is mainly configured to modify the current operating system identifier stored in the wireless routing device to another operating system identifier other than the currently started operating system, if it is detected that the currently started operating system is not successfully started. And triggering the reading module 400 to read the current operating system identity stored in the wireless routing device again.
具体的,在本实施例中,检测出当前启动的操作系统没有成功启动可以存在两种不同的情况,具体如上述方法实施例中的描述。Specifically, in this embodiment, it may be found that there are two different situations in which the currently started operating system is not successfully started, as described in the foregoing method embodiment.
本实施例一旦确定出当前启动的操作系统处于故障状态(如没有成功启动或者成功启动后没有正常运行等),则修改处理模块430均应将无线路由设备 中存储的当前操作系统标识修改为除当前启动的操作系统之外的另一套操作系统标识,并触发读取模块400读取无线路由设备中存储的当前操作系统标识,以便于引导模块410可以引导另一套操作系统启动,这样,可以避免当前操作系统被损坏而导致无线路由设备无法正常工作的问题。In this embodiment, once it is determined that the currently started operating system is in a fault state (if there is no successful startup or successful startup, the normal operation, etc.), the modification processing module 430 should all use the wireless routing device. The current operating system identifier stored in the medium is modified to another operating system identifier in addition to the currently started operating system, and the reading module 400 is triggered to read the current operating system identifier stored in the wireless routing device, so that the booting module 410 can Boot another set of operating systems to start, so as to avoid the problem that the current operating system is damaged and the wireless routing device is not working properly.
在确定出当前启动的操作系统没有成功启动而引导另一套操作系统启动的情况下,修改处理模块430可以将当前操作系统启动失败计数器的当前计数值设置为初始计数值。In a case where it is determined that the currently started operating system has not successfully started to boot another set of operating systems, the modification processing module 430 may set the current count value of the current operating system startup failure counter to the initial count value.
另外,在确定出当前启动的操作系统没有成功启动的情况下(如当前操作系统是否成功启动标志位的取值表示启动失败,再如当前操作系统启动失败计数器的当前计数值超过预定计数值等),修改处理模块430还可以在无线路由设备中存储非当前启动的操作系统没有成功启动的信息(即另一套操作系统没有成功启动的信息);一个具体的例子,无线路由设备中设置有另一套操作系统是否成功启动标志位,在确定出当前启动的操作系统没有成功启动的情况下,修改处理模块430会将另一套操作系统是否成功启动标志位的取值设置为没有成功启动的取值(如设置为1),在确定出当前启动的操作系统成功启动的情况下,修改处理模块430会将另一套操作系统是否成功启动标志位的取值设置为成功启动的取值(如设置为0)。In addition, in the case that it is determined that the currently started operating system has not been successfully started (for example, if the current operating system successfully starts the flag, the value indicates that the startup fails, and if the current operating system startup failure counter current count value exceeds the predetermined count value, etc. The modification processing module 430 can also store, in the wireless routing device, information that the non-currently started operating system is not successfully started (that is, information that another operating system does not successfully start); a specific example, the wireless routing device is provided with If another operating system successfully starts the flag, in the case that it is determined that the currently started operating system has not been successfully started, the modification processing module 430 sets the value of the successful startup flag of the other operating system to not successfully started. The value of the setting (if set to 1), in the case that it is determined that the currently started operating system is successfully started, the modification processing module 430 sets the value of the successful startup flag of another operating system to the value of the successful startup. (if set to 0).
在本实施例中,如果检查出当前操作系统虽然本次启动失败,但是,当前操作系统启动失败计数器的当前计数值并没有达到预定次数,则修改处理模块430可以先不修改无线路由设备中存储的当前操作系统标识,也不将另一套操作系统是否成功启动标志位的取值设置为没有成功启动的取值,而是直接触发读取模块400读取无线路由设备中存储的当前操作系统标识,以便于引导模块410可以尝试引导当前操作系统再次启动,这样,可以排除当前操作系统并没有真正被损坏,而可能是由于某些因素(如外界因素)暂时导致当前操作系统没有成功启动的现象。In this embodiment, if it is checked that the current operating system fails to start, but the current count value of the current operating system startup failure counter does not reach the predetermined number of times, the modification processing module 430 may not modify the storage in the wireless routing device first. The current operating system identifier does not set the value of the successful startup flag of another operating system to a value that is not successfully started, but directly triggers the reading module 400 to read the current operating system stored in the wireless routing device. Identification, so that the boot module 410 can try to boot the current operating system to start again, so that the current operating system can be excluded from being completely damaged, and may be caused by some factors (such as external factors) temporarily causing the current operating system to not be successfully started. phenomenon.
修复模块440主要适于在检测出当前启动的操作系统成功启动的情况下,根据无线路由设备中存储的非当前启动的操作系统没有成功启动的信息对没有成功启动的操作系统进行修复。The repair module 440 is mainly configured to repair the operating system that has not been successfully started according to the information that the non-currently started operating system stored in the wireless routing device is not successfully started, in the case that the currently started operating system is successfully started.
具体的,在检测出当前启动的操作系统成功启动的情况下,修复模块440可以读取无线路由设备中存储的非当前启动的操作系统没有成功启动的信息,并根据取得的信息对没有成功启动的非当前启动的操作系统(即没有成功启动的操作系统)执行修复操作。Specifically, in the case that the currently started operating system is successfully started, the repair module 440 can read the information that the non-currently started operating system stored in the wireless routing device is not successfully started, and does not successfully start according to the obtained information. The non-currently booted operating system (that is, the operating system that did not boot successfully) performs a repair operation.
上述修复操作可以具体为:修复模块440对当前成功启动的操作系统进行复制操作,并利用复制的操作系统的文件覆盖没有成功启动的操作系统的文 件;例如,将一个ROM中的操作系统的文件复制到无线路由设备的另一个ROM中。The foregoing repair operation may be specifically: the repair module 440 performs a copy operation on the currently successfully started operating system, and overwrites the file of the operating system that has not been successfully started by using the file of the copied operating system. For example, copy the file of the operating system in one ROM to another ROM of the wireless routing device.
上述修复操作也可以具体为:修复模块440利用网络下载无线路由设备的操作系统(如利用无线路由设备中预先存储的服务器地址向服务器发送无线路由设备的操作系统下载请求,且该下载请求中可以携带无线路由设备的具体型号和/或者操作系统的版本信息等),然后,修复模块440利用下载获得的操作系统的文件覆盖没有成功启动的操作系统的文件,例如,修复模块440将下载获得的操作系统的文件存储在无线路由设备的另一个ROM中。The repair operation may also be specifically: the repair module 440 uses the network to download the operating system of the wireless routing device (for example, using the server address pre-stored in the wireless routing device to send an operating system download request of the wireless routing device to the server, and the download request may be Carrying the specific model of the wireless routing device and/or the version information of the operating system, etc.), and then the repair module 440 overwrites the file of the operating system that has not been successfully started by using the file of the operating system obtained by the download, for example, the repair module 440 will download the obtained file. The files of the operating system are stored in another ROM of the wireless routing device.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general purpose systems can also be used with the teaching based on the teachings herein. The structure required to construct such a system is apparent from the above description. Moreover, the invention is not directed to any particular programming language. It is to be understood that the invention may be embodied in a variety of programming language, and the description of the specific language has been described above in order to disclose the preferred embodiments of the invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, the various features of the invention are sometimes grouped together into a single embodiment, in the above description of the exemplary embodiments of the invention, Figure, or a description of it. However, the method disclosed is not to be interpreted as reflecting the intention that the claimed invention requires more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects reside in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the embodiments, and each of the claims as a separate embodiment of the invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components. In addition to such features and/or at least some of the processes or units being mutually exclusive, any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined. Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它 实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Moreover, those skilled in the art will appreciate that although some embodiments described herein include other Some of the features are included in the embodiments, but not in other features, but combinations of features of the different embodiments are intended to be within the scope of the invention. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的无线路由设备管理装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(如计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of the wireless routing device management device in accordance with embodiments of the present invention. The invention can also be implemented as a device or device program (such as a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
例如,图5示出了可以实现本发明的无线路由设备管理方法的电子设备。该电子设备传统上包括处理器1210和以存储器1220形式的计算机程序产品或者计算机可读介质。存储器1220可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器1220具有用于执行上述方法中的任何方法步骤的程序代码1231的存储空间1230。例如,用于程序代码的存储空间1230可以包括分别用于实现上面的方法中的各种步骤的各个程序代码1231。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图6所述的便携式或者固定存储单元。该存储单元可以具有与图5的电子设备中的存储器1220类似布置的存储段或者存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括用于执行根据本发明的方法步骤的程序1231’,即可以由例如诸如1210之类的处理器读取的代码,这些代码当由电子设备运行时,导致该电子设备执行上面所描述的方法中的各个步骤。For example, FIG. 5 illustrates an electronic device in which the wireless routing device management method of the present invention can be implemented. The electronic device conventionally includes a processor 1210 and a computer program product or computer readable medium in the form of a memory 1220. The memory 1220 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. Memory 1220 has a memory space 1230 for program code 1231 for performing any of the method steps described above. For example, storage space 1230 for program code may include various program codes 1231 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units as described with reference to FIG. The storage unit may have a storage section or a storage space or the like arranged similarly to the storage 1220 in the electronic device of FIG. The program code can be compressed, for example, in an appropriate form. In general, the storage unit comprises a program 1231' for performing the steps of the method according to the invention, ie a code readable by a processor such as 1210, which when executed by the electronic device causes the electronic device to perform the above Each step in the described method.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。"an embodiment," or "an embodiment," or "an embodiment," In addition, it is noted that the phrase "in one embodiment" is not necessarily referring to the same embodiment.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。 In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
应该注意的是,上述实施例对本发明进行的详细说明并不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”或“包括”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments are not intended to limit the invention, and that alternative embodiments may be devised without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" or "comprising" does not exclude the presence of the elements or the steps in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。 In addition, it should be noted that the language used in the specification has been selected for the purpose of readability and teaching, and is not intended to be construed or limited. Therefore, many modifications and changes will be apparent to those skilled in the art without departing from the scope of the invention. The disclosure of the present invention is intended to be illustrative, and not restrictive, and the scope of the invention is defined by the appended claims.

Claims (20)

  1. 一种无线路由设备管理方法,所述无线路由设备中设置有两套操作系统,且所述方法包括下述步骤:A wireless routing device management method is provided in the wireless routing device, and the method includes the following steps:
    在无线路由设备的启动过程中,读取无线路由设备中存储的当前操作系统标识;Reading the current operating system identifier stored in the wireless routing device during startup of the wireless routing device;
    根据所述当前操作系统标识引导无线路由设备中相应的操作系统启动;Booting a corresponding operating system in the wireless routing device according to the current operating system identifier;
    检测当前启动的操作系统的状态;Detect the status of the currently started operating system;
    在检测出当前启动的操作系统处于故障状态的情况下,将无线路由设备中存储的当前操作系统标识修改为除当前启动的操作系统之外的另一套操作系统标识,并返回上述读取无线路由设备中存储的当前操作系统标识的步骤。After detecting that the currently started operating system is in a fault state, the current operating system identifier stored in the wireless routing device is modified to another operating system identifier other than the currently started operating system, and the wireless reading is returned. The step of routing the current operating system identity stored in the device.
  2. 如权利要求1所述的方法,其中,所述无线路由设备中设置有两个ROM,且每一个ROM中设置有一套操作系统。The method of claim 1, wherein the wireless routing device is provided with two ROMs, and each ROM is provided with a set of operating systems.
  3. 如权利要求1所述的方法,其中,所述根据所述当前操作系统标识引导无线路由设备中相应的操作系统启动还包括:The method of claim 1, wherein the booting of the corresponding operating system in the wireless routing device according to the current operating system identifier further comprises:
    将无线路由设备中存储的当前操作系统启动状态信息设置为当前操作系统启动失败的信息;Setting the current operating system startup state information stored in the wireless routing device to the current operating system startup failure information;
    其中,所述当前操作系统启动状态信息在当前启动的操作系统成功启动的情况下,被设置为当前操作系统启动成功的信息。The current operating system startup state information is set to the information that the current operating system is successfully started when the currently started operating system is successfully started.
  4. 如权利要求3所述的方法,其中,所述将无线路由设备中存储的当前操作系统启动状态信息设置为当前操作系统启动失败的信息包括:The method of claim 3, wherein the setting the current operating system startup state information stored in the wireless routing device to the current operating system startup failure information comprises:
    将无线路由设备中存储的当前操作系统是否成功启动标志位的取值设置为表示启动失败的取值;或者Setting the value of the current operating system successful startup flag stored in the wireless routing device to a value indicating that the startup failed; or
    将无线路由设备中存储的当前操作系统启动失败计数器的当前计数值设置为所述当前计数值与预定步长之和。The current count value of the current operating system startup failure counter stored in the wireless routing device is set to the sum of the current count value and the predetermined step size.
  5. 如权利要求4所述的方法,其中,所述将所述当前操作系统启动状态信息设置为当前操作系统启动成功的信息包括:The method of claim 4, wherein the setting the current operating system startup state information to the current operating system startup success comprises:
    将无线路由设备中存储的当前操作系统是否成功启动标志位的取值设置为表示启动成功的取值;或者Setting the value of the current operating system successful startup flag stored in the wireless routing device to a value indicating that the startup is successful; or
    将无线路由设备中存储的当前操作系统启动失败计数器的当前计数值设置为初始计数值。The current count value of the current operating system startup failure counter stored in the wireless routing device is set to the initial count value.
  6. 如权利要求4所述的方法,其中,所述检测出当前启动的操作系统处于故障状态包括:The method of claim 4, wherein the detecting that the currently started operating system is in a fault state comprises:
    在接收到无线路由设备中的运行状态计时器的触发操作系统重新启动的触发信号的情况下,检查出当前启动的操作系统没有成功启动,其中,所述运 行状态计时器在操作系统开始启动时开始计时,且由成功启动的操作系统定时将其计时值归零;或者In the case that a trigger signal triggering an operating system restart of the running status timer in the wireless routing device is received, it is checked that the currently started operating system is not successfully started, wherein the operation The row state timer starts timing when the operating system starts to boot, and its timing value is zeroed by the successfully started operating system timing; or
    在当前操作系统开始启动且间隔预定时间间隔后,读取当前操作系统是否成功启动标志位的取值,在该取值为表示启动失败的取值的情况下,检测出当前启动的操作系统没有成功启动;或者After the current operating system starts to start and is separated by a predetermined time interval, the value of the current operating system is successfully started. If the value indicates that the startup fails, the current operating system is detected. Successfully started; or
    在当前操作系统开始启动且间隔预定时间间隔后,读取当前操作系统启动失败计数器的当前计数值,在该当前计数值达到预定次数的情况下,检测出当前启动的操作系统没有成功启动。After the current operating system starts to start and is separated by a predetermined time interval, the current count value of the current operating system startup failure counter is read, and if the current count value reaches a predetermined number of times, it is detected that the currently started operating system is not successfully started.
  7. 如权利要求6所述的方法,其中,所述方法还包括:The method of claim 6 wherein the method further comprises:
    在当前操作系统本次启动失败且当前操作系统启动失败计数器的当前计数值没有达到预定次数的情况下,不修改无线路由设备中存储的当前操作系统标识,并返回到上述读取无线路由设备中存储的当前操作系统标识的步骤。In the case that the current operating system fails to start this time and the current count value of the current operating system startup failure counter does not reach the predetermined number of times, the current operating system identifier stored in the wireless routing device is not modified, and is returned to the above-mentioned reading wireless routing device. The steps to store the current operating system identity.
  8. 如权利要求1至7中任一权利要求所述的方法,其中,所述方法还包括:The method of any one of claims 1 to 7, wherein the method further comprises:
    在检测出当前启动的操作系统成功启动的情况下,根据无线路由设备中存储的非当前启动的操作系统没有成功启动的信息对没有成功启动的操作系统进行修复;If it is detected that the currently started operating system is successfully started, the operating system that is not successfully started is repaired according to the information that the non-currently started operating system stored in the wireless routing device is not successfully started;
    其中,所述非当前启动的操作系统没有成功启动的信息是在检测出当前启动的操作系统没有成功启动的情况下设置于无线路由设备中的。The information that the non-currently started operating system is not successfully started is set in the wireless routing device when it is detected that the currently started operating system is not successfully started.
  9. 如权利要求8所述的方法,其中,所述对没有成功启动的操作系统进行修复包括:The method of claim 8 wherein said repairing an operating system that has not successfully booted comprises:
    复制成功启动的操作系统,并利用复制的操作系统覆盖没有成功启动的操作系统;或者Copy the successfully booted operating system and overwrite the operating system that did not boot successfully with the copied operating system; or
    下载操作系统,并利用下载的操作系统覆盖没有成功启动的操作系统。Download the operating system and use the downloaded operating system to overwrite the operating system that did not boot successfully.
  10. 一种无线路由设备管理装置,所述无线路由设备中设置有两套操作系统,且所述装置包括:A wireless routing device management device, wherein the wireless routing device is provided with two sets of operating systems, and the device includes:
    读取模块,适于在无线路由设备的启动过程中,读取无线路由设备中存储的当前操作系统标识;a reading module, configured to read a current operating system identifier stored in the wireless routing device during startup of the wireless routing device;
    引导模块,适于根据所述当前操作系统标识引导无线路由设备中相应的操作系统启动;a booting module, configured to boot a corresponding operating system in the wireless routing device according to the current operating system identifier;
    检测模块,适于检测当前启动的操作系统的状态;a detecting module, configured to detect a status of the currently started operating system;
    修改处理模块,适于在检测出当前启动的操作系统处于故障状态的情况下,将无线路由设备中存储的当前操作系统标识修改为除当前启动的操作系统之外的另一套操作系统标识,并触发读取模块再次读取无线路由设备中存储的当前操作系统标识。 The modification processing module is configured to modify the current operating system identifier stored in the wireless routing device to another operating system identifier other than the currently started operating system, when detecting that the currently started operating system is in a fault state. And triggering the reading module to read the current operating system identifier stored in the wireless routing device again.
  11. 如权利要求10所述的装置,其中,所述无线路由设备中设置有两个ROM,且每一个ROM中设置有一套操作系统。The apparatus according to claim 10, wherein said wireless routing device is provided with two ROMs, and each of said ROMs is provided with a set of operating systems.
  12. 如权利要求10所述的装置,其中,所述引导模块还适于:The apparatus of claim 10 wherein said guiding module is further adapted to:
    将无线路由设备中存储的当前操作系统启动状态信息设置为当前操作系统启动失败的信息;Setting the current operating system startup state information stored in the wireless routing device to the current operating system startup failure information;
    其中,所述当前操作系统启动状态信息在当前启动的操作系统成功启动的情况下,被设置为当前操作系统启动成功的信息。The current operating system startup state information is set to the information that the current operating system is successfully started when the currently started operating system is successfully started.
  13. 如权利要求12所述的装置,其中,所述将无线路由设备中存储的当前操作系统启动状态信息设置为当前操作系统启动失败的信息包括:The device of claim 12, wherein the setting of the current operating system startup state information stored in the wireless routing device to the current operating system startup failure information comprises:
    将无线路由设备中存储的当前操作系统是否成功启动标志位的取值设置为表示启动失败的取值;或者Setting the value of the current operating system successful startup flag stored in the wireless routing device to a value indicating that the startup failed; or
    将无线路由设备中存储的当前操作系统启动失败计数器的当前计数值设置为所述当前计数值与预定步长之和。The current count value of the current operating system startup failure counter stored in the wireless routing device is set to the sum of the current count value and the predetermined step size.
  14. 如权利要求13所述的装置,其中,所述将所述当前操作系统启动状态信息设置为当前操作系统启动成功的信息包括:The device of claim 13, wherein the setting the current operating system startup state information to the current operating system startup success comprises:
    将无线路由设备中存储的当前操作系统是否成功启动标志位的取值设置为表示启动成功的取值;或者Setting the value of the current operating system successful startup flag stored in the wireless routing device to a value indicating that the startup is successful; or
    将无线路由设备中存储的当前操作系统启动失败计数器的当前计数值设置为初始计数值。The current count value of the current operating system startup failure counter stored in the wireless routing device is set to the initial count value.
  15. 如权利要求13所述的装置,其中,所述检测出当前启动的操作系统处于故障状态包括:The apparatus of claim 13, wherein the detecting that the currently started operating system is in a fault state comprises:
    在接收到无线路由设备中的运行状态计时器的触发操作系统重新启动的触发信号的情况下,检查出当前启动的操作系统没有成功启动,其中,所述运行状态计时器在操作系统开始启动时开始计时,且由成功启动的操作系统定时将其计时值归零;或者In the case that a trigger signal triggering an operating system restart of the running status timer in the wireless routing device is received, it is checked that the currently started operating system is not successfully started, wherein the running status timer starts when the operating system starts Start timing, and the time value of the successfully started operating system is zeroed; or
    在当前操作系统启动且间隔预定时间间隔后,读取当前操作系统是否成功启动标志位的取值,在该取值为表示启动失败的取值的情况下,检测出当前启动的操作系统没有成功启动;或者After the current operating system is started and the interval is a predetermined interval, the value of the current operating system is successfully started. If the value indicates that the startup fails, the current operating system is detected to be unsuccessful. Start up; or
    在当前操作系统启动失败计数器的当前计数值达到预定次数的情况下,检测出当前启动的操作系统没有成功启动。In the case that the current count value of the current operating system startup failure counter reaches a predetermined number of times, it is detected that the currently started operating system has not been successfully started.
  16. 如权利要求15所述的装置,其中,所述装置还包括:The device of claim 15 wherein said device further comprises:
    在当前操作系统本次启动失败且当前操作系统启动失败计数器的当前计数值没有达到预定次数的情况下,不修改无线路由设备中存储的当前操作系统标识,并返回到上述读取无线路由设备中存储的当前操作系统标识的步骤。 In the case that the current operating system fails to start this time and the current count value of the current operating system startup failure counter does not reach the predetermined number of times, the current operating system identifier stored in the wireless routing device is not modified, and is returned to the above-mentioned reading wireless routing device. The steps to store the current operating system identity.
  17. 如权利要求10至16中任一所述的装置,其中,所述装置还包括:The apparatus of any one of claims 10 to 16, wherein the apparatus further comprises:
    修复模块,适于在检测出当前启动的操作系统成功启动的情况下,根据无线路由设备中存储的非当前启动的操作系统没有成功启动的信息对没有成功启动的操作系统进行修复;The repairing module is configured to repair the operating system that is not successfully started according to the information that the non-currently started operating system stored in the wireless routing device fails to be successfully started, if the currently started operating system is successfully started.
    其中,所述非当前启动的操作系统没有成功启动的信息是在检测出当前启动的操作系统没有成功启动的情况下设置于无线路由设备中的。The information that the non-currently started operating system is not successfully started is set in the wireless routing device when it is detected that the currently started operating system is not successfully started.
  18. 如权利要求17所述的装置,其中,所述对没有成功启动的操作系统进行修复包括:The apparatus of claim 17 wherein said repairing an operating system that has not successfully booted comprises:
    复制成功启动的操作系统,并利用复制的操作系统覆盖没有成功启动的操作系统;或者Copy the successfully booted operating system and overwrite the operating system that did not boot successfully with the copied operating system; or
    下载操作系统,并利用下载的操作系统覆盖没有成功启动的操作系统。Download the operating system and use the downloaded operating system to overwrite the operating system that did not boot successfully.
  19. 一种计算机程序,包括计算机可读代码,当电子设备运行所述计算机可读代码运行时,导致权利要求1-9中的任一项权利要求所述的无线路由设备管理方法被执行。A computer program comprising computer readable code, the wireless routing device management method of any one of claims 1-9 being executed when the electronic device is running the computer readable code.
  20. 一种计算机可读介质,其中存储了如权利要求19所述的计算机程序。 A computer readable medium storing the computer program of claim 19.
PCT/CN2014/093594 2014-01-09 2014-12-11 Management method and apparatus of wireless routing device WO2015103917A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410010922.0A CN103760950A (en) 2014-01-09 2014-01-09 Wireless routing equipment management method and device
CN201410010922.0 2014-01-09

Publications (1)

Publication Number Publication Date
WO2015103917A1 true WO2015103917A1 (en) 2015-07-16

Family

ID=50528202

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/093594 WO2015103917A1 (en) 2014-01-09 2014-12-11 Management method and apparatus of wireless routing device

Country Status (2)

Country Link
CN (1) CN103760950A (en)
WO (1) WO2015103917A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024031932A1 (en) * 2022-08-09 2024-02-15 苏州元脑智能科技有限公司 Storage server startup detection method, system and apparatus, device, and storage medium

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103760950A (en) * 2014-01-09 2014-04-30 北京奇虎科技有限公司 Wireless routing equipment management method and device
CN104166561B (en) * 2014-07-25 2017-11-07 深圳市大迈科技有限公司 Electronic apparatus system starts method and electronic equipment
CN104156277A (en) * 2014-07-29 2014-11-19 深圳市中兴移动通信有限公司 Mobile terminal and system restoring method and system restoring device thereof
CN104268027B (en) * 2014-09-22 2017-09-29 北京经纬恒润科技有限公司 The fault handling method and device of embedded real-time operating system
CN104834574B (en) * 2015-04-29 2019-01-29 青岛海信移动通信技术股份有限公司 A kind of method and device solving system partitioning damage
CN106330482B (en) * 2015-06-17 2020-10-16 中兴通讯股份有限公司 Wireless router equipment repairing method and device
CN108241511A (en) * 2016-12-23 2018-07-03 大唐移动通信设备有限公司 The switching method and device of a kind of software version
CN108427611A (en) * 2017-02-14 2018-08-21 北京国基科技股份有限公司 A kind of cloud terminal system dual redundant intelligent starting method and device
CN107368315A (en) * 2017-07-20 2017-11-21 郑州云海信息技术有限公司 A kind of startup method and device of double hard disk dual systems

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289397A (en) * 2011-09-13 2011-12-21 全星科技(珠海)有限公司 Method and device for automatically restoring embedded system of set top box
CN102638728A (en) * 2012-03-30 2012-08-15 江苏幻影视讯科技有限公司 Method for multi-system switching and digital household intelligent terminal
CN103760950A (en) * 2014-01-09 2014-04-30 北京奇虎科技有限公司 Wireless routing equipment management method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6393585B1 (en) * 1998-12-23 2002-05-21 Scientific-Atlanta, Inc. Method and apparatus for restoring operating systems in a set-top box environment
US7340638B2 (en) * 2003-01-30 2008-03-04 Microsoft Corporation Operating system update and boot failure recovery
CN100517246C (en) * 2006-03-14 2009-07-22 联想(北京)有限公司 Computer remote control method and system
CN100552633C (en) * 2006-07-25 2009-10-21 株式会社Ntt都科摩 A plurality of operating system switching controls and computer system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289397A (en) * 2011-09-13 2011-12-21 全星科技(珠海)有限公司 Method and device for automatically restoring embedded system of set top box
CN102638728A (en) * 2012-03-30 2012-08-15 江苏幻影视讯科技有限公司 Method for multi-system switching and digital household intelligent terminal
CN103760950A (en) * 2014-01-09 2014-04-30 北京奇虎科技有限公司 Wireless routing equipment management method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024031932A1 (en) * 2022-08-09 2024-02-15 苏州元脑智能科技有限公司 Storage server startup detection method, system and apparatus, device, and storage medium

Also Published As

Publication number Publication date
CN103760950A (en) 2014-04-30

Similar Documents

Publication Publication Date Title
WO2015103917A1 (en) Management method and apparatus of wireless routing device
US8751783B2 (en) Booting computing devices with EFI aware operating systems
CN103718165B (en) BIOS flash memory attack protection and notice
KR101931007B1 (en) Initialization trace of a computing device
JP5575338B2 (en) Information processing apparatus, information processing method, and computer program
JP5582909B2 (en) Platform integrity verification system
US9256744B2 (en) System-on-chip and booting method thereof
CN106020865A (en) System upgrading method and device
WO2016206514A1 (en) Startup processing method and device
US20130227356A1 (en) Apparatus and method for handling rebooting of mobile terminal
WO2016183951A1 (en) System upgrade method and terminal
WO2019237710A1 (en) Method, device and equipment for recognizing video cards of gpu servers, and medium
CN107766102B (en) Boot method of dual basic input/output system (BIOS) and electronic device with same
WO2011095074A1 (en) Method for upgrading terminal device system and terminal device
JP2009238153A (en) Malware handling system, method, and program
CN107567629A (en) Dynamic firmware module loader in credible performing environment container
WO2018024198A1 (en) Application upgrade method and system for set-top box, and set-top box
CN105677409B (en) A kind of method for upgrading system and device
US20160103688A1 (en) Method of Starting Computing System
CN108171041B (en) Method and apparatus for authenticating an application accessing memory
US8949588B1 (en) Mobile telephone as bootstrap device
US20130080751A1 (en) Method and device for updating bios program for computer system
WO2017054731A1 (en) Method and device for processing hijacked browser
TWI518594B (en) Computer system and activation method for computer system
WO2017076034A1 (en) Method and device for formatting memory of mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14877741

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14877741

Country of ref document: EP

Kind code of ref document: A1