CN110597536A - Software upgrading method, system and terminal equipment - Google Patents

Software upgrading method, system and terminal equipment Download PDF

Info

Publication number
CN110597536A
CN110597536A CN201910803277.0A CN201910803277A CN110597536A CN 110597536 A CN110597536 A CN 110597536A CN 201910803277 A CN201910803277 A CN 201910803277A CN 110597536 A CN110597536 A CN 110597536A
Authority
CN
China
Prior art keywords
product
characteristic information
upgrade package
upgraded
product characteristic
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.)
Granted
Application number
CN201910803277.0A
Other languages
Chinese (zh)
Other versions
CN110597536B (en
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.)
Beijing Youbixuan Intelligent Robot Co ltd
Original Assignee
Ubtech Robotics Corp
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 Ubtech Robotics Corp filed Critical Ubtech Robotics Corp
Priority to CN201910803277.0A priority Critical patent/CN110597536B/en
Publication of CN110597536A publication Critical patent/CN110597536A/en
Application granted granted Critical
Publication of CN110597536B publication Critical patent/CN110597536B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application is applicable to the technical field of software, and provides a software upgrading method, a system and terminal equipment. The embodiment of the application acquires the product characteristic information of the upgrade package from the background equipment, compares whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded, if so, sends a downloading request to the background equipment, acquires the upgrade package carrying the product characteristic information from the background equipment and runs to finish the software upgrading operation, otherwise, sends a first error notice representing the product characteristic information error of the upgrade package to the background equipment and quits the software upgrading operation, ensures that the product to be upgraded acquires the upgrade package carrying the product characteristic information from the background equipment for the software upgrading operation under the condition that the product characteristic information of the upgrade package is correct, eliminates the problem that the product is upgraded by using the wrong upgrade package due to the misoperation in the deployment process of the upgrade package, hidden troubles that the terminal equipment needs to be returned to the factory for maintenance can be timely notified that the product characteristic information of the upgrade package is wrong by the staff of the background equipment.

Description

Software upgrading method, system and terminal equipment
Technical Field
The present application belongs to the field of software technologies, and in particular, to a software upgrading method, system and terminal device.
Background
With the continuous development of software technology, a variety of software programs developed according to various application requirements are developed, so that a terminal device running the software programs can realize specific functions. In order to optimize the software function of the terminal device, the software program run by the terminal device usually needs to be optimized and upgraded, the current mainstream upgrading mode is that developers of the upgrading package compile the upgrading package and then deploy the upgrading package to background personnel, the corresponding relation between the upgrading package and the terminal device is generally identified by a file name, the hidden danger that the upgrading is carried out by using the wrong upgrading package due to misoperation in the deploying process of the upgrading package exists, and the terminal device needs to be returned to the factory for maintenance under the condition that the terminal device does not backup the original upgrading package.
Content of application
In view of this, embodiments of the present application provide a software upgrading method, system and terminal device, so as to solve the problem in the prior art that a hidden danger of upgrading by using an incorrect upgrade package due to an incorrect operation in an upgrade package deployment process exists, and the problem that the terminal device needs to be returned to the factory for maintenance directly when the terminal device does not backup an original upgrade package.
A first aspect of an embodiment of the present application provides a software upgrading method, which is applied to a product to be upgraded, and the software upgrading method includes:
acquiring product characteristic information of the upgrade package from background equipment;
comparing whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded;
when the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded, sending a downloading request to the background equipment, and acquiring the upgrade package carrying the product characteristic information from the background equipment;
the upgrade package carrying the product characteristic information is operated to finish the software upgrade operation;
when the product characteristic information of the upgrade package is inconsistent with the product characteristic information of the product to be upgraded, sending a first error notification to the background equipment and quitting the software upgrading operation; wherein the first error notification is used for characterizing the product characteristic information error of the upgrade package.
A second aspect of the embodiments of the present application provides a software upgrading method, which is applied to a background device, and the software upgrading method includes:
sending the product characteristic information of the upgrade package to the product to be upgraded; the product to be upgraded is used for comparing whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded or not, if so, a downloading request is sent to background equipment, the upgrade package carrying the product characteristic information is obtained from the background equipment and is operated to complete software upgrading operation, and if not, a first error notification is sent to the background equipment and the software upgrading operation is quitted;
when a downloading request sent by the product to be upgraded is received, responding to the downloading request, and sending an upgrading packet carrying product characteristic information to the product to be upgraded; the product to be upgraded is also used for operating the upgrade package carrying the product characteristic information to finish software upgrading operation;
and when a first error notification sent by the product to be upgraded is received, judging that the product characteristic information of the upgrade package is wrong.
A third aspect of an embodiment of the present application provides a software upgrading system, which is applied to a product to be upgraded, and includes:
the acquisition module is used for acquiring the product characteristic information of the upgrade package from the background equipment;
the comparison module is used for comparing whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded;
the receiving and sending module is used for sending a downloading request to the background equipment when the product characteristic information of the upgrading packet is consistent with the product characteristic information of the product to be upgraded, and acquiring the upgrading packet carrying the product characteristic information from the background equipment;
the operation module is used for operating the upgrade package carrying the product characteristic information to finish the software upgrade operation;
the quit module is used for sending a first error notice to the background equipment and quitting the software upgrading operation when the product characteristic information of the upgrading package is inconsistent with the product characteristic information of the product to be upgraded; wherein the first error notification is used for characterizing the product characteristic information error of the upgrade package.
A fourth aspect of the embodiments of the present application provides a software upgrading system, which is applied to a background device, and the software upgrading system includes:
the sending module is used for sending the product characteristic information of the upgrade package to the product to be upgraded; the product to be upgraded is used for comparing whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded or not, if so, a downloading request is sent to background equipment, the upgrade package carrying the product characteristic information is obtained from the background equipment and is operated to complete software upgrading operation, and if not, a first error notification is sent to the background equipment and the software upgrading operation is quitted;
the receiving and sending module is used for responding to the downloading request and sending an upgrading packet carrying product characteristic information to the product to be upgraded when receiving the downloading request sent by the product to be upgraded; the product to be upgraded is also used for operating the upgrade package carrying the product characteristic information to finish software upgrading operation;
and the receiving module is used for judging that the product characteristic information of the upgrade package is wrong when receiving a first error notification sent by the product to be upgraded.
A fifth aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method according to the first or second aspect of the embodiment of the present application when executing the computer program.
A sixth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the method according to the first or second aspect of embodiments of the present application.
The first and third aspects of the embodiments of the present application obtain the product characteristic information of the upgrade package from the background device, compare whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded, if yes, send a download request to the background device, obtain the upgrade package carrying the product characteristic information from the background device and run to complete the software upgrade operation, otherwise send a first error notification representing that the product characteristic information of the upgrade package is erroneous to the background device and quit the software upgrade operation, the method and the device can ensure that the product to be upgraded acquires the upgrade package carrying the product characteristic information from the background equipment to perform software upgrading operation under the condition that the product characteristic information of the upgrade package is correct, eliminate the hidden danger that the upgrade package is used for upgrading and the terminal equipment needs to be returned to the factory for maintenance due to misoperation in the deployment process of the upgrade package, and can timely inform the staff of the background equipment that the product characteristic information of the upgrade package is wrong.
The second and fourth aspects of the embodiments of the present application, by sending the product characteristic information of the upgrade package to the product to be upgraded, when the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded, the upgrade package carrying the product characteristic information acquired from the background equipment is operated to complete the software upgrade operation, otherwise a first error notification for transmitting the product characteristic information error representing the upgrade package is sent to the background equipment and the software upgrade operation is quitted, can ensure that the product to be upgraded can obtain the upgrade package carrying the product characteristic information from the background equipment for software upgrading operation only under the condition that the product characteristic information of the upgrade package is correct, eliminates the hidden troubles that the upgrade is carried out by using the wrong upgrade package and the terminal equipment needs to be returned to the factory for maintenance due to misoperation in the deployment process of the upgrade package, and the staff of the background equipment can timely know the condition of the product characteristic information error of the upgrade package.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a software upgrading method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a software upgrading method provided in the second embodiment of the present application;
fig. 3 is a schematic flowchart of a software upgrading method provided in the third embodiment of the present application;
fig. 4 is another schematic flowchart of a software upgrading method provided in the third embodiment of the present application;
FIG. 5 is a schematic diagram of a development environment configuration page provided in the third embodiment of the present application;
fig. 6 is a schematic flowchart of another software upgrading method provided in the third embodiment of the present application;
FIG. 7 is a schematic structural diagram of a software upgrading system provided in the fourth embodiment of the present application;
fig. 8 is a schematic structural diagram of a software upgrading system provided in the fifth embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal device according to a sixth embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "comprises" and "comprising," and any variations thereof, in the description and claims of this application and the drawings described above, are intended to cover non-exclusive inclusions. For example, a process, method, or system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order.
Example one
The embodiment provides a software upgrading method which is applied to a product to be upgraded. The product to be upgraded may be any terminal device such as a robot, a mobile phone, a tablet computer, a personal digital assistant, a notebook computer, a desktop computer, an intelligent bracelet, a self-service terminal, and the like, and may also be a processor for running a software program in the terminal device.
In Application, the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In one embodiment, the product to be upgraded is an embedded processor, or the product to be upgraded is a terminal device including an embedded processor.
In application, the embedded processor may be a Single Chip Microcomputer (Single Chip Microcomputer), an embedded Microcontroller (MCU), or an embedded Microprocessor (MPU).
In one embodiment, the product to be upgraded is an MCU of a robot.
As shown in fig. 1, the software upgrading method provided in this embodiment includes:
and S101, acquiring product characteristic information of the upgrade package from background equipment.
In application, the background device refers to a device for performing background management on a product to be upgraded, for example, a server or a computer running a corresponding background management system program. The product characteristic information refers to characteristic information related to software characteristics, hardware characteristics and a product identifier capable of identifying a product type of a product, and includes, but is not limited to, a product code, a circuit board position number, a product model number and a software version number. The Circuit Board refers to a Printed Circuit Board (PCB) or a Flexible Printed Circuit (FPC). According to different file types of the upgrade package which can be identified and supported by the product to be upgraded, the upgrade package can be generated into files of corresponding types.
In one embodiment, the product to be upgraded is an embedded processor, the upgrade package is a binary (bin) file, the product characteristic information is located at the end of the upgrade package, and the product characteristic information at least includes a product code, a circuit board bit number, a product model number, and a software version number.
In application, the product code can be a unique code for uniquely identifying the product to be upgraded and for distinguishing the same type of product to be upgraded.
In application, the product characteristic information of the upgrade package can be actively downloaded from the background equipment by the product to be upgraded, and can also be passively received from the product characteristic information of the upgrade package sent by the background equipment.
In one embodiment, step S101 specifically includes:
when a communication connection relation with background equipment is established, a first downloading request is sent to the background equipment, and after the background equipment responds to the first downloading request, product characteristic information of an upgrading package is downloaded from the background equipment;
or when the communication connection relation with the background equipment is established, the product characteristic information of the upgrade package sent by the background equipment is automatically received.
In application, the product to be upgraded may download the product feature information of the upgrade package via an Over-the-Air Technology (OTA).
And S102, comparing whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded.
In application, the product characteristic information of the upgrade package and the product characteristic information of the product to be upgraded can be compared to be consistent through a comparison circuit or a comparison program arranged in the product to be upgraded. The product characteristic information of the product to be upgraded is usually recorded in the attribute information or hardware information of the product to be upgraded, and whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded can be determined by comparing the fields of the product characteristic information of the upgrade package and the fields of the same type of product characteristic information in the product to be upgraded one by one.
Step S103, when the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded, sending a second download request to the background equipment, and acquiring the upgrade package carrying the product characteristic information from the background equipment.
In application, an upgrade package carrying product characteristic information may be actively downloaded from a background device by a product to be upgraded, or a correct notification that product characteristic information representing the upgrade package is correct may be sent to a background device by the product to be upgraded when the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded, the background device actively sends the upgrade package carrying the product characteristic information to the product to be upgraded after receiving the correct notification, and the product to be upgraded passively receives the upgrade package carrying the product characteristic information sent by the background device at this time.
In application, the product to be upgraded may download the upgrade package carrying the product feature information via an Over-the-Air Technology (OTA) download technique.
And step S104, operating the upgrade package carrying the product characteristic information to finish the software upgrade operation.
In application, when the comparison result shows that the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded, the upgrade package carrying the product characteristic information is a correct upgrade package suitable for the product to be upgraded, and at this time, the upgrade package carrying the product characteristic information can be used for performing software upgrade operation.
Step S105, when the product characteristic information of the upgrade package is inconsistent with the product characteristic information of the product to be upgraded, sending a first error notification to the background equipment and quitting the software upgrading operation; wherein the first error notification is used for characterizing the product characteristic information error of the upgrade package.
In application, when the comparison result shows that the product characteristic information of the upgrade package is inconsistent with the product characteristic information of the product to be upgraded, the upgrade package carrying the product characteristic information is an error upgrade package which is not suitable for the product to be upgraded, at this time, the software upgrading operation should be quitted, if the upgrade package carrying the product characteristic information is continuously obtained from the background equipment, and the software upgrading operation is carried out by using the upgrade package, under the condition that the original upgrade package is not backed up for the product to be upgraded, the product to be upgraded needs to be returned to the factory for maintenance directly. The first error notification is used for enabling the background equipment to know that the product characteristic information of the upgrade package is wrong.
In application, when the product feature information of the upgrade package is inconsistent with the product feature information of the product to be upgraded, the product to be upgraded may further send a first error reminding message, so that a user of the product to be upgraded knows that the product feature information of the upgrade package is incorrect, and thus corresponding remedial measures may be taken, for example, the product to be upgraded is controlled to clear the downloaded product feature information of the upgrade package, and correct product feature information of the upgrade package is obtained from the background device again. In the embodiment, the product characteristic information of the upgrade package is acquired from the background equipment, whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded is compared, if yes, a downloading request is sent to the background equipment, the upgrade package carrying the product characteristic information is acquired from the background equipment and the software upgrading operation is completed, otherwise, a first error notification representing the error of the product characteristic information of the upgrade package is sent to the background equipment and the software upgrading operation is quitted, the method and the device can ensure that the product to be upgraded acquires the upgrade package carrying the product characteristic information from the background equipment to perform software upgrading operation under the condition that the product characteristic information of the upgrade package is correct, eliminate the hidden danger that the upgrade package is used for upgrading and the terminal equipment needs to be returned to the factory for maintenance due to misoperation in the deployment process of the upgrade package, and can timely inform the staff of the background equipment that the product characteristic information of the upgrade package is wrong.
Example two
As shown in fig. 2, in the present embodiment, after step S103 and before step S104, the method includes:
step S201, comparing whether the product characteristic information carried by the upgrade package is consistent with the product characteristic information of the product to be upgraded.
In application, the comparison circuit or the comparison program arranged in the product to be upgraded can be used for comparing whether the product characteristic information carried by the upgrade package is consistent with the product characteristic information of the product to be upgraded. The product characteristic information of the product to be upgraded is usually recorded in the attribute information or hardware information of the product to be upgraded, and whether the product characteristic information carried by the upgrade package is consistent with the product characteristic information of the product to be upgraded can be determined by comparing whether the fields of the product characteristic information carried by the upgrade package and the fields of the same type of product characteristic information in the product to be upgraded are consistent one by one.
Step S202, when the product characteristic information carried by the upgrade package is consistent with the product characteristic information of the product to be upgraded, the step of operating the upgrade package carrying the product characteristic information to complete the software upgrading operation is started.
In application, when the comparison result shows that the product characteristic information carried by the upgrade package is consistent with the product characteristic information of the product to be upgraded, the upgrade package carrying the product characteristic information is a correct upgrade package suitable for the product to be upgraded, and the upgrade package carrying the product characteristic information can be used for carrying out software upgrading operation.
Step S203, when the product characteristic information carried by the upgrade package is inconsistent with the product characteristic information of the product to be upgraded, sending a second error notification to the background equipment and quitting the software upgrading operation; and the second error notification is used for representing that the upgrade package carrying the product characteristic information is in error.
In application, when the comparison result shows that the product characteristic information carried by the upgrade package is inconsistent with the product characteristic information of the product to be upgraded, the upgrade package carrying the product characteristic information is an error upgrade package which is not suitable for the product to be upgraded, the software upgrading operation should be quitted, if the upgrade package is continuously used for carrying out the software upgrading operation, under the condition that the original upgrade package is not backed up for the product to be upgraded, the product to be upgraded needs to be returned to the factory for maintenance. And the second error notification is used for enabling the background equipment to know that the upgrade package carrying the product characteristic information is in error.
In application, when the product characteristic information carried by the upgrade package is inconsistent with the product characteristic information of the product to be upgraded, the product to be upgraded may further send a second error reminding message so that a user of the product to be upgraded knows that the upgrade package carrying the product characteristic information is erroneous, and thus corresponding remedial measures may be taken, for example, the product to be upgraded is controlled to clear the downloaded upgrade package carrying the product characteristic information, and a correct upgrade package carrying the product characteristic information is obtained from the background device again.
In the embodiment, after the upgrade package carrying the product characteristic information is obtained from the background device, whether the product characteristic information carried by the upgrade package is consistent with the product characteristic information of the product to be upgraded is further compared, when the product characteristic information carried by the upgrade package is consistent with the product characteristic information of the product to be upgraded, the upgrade package is operated to complete the software upgrading operation, otherwise, a second error notification for representing the error of the upgrade package carrying the product characteristic information is sent to the background device and the software upgrading operation is quitted, so that the software upgrading operation can be performed on the product to be upgraded only when the product characteristic information of the upgrade package and the upgrade package carrying the product characteristic information are both correct, secondary confirmation is realized, and the hidden danger that the upgrade is performed by using the wrong upgrade package and the terminal device needs to be returned to the factory for maintenance due to the misoperation in the deployment process of the upgrade package is more reliably eliminated, and can inform the staff of the background equipment of the upgrade package error carrying the product characteristic information in time.
EXAMPLE III
The embodiment provides a software upgrading method which is applied to background equipment. The background device refers to a device for performing background management on a product to be upgraded, for example, a server or a computer running a corresponding background management system program. The software upgrading method provided by the embodiment may be specifically executed by a processor of the background device.
As shown in fig. 3, the software upgrading method provided in this embodiment includes:
s301, sending product characteristic information of an upgrade package to a product to be upgraded; and the product to be upgraded is used for comparing whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded or not, if so, sending a downloading request to background equipment, acquiring the upgrade package carrying the product characteristic information from the background equipment and running to finish software upgrading operation, and otherwise, sending a first error notification to the background equipment and quitting the software upgrading operation.
The product to be upgraded in this embodiment is the product to be upgraded in the first embodiment, and the nouns related to the product to be upgraded are explained in detail in the first embodiment, and are not described in detail in this embodiment.
In application, the background device may send the product feature information of the upgrade package to the product to be upgraded when receiving the first download request sent by the product to be upgraded, or may actively send the product feature information of the upgrade package to the product to be upgraded when the upgrade package is updated.
In one embodiment, step S301 specifically includes:
when a first downloading request sent by a product to be upgraded is received, responding to the first downloading request, and sending product characteristic information of an upgrading package to the product to be upgraded;
or when the upgrade package is updated, automatically sending the product characteristic information of the upgrade package to the product to be upgraded.
Step S302, when a second download request sent by the product to be upgraded is received, responding to the second download request, and sending an upgrade package carrying product characteristic information to the product to be upgraded; and the product to be upgraded is also used for operating the upgrade package carrying the product characteristic information to finish the software upgrading operation.
In application, the background device may send an upgrade package carrying the product characteristic information to the product to be upgraded when receiving a second download request sent by the product to be upgraded, or may actively send the upgrade package carrying the product characteristic information to the product to be upgraded when receiving a correct notification that the product characteristic information representing the upgrade package sent by the product to be upgraded is correct.
Step S303, when a first error notification sent by the product to be upgraded is received, judging that the product characteristic information of the upgrade package is wrong.
In application, when the first error notification is received, the product feature information of the upgrade package can be determined to be an error, and at this time, the background device can send first error reminding information, so that a worker of the background device can know that the product feature information of the upgrade package is an error, and accordingly corresponding remedial measures can be taken, for example, error reasons are checked, correct product feature information of the upgrade package is sent to the product to be upgraded again, and the like.
In one embodiment, after step S302, the method includes:
when a second error notification sent by the product to be upgraded is received, judging that the upgrade packet carrying the product characteristic information is in error; and the product to be upgraded is also used for comparing whether the product characteristic information carried by the upgrade package is consistent with the product characteristic information of the product to be upgraded, if so, the upgrade package carrying the product characteristic information is operated to finish the software upgrading operation, and otherwise, a second error notification is sent to the background equipment and the software upgrading operation is quitted.
In application, when receiving the second error notification, the background device may determine that the upgrade package carrying the product characteristic information is an error, and at this time, the background device may send the second error reminding information, so that a worker of the background device knows that the upgrade package carrying the product characteristic information is an error, and may take corresponding remedial measures, such as troubleshooting the error cause, resending a correct upgrade package carrying the product characteristic information to the product to be upgraded, and the like.
As shown in fig. 4, in one embodiment, step S301 is preceded by:
s401, configuring a preset development environment;
s402, compiling the software codes of the products to be upgraded and generating original upgrade packages in the preset development environment;
and S403, running the script of the original upgrade package, and automatically adding the product characteristic information of the product to be upgraded at the tail of the original upgrade package to generate an upgrade package carrying the product characteristic information.
In application, the preset development environment can be a development environment keil compatible with a singlechip C language software development system, or an integrated development environment IAR with a C/C + + compiler and a debugger. The preset development environment is used for calling an upgrade package clearing command to clear an original upgrade package before codes of a script of the upgrade package are built, calling an upgrade package generating command to generate the original upgrade package after the codes of the script are built, and calling a characteristic increasing command to automatically add product characteristic information of a product to be upgraded at the tail of the original upgrade package after the codes of the script are built.
As shown in FIG. 5, a diagram illustrating a development environment configuration page is illustrated. The development environment configuration page is used for configuring an upgrade package development environment of the STM32F070x6 type single chip microcomputer.
As shown in fig. 6, in one embodiment, step S401 includes:
s601, selecting a first command item according to a first command item selection operation of a user in a development environment configuration page; the first command item is used for calling a user command corresponding to the file name in the first command configuration area before the code of the script is built.
In the application, the first command item selection operation may be a touch operation or a cursor click operation of a mouse with respect to the first command item selection area in the development environment configuration page. Taking fig. 5 as an example, the first command item selection area is a selection box area in front of the Run #1 of the first command item below BeforeBuild/Rebuild, and after the first command item selection operation is detected, a selection mark number "√" is displayed in the selection box area to indicate that the first command item is selected.
Step S602, writing a file name of an upgrade package removal command in a first command configuration area according to a first command configuration operation of a user in a development environment configuration page; and the upgrade package clearing command is used for clearing the original upgrade package.
In an application, the first command configuration operation may be a touch operation, a cursor click operation of a mouse, or a text input operation for the first command configuration area in the development environment configuration page. Taking fig. 5 as an example, the first command configuration area includes a first user command input area and a first user command selection area to the right of the first command item Run #1, the user may input the file name of the update package removal command in the first user command input area, or may click or touch the first user command selection area to select the update package removal command in a pop-up command option, and after detecting the first command configuration operation, the file name "clean _ bin.
Step S603, selecting a second command item according to the second command item selection operation of the user in the development environment configuration page; the second command item is used for calling a user command corresponding to the file name in the second command configuration area after the code of the script is built.
In the application, the second command item selection operation may be a touch operation or a cursor click operation of a mouse with respect to the second command item selection area in the development environment configuration page. Taking fig. 5 as an example, the second command item selection area is a selection box area in front of the second command item Run #1 below BeforeBuild/Rebuild, and after the second command item selection operation is detected, a selection mark number "√" is displayed in the selection box area to indicate that the second command item is selected.
Step S604, writing a file name of an upgrade package generation command in a second command configuration area according to a second command configuration operation of a user in a development environment configuration page; and the upgrade package generation command is used for generating an original upgrade package.
In the application, the second command configuration operation may be a touch operation, a cursor click operation of a mouse, or a text input operation for the second command configuration area in the development environment configuration page. Taking fig. 5 as an example, the second command configuration area includes a second user command input area and a second user command selection area on the right side of the first command item Run #1, the user may input the file name of the upgrade package generation command in the second user command input area, or may click or touch the second user command selection area, select the upgrade package generation command in the popped up command item, and after detecting the second command configuration operation, the file name "romelf.exe- -bin-o" $ L @ l.bin "" # L "" of the upgrade package generation command is displayed in the second user command input area.
Step S605, selecting a third command item according to the selection operation of the third command item in the development environment configuration page by the user; the third command item is used for calling a user command corresponding to the file name in the third command configuration area after the code of the script is built.
In the application, the third command item selection operation may be a touch operation or a cursor click operation of a mouse with respect to the third command item selection area in the development environment configuration page. Taking fig. 5 as an example, the third command item selection area is a selection box area in front of the third command item Run #2 below the after build/Rebuild, and after the third command item selection operation is detected, a selection flag number "√" is displayed in the selection box area to indicate that the third command item is selected.
Step S606, writing the file name of the characteristic increasing command in a third command configuration area according to a third command configuration operation of a user in a development environment configuration page; and the characteristic adding command is used for automatically adding product characteristic information of the product to be upgraded at the tail of the original upgrade package.
In the application, the third command configuration operation may be a touch operation, a cursor click operation of a mouse, or a text input operation for the third command configuration area in the development environment configuration page. Taking fig. 5 as an example, the third command configuration area includes a third user command input area and a third user command selection area on the right side of the second command item Run #2, the user may input the file name of the add property command in the third user command input area, or may click or touch the third user command selection area, select the add property command in the popped up command item, and after detecting the third command configuration operation, the file name "add _ feature.
Step S607, selecting a fourth command item according to the fourth command item selection operation of the user in the development environment configuration page; wherein the fourth command item is used for sending out a prompt tone after the software code of the product to be upgraded is compiled.
In the application, the fourth command item selection operation may be a touch operation or a cursor click operation of a mouse with respect to the fourth command item selection area in the development environment configuration page. Taking fig. 5 as an example, the fourth command item selection area is a selection frame area in front of Beep when complete, and after the fourth command item selection operation is detected, a selection mark "√" is displayed in the selection frame area to indicate that the fourth command item is selected. The alert sound can be set as any alert sound according to actual needs, for example, an alert sound such as monophonic "dong" or "ding".
And step S608, confirming that the operation of configuring the preset development environment is completed according to the confirmation operation of the user in the development environment configuration page.
In the application, the confirmation operation may be a touch operation or a cursor click operation of a mouse with respect to a confirmation area in the development environment configuration page. Taking fig. 5 as an example, the confirmation area is an OK area, and after the confirmation operation is detected, it is confirmed that the operation of configuring the preset development environment is completed, and at this time, the development environment configuration page may be exited.
In one embodiment, the clearing upgrade package command comprises:
set product _ name ═ product1// set the product code equal to the preset product code;
set PCB _ name is PCB1// the set circuit board code is equal to the preset circuit board code;
setting a circuit board position number to be equal to a preset circuit board position number;
set mcu _ type is STM32F0T0// the product model is set to be equal to the preset product model;
setting a software version number equal to a preset software version number;
set project _ path ═ cd% \ Objects// set the item path equal to the preset item path;
bin// set item code equal to preset item code;
IF EXIST% project _ path% \ project _ name%// delete a project path IF it EXISTs and delete a project code IF it EXISTs.
In one embodiment, the content of the add property command includes:
setting the product code number equal to a preset product code number;
set product _ name ═ product1// set the product code equal to the preset product code;
set PCB _ name is PCB1// the set circuit board code is equal to the preset circuit board code;
setting a circuit board position number to be equal to a preset circuit board position number;
set mcu _ type is STM32F0T0// the product model is set to be equal to the preset product model;
setting a software version number equal to a preset software version number;
set project _ path ═ cd% \ Objects// set the item path equal to the preset item path;
bin// set item code equal to preset item code;
set feature "% product _ name% _ pcb _ num% _ mcu _ type% _ software _ version%"// setting product feature information equal to product code, circuit board bit number, product model, software version number;
IF EXISTs% project _ path% \ project _ name% (set/p:% feature% < nul > >% project _ path% \% project _ name%)// product feature information is output IF a project path EXISTs and product feature information is output IF a project code EXISTs.
In application, the preset product code, the preset circuit board position number, the preset product model and the preset software version number are obtained according to the product characteristic information of the product to be upgraded, and the preset project path and the preset project code are set according to actual needs.
In the embodiment, the product characteristic information of the upgrade package is sent to the product to be upgraded, so that the upgrade package carrying the product characteristic information acquired from the background equipment is operated to complete the software upgrading operation when the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded, otherwise, a first error notification indicating that the product characteristic information of the upgrade package is wrong is sent to the background equipment and the software upgrading operation is quitted, so that the software upgrading operation can be performed on the product to be upgraded only when the product characteristic information of the upgrade package is correct, the hidden danger that the terminal equipment needs to be returned to the factory for maintenance and the upgrading is performed by using the wrong upgrade package due to misoperation in the deployment process of the upgrade package is eliminated, and a worker of the background equipment can timely know that the product characteristic information of the upgrade package is wrong.
In this embodiment, the upgrade package carrying the product characteristic information is further sent to the product to be upgraded, so that after the product to be upgraded acquires the upgrade package carrying the product characteristic information from the backend device, whether the product characteristic information carried by the upgrade package is consistent with the product characteristic information of the product to be upgraded is further compared, when the product characteristic information carried by the upgrade package is consistent with the product characteristic information of the product to be upgraded, the upgrade package is operated to complete the software upgrade operation, otherwise, a second error notification for representing that the upgrade package carrying the product characteristic information is incorrect is sent to the backend device and the software upgrade operation is exited, so that the product to be upgraded can be subjected to the software upgrade operation only under the condition that the product characteristic information of the upgrade package and the upgrade package carrying the product characteristic information are both correct, secondary confirmation is achieved, and therefore, the problem that the upgrade package is performed by using the incorrect upgrade package due to incorrect operation in the deployment process of the upgrade package is more reliably solved, The hidden trouble that the terminal equipment needs to be returned to the factory for maintenance can be timely notified to the staff of the background equipment that the upgrade package carrying the product characteristic information is wrong.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example four
As shown in fig. 7, the present embodiment provides a software upgrading system 7, which may be a software program system in a product to be upgraded, and when the product to be upgraded runs the software program system, the method steps in the first embodiment or the second embodiment are implemented.
As shown in fig. 7, the software upgrading system 7 includes:
an obtaining module 71, configured to obtain product feature information of the upgrade package from the background device;
a comparison module 72, configured to compare whether the product feature information of the upgrade package is consistent with the product feature information of the product to be upgraded;
the transceiver module 73 is configured to send a second download request to the background device when the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded, and obtain the upgrade package carrying the product characteristic information from the background device;
the operation module 74 is configured to operate the upgrade package carrying the product characteristic information to complete software upgrade operation;
an exit module 75, configured to send a first error notification to the background device and exit the software upgrading operation when the product feature information of the upgrade package is inconsistent with the product feature information of the product to be upgraded; wherein the first error notification is used for characterizing the product characteristic information error of the upgrade package.
In one embodiment, the comparing module 72 is further configured to compare whether the product feature information carried by the upgrade package is consistent with the product feature information of the product to be upgraded; and when the product characteristic information carried by the upgrade package is consistent with the product characteristic information of the product to be upgraded, the step of operating the upgrade package carrying the product characteristic information to finish the software upgrading operation is carried out.
In an embodiment, the quitting module 75 is further configured to send a second error notification to the background device and quit the software upgrading operation when the product feature information carried by the upgrade package is inconsistent with the product feature information of the product to be upgraded; and the second error notification is used for representing that the upgrade package carrying the product characteristic information is in error.
In application, each module in the software upgrading system may be implemented by a corresponding logic circuit in a processor of a product to be upgraded, or may be a software program module. The obtaining module and the transceiver module may be specifically communication modules in a product to be upgraded, such as a baseband chip, a WiFi module, a bluetooth module, a 2.4G module, and the like. The comparison module may be a comparison circuit or a comparator.
EXAMPLE five
As shown in fig. 8, the present embodiment provides a software upgrading system 8, which may be a software program system in a backend device, and when the backend device runs the software program system, the method steps in the third embodiment are implemented.
As shown in fig. 8, the software upgrading system 8 includes:
a sending module 81, configured to send product feature information of an upgrade package to a product to be upgraded; the product to be upgraded is used for comparing whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded or not, if so, a second download request is sent to background equipment, the upgrade package carrying the product characteristic information is obtained from the background equipment and is operated to complete software upgrading operation, and if not, a first error notification is sent to the background equipment and the software upgrading operation is quitted;
the transceiver module 82 is configured to respond to a download request sent by the product to be upgraded when receiving the download request, and send an upgrade package carrying product characteristic information to the product to be upgraded; the product to be upgraded is also used for operating the upgrade package carrying the product characteristic information to finish software upgrading operation;
and the receiving module 83 is configured to determine that the product feature information of the upgrade package is wrong when receiving the first error notification sent by the product to be upgraded.
In an embodiment, the receiving module 83 is further configured to determine that the upgrade package carrying the product feature information is in error when receiving a second error notification sent by the product to be upgraded; and the product to be upgraded is also used for comparing whether the product characteristic information carried by the upgrade package is consistent with the product characteristic information of the product to be upgraded, if so, the upgrade package carrying the product characteristic information is operated to finish the software upgrading operation, and otherwise, a second error notification is sent to the background equipment and the software upgrading operation is quitted.
In one embodiment, the software upgrade system further comprises:
the configuration module is used for configuring a preset development environment;
the compiling module is used for compiling the software codes of the products to be upgraded and generating an upgrading package under the preset development environment;
and the operation module is used for operating the script of the upgrade package and automatically adding the product characteristic information of the product to be upgraded at the tail of the upgrade package.
In application, each module in the software upgrading system may be implemented by a corresponding logic circuit in a processor of the background device, or may be a software program module. The transmitting module, the receiving module and the transmitting module may specifically be communication modules in the background device, for example, a baseband chip, a WiFi module, a bluetooth module, a 2.4G module, and the like.
EXAMPLE six
As shown in fig. 9, the present embodiment provides a terminal device 9, including: a processor 90, a memory 91, and a computer program 92, such as a software upgrade program, stored in the memory 91 and operable on the processor 90. The processor 90, when executing the computer program 92, implements the steps of the first or second embodiments described above, e.g., steps S101 to S105 shown in fig. 1 or steps S301 and S303 shown in fig. 3. Alternatively, the processor 90, when executing the computer program 92, implements the functions of the modules in the above-described device embodiments, for example, the functions of the modules 71 to 75 shown in fig. 7 or the modules 81 to 83 shown in fig. 8.
Illustratively, the computer program 92 may be partitioned into one or more modules, which are stored in the memory 91 and executed by the processor 90 to accomplish the present application. One or more of the modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 92 in the terminal device 9. For example, the computer program 92 may be divided into an obtaining module, a comparing module, an operating module, and an exiting module, and the specific functions of each module are as follows:
the acquisition module is used for acquiring the product characteristic information of the upgrade package from the background equipment;
the comparison module is used for comparing whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded;
the receiving and sending module is used for sending a second downloading request to the background equipment when the product characteristic information of the upgrading packet is consistent with the product characteristic information of the product to be upgraded, and acquiring the upgrading packet carrying the product characteristic information from the background equipment;
the operation module is used for operating the upgrade package carrying the product characteristic information to finish the software upgrade operation;
the quit module is used for sending a first error notice to the background equipment and quitting the software upgrading operation when the product characteristic information of the upgrading package is inconsistent with the product characteristic information of the product to be upgraded; wherein the first error notification is used for characterizing the product characteristic information error of the upgrade package.
The computer program 92 can also be divided into a sending module and a receiving module, and the specific functions of the modules are as follows:
the sending module is used for sending the product characteristic information of the upgrade package to the product to be upgraded; the product to be upgraded is used for comparing whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded or not, if so, a second download request is sent to background equipment, the upgrade package carrying the product characteristic information is obtained from the background equipment and is operated to complete software upgrading operation, and if not, a first error notification is sent to the background equipment and the software upgrading operation is quitted;
the receiving and sending module is used for responding to the downloading request and sending an upgrading packet carrying product characteristic information to the product to be upgraded when receiving the downloading request sent by the product to be upgraded; the product to be upgraded is also used for operating the upgrade package carrying the product characteristic information to finish software upgrading operation;
and the receiving module is used for judging that the product characteristic information of the upgrade package is wrong when receiving a first error notification sent by the product to be upgraded.
The terminal device 9 may be a product to be upgraded or a background device. The terminal device may include, but is not limited to, a processor 90, a memory 91. Those skilled in the art will appreciate that fig. 9 is only an example of a terminal device 9 and does not constitute a limitation of the terminal device 9 and may include more or less components than those shown, or combine some of the components, or different components, for example, the terminal device may also include input output devices, network access devices, buses, etc.
The storage 91 may be an internal storage unit of the terminal device 9, such as a hard disk or a memory of the terminal device 9. The memory 91 may also be an external storage device of the terminal device 9, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like provided on the terminal device 9. Further, the memory 91 may also include both an internal storage unit of the terminal device 9 and an external storage device. The memory 91 is used for storing computer programs and other programs and data required by the terminal device. The memory 91 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated module, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (11)

1. A software upgrading method is applied to a product to be upgraded and comprises the following steps:
acquiring product characteristic information of the upgrade package from background equipment;
comparing whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded;
when the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded, sending a downloading request to the background equipment, and acquiring the upgrade package carrying the product characteristic information from the background equipment;
the upgrade package carrying the product characteristic information is operated to finish the software upgrade operation;
when the product characteristic information of the upgrade package is inconsistent with the product characteristic information of the product to be upgraded, sending a first error notification to the background equipment and quitting the software upgrading operation; wherein the first error notification is used for characterizing the product characteristic information error of the upgrade package.
2. The software upgrading method according to claim 1, wherein before the software upgrading operation is completed by running the upgrade package carrying the product characteristic information, the method comprises:
comparing whether the product characteristic information carried by the upgrade package is consistent with the product characteristic information of the product to be upgraded;
when the product characteristic information carried by the upgrade package is consistent with the product characteristic information of the product to be upgraded, the step of operating the upgrade package carrying the product characteristic information to finish the software upgrading operation is carried out;
when the product characteristic information carried by the upgrade package is inconsistent with the product characteristic information of the product to be upgraded, sending a second error notification to the background equipment and quitting the software upgrading operation; and the second error notification is used for representing that the upgrade package carrying the product characteristic information is in error.
3. The software upgrading method according to claim 1 or 2, wherein the product to be upgraded comprises an embedded processor, the upgrade package is a binary file, the product characteristic information is located at the end of the binary file, and the product characteristic information at least comprises a product code number, a circuit board bit number, a product model number and a software version number.
4. A software upgrading method is applied to background equipment, and comprises the following steps:
sending the product characteristic information of the upgrade package to the product to be upgraded; the product to be upgraded is used for comparing whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded or not, if so, a downloading request is sent to background equipment, the upgrade package carrying the product characteristic information is obtained from the background equipment and is operated to complete software upgrading operation, and if not, a first error notification is sent to the background equipment and the software upgrading operation is quitted;
when a downloading request sent by the product to be upgraded is received, responding to the downloading request, and sending an upgrading packet carrying product characteristic information to the product to be upgraded; the product to be upgraded is also used for operating the upgrade package carrying the product characteristic information to finish software upgrading operation;
and when a first error notification sent by the product to be upgraded is received, judging that the product characteristic information of the upgrade package is wrong.
5. The software upgrading method according to claim 4, wherein after sending an upgrade package carrying product characteristic information to the product to be upgraded in response to the download request when receiving the download request sent by the product to be upgraded, the method comprises:
when a second error notification sent by the product to be upgraded is received, judging that the upgrade packet carrying the product characteristic information is in error; and the product to be upgraded is also used for comparing whether the product characteristic information carried by the upgrade package is consistent with the product characteristic information of the product to be upgraded, if so, the upgrade package carrying the product characteristic information is operated to finish the software upgrading operation, and otherwise, a second error notification is sent to the background equipment and the software upgrading operation is quitted.
6. The software upgrading method of claim 4, wherein before sending the upgrade package carrying the product feature information to the product to be upgraded, the method comprises:
configuring a preset development environment;
compiling the software code of the product to be upgraded and generating an original upgrade package under the preset development environment;
and running the script of the original upgrading packet, and automatically adding the product characteristic information of the product to be upgraded at the tail of the original upgrading packet.
7. The software upgrading method of claim 6, wherein configuring the pre-defined development environment comprises:
selecting a first command item according to the selection operation of the first command item in the development environment configuration page by a user; the first command item is used for calling a user command corresponding to a file name in a first command configuration area before the code of the script is constructed;
writing a file name of an upgrade package removing command in a first command configuration area according to a first command configuration operation of a user in a development environment configuration page; the upgrade package clearing command is used for clearing an original upgrade package;
selecting a second command item according to the selection operation of the second command item in the development environment configuration page by the user; the second command item is used for calling a user command corresponding to the file name in the second command configuration area after the code of the script is built;
writing a file name of an upgrade package generation command in a second command configuration area according to a second command configuration operation of a user in a development environment configuration page; the upgrade package generation command is used for generating an original upgrade package;
selecting a third command item according to the selection operation of the third command item in the development environment configuration page by the user; the third command item is used for calling a user command corresponding to the file name in the third command configuration area after the code of the script is built;
writing a file name of a characteristic increasing command in a third command configuration area according to a third command configuration operation of a user in a development environment configuration page; the characteristic adding command is used for automatically adding product characteristic information of a product to be upgraded at the tail of the original upgrade package;
selecting a fourth command item according to the fourth command item selection operation of the user in the development environment configuration page; wherein the fourth command item is used for sending out a prompt tone after the software code of the product to be upgraded is compiled;
and confirming to finish the operation of configuring the preset development environment according to the confirmation operation of the user in the development environment configuration page.
8. The software upgrading method of any one of claims 4 to 7, wherein the product to be upgraded is an embedded processor, the upgrade package is a binary file, the product characteristic information is located at the end of the binary file, and the product characteristic information includes a product code number, a circuit board bit number, a product model number, and a software version number.
9. A software upgrading system corresponding to a product to be upgraded, comprising:
the acquisition module is used for acquiring the product characteristic information of the upgrade package from the background equipment;
the comparison module is used for comparing whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded;
the receiving and sending module is used for sending a downloading request to the background equipment when the product characteristic information of the upgrading packet is consistent with the product characteristic information of the product to be upgraded, and acquiring the upgrading packet carrying the product characteristic information from the background equipment;
the operation module is used for operating the upgrade package carrying the product characteristic information to finish the software upgrade operation;
the quit module is used for sending a first error notice to the background equipment and quitting the software upgrading operation when the product characteristic information of the upgrading package is inconsistent with the product characteristic information of the product to be upgraded; wherein the first error notification is used for characterizing the product characteristic information error of the upgrade package.
10. A software upgrading system is applied to background equipment, and the software upgrading system comprises:
the sending module is used for sending the product characteristic information of the upgrade package to the product to be upgraded; the product to be upgraded is used for comparing whether the product characteristic information of the upgrade package is consistent with the product characteristic information of the product to be upgraded or not, if so, a downloading request is sent to background equipment, the upgrade package carrying the product characteristic information is obtained from the background equipment and is operated to complete software upgrading operation, and if not, a first error notification is sent to the background equipment and the software upgrading operation is quitted;
the receiving and sending module is used for responding to the downloading request and sending an upgrading packet carrying product characteristic information to the product to be upgraded when receiving the downloading request sent by the product to be upgraded; the product to be upgraded is also used for operating the upgrade package carrying the product characteristic information to finish software upgrading operation;
and the receiving module is used for judging that the product characteristic information of the upgrade package is wrong when receiving a first error notification sent by the product to be upgraded.
11. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the software upgrading method according to any one of claims 1 to 8 when executing the computer program.
CN201910803277.0A 2019-08-28 2019-08-28 Software upgrading method, system and terminal equipment Active CN110597536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910803277.0A CN110597536B (en) 2019-08-28 2019-08-28 Software upgrading method, system and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910803277.0A CN110597536B (en) 2019-08-28 2019-08-28 Software upgrading method, system and terminal equipment

Publications (2)

Publication Number Publication Date
CN110597536A true CN110597536A (en) 2019-12-20
CN110597536B CN110597536B (en) 2023-05-23

Family

ID=68856056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910803277.0A Active CN110597536B (en) 2019-08-28 2019-08-28 Software upgrading method, system and terminal equipment

Country Status (1)

Country Link
CN (1) CN110597536B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076117A (en) * 2020-01-03 2021-07-06 北京猎户星空科技有限公司 OTA (over the air) upgrading method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679029A (en) * 2013-12-11 2014-03-26 北京奇虎科技有限公司 Method and device for repairing cheap-copy application programs
CN104021018A (en) * 2014-06-06 2014-09-03 上海卓悠网络科技有限公司 Terminal, upgrade patch generation method and upgrade patch recognition method
CN105389177A (en) * 2015-10-16 2016-03-09 Tcl集团股份有限公司 Software version confirmation method, device and system
CN106485153A (en) * 2016-10-10 2017-03-08 聚好看科技股份有限公司 Version upgrading method and terminal unit
CN107193602A (en) * 2017-05-24 2017-09-22 郑州云海信息技术有限公司 A kind of method of software upgrading, apparatus and system
CN107770279A (en) * 2017-10-31 2018-03-06 深圳市银河风云网络系统股份有限公司 Remote upgrade method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679029A (en) * 2013-12-11 2014-03-26 北京奇虎科技有限公司 Method and device for repairing cheap-copy application programs
CN104021018A (en) * 2014-06-06 2014-09-03 上海卓悠网络科技有限公司 Terminal, upgrade patch generation method and upgrade patch recognition method
CN105389177A (en) * 2015-10-16 2016-03-09 Tcl集团股份有限公司 Software version confirmation method, device and system
CN106485153A (en) * 2016-10-10 2017-03-08 聚好看科技股份有限公司 Version upgrading method and terminal unit
CN107193602A (en) * 2017-05-24 2017-09-22 郑州云海信息技术有限公司 A kind of method of software upgrading, apparatus and system
CN107770279A (en) * 2017-10-31 2018-03-06 深圳市银河风云网络系统股份有限公司 Remote upgrade method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076117A (en) * 2020-01-03 2021-07-06 北京猎户星空科技有限公司 OTA (over the air) upgrading method and device, electronic equipment and storage medium
CN113076117B (en) * 2020-01-03 2024-05-07 北京猎户星空科技有限公司 OTA upgrading method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110597536B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN109471653B (en) Application program updating method, electronic device, server and storage medium
CN108196878B (en) Method and device for generating application program installation package, electronic equipment and storage medium
US20220317997A1 (en) Online Upgrade Method for Household Appliance Multi-MCU System, Electronic Device and Medium
CN101589592A (en) Multi-protocol removable storage device
CN102742303A (en) Message based mobile object with native PIM integration
CN104065695A (en) Software update method, server, user end and system
CN104765621A (en) Method and system for deploying program on cluster node
CN109947449A (en) Method for upgrading system, device, storage medium and electronic equipment
CN105307195A (en) Method and device for updating access point name (APN) parameter
CN110875850A (en) Firmware upgrading method and system, readable storage medium and terminal equipment
CN110673867A (en) CPLD online upgrading method, device and system
CN114201197A (en) Firmware upgrading method and device, electronic equipment and readable storage medium
CN108132832B (en) Application program starting method and device
CN108920171A (en) Firmware update and device, electronic equipment
CN112486733B (en) System restoration method, device, terminal and storage medium
CN110764836A (en) Method and system for realizing plug-in
CN110597536A (en) Software upgrading method, system and terminal equipment
CN111984248A (en) Page editing method and device, storage medium and electronic device
CN105589718A (en) System updating method and updating apparatus for intelligent device
CN111984287A (en) Equipment upgrading method and system
US20090249058A1 (en) System aiding for design
CN115495129A (en) Firmware upgrading method, device, equipment, medium and product
CN113867778A (en) Method and device for generating mirror image file, electronic equipment and storage medium
CN113141613A (en) Communication channel detection method and device and electronic equipment
CN112199270A (en) Program testing method, device, equipment and medium

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231204

Address after: Room 601, 6th Floor, Building 13, No. 3 Jinghai Fifth Road, Beijing Economic and Technological Development Zone (Tongzhou), Tongzhou District, Beijing, 100176

Patentee after: Beijing Youbixuan Intelligent Robot Co.,Ltd.

Address before: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen Youbixuan Technology Co.,Ltd.

TR01 Transfer of patent right