CN112698845A - Software configuration updating method, terminal and computer readable storage medium - Google Patents

Software configuration updating method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN112698845A
CN112698845A CN202011601302.6A CN202011601302A CN112698845A CN 112698845 A CN112698845 A CN 112698845A CN 202011601302 A CN202011601302 A CN 202011601302A CN 112698845 A CN112698845 A CN 112698845A
Authority
CN
China
Prior art keywords
software
emergency
system software
storage area
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011601302.6A
Other languages
Chinese (zh)
Inventor
秦振华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202011601302.6A priority Critical patent/CN112698845A/en
Publication of CN112698845A publication Critical patent/CN112698845A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a software configuration updating method, a terminal and a computer readable storage medium, wherein the software configuration updating method comprises the following steps: writing target parameters in an emergency storage area corresponding to system software of the terminal equipment through an emergency interface; loading the system software by adopting the target parameters in the emergency storage area; and updating the software configuration of the system software according to the target parameters. The invention can solve the problems of high production time cost and high labor cost.

Description

Software configuration updating method, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of embedded device technologies, and in particular, to a software configuration updating method, a terminal, and a computer-readable storage medium.
Background
After the system software of the embedded terminal device is burned, when an emergency event, such as a customer change requirement, occurs in the production process of the embedded terminal device, and a data information updating software configuration needs to be written into the system software of the terminal device to separate different products, the system software of the existing terminal device does not support the function of writing data information into the system software of the burned terminal device, and if the data information is written into the system software of the burned terminal device, the system software with the data information needs to be stopped or reworked, so that the time cost and the labor cost of production are high.
Disclosure of Invention
The invention mainly aims to provide a software configuration updating method, a terminal and a computer readable storage medium, which solve the problems of high production time cost and labor cost.
In order to achieve the above object, the present invention provides a software configuration updating method, including:
writing target parameters in an emergency storage area corresponding to system software of the terminal equipment through an emergency interface;
loading the system software by adopting the target parameters in the emergency storage area;
and updating the software configuration of the system software according to the target parameters.
Optionally, the step of loading the system software with the target parameter in the emergency storage area includes:
and replacing preset parameters of the system software by adopting the target parameters in the emergency storage area, and loading the system software after parameter replacement.
Optionally, the step of writing the target parameter in the emergency storage area corresponding to the system software of the terminal device through the emergency interface and the step of loading the system software by using the target parameter in the emergency storage area include:
and closing the function corresponding to the preset parameter in the system software, and opening the function corresponding to the target parameter.
Optionally, the step of updating the software configuration of the system software according to the target parameter includes:
acquiring a configuration model corresponding to the target parameter;
and updating the software configuration of the system software according to the configuration model corresponding to the target parameter.
Optionally, the step of writing the target parameter in the emergency storage area corresponding to the system software of the terminal device through the emergency interface includes:
acquiring a storage address of the target parameter in the emergency storage area;
and writing the target parameters into a storage area corresponding to the storage address through the emergency interface.
Optionally, before the step of writing the target parameter in the emergency storage area corresponding to the system software of the terminal device through the emergency interface, the method includes:
acquiring system software corresponding to the terminal equipment, wherein the system software is provided with an emergency interface;
and burning the system software into a software storage area of the terminal equipment.
Optionally, the step of acquiring the system software corresponding to the terminal device includes:
and setting the emergency storage area in a software storage area of the terminal equipment, wherein the system software operates the emergency storage area through the emergency interface.
In addition, in order to achieve the above object, the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a software configuration update program stored in the memory and executable on the processor, and the software configuration update program implements the steps of any one of the software configuration update methods described above when executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, on which an update program of a software configuration is stored, and the update program of the software configuration, when executed by a processor, implements the steps of the software configuration update method according to any one of the above.
The invention provides a software configuration updating method, a terminal and a computer readable storage medium. Therefore, the emergency interface is added in the system software of the terminal equipment, when the data information needs to be written into the system software of the terminal equipment to update the software configuration in case of an emergency, the system software configuration of the terminal equipment can be updated as long as corresponding target parameters are written in through the emergency interface, the system software of the terminal equipment does not need to be burned again through stopping or reworking, time and labor are saved, and the problem that the production time and labor cost are high is solved.
Drawings
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a hardware architecture of a terminal device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a software configuration update method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a software configuration update method according to the present invention;
FIG. 4 is a flowchart illustrating a third embodiment of a software configuration update method according to the present invention;
FIG. 5 is a flowchart illustrating a fourth embodiment of the software configuration updating method of the present invention;
fig. 6 is a first schematic diagram of an emergency storage area according to an embodiment of the present invention;
fig. 7 is a second schematic diagram of an emergency storage area according to an embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: writing target parameters in an emergency storage area corresponding to system software of the terminal equipment through an emergency interface; loading the system software by adopting the target parameters in the emergency storage area; and updating the software configuration of the system software according to the target parameters. Therefore, the emergency interface is added in the system software of the terminal equipment, when the data information needs to be written into the system software of the terminal equipment to update the software configuration in case of an emergency, the system software configuration of the terminal equipment can be updated as long as corresponding target parameters are written in through the emergency interface, the system software of the terminal equipment does not need to be burned again through stopping or reworking, time and labor are saved, and the problem that the production time and labor cost are high is solved.
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
For better understanding of the above technical solutions, the following detailed descriptions will be provided in conjunction with the drawings and the detailed description of the embodiments.
As shown in fig. 1, fig. 1 is a schematic diagram of a hardware architecture of a terminal device according to an embodiment of the present invention.
As shown in fig. 1, the terminal device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a non-volatile memory), such as a disk memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the terminal device shown in fig. 1 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system and an update program of a software configuration.
In the terminal device shown in fig. 1, the processor 1001 may be configured to call an update program of the software configuration stored in the memory 1005, and perform the following operations:
writing target parameters in an emergency storage area corresponding to system software of the terminal equipment through an emergency interface;
loading the system software by adopting the target parameters in the emergency storage area;
and updating the software configuration of the system software according to the target parameters.
Further, the processor 1001 may call an update program of the software configuration stored in the memory 1005, and also perform the following operations:
and replacing preset parameters of the system software by adopting the target parameters in the emergency storage area, and loading the system software after parameter replacement.
Further, the processor 1001 may call an update program of the software configuration stored in the memory 1005, and also perform the following operations:
and closing the function corresponding to the preset parameter in the system software, and opening the function corresponding to the target parameter.
Further, the processor 1001 may call an update program of the software configuration stored in the memory 1005, and also perform the following operations:
acquiring a configuration model corresponding to the target parameter;
and updating the software configuration of the system software according to the configuration model corresponding to the target parameter.
Further, the processor 1001 may call an update program of the software configuration stored in the memory 1005, and also perform the following operations:
acquiring a storage address of the target parameter in the emergency storage area;
and writing the target parameters into a storage area corresponding to the storage address through the emergency interface.
Further, the processor 1001 may call an update program of the software configuration stored in the memory 1005, and also perform the following operations:
acquiring system software corresponding to the terminal equipment, wherein the system software is provided with an emergency interface;
and burning the system software into a software storage area of the terminal equipment.
Further, the processor 1001 may call an update program of the software configuration stored in the memory 1005, and also perform the following operations:
and setting the emergency storage area in a software storage area of the terminal equipment, wherein the system software operates the emergency storage area through the emergency interface.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a software configuration updating method according to the present invention, where the software configuration updating method includes the following steps:
step S10, writing target parameters in an emergency storage area corresponding to system software of the terminal equipment through an emergency interface;
in this embodiment, the terminal device is an embedded product, that is, an embedded system, which is a device for controlling, monitoring or assisting in operating machines and devices, and is a special computer system, the embedded system is a complex of hardware and software, and the embedded product is a device or device with an embedded system.
In this embodiment, the terminal device includes system software, which is a system for controlling and coordinating a computer and an external device, supporting development and operation of application software, and is a collection of various programs that do not require user intervention. The system software of the terminal equipment is divided into production testing version software and user version software, the production testing version software is a software version used in factory testing, and the user version software is a software version which is obtained by properly upgrading a production testing version and setting operation authority when products are delivered. The system software of the terminal device is burned into a control chip of the terminal device in a burning mode, after the system software of the terminal device is burned, relevant parameters in the system software cannot be increased, reduced or modified, when an emergency, such as a customer change requirement, occurs in the production process of the terminal device, the relevant parameters need to be written into the system software of the terminal device to update software configuration, so as to separate different products, the system software of the existing terminal device does not support the function of writing data into the burned system software, if the data needs to be written into the system software of the burned terminal device, the system software with the data needs to be stopped or reworked, and the time cost and the labor cost of the production of the terminal device are undoubtedly increased.
In order to solve the above problem, this embodiment provides a method for updating software configuration, in which an emergency interface is set on the basis of system software of an existing terminal device, an emergency storage area is partitioned in a software storage area of the existing terminal device, and the system software can operate the emergency storage area through the emergency interface, so as to achieve the purpose of writing data into the system software, and cope with an emergency situation in a production process of the terminal device.
In this embodiment, the software storage area is a storage area for storing system software in the terminal device, the software storage area is set in an embedded chip of the terminal device, and the software storage area may be a Flash area, or course, in other embodiments, the software storage area may also be other types of storage areas, which is not limited in this embodiment; the emergency storage area is a storage space with a fixed byte size in the software storage area, and may be a space with a 32 byte size, of course, the specific byte size may be determined according to actual needs, which is not limited in this embodiment, the emergency storage area is used for processing an emergency event, the emergency storage area may be implemented by defining a program array, and the definition of the program array void _ data _ ary [32] is implemented to partition a storage space with a 32 byte size in the software storage area of the terminal device, where the storage space is as shown in fig. 6; the emergency interface is a program code in system software, and generally represents an instruction, the emergency interface can operate an emergency storage area at will, that is, data can be written into the emergency storage area at will through the emergency interface, it should be noted that the data written through the emergency interface can be data of any length and any type, and the length and type of the written data are not fixed, so that the compatibility of the emergency interface is improved.
In this embodiment, the emergency interface may be selected as an AT (Attention) command, where the AT command is a command applied to connection and communication between the terminal device and a PC (Personal Computer) application, that is, the PC may write data into the emergency storage area through the AT command in the system software, and the PC may be selected as a test Computer used in the production process. The specific format of the AT command is set as follows:
AT ^ BOX _ VOID _ TYPE ═ offset, (number of data), (data 1), (data 2) …
Wherein, the 1 st parameter of the AT command indicates the initial position of the emergency memory area for storing the data; the 2 nd parameter of the AT command represents the number of data to be written; the 3-N parameters of this AT command indicate the data to be written. For example, the AT instruction is shaped as follows:
AT^BOX_VOID_TYPE=0x0A,0x01,0xA1
where, the offset is 0x0A, 1 data, and the data value is 0xA1,A1I.e. the data to be written to the emergency memory area.
In this embodiment, the target parameter is a parameter or data that needs to be written into the emergency storage area through the emergency interface, and the target parameter may be a requirement parameter that is changed by a customer in the production process, for example, a battery model of the terminal device, an identification bit of the terminal device, and the like.
Specifically, when the terminal device encounters an emergency situation in the production process, for example, a customer changes a demand and needs to write data or parameters into system software of the terminal device, the terminal device is connected with the test computer through a serial port, and target parameters are written into an emergency storage area corresponding to the system software of the terminal device through an emergency interface.
Step S20, loading the system software by adopting the target parameters in the emergency storage area;
in this embodiment, after writing the target parameter in the emergency storage area corresponding to the system software of the terminal device through the emergency interface, the system software of the terminal device is loaded by using the target parameter in the emergency storage area.
In an optional implementation manner, after target parameters are written in an emergency storage area corresponding to system software of a terminal device through an emergency interface, the target parameters in the emergency storage area are used for replacing preset parameters of the system software, and the system software after parameter replacement is loaded. The preset parameters are parameters needing to be changed in the system software, and the preset parameters are parameters which are set by the system software in a default mode when the system software burns the terminal equipment for the first time. And after the target parameters are written, replacing the preset parameters of the system software by the target parameters, namely removing the preset parameters of the system software, replacing the preset parameters by the target parameters, wherein only the target parameters and the preset parameters exist in the system software after the replacement, and then the terminal equipment loads the system software after the parameter replacement. It should be noted that, in this embodiment, after parameter replacement, the target parameter in the emergency storage area may be automatically cleared, that is, only one target parameter exists in the system software after parameter replacement; the target parameters in the emergency memory area can also be reserved, namely two target parameters exist in the system software after parameter replacement. It can be understood that, when two target parameters exist in the system software after parameter replacement, the addresses stored by the two target parameters are different, and the corresponding target parameters are acquired by reasonably setting an access request path during loading.
In another optional implementation manner, after the target parameter is written in the emergency storage area corresponding to the system software of the terminal device through the emergency interface, the function corresponding to the preset parameter in the system software is closed, the function corresponding to the target parameter is opened, and then the target parameter in the emergency storage area is used for loading the system software. Closing a function corresponding to a preset parameter in the system software, even if the preset parameter cannot be loaded by the software or the preset parameter cannot be obtained when the software is loaded; and starting the function corresponding to the target parameter, namely, the target parameter can be loaded by software or the target parameter can be obtained when the software is loaded. In this embodiment, after writing the target parameter into the system software, the system software has both the preset parameter and the target parameter, the preset parameter and the target parameter have different storage addresses, and when the software is loaded, the storage address of the target parameter may be queried by reasonably setting the access request path to obtain the target parameter. It should be noted that the function of the preset parameter may be re-enabled when needed, and the enabling manner may also be to query the storage address of the preset parameter to obtain the preset parameter by setting a reasonable access request path.
And step S30, updating the software configuration of the system software according to the target parameters.
In this embodiment, the software configuration corresponds to a configuration when the system software normally works, a software configuration user tracks and maintains the system software, and different system software corresponds to different software configurations, specifically, different parameters of the system software correspond to different software configurations.
Specifically, after the system software is loaded with the target parameters in the emergency storage area, the software configuration of the system software is updated according to the target parameters in the system software. It should be noted that, after the system software is burned into the terminal device, there is a set of default parameter settings, so that after loading, there is a default software configuration, and after writing the target parameter, the system software is loaded according to the target parameter, and the software configuration of the system software is updated.
Furthermore, different types of terminal equipment products can be distinguished through system software of the terminal equipment and software configuration of the system software, and the terminal equipment after software configuration updating and the terminal equipment before software configuration updating do not belong to the same type of product, so that different types of products can be separated, and the purpose of delivering different products in the production process is achieved.
In the technical scheme provided by this embodiment, a target parameter is written in an emergency storage area corresponding to system software of a terminal device through an emergency interface, then the system software is loaded by using the target parameter in the emergency storage area, and finally software configuration of the system software is updated according to the target parameter. Therefore, the emergency interface is added in the system software of the terminal equipment, when the data information needs to be written into the system software of the terminal equipment to update the software configuration in case of an emergency, the system software configuration of the terminal equipment can be updated as long as corresponding target parameters are written in through the emergency interface, the system software of the terminal equipment does not need to be burned again through stopping or reworking, time and labor are saved, and the problem that the production time and labor cost are high is solved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the software configuration updating method according to the present invention, where based on the first embodiment, the step of S30 includes:
step S31, obtaining a configuration model corresponding to the target parameter;
in this embodiment, the configuration model is a basis for updating system software of the terminal device, and different target parameters correspond to different configuration models. Taking a battery in the terminal device as an example, the battery in the terminal device has different battery types, the different battery types correspond to different battery models, the different battery models correspond to different fuel gauge configurations, the battery models are target parameters in the embodiment, the battery models are configuration models in the embodiment, and the fuel gauge configurations are software configurations in the embodiment. For example, for battery model A1The corresponding battery model is A model, and the battery model is A2The battery model corresponding to the battery is B model, the electricity meters corresponding to the A model and the B model are configured differently, and when the battery model in the system software of the terminal equipment is A1Then obtaining the battery model A1A corresponding battery model A; when the battery model in the system software of the terminal equipment is A2Then obtaining the battery model A2Corresponding B cell model.
In this embodiment, the terminal device is provided with various configuration models, each configuration model constitutes a configuration model library, and after the target parameter in the emergency storage area is used to load the system software, the configuration model corresponding to the target parameter is searched in the configuration model library according to the target parameter. Taking the battery model and the battery model as an example, various possible battery models are arranged in the terminal equipment, the various battery models form a battery model library, and after system software is loaded according to the battery model in the emergency storage area, the system software is loaded according to the battery modelLooking up the battery model corresponding to the battery model in the battery model library, for example, if the battery model is A1If the battery model is A, the battery model is searched in the battery model library1A corresponding battery model A; if the battery type is A2If the battery model is A, the battery model is searched in the battery model library2Corresponding B cell model.
It should be noted that the configuration model library in the terminal device may be updated, and a new configuration model may be added to the configuration model library at regular time, so as to enrich the configuration models in the configuration model library.
And step S32, updating the software configuration of the system software according to the configuration model corresponding to the target parameter.
In this embodiment, after the terminal device obtains the configuration model corresponding to the target parameter, the terminal device updates the software configuration of the system software according to the configuration model corresponding to the target parameter.
Specifically, taking a battery model and an electricity meter configuration as an example, if the battery model acquired by the terminal device is a battery model a, updating the system software to the electricity meter configuration corresponding to the battery model a according to the battery model a; and if the battery model acquired by the terminal equipment is the B battery model, updating the system software to the electricity meter configuration corresponding to the B battery model according to the B battery model.
In the technical solution provided in this embodiment, the software configuration of the system software is updated according to the configuration model corresponding to the target parameter by obtaining the configuration model corresponding to the target parameter. Therefore, according to the scheme, the configuration model corresponding to the target parameter is automatically matched according to the target parameter written into the terminal equipment, so that the software configuration is updated, the software configuration of the system software can be updated only by writing the parameter into the emergency interface, the system software does not need to be burnt again, and the time cost and the labor cost are saved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of the software configuration updating method according to the present invention, where based on the first embodiment, the step of S10 includes:
step S11, acquiring the storage address of the target parameter in the emergency storage area;
in this embodiment, the storage address is an address of a storage area where the target parameter is stored, the target parameter is stored in the emergency storage area, and the target storage area includes a plurality of byte spaces, for example, each byte space corresponds to one storage address, so that when the target parameter is written into a certain byte space of the emergency storage area, the target parameter corresponds to a unique storage address.
In this embodiment, if an emergency occurs, when a target parameter needs to be written into an emergency storage area corresponding to system software of a terminal device through an emergency interface, a storage address of the target parameter in the emergency storage area corresponding to the system software of the terminal device is obtained first.
For example, taking an emergency storage area with a space of 32 bytes as an example, suppose that it is necessary to write the battery model a into the emergency storage area corresponding to the system software of the terminal device through the emergency interface1Then, the battery model A is determined in the emergency storage area1Assuming the battery model number A1Is the location in the emergency storage area offset equal to 0x0A, the battery model a is determined1Is offset 0x 0A.
And step S12, writing the target parameter into a storage area corresponding to the storage address through the emergency interface.
In this embodiment, after the storage address of the target parameter in the emergency storage area is obtained, the target parameter is written into the storage area corresponding to the storage address through the emergency interface.
Specifically, assume that the target parameter is battery model a1Battery type A1If the storage address of (a) is offset 0x0A and the emergency interface is an AT command, an AT command corresponding to the target parameter is generated, that is, the AT command corresponding to the target parameter is: AT ^ BOX _ VOID _ TYPE ═ 0x0A, 0x01, 0xA1The target parameter A is converted into the target parameter A through the AT command corresponding to the generated target parameter1The storage address in the write emergency storage area is the byte space corresponding to the offset 0x 0A.
It should be noted that the software storage area of the terminal device is divided intoThe emergency storage area is generally a blank area, and when the emergency storage area is not used, the emergency storage area does not store any data information. When the emergency storage area is used for the first time, the first byte space in the storage area can be directly written into the target parameter as the storage address, and the target parameter a is used in this embodiment1The byte space corresponding to the offset 0x0A in the write emergency storage area is the result of the previous 10 byte spaces being used, as shown in fig. 7, the specific storage address of the target parameter may be determined according to actual needs, which is not limited in this embodiment.
In the technical solution provided in this embodiment, by obtaining the storage address of the target parameter in the emergency storage area, the target parameter is written into the storage area corresponding to the storage address through the emergency interface. Therefore, the target parameters are written into the storage area corresponding to the storage address, on one hand, the storage space of the emergency storage area can be reasonably utilized, on the other hand, the purpose of writing the parameters into the system software of the burned terminal equipment is achieved through the arranged emergency storage area and the arranged emergency interface, and the system software does not need to be burned again when an emergency happens.
Referring to fig. 5, fig. 5 is a flowchart illustrating a fourth embodiment of the software configuration updating method according to the present invention, where based on the first embodiment, the step of S10 includes:
step S40, acquiring system software corresponding to the terminal equipment, wherein the system software is provided with an emergency interface;
in this embodiment, before writing the target parameter in the emergency storage area corresponding to the system software of the terminal device through the emergency interface, the system software with the emergency interface is obtained first, and it should be noted that the system software at this time is the system software of the production test version, that is, the system software without setting the authority. The system software of the production and test version is also provided with an emergency interface after being switched to the user version, and the emergency interface is usually written in the production and test version software and used in the user version software.
Further, before the system software of the terminal device is acquired, an emergency storage area is set in the software storage area of the terminal device, that is, a storage area with a fixed byte size space is divided into the software storage area of the terminal device as the emergency storage area, and the system software can operate the emergency storage area through an emergency interface.
Specifically, referring to fig. 6, the emergency memory area is divided in the memory area of the terminal device by defining a program array indicating that a memory space of 32 bytes is divided from the software memory area of the terminal device, and assuming that the size of the emergency memory area is 32 bytes, the defined program array is void _ data _ ary [32 ].
And step S50, burning the system software into a software storage area of the terminal equipment.
In this embodiment, after the system software corresponding to the terminal device is obtained, the system software corresponding to the terminal device is burned into a software storage area in the terminal device.
Specifically, a test computer is connected with the terminal device through a serial port, system software with an emergency interface is added on the test computer, and the system software on the test computer is burned into a software storage area of the terminal device through the serial port.
In the technical scheme provided by this embodiment, by acquiring system software corresponding to the terminal device, the system software is provided with an emergency interface, and the system software is burned into a software storage area of the terminal device. Therefore, according to the scheme, the emergency interface is additionally arranged in the system software of the terminal equipment, and data can be written into the system software through the emergency interface.
Based on the foregoing embodiments, the present invention further provides a terminal device, where the terminal device may include a memory, a processor, and an update program of a software configuration that is stored in the memory and is executable on the processor, and when the processor executes the update program of the software configuration, the steps of the software configuration update method according to any of the foregoing embodiments are implemented.
Based on the foregoing embodiments, the present invention further provides a computer-readable storage medium, on which an update program of a software configuration is stored, where the update program of the software configuration implements the steps of the software configuration update method according to any one of the foregoing embodiments when being executed by a processor.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A method for updating a software configuration, the method comprising:
writing target parameters in an emergency storage area corresponding to system software of the terminal equipment through an emergency interface;
loading the system software by adopting the target parameters in the emergency storage area;
and updating the software configuration of the system software according to the target parameters.
2. The method for updating software configuration according to claim 1, wherein the step of loading the system software with the target parameter in the emergency memory area comprises:
and replacing preset parameters of the system software by adopting the target parameters in the emergency storage area, and loading the system software after parameter replacement.
3. The method for updating software configuration according to claim 1, wherein between the step of writing the target parameter in the emergency storage area corresponding to the system software of the terminal device through the emergency interface and the step of loading the system software with the target parameter in the emergency storage area, the method comprises:
and closing the function corresponding to the preset parameter in the system software, and opening the function corresponding to the target parameter.
4. The method for updating software configuration according to claim 1, wherein the step of updating the software configuration of the system software according to the target parameter comprises:
acquiring a configuration model corresponding to the target parameter;
and updating the software configuration of the system software according to the configuration model corresponding to the target parameter.
5. The method for updating software configuration according to claim 1, wherein the step of writing the target parameter in the emergency storage area corresponding to the system software of the terminal device through the emergency interface comprises:
acquiring a storage address of the target parameter in the emergency storage area;
and writing the target parameters into a storage area corresponding to the storage address through the emergency interface.
6. The method for updating software configuration according to claim 1, wherein the step of writing the target parameter in the emergency storage area corresponding to the system software of the terminal device through the emergency interface comprises:
acquiring system software corresponding to the terminal equipment, wherein the system software is provided with an emergency interface;
and burning the system software into a software storage area of the terminal equipment.
7. The method for updating software configuration according to claim 6, wherein the step of acquiring the system software corresponding to the terminal device comprises:
and setting the emergency storage area in a software storage area of the terminal equipment, wherein the system software operates the emergency storage area through the emergency interface.
8. A terminal device, characterized in that the terminal device comprises a memory, a processor and a software configuration update program stored on the memory and operable on the processor, and the software configuration update program, when executed by the processor, implements the steps of the software configuration update method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an update program of a software configuration, which when executed by a processor implements the steps of the method for updating a software configuration according to any one of claims 1 to 7.
CN202011601302.6A 2020-12-29 2020-12-29 Software configuration updating method, terminal and computer readable storage medium Pending CN112698845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011601302.6A CN112698845A (en) 2020-12-29 2020-12-29 Software configuration updating method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011601302.6A CN112698845A (en) 2020-12-29 2020-12-29 Software configuration updating method, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112698845A true CN112698845A (en) 2021-04-23

Family

ID=75512107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011601302.6A Pending CN112698845A (en) 2020-12-29 2020-12-29 Software configuration updating method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112698845A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200630881A (en) * 2005-02-23 2006-09-01 Chung Shan Inst Of Science Device and method for updating embedded system software and parameters
CN101656623A (en) * 2008-08-21 2010-02-24 华为技术有限公司 Software installing method, sever and system
US20110252337A1 (en) * 2010-04-07 2011-10-13 Cisco Technology, Inc. Messaging and Presence Protocol as a Configuration and Management Bus for Embedded Devices
CN102340714A (en) * 2010-07-15 2012-02-01 歌尔声学股份有限公司 Method for configurating man-machine interface of bluetooth headset
CN104850439A (en) * 2015-05-22 2015-08-19 上海斐讯数据通信技术有限公司 Application configuration method and applicable embedded device
CN109683941A (en) * 2018-12-27 2019-04-26 四川九洲空管科技有限责任公司 A kind of answering machine method for upgrading software based on single-chip on-line loaded

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200630881A (en) * 2005-02-23 2006-09-01 Chung Shan Inst Of Science Device and method for updating embedded system software and parameters
CN101656623A (en) * 2008-08-21 2010-02-24 华为技术有限公司 Software installing method, sever and system
US20110252337A1 (en) * 2010-04-07 2011-10-13 Cisco Technology, Inc. Messaging and Presence Protocol as a Configuration and Management Bus for Embedded Devices
CN102340714A (en) * 2010-07-15 2012-02-01 歌尔声学股份有限公司 Method for configurating man-machine interface of bluetooth headset
CN104850439A (en) * 2015-05-22 2015-08-19 上海斐讯数据通信技术有限公司 Application configuration method and applicable embedded device
CN109683941A (en) * 2018-12-27 2019-04-26 四川九洲空管科技有限责任公司 A kind of answering machine method for upgrading software based on single-chip on-line loaded

Similar Documents

Publication Publication Date Title
CN103176824B (en) A kind of method and device of system upgrade
CN106648787A (en) Resource updating method and terminal
JPWO2002042853A1 (en) Programming device and programming method
CN102567053A (en) Method and device for downgrading software version
CN111857777B (en) System updating method and device based on double-core intelligent ammeter and computer equipment
CN101211265A (en) Terminal embedded type system software update method and apparatus
CN102662688B (en) A kind of Nor flash update method and device
CN112344524B (en) Control method of air conditioner, air conditioner and storage medium
CN102999349A (en) Software upgrading method
CN111008106B (en) Server monitoring management method and device, electronic equipment and storage medium
US20060129520A1 (en) System and method for automatically updating a program in a computer
CN100489780C (en) Software installation method and apparatus thereof
CN106990981B (en) Program updating method and device
CN112698845A (en) Software configuration updating method, terminal and computer readable storage medium
CN107423075A (en) The register method and user terminal of driving
JP2004295589A (en) Controller and method for updating program
CN106775899A (en) A kind of many distribution districts list ROM implementation methods based on android
CN102857817A (en) Set-top box production system and method capable of realizing dynamical loading
JP5417820B2 (en) System file sharing apparatus, system file sharing method and program
JP3649932B2 (en) Program update apparatus and program update method
JPH11134178A (en) Interrelated check system by information on number of versions of load module and program storage medium
CN111736863A (en) Software upgrading method and device and electronic equipment
CN1331048C (en) Method of replacing partial basic input and output system
CN104106015A (en) Programmable controller system, programmable display therefor, assistance device, and program
CN114567628B (en) OTA upgrading method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination