CORS terminal host, automatic backup and recovery method, and storage device

By setting up the automatic backup and recovery method of EEPROM memory and F1 flag bits on the CORS terminal host, the problem of manual processing of the system after power outage is solved, automatic recovery is achieved, manpower and material consumption is reduced, and system stability is improved.

CN111752749BActive Publication Date: 2025-01-03SOUTH SURVEYING & MAPPING INSTR
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010382763.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-08
Publication Date
2025-01-03
Estimated Expiration
2040-05-08

AI Technical Summary

Technical Problem

In the event of abnormal situations such as power outage, the Linux system files need to be manually processed by professionals after they are damaged, resulting in excessive time and labor consumption.

Method used

Set up the EEPROM memory on the CORS terminal host, and use the F1 flag to automatically backup and restore it to avoid data being affected by power outages and realize automatic recovery of the system when it is damaged.

Benefits of technology

No manual processing is required for professionals, which saves time, reduces manpower and material resources, and ensures the stable operation of the CORS terminal host.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111752749B_ABST
    Figure CN111752749B_ABST
Patent Text Reader

Abstract

The present invention provides a CORS terminal host, an automatic backup and recovery method and a storage device, the method comprising: S101: judging whether the F1 flag is a first preset flag, if so, executing S102, if not, executing S103; S102: starting the system, backing up the system to a storage card, and modifying the F1 flag to a second preset flag; S103: judging whether the F1 flag is the second preset flag, if so, executing S104, if not, executing S105; S104: modifying the FI flag according to the startup situation of the system; S105: determining that the F1 flag is a third preset flag, copying the system backup in the storage card to a preset storage location of the system, and modifying the F1 flag to the second preset flag. The present invention uses the characteristics of an EEPROM memory to save data, thereby preventing the data from being affected by power failure, and backing up and restoring the system through the state of the F1 flag, and can automatically restore when the system is damaged, without the need for manual processing by professionals, saving time, and reducing the consumption of manpower and material resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent control, and in particular to a CORS terminal host, an automatic backup and recovery method, and a storage device. Background Art

[0002] At present, in order to achieve real-time dynamic high-precision positioning, GNSS (Global Navigation Satellite System) terminal handheld devices and RTK (Real-Time Kinematic) must receive differential data transmitted by CORS (Continuous Operating Reference System) in real time.

[0003] At present, in order to generate and send stable and accurate differential data, many perfect CORS networks have been established across the country. The CORS network is composed of many CORS terminal hosts connected to the network. Therefore, the stability of the CORS terminal host is related to the security of the entire CORS network.

[0004] The CORS terminal hosts on the market mainly run the Linux operating system. However, since most CORS terminal hosts are placed in remote places without human supervision, once the host fails to function properly, the Linux system files will be damaged and the system will be unable to restart. It will require professionals to manually handle it in person to restore it to normal. Therefore, it takes a lot of time, manpower and financial resources. Summary of the invention

[0005] In order to overcome the shortcomings of the prior art, the present invention proposes a CORS terminal host, an automatic backup and recovery method and a storage device. An EEPROM memory is set on the CORS terminal host, and the characteristics of the EEPROM memory are used to save data, thereby preventing the data from being affected by power outages. The system is backed up and restored through the state of the F1 flag, and can be automatically restored when the system is damaged. Manual processing by professionals is unnecessary, which saves time and reduces the consumption of manpower and material resources.

[0006] To solve the above problem, a technical solution adopted by the present invention is: a CORS terminal host automatic backup and recovery method, the CORS terminal host has a built-in EEPROM memory, and the CORS terminal host automatic backup and recovery method comprises: S101: reading the F1 flag of the EEPROM memory, judging whether the F1 flag is a first preset flag, if so, executing S102, if not, executing S103; S102: starting the system, and backing up the system to a memory card after the system is started, and modifying the F1 flag to a second preset flag; S103: judging whether the F1 flag is the second preset flag, if so, executing S104, if not, executing S105; S104: starting the system, and modifying the FI flag according to the startup status of the system; S105: determining that the F1 flag is a third preset flag, booting the system from the memory card, copying the system backup in the memory card to a preset storage location of the system, and restarting the CORS terminal host after modifying the F1 flag to the second preset flag.

[0007] Furthermore, the step of starting the system specifically includes: guiding the system to start, modifying the F1 flag to a third preset flag, and starting the CPU hardware watchdog.

[0008] Furthermore, the NFC tag includes an NFC memory, and the physical address of the WiFi module and the built-in web page IP address of the RTK host are stored in the NFC memory.

[0009] Furthermore, the step of modifying the FI flag according to the startup status of the system specifically includes: determining whether the system starts normally; if so, starting an application, and using the application to periodically feed the CPU hardware watchdog and modify the F1 flag to a second preset flag; if not, keeping the F1 flag at a third preset flag.

[0010] Furthermore, after the step of maintaining the third preset flag at the F1 flag bit, the method further includes: restarting the CORS terminal host through the CPU hardware watchdog.

[0011] Furthermore, before the step of backing up the system to the memory card, the step also includes: starting an application program, and feeding the CPU hardware watchdog through the application program.

[0012] Furthermore, the step of copying the system backup in the memory card to the preset storage location of the system specifically includes: starting an application, and copying the system backup in the memory card to the preset storage location of the system through the application.

[0013] Furthermore, the first preset flag is 0x0, the second preset flag is 0x1, and the third preset flag is 0x2.

[0014] Furthermore, the preset storage location is Nandflash, and the storage card is an SD card.

[0015] Based on the same inventive concept, the present invention also proposes a CORS terminal host, wherein the CORS terminal host has a built-in EEPROM memory, and the CORS terminal host automatic backup and recovery method as described above is executed according to the F1 flag of the EEPROM memory.

[0016] Based on the same inventive concept, the present invention further proposes a storage device, wherein the storage device stores a computer program, and the computer program is used to execute the CORS terminal host automatic backup and recovery method as described above.

[0017] Compared with the prior art, the beneficial effects of the present invention are: an EEPROM memory is set on the CORS terminal host, and the characteristics of the EEPROM memory are used to save data, thereby preventing the data from being affected by power outages, and the system is backed up and restored through the state of the F1 flag bit. When the system is damaged, it can be automatically restored without manual processing by professionals, saving time and reducing the consumption of manpower and material resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a flowchart of an embodiment of a CORS terminal host automatic backup and recovery method of the present invention;

[0019] Figure 2 It is a flowchart of an embodiment of system backup in the CORS terminal host automatic backup and recovery method of the present invention;

[0020] Figure 3 A flowchart of an embodiment of a CORS terminal host automatic backup and recovery method system abnormality and recovery according to the present invention;

[0021] Figure 4 This is a structural diagram of an embodiment of a CORS terminal host of the present invention;

[0022] Figure 5 FIG. 4 is a structural diagram of a storage device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.

[0024] See also Figure 1-3 ,in, Figure 1 This is a flowchart of an embodiment of a CORS terminal host automatic backup and recovery method of the present invention; Figure 2 It is a flowchart of an embodiment of system backup in the CORS terminal host automatic backup and recovery method of the present invention; Figure 3 The flowchart of the system abnormality and recovery of the CORS terminal host automatic backup and recovery method of the present invention is an embodiment of the present invention. Figure 1-3 The CORS terminal host automatic backup and recovery method of the present invention is described in detail.

[0025] In this embodiment, the CORS terminal host has a built-in EEPROM memory. In other embodiments, a hard disk, a floppy disk, a VGA BIOS, a CMOS, and other storage devices that support storage and read-write can also be set in the CORS terminal host.

[0026] In this embodiment, the CORS terminal host automatic backup and recovery method includes:

[0027] S101: Read the F1 flag of the EEPROM memory to determine whether the F1 flag is a first preset flag. If so, execute S102; if not, execute S103.

[0028] In this embodiment, the CORS terminal host reads the F1 flag bit of the EEPROM memory through the boot program after power-on.

[0029] In a specific embodiment, the system of the CORS terminal host is stored in Nandflash.

[0030] In this embodiment, the boot program is stored on the CPU of the CORS terminal host. In other embodiments, the boot program can also be stored in Nandflash and other devices that can control the boot program to read the F1 flag and guide the system to start when the CORS terminal host is powered on.

[0031] In this embodiment, the first preset flag is 0x0, which is the factory default value of the EEPROM memory.

[0032] S102: Start the system, and after the system starts, back up the system to the memory card, and modify the F1 flag to a second preset flag.

[0033] In this embodiment, the step of starting the system specifically includes: guiding the system to start, modifying the F1 flag to a third preset flag, and starting the CPU hardware watchdog.

[0034] In this embodiment, when the CORS terminal host confirms through the boot program that the F1 flag is the first preset flag, the boot system is started from Nandflash.

[0035] In a specific embodiment, the third preset flag is 0x2, and the CORS terminal host modifies the F1 flag bit to the third preset flag through a boot program.

[0036] In this embodiment, after the system is started, an application for feeding the CPU hardware watchdog and backing up the system is started, the watchdog is fed and the system is backed up through the application, and the system backup is copied to the memory card to implement the system backup. After the backup is successful, the F1 flag of the EEPROM memory is modified to the second preset flag through the application.

[0037] In this embodiment, the application program may be stored in the form of an APP on the CORS terminal host.

[0038] In a specific embodiment, the second preset flag is 0x1, and the second preset flag represents that the system is normal (ie, represents that the system has been started normally).

[0039] In this embodiment, the memory card is an SD card. In other embodiments, the memory card may also be a hard disk or other storage devices that support reading and writing and save system backup after power failure.

[0040] S103: Determine whether the F1 flag is the second preset flag, if so, execute S104, if not, execute S105.

[0041] In this embodiment, when the CORS terminal host is powered on, the F1 flag is read through the boot program. When it is determined that the F1 flag is not the first preset flag, it is determined whether it is the second preset flag, and different operations are performed according to the reading result.

[0042] In other embodiments, the F1 flag may be directly read through the boot program, and corresponding operations may be performed according to the reading result.

[0043] S104: Start the system and modify the FI flag according to the system startup status.

[0044] In this embodiment, the step of starting the system specifically includes: guiding the system to start, modifying the F1 flag to a third preset flag, and starting the CPU hardware watchdog.

[0045] In this embodiment, when the CORS terminal host confirms through the boot program that the F1 flag is the second preset flag, the boot system is started from Nandflash.

[0046] In this embodiment, the step of modifying the FI flag according to the system startup situation specifically includes: determining whether the system starts normally; if so, starting the application, feeding the CPU hardware watchdog regularly through the application and modifying the F1 flag to the second preset flag; if not, keeping the F1 flag at the third preset flag.

[0047] In this embodiment, after the step of maintaining the third preset flag at the F1 flag bit, the step further includes: restarting the CORS terminal host through the CPU hardware watchdog.

[0048] In this embodiment, the CORS terminal host can determine whether the system is started normally by whether it can work normally.

[0049] S105: Determine that the F1 flag is the third preset flag, boot the system from the memory card, copy the system backup in the memory card to the preset storage location of the system, and restart the CORS terminal host after changing the F1 flag to the second preset flag.

[0050] In this embodiment, the preset storage location is Nandflash. The damaged system is replaced by the system backup at the preset storage location.

[0051] In this embodiment, the step of copying the system backup in the memory card to the preset storage location of the system specifically includes: starting an application program, and copying the system backup in the memory card to the preset storage location of the system through the application program.

[0052] Beneficial effect: The CORS terminal host automatic backup and recovery method of the present invention sets an EEPROM memory on the CORS terminal host, uses the characteristics of the EEPROM memory to save data, thereby preventing the data from being affected by power outages, and backs up and restores the system through the state of the F1 flag. It can automatically restore when the system is damaged, without the need for manual processing by professionals, saving time and reducing the consumption of manpower and material resources.

[0053] Based on the same inventive concept, this application also proposes a CORS terminal host, see Figure 4 , Figure 4 This is a structural diagram of an embodiment of the CORS terminal host of the present invention, combined with Figure 4 The CORS terminal host of the present invention is specifically described.

[0054] In this embodiment, the CORS terminal host has a built-in EEPROM memory, and the CORS terminal host automatic backup and recovery method described in the above embodiment is executed according to the F1 flag of the EEPROM memory.

[0055] In this embodiment, the CORS terminal host has a built-in EEPROM memory. In other embodiments, a hard disk, a floppy disk, a VGA BIOS, a CMOS, and other storage devices that support storage and read-write can also be set in the CORS terminal host.

[0056] Beneficial effects: The present invention sets an EEPROM memory on the CORS terminal host, uses the characteristics of the EEPROM memory to save data, thereby preventing the data from being affected by power outages, and backs up and restores the system through the state of the F1 flag. It can automatically restore when the system is damaged, without the need for manual processing by professionals, saving time and reducing the consumption of manpower and material resources.

[0057] Based on the same inventive concept, the present application also proposes a storage device, see Figure 5 , Figure 5 FIG. 1 is a structural diagram of an embodiment of a storage device of the present invention, Figure 5 The storage device of the present invention is described in detail. In this embodiment, the storage device stores a computer program, and the computer program is used to execute the CORS terminal host automatic backup and recovery method as described in the above embodiment.

[0058] In this embodiment, the storage device may be a hard disk, an SD card, a USB flash drive, or other devices capable of storing computer programs, which are not limited here.

[0059] Beneficial effect: The computer program stored in the storage device of the present invention utilizes the characteristics of the EEPROM memory to save data, thereby preventing the data from being affected by power outages, and backs up and restores the system through the state of the F1 flag. It can automatically restore when the system is damaged, without the need for manual processing by professionals, saving time and reducing the consumption of manpower and material resources.

[0060] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, modules and circuits can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the structural device division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or, which can be electrical, mechanical or other forms.

[0061] The components described as separate components may or may not be physically separated, and the components shown may or may not be physical, that is, they may be located in one place or distributed in multiple locations. Some or all of them may be selected according to actual needs to achieve the purpose of this embodiment.

[0062] The above-mentioned embodiments are only preferred embodiments of the present invention and cannot be used to limit the scope of protection of the present invention. Any non-substantial changes and substitutions made by technicians in this field on the basis of the present invention shall fall within the scope of protection required by the present invention.

Claims

1. A CORS terminal host automatic backup and recovery method, characterized in that: The CORS terminal host has a built-in EEPROM memory, and the CORS terminal host automatic backup and recovery method includes: S101: reading the F1 flag bit of the EEPROM memory, determining whether the F1 flag bit is a first preset flag, if so, executing S102, if not, executing S103; S102: starting the system, and backing up the system to the memory card after the system starts, and changing the F1 flag to a second preset flag; S103: Determine whether the F1 flag is a second preset flag, if yes, execute S104, if no, execute S105; S104: starting the system, and modifying the F1 flag according to the startup status of the system; S105: Determine that the F1 flag is the third preset flag, boot the system from the memory card, copy the system backup in the memory card to the preset storage location of the system, and restart the CORS terminal host after changing the F1 flag to the second preset flag; The step of starting the system specifically includes: booting the system, modifying the F1 flag to a third preset flag, and starting the CPU hardware watchdog; The step of modifying the F1 flag according to the startup status of the system specifically includes: determining whether the system is started normally; if so, starting an application, feeding the CPU hardware watchdog regularly through the application and modifying the F1 flag to a second preset flag; if not, keeping the F1 flag at a third preset flag, and restarting the CORS terminal host through the CPU hardware watchdog.

2. The CORS terminal host automatic backup and recovery method according to claim 1, characterized in that: Before the step of backing up the system to the memory card, the method further includes: starting an application program, and feeding the CPU hardware watchdog through the application program.

3. The CORS terminal host automatic backup and recovery method according to claim 1, characterized in that: The step of copying the system backup in the memory card to the preset storage location of the system specifically includes: starting an application program, and copying the system backup in the memory card to the preset storage location of the system through the application program.

4. The CORS terminal host automatic backup and recovery method according to claim 1, characterized in that: The first preset flag is 0x0, the second preset flag is 0x1, and the third preset flag is 0x2.

5. The CORS terminal host automatic backup and recovery method according to claim 1, characterized in that: The preset storage location is Nandflash, and the storage card is an SD card.

6. A CORS terminal host, characterized in that: The CORS terminal host has a built-in EEPROM memory, and executes the CORS terminal host automatic backup and recovery method according to any one of claims 1 to 5 according to the F1 flag of the EEPROM memory.

7. A storage device, characterized in that: The storage device stores a computer program, and the computer program is used to execute the CORS terminal host automatic backup and recovery method according to any one of claims 1 to 5.