Pre-stored version loading method and storage medium for communication devices

By pre-storing the high-compression ratio version on the nonvolatile storage medium of the communication device and decompressing and overwriting the original version during the boot stage, the communication device version is solved for a long loading time and dependence on external devices, and fast, stable and dynamic version loading is achieved.

CN115858043BActive Publication Date: 2025-05-30ANHUI WANTONG POSTS & TELECOMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211672233.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-26
Publication Date
2025-05-30
Estimated Expiration
2042-12-26

AI Technical Summary

Technical Problem

The existing communication device version loading methods have problems such as long loading time, relying on external accessories and networks, being unable to dynamically replace versions, increasing equipment costs and loading instability.

Method used

The pre-stored version loading method is adopted. By pre-storing the high-compression ratio version on the nonvolatile storage medium of the communication device, identifying the loading mode during the boot stage, finding and jumping to the boot file, decompressing and overwriting the original version after the device boot is completed, switching between business and functional models is realized.

Benefits of technology

It realizes rapid loading of versions in a diversified environment, does not rely on external accessories and networks, reduces equipment costs and loading risks, and supports dynamic version switching to adapt to different application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115858043B_ABST
    Figure CN115858043B_ABST
Patent Text Reader

Abstract

A pre-stored version loading method and storage medium for a communication device. In the pre-stored version loading method provided by the present invention, the version to be run by the communication device is compressed at a high compression ratio and then pre-stored on the non-volatile storage medium of the communication device. By identifying the loading mode flag bit, the boot file in the pre-stored version is searched during the boot phase to complete the boot of the communication device. After the boot is completed and the communication device enters the startup phase, the method of the present invention decompresses the pre-stored version to a specified directory, overwrites the original version, and starts the service process according to the configuration file to complete the switching of the service and function models of the communication device. At the same time, a quick startup file is generated to improve the subsequent version loading speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software technology, and particularly to a method for loading a pre-stored version of a communication device and a storage medium. Background Art

[0002] In contemporary society with highly developed informatization, communication devices are important and fundamental devices for ensuring the efficient and reliable transmission of information. Due to their fundamentality, importance, and the complexity of the deployment environment of the devices, there are very special requirements for the version loading method, loading time, and loading reliability. At the same time, communication devices will load different versions according to the network level, functional model, and different operators to achieve corresponding functions and service requirements.

[0003] Current loading methods for communication devices include: network loading, local loading, and loading from an external storage device independent of the communication device, such as a USB flash drive.

[0004] The network loading method requires the communication device to support a serial port and a network port, and the network port of the device needs to support management functions. The loading process includes: serial port configuration, network download, decompression, process startup, etc. Loading requires external serial and network ports, configuration changes, and has the characteristics of many processes and long loading time, which is extremely unsuitable for environments with poor network connectivity and short loading time requirements.

[0005] When using the local loading method, the version loading of the communication device does not depend on external configuration and download processes. The version does not need to be decompressed, and only the business process to be loaded needs to be executed. It has the advantages of low external requirements and short time, and is the main deployment method for communication devices. However, in order to shorten the loading time, the version is decompressed and solidified on the device in advance, and the version cannot be replaced to meet the needs of the network device to adapt to different application scenarios.

[0006] The external storage device loading method completely depends on the external storage medium independent of the communication device, and the communication device needs to additionally add relevant hardware circuits. When loading, the storage device needs to be carried, and at the same time, there are problems with the stability and access rate of the external device, which impact the cost, loading time, and stability of the communication device.

[0007] Existing version loading solutions either rely on external accessories and networks, resulting in long loading times, or cannot dynamically replace versions, or rely on external storage, which have requirements for the cost of communication devices, the network conditions of the deployment environment, and the deployment time, and cannot meet the diverse deployment environments and multi-service scenarios of communication devices in reality. The additional external storage undoubtedly increases the device cost and reduces the competitiveness of communication devices. At the same time, the unreliability of external storage adds a great deal of insecurity factors to version loading. Summary of the Invention

[0008] A pre-stored version loading method for a communication device proposed by the present invention can solve at least one of the above technical problems.

[0009] To achieve the above object, the present invention adopts the following technical solutions:

[0010] A pre-stored version loading method for a communication device includes the following steps:

[0011] Step 1: Make a pre-stored version with a high compression ratio for the device to load according to the business scenario and function positioning of the communication device;

[0012] Step 2: Determine the storage path and the storage location of the loading method on a non-volatile storage medium that can be shared during the boot phase, the device running phase, and between different versions of the communication device, and agree on the storage path and the storage location of the loading method of the pre-stored version;

[0013] Step 3: Import the made pre-stored version with a high compression ratio into the storage path of the pre-stored version set in Step 2;

[0014] Step 4: Set the loading method of the communication device to the pre-stored loading mode and write it into the storage location of the loading method set in Step 2;

[0015] Step 5: Restart the communication device. During the device boot phase, the communication device identifies the loading method and searches for the pre-stored version at the agreed path, finds and jumps to the boot file to boot the communication device;

[0016] Step 6: After the communication device finishes booting, officially enter the version startup process, decompress the stored pre-stored version to a specified directory and overwrite the original version on the device;

[0017] Step 7: When the communication device loads in the pre-stored mode, execute the service process according to the configuration file;

[0018] Step 8: Delete the pre-stored version, generate a configuration file for fast startup, set the loading mode of the communication device to the fast startup mode, and complete the loading of this pre-stored mode.

[0019] On the other hand, a computer-readable storage medium of the present invention stores a computer program, and when the computer program is executed by a processor, the processor is caused to execute the steps of the above method.

[0020] In the pre-stored version loading method provided by the present invention, the communication device compresses the version to be run at a high compression ratio and stores it in advance on the non-volatile storage medium of the communication device. And by identifying the loading mode flag, the boot file in the pre-stored version is searched in the boot phase to complete the booting of the communication device. After the booting is completed and the communication device enters the startup phase, the method of the present invention decompresses the pre-stored version to a specified directory, overwrites the original version, and starts the business process according to the configuration file to complete the switching of the business and function models of the communication device. At the same time, a quick startup file is generated to improve the loading speed of subsequent versions.

[0021] Compared with the prior art, in the method provided by the present invention, the pre-stored version is loaded into the communication device in advance in a reasonable manner, does not require external accessories, does not rely on external networks, can be easily deployed in a variety of environments, especially in harsh network environments, and can be easily loaded. The version loading method provided by the present invention utilizes the non-volatile storage medium that comes with the communication device, does not require additional storage devices, and does not have the risk of loading caused by cost pressure and unreliable storage. After the loading is completed, the pre-stored version will be deleted to release storage space. At the same time, unlike the pre-solidified version of the local startup method, the present invention can dynamically decompress the version, overwriting the original version to complete the switching of the communication device services and functions, so that the communication device can adapt to a variety of application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flow chart of the communication device pre-stored version loading method in the present invention. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.

[0024] like Figure 1 As shown, the communication device pre-stored version loading method described in this embodiment includes three parts: version pre-storage activity, version guidance activity and version startup activity:

[0025] (1) Version pre-storage activities include: production of high-compression ratio pre-storage versions, selection of pre-storage devices and paths, storage of loading mode flags, importing of high-compression ratio pre-storage versions, and setting of loading modes;

[0026] (2) Version boot activities include: obtaining the loading mode, searching for the boot file from the agreed path, and completing the communication device boot through the boot file.

[0027] (3)The version startup activities include: decompressing the pre-stored version to the specified path, overwriting the original version, starting the business process, generating the quick startup file, and setting the quick startup flag.

[0028] The main implementation processes include:

[0029] (1)Producing the pre-stored version with a high compression ratio;

[0030] (2)Importing the pre-stored version onto a non-volatile storage medium and setting the loading mode to pre-stored loading;

[0031] (3)During the boot phase, obtaining the loading mode and searching for the boot file in the agreed path to complete the boot of the communication device;

[0032] (4)During the startup phase, decompressing the pre-stored version and overwriting the original version, and starting the business process according to the configuration;

[0033] (5)Generating the quick startup file and setting the loading mode to quick startup.

[0034] Specifically, the method for loading the pre-stored version of the communication device described in this embodiment includes the following steps:

[0035] Step 1: Producing a high compression ratio pre-stored version for device loading according to the business scenario and function positioning of the communication device;

[0036] Step 2: Determining the storage path and the storage location of the loading method on the non-volatile storage medium that can be shared during the boot phase, device running phase, and between different versions of the communication device, and agreeing on the storage path and the storage location of the loading method of the pre-stored version;

[0037] Step 3: Importing the produced high compression ratio pre-stored version into the storage path of the pre-stored version set in Step 2;

[0038] Step 4: Setting the loading mode of the communication device to the pre-stored loading mode and writing it into the storage location of the loading method set in Step 2;

[0039] Step 5: Restarting the communication device. During the device boot phase, the communication device identifies the loading mode, searches for the pre-stored version in the agreed path, finds and jumps to the boot file to boot the communication device;

[0040] Step 6: After the communication device boot is completed, officially enter the version startup process, decompress the stored pre-stored version to the specified directory and overwrite the original version on the device;

[0041] Step 7: When the communication device is loaded in the pre-stored mode, execute the business process according to the configuration file;

[0042] Step 8: Delete the pre-stored version, generate a quick-start configuration file, and set the loading mode of the communication device to the quick-start mode to complete the loading of the current pre-stored mode.

[0043] The following is a description in combination with an example of the present invention:

[0044] (1) Use the high-compression ratio file system squashfs that extracts and executes while decompressing to produce the pre-stored version, and select the SSD and EEPROM to store the pre-stored version and the start flag respectively;

[0045] (2) To improve the pre-storage efficiency, use a dedicated lightweight process to quickly load the pre-stored version to the EEPROM via ftp and set the pre-storage load flag bit to the EEPROM;

[0046] (3) In the boot phase, first read the loading mode from the EEPROM. When the loading mode is pre-stored loading, search for the boot file in the SSD to complete the boot of the device;

[0047] (4) After the device completes the boot and enters the start phase, continue to identify the loading mode from the EEPROM in the main process ADM of the device. When it is the pre-stored mode, notify the version management process to decompress the pre-stored version from the SSD and overwrite the original version;

[0048] (5) The communication device searches for the device configuration file from the decompressed file and starts the relevant service processes;

[0049] (6) The communication setting generates a quick-start file to the SSD, and generates a quick-start configuration file with CRC, and sets the loading mode to local start to the EEPROM;

[0050] (7) The version management process deletes the pre-stored version to complete the pre-stored version loading process.

[0051] In summary, in the pre-stored version loading method provided by the embodiment of the present invention, the version to be run by the communication device is compressed at a high compression ratio and then pre-stored on the non-volatile storage medium of the communication device. And by identifying the loading mode flag bit, search for the boot file in the pre-stored version in the boot phase to complete the boot of the communication device. After the boot is completed and the communication device enters the start phase, the method of the present invention decompresses the pre-stored version to the specified directory, overwrites the original version, and starts the service process according to the configuration file to complete the switching of the service and function models of the communication device. At the same time, a quick-start file is generated to improve the subsequent version loading speed.

[0052] On the other hand, the present invention also discloses a computer-readable storage medium storing a computer program, which when executed by a processor causes the processor to execute the steps of any of the above methods.

[0053] In another aspect, the present invention also discloses a computer device, including a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor is caused to execute the steps of any of the above methods.

[0054] In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions. When it runs on a computer, the computer is caused to execute the steps of any of the methods in the above embodiments.

[0055] It can be understood that the system provided by the embodiments of the present invention corresponds to the method provided by the embodiments of the present invention. For the explanations, examples and beneficial effects of related content, reference can be made to the corresponding parts in the above method.

[0056] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it may include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database or other medium used in the various embodiments provided by the present application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.

[0057] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.

[0058] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A method for loading a pre-stored version of a communication device, characterized in that, it includes the following steps, Step 1: Produce a pre-stored version with a high compression ratio for the device to load according to the business scenario and function positioning of the communication device; Step 2: Determine the storage path and the storage location of the loading method that can be shared during the boot phase, the device running phase, and between different versions on the non-volatile storage medium of the communication device, and agree on the storage path and the storage location of the loading method of the pre-stored version; Step 3: Import the produced pre-stored version with a high compression ratio into the storage path of the pre-stored version set in Step 2; Step 4: Set the loading method of the communication device to the pre-stored loading mode and write it into the storage location of the loading method set in Step 2; Step 5: Restart the communication device; during the device boot phase, the communication device recognizes the loading method and searches for the pre-stored version in the agreed path, searches for and jumps to the boot file to boot the communication device; Step 6: After the communication device boot is completed, officially enter the version startup process, decompress the stored pre-stored version to a specified directory to overwrite the original version on the device; Step 7: When the communication device loads in the pre-stored mode, execute the service process according to the configuration file; Step 8: Delete the pre-stored version, generate a configuration file for quick startup, set the loading mode of the communication device to the quick startup mode, and complete the loading of this pre-stored mode.

2. A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to execute the steps of the method according to Claim 1.

Citation Information

Patent Citations

  • Embedded system starting method and SOC chip

    CN113626092A

  • Method and device for improving starting speed of SSD system, terminal and storage medium

    CN115098190A