CN112835616A - Version upgrading method and device, electronic equipment and storage medium - Google Patents

Version upgrading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112835616A
CN112835616A CN202110221236.8A CN202110221236A CN112835616A CN 112835616 A CN112835616 A CN 112835616A CN 202110221236 A CN202110221236 A CN 202110221236A CN 112835616 A CN112835616 A CN 112835616A
Authority
CN
China
Prior art keywords
upgrade
version
upgrading
terminal equipment
ota
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
CN202110221236.8A
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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110221236.8A priority Critical patent/CN112835616A/en
Publication of CN112835616A publication Critical patent/CN112835616A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

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

Abstract

The disclosure discloses a version upgrading method, a version upgrading device, electronic equipment and a storage medium, and relates to the technical field of wireless upgrading, in particular to an over-the-air downloading technology. The specific implementation scheme is as follows: sending an over-the-air OTA subscription message generated in advance based on a theme template to a management server; wherein, the OTA subscription message at least comprises: the equipment model of the terminal equipment, the current version of the terminal equipment and the identification of the terminal equipment; if the terminal equipment meets the preset upgrading condition, receiving an upgrading notification message pushed to the terminal equipment by the management server; and upgrading the version of the terminal equipment based on the upgrading notification message. The embodiment of the application can effectively reduce the communication cost between the terminal equipment and the server, and can more lightweight and effectively upgrade the version.

Description

Version upgrading method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of wireless upgrading technologies, and further relates to an over-the-air technology, and in particular, to a version upgrading method and apparatus, an electronic device, and a storage medium.
Background
The Over-the-Air Technology (OTA for short) is a Technology for remotely managing data of a mobile terminal device and a SIM card through an Air interface of mobile communication. OTA upgrade aims at providing safe and efficient remote wireless upgrade technology for intelligent equipment, can be applied to firmware update, function iteration and repair problems, and is suitable for various types of equipment and chip systems.
The traditional version upgrading scheme usually adopts a terminal polling server mode, namely the server needs to filter and screen the upgrading conditions of the terminals, and if a certain terminal meets the upgrading conditions, the server returns an installation package for upgrading to the terminal. Specifically, the terminal subscribes the notification message, the server issues the notification to the terminal when the server has an upgrade task, the terminal inquires whether the current equipment state request server can be upgraded, and if the current equipment state request server can be upgraded, the terminal returns an upgraded installation package. In addition, the new version upgrade scheme is implemented by using Message Queue Telemetry Transport (MQTT). Specifically, the server filters a terminal to be upgraded through the device shadow system, issues upgrade information to the terminal to be upgraded, and the terminal receiving the upgrade information performs upgrading based on the information.
The two schemes have the following disadvantages respectively: in the first scheme, an additional request for upgrading needs to be sent, and the communication overhead is increased; the second scheme depends on an equipment shadow system, the equipment shadow system has certain errors, and the pushing also has certain error rate; meanwhile, the cost of maintaining the shadow information of the mass equipment is also high.
Disclosure of Invention
The application provides a version upgrading method, a version upgrading device, an electronic device and a storage medium, which can effectively reduce the communication cost between a terminal device and a server and can carry out version upgrading more light and effectively.
According to a first aspect of the present application, a version upgrade method is provided, which is applied to a terminal device, and the method includes:
sending OTA subscription information generated in advance based on the theme template to a management server; wherein the OTA subscription message at least comprises: the equipment model of the terminal equipment, the current version of the terminal equipment and the identifier of the terminal equipment;
if the terminal equipment meets the preset upgrading condition, receiving an upgrading notification message pushed to the terminal equipment by the management server;
and upgrading the version of the terminal equipment based on the upgrading notification message.
According to a second aspect of the present application, there is also provided a version upgrade method applied to a management server, the method including:
receiving OTA subscription information which is sent by terminal equipment and is generated in advance based on a theme template; wherein the OTA subscription message at least comprises: the equipment model of the terminal equipment, the current version of the terminal equipment and the identifier of the terminal equipment;
detecting whether the terminal equipment meets preset upgrading conditions or not based on the OTA subscription message;
if the terminal equipment meets the preset upgrading condition, pushing an upgrading notification message to the terminal equipment; and the terminal equipment carries out version upgrading on the terminal equipment based on the upgrading notification message.
According to a third aspect of the present application, there is provided a version-up apparatus, the apparatus including: the system comprises a first sending module, a first receiving module and a version upgrading module; wherein the content of the first and second substances,
the first sending module is used for sending OTA subscription information generated in advance based on the theme template to the management server; wherein the OTA subscription message at least comprises: the equipment model of the terminal equipment, the current version of the terminal equipment and the identifier of the terminal equipment;
the first receiving module is configured to receive an upgrade notification message pushed by the management server to the terminal device if the terminal device meets a preset upgrade condition;
and the version upgrading module is used for upgrading the version of the terminal equipment based on the upgrading notification message. Wherein the content of the first and second substances,
according to a fourth aspect of the present application, there is also provided a version upgrade apparatus, the apparatus including: the system comprises a second receiving module, an upgrade detecting module and a second sending module; wherein the content of the first and second substances,
the second receiving module is used for receiving OTA subscription information which is sent by the terminal equipment and is generated in advance based on the theme template; wherein the OTA subscription message at least comprises: the equipment model of the terminal equipment, the current version of the terminal equipment and the identifier of the terminal equipment;
the upgrade detection module is used for detecting whether the terminal equipment meets the preset upgrade condition or not based on the OTA subscription message;
the second sending module is configured to push an upgrade notification message to the terminal device if the terminal device meets the preset upgrade condition; and the terminal equipment carries out version upgrading on the terminal equipment based on the upgrading notification message.
According to a fifth aspect of the present application, there is provided an electronic device comprising:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the version upgrade method described in any embodiment of the present application.
According to a sixth aspect of the present application, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the version-up method described in any of the embodiments of the present application.
According to a seventh aspect of the present application, there is provided a computer program product which, when executed by a computer device, implements the version upgrade method described in any embodiment of the present application.
According to the technical scheme, the technical problems that in the prior art, an additional request for upgrading needs to be sent for a traditional version upgrading scheme, communication overhead is increased, the novel version upgrading scheme depends on the equipment shadow system, the equipment shadow system has certain errors, and a certain error rate exists in pushing are solved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a first flowchart of a version upgrade method provided in an embodiment of the present application;
fig. 2 is a second flowchart of a version upgrade method provided in an embodiment of the present application;
fig. 3 is a third flow diagram of a version upgrade method provided in an embodiment of the present application;
fig. 4 is a fourth flowchart illustrating a version upgrading method provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a first structure of a version upgrading device provided in an embodiment of the present application;
fig. 6 is a second structural schematic diagram of a version upgrading device provided in the embodiment of the present application;
fig. 7 is a block diagram of an electronic device for implementing a version upgrade method according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Example one
Fig. 1 is a first flowchart of a version upgrading method provided in an embodiment of the present application, where the method may be executed by a version upgrading apparatus or a terminal device, where the apparatus or the terminal device may be implemented by software and/or hardware, and the apparatus or the terminal device may be integrated in any intelligent device with a network communication function. As shown in fig. 1, the version upgrade method may include the following steps:
s101, sending an OTA subscription message generated in advance based on a theme template to a management server; wherein, the OTA subscription message at least comprises: the device model of the terminal device, the current version of the terminal device, and the identifier of the terminal device.
In this step, the terminal device may send an OTA subscription message generated in advance based on the topic template to the management server; wherein, the OTA subscription message at least comprises: the device model of the terminal device, the current version of the terminal device, and the identifier of the terminal device. In a specific embodiment of the present application, the terminal device may first generate an OTA subscription message based on the topic template, and then send the subscription message to the management server, thereby completing an upgrade subscription of the terminal device on the management server. The subject template in the present application may include: upgrade indicating information, an equipment model field, a version field and an equipment ID field; wherein, the upgrade indication information is: OTA/device/upgrade; the device model field is: the device model of the terminal device; the version field is: a current version of the terminal device; the device ID field is: identification of the terminal device. For example, the topic template may be: ota/device/upgrade/$ { device model } $ { version } $ { device ID }. The terminal device in the embodiment of the present application includes, but is not limited to, the following devices: mobile phones, tablet computers, notebook computers, and the like.
And S102, if the terminal equipment meets the preset upgrading condition, receiving an upgrading notification message pushed to the terminal equipment by the management server.
In this step, if the terminal device meets the preset upgrade condition, the terminal device receives an upgrade notification message pushed to the terminal device by the management server. Preferably, in a specific embodiment of the present application, after receiving the OTA subscription message sent by the terminal device, the management server may check the OTA subscription message according to a predetermined topic template; if the OTA subscription message passes the verification, detecting whether the terminal equipment meets the preset upgrading condition; and if the terminal equipment meets the preset upgrading condition, the management server pushes an upgrading notification message to the terminal equipment. Specifically, after receiving the OTA subscription message sent by the terminal device, the management server may obtain an identifier of the terminal device in the OTA subscription message, and when it is determined that a version higher than a current version of the terminal device exists and the identifier of the terminal device meets a corresponding upgrade condition, the management server pushes an upgrade notification message for indicating that the terminal device is capable of upgrading to the terminal device. Because the management server only pushes the upgrade notification message for indicating that the terminal equipment can be upgraded to the terminal equipment when the management server has the version higher than the current version of the terminal equipment and the identifier of the terminal equipment meets the corresponding upgrade condition, the problems that a large number of terminal equipment intensively access the management server at the same time to cause overload and downtime of the management server are avoided.
S103, version upgrading is carried out on the terminal equipment based on the upgrading notification message.
In this step, the terminal device may perform version upgrade on the terminal device based on the upgrade notification message. Specifically, the terminal device may send an OTA upgrade request to the upgrade server in response to the upgrade notification message; wherein, the OTA upgrade request at least comprises: a current version of the terminal device; then receiving an OTA upgrade package corresponding to an OTA upgrade request issued by an upgrade server; and using the OTA upgrade package to upgrade the version of the terminal equipment.
According to the version upgrading method provided by the embodiment of the application, the terminal equipment firstly sends OTA subscription-carrying messages generated in advance based on the theme template to the management server; wherein, the OTA subscription message at least comprises: the equipment model of the terminal equipment, the current version of the terminal equipment and the identification of the terminal equipment; if the terminal equipment meets the preset upgrading condition, receiving an upgrading notification message pushed to the terminal equipment by the management server; and then carrying out version upgrading on the terminal equipment based on the upgrading notification message. That is, the terminal device may first generate an OTA subscription message based on the topic template, and then send the subscription message to the management server, thereby completing an upgrade subscription of the terminal device on the management server. In the existing version upgrading method, the traditional version upgrading adopts a terminal polling server mode, and the scheme needs to send additional request upgrading, so that the communication overhead is increased; the novel Internet of things completes version upgrading through an MQTT protocol, the scheme depends on an equipment shadow system, equipment shadows have certain errors, and pushing also has certain error rate. Because the technical means of generating the OTA subscription message based on the theme template is adopted, the technical problems that in the prior art, an additional request for upgrading needs to be sent in a traditional version upgrading scheme, the communication overhead is increased, a novel version upgrading scheme depends on an equipment shadow system, the equipment shadow system has certain errors, and the pushing has certain error rate are solved; moreover, the technical scheme of the embodiment of the application is simple and convenient to implement, convenient to popularize and wide in application range.
Example two
Fig. 2 is a second flowchart of the version upgrade method provided in the embodiment of the present application. Further optimization and expansion are performed based on the technical scheme, and the method can be combined with the various optional embodiments. As shown in fig. 2, the version upgrade method may include the steps of:
s201, sending an OTA subscription message generated in advance based on a theme template to a management server; wherein, the OTA subscription message at least comprises: the device model of the terminal device, the current version of the terminal device, and the identifier of the terminal device.
S202, if the terminal equipment meets the preset upgrading condition, receiving an upgrading notification message pushed to the terminal equipment by the management server.
S203, responding to the upgrade notification message and sending an OTA upgrade request to the upgrade server; wherein, the OTA upgrade request at least comprises: the current version of the terminal device.
S204, receiving an OTA upgrade package corresponding to the OTA upgrade request issued by the upgrade server; and using the OTA upgrade package to upgrade the version of the terminal equipment.
In this step, the terminal device may receive an OTA upgrade package corresponding to an OTA upgrade request issued by the upgrade server; and using the OTA upgrade package to upgrade the version of the terminal equipment. In one embodiment, after receiving an OTA upgrade request sent by a terminal device, an upgrade server traverses all versions stored locally and compares the versions with a current version of the terminal device carried in the OTA upgrade request; if the version information of all versions stored by the upgrade server is equal to or less than the current version of the terminal equipment, the upgrade server returns to a state without upgrading, and the process is ended at this moment; if the version higher than the current version of the terminal equipment exists in the upgrading server, the upgrading server returns version information higher than the current version of the terminal equipment to the terminal equipment; after reading the version information pushed by the upgrading server, the user determines whether to upgrade; if the user decides not to upgrade, the version upgrading process is ended; if the user decides to upgrade, the user sends an upgrade confirmation request to an upgrade server through the terminal equipment; the upgrade server pushes the address of the current upgradable version to the terminal equipment; and the terminal equipment downloads an OTA upgrading packet corresponding to the OTA upgrading request from the upgrading server according to the received address and automatically upgrades the OTA upgrading packet.
According to the version upgrading method provided by the embodiment of the application, the terminal equipment firstly sends OTA subscription information generated in advance based on a theme template to a management server; wherein, the OTA subscription message at least comprises: the equipment model of the terminal equipment, the current version of the terminal equipment and the identification of the terminal equipment; if the terminal equipment meets the preset upgrading condition, receiving an upgrading notification message pushed to the terminal equipment by the management server; and then carrying out version upgrading on the terminal equipment based on the upgrading notification message. That is, the terminal device may first generate an OTA subscription message based on the topic template, and then send the subscription message to the management server, thereby completing an upgrade subscription of the terminal device on the management server. In the existing version upgrading method, the traditional version upgrading adopts a terminal polling server mode, and the scheme needs to send additional request upgrading, so that the communication overhead is increased; the novel Internet of things completes version upgrading through an MQTT protocol, the scheme depends on an equipment shadow system, equipment shadows have certain errors, and pushing also has certain error rate. Because the technical means of generating the OTA subscription message based on the theme template is adopted, the technical problems that in the prior art, an additional request for upgrading needs to be sent in a traditional version upgrading scheme, the communication overhead is increased, a novel version upgrading scheme depends on an equipment shadow system, the equipment shadow system has certain errors, and the pushing has certain error rate are solved; moreover, the technical scheme of the embodiment of the application is simple and convenient to implement, convenient to popularize and wide in application range.
EXAMPLE III
Fig. 3 is a third flowchart of a version upgrade method provided in an embodiment of the present application, where the method may be performed by a version upgrade apparatus or a management server, where the apparatus or the management server may be implemented by software and/or hardware, and the apparatus or the management server may be integrated in any intelligent device with a network communication function. As shown in fig. 3, the version upgrade method may include the steps of:
s301, receiving an OTA subscription message which is sent by a terminal device and is generated in advance based on a theme template; wherein, the OTA subscription message at least comprises: the device model of the terminal device, the current version of the terminal device, and the identifier of the terminal device.
In this step, the management server may receive an OTA subscription message sent by the terminal device and generated in advance based on the topic template; wherein, the OTA subscription message at least comprises: the device model of the terminal device, the current version of the terminal device, and the identifier of the terminal device.
S302, detecting whether the terminal equipment meets the preset upgrading condition or not based on the OTA subscription message; if yes, executing S303; otherwise, S304 is performed.
In this step, the management server may detect whether the terminal device satisfies a preset upgrade condition based on the OTA subscription message; if the terminal equipment meets the preset upgrading condition, executing S303; and if the terminal equipment does not meet the preset upgrading condition, executing S304.
S303, pushing an upgrade notification message to the terminal equipment; and the terminal equipment carries out version upgrading on the terminal equipment based on the upgrading notification message.
In this step, the management server may push an upgrade notification message to the terminal device; and the terminal equipment carries out version upgrading on the terminal equipment based on the upgrading notification message. Preferably, in a specific embodiment of the present application, after receiving the OTA subscription message sent by the terminal device, the management server may check the OTA subscription message according to a predetermined topic template; if the OTA subscription message passes the verification, detecting whether the terminal equipment meets the preset upgrading condition; and if the terminal equipment meets the preset upgrading condition, the management server pushes an upgrading notification message to the terminal equipment.
304. And ending the version upgrading process.
In this step, if the terminal device does not satisfy the preset upgrade condition, the version upgrade process is ended.
According to the version upgrading method provided by the embodiment of the application, a management server firstly receives OTA subscription information which is sent by a terminal device and is generated in advance based on a theme template; wherein, the OTA subscription message at least comprises: the equipment model of the terminal equipment, the current version of the terminal equipment and the identification of the terminal equipment; then detecting whether the terminal equipment meets the preset upgrading condition or not based on the OTA subscription message; if the terminal equipment meets the preset upgrading condition, the management server pushes an upgrading notification message to the terminal equipment; and the terminal equipment carries out version upgrading on the terminal equipment based on the upgrading notification message. That is, the terminal device may first generate an OTA subscription message based on the topic template, and then send the subscription message to the management server, thereby completing an upgrade subscription of the terminal device on the management server. In the existing version upgrading method, the traditional version upgrading adopts a terminal polling server mode, and the scheme needs to send additional request upgrading, so that the communication overhead is increased; the novel Internet of things completes version upgrading through an MQTT protocol, the scheme depends on an equipment shadow system, equipment shadows have certain errors, and pushing also has certain error rate. Because the technical means of generating the OTA subscription message based on the theme template is adopted, the technical problems that in the prior art, an additional request for upgrading needs to be sent in a traditional version upgrading scheme, the communication overhead is increased, a novel version upgrading scheme depends on an equipment shadow system, the equipment shadow system has certain errors, and the pushing has certain error rate are solved; moreover, the technical scheme of the embodiment of the application is simple and convenient to implement, convenient to popularize and wide in application range.
Example four
Fig. 4 is a fourth flowchart illustrating a version upgrade method according to an embodiment of the present application. Further optimization and expansion are performed based on the technical scheme, and the method can be combined with the various optional embodiments. As shown in fig. 4, the version upgrade method may include the steps of:
s401, receiving an OTA subscription message which is sent by a terminal device and generated in advance based on a theme template; wherein, the OTA subscription message at least comprises: the device model of the terminal device, the current version of the terminal device, and the identifier of the terminal device.
S402, checking the OTA subscription message according to a predetermined theme template; if the OTA subscription message passes the verification, executing S403; otherwise, S405 is executed.
In this step, the management server may verify the OTA subscription message according to a predetermined topic template; if the OTA subscription message passes the verification, executing S403; if the OTA subscription message is not verified, S405 is performed. In particular, the management server may verify the integrity and legitimacy of the OTA subscription message based on a predetermined topic template. The subject template in the present application includes: upgrade indicating information, an equipment model field, a version field and an equipment ID field; wherein, the upgrade indication information is: OTA/device/upgrade; the device model field is: the device model of the terminal device; the version field is: a current version of the terminal device; the device ID field is: identification of the terminal device.
S403, detecting whether the terminal equipment meets the preset upgrading condition based on the OTA subscription message; if yes, go to S404; otherwise, S405 is executed.
In this step, the management server may detect whether the terminal device satisfies a preset upgrade condition based on the OTA subscription message; if the terminal equipment meets the preset upgrading condition, executing S404; and if the terminal equipment does not meet the preset upgrading condition, executing S405.
S404, pushing an upgrade notification message to the terminal equipment; and the terminal equipment carries out version upgrading on the terminal equipment based on the upgrading notification message.
And S405, ending the version upgrading process.
[56] According to the version upgrading method provided by the embodiment of the application, a management server firstly receives OTA subscription information which is sent by a terminal device and is generated in advance based on a theme template; wherein, the OTA subscription message at least comprises: the equipment model of the terminal equipment, the current version of the terminal equipment and the identification of the terminal equipment; then detecting whether the terminal equipment meets the preset upgrading condition or not based on the OTA subscription message; if the terminal equipment meets the preset upgrading condition, the management server pushes an upgrading notification message to the terminal equipment; and the terminal equipment carries out version upgrading on the terminal equipment based on the upgrading notification message. That is, the terminal device may first generate an OTA subscription message based on the topic template, and then send the subscription message to the management server, thereby completing an upgrade subscription of the terminal device on the management server. In the existing version upgrading method, the traditional version upgrading adopts a terminal polling server mode, and the scheme needs to send additional request upgrading, so that the communication overhead is increased; the novel Internet of things completes version upgrading through an MQTT protocol, the scheme depends on an equipment shadow system, equipment shadows have certain errors, and pushing also has certain error rate. Because the technical means of generating the OTA subscription message based on the theme template is adopted, the technical problems that in the prior art, an additional request for upgrading needs to be sent in a traditional version upgrading scheme, the communication overhead is increased, a novel version upgrading scheme depends on an equipment shadow system, the equipment shadow system has certain errors, and the pushing has certain error rate are solved; moreover, the technical scheme of the embodiment of the application is simple and convenient to implement, convenient to popularize and wide in application range.
EXAMPLE five
Fig. 5 is a schematic diagram of a first structure of a version upgrading device provided in an embodiment of the present application. As shown in fig. 5, the apparatus 500 includes: a first sending module 501, a first receiving module 502 and a version upgrading module 503; wherein the content of the first and second substances,
the first sending module 501 is configured to send an over-the-air OTA subscription message generated in advance based on a theme template to a management server; wherein the OTA subscription message at least comprises: the equipment model of the terminal equipment, the current version of the terminal equipment and the identifier of the terminal equipment;
the first receiving module 502 is configured to receive an upgrade notification message pushed by the management server to the terminal device if the terminal device meets a preset upgrade condition;
the version upgrade module 503 is configured to upgrade the version of the terminal device based on the upgrade notification message.
Further, the version upgrade module 503 is specifically configured to send an OTA upgrade request to an upgrade server in response to the upgrade notification message; wherein the OTA upgrade request at least comprises: a current version of the terminal device; receiving an OTA upgrade package corresponding to the OTA upgrade request issued by an upgrade server; and using the OTA upgrade package to upgrade the version of the terminal equipment.
Further, the theme template includes: upgrade indicating information, an equipment model field, a version field and an equipment ID field; wherein, the upgrade indication information is: OTA/device/upgrade; the device model field is: the device model of the terminal device; the version field is: a current version of the terminal device; the device ID field is: the identity of the terminal device.
The version upgrading device can execute the methods provided by the first embodiment and the second embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method. For details of the technology that are not described in detail in this embodiment, reference may be made to the version upgrading methods provided in the first and second embodiments of the present application.
EXAMPLE six
Fig. 6 is a schematic diagram of a second structure of a version upgrading device provided in the embodiment of the present application. As shown in fig. 6, the apparatus 600 includes: a second receiving module 601, an upgrade detecting module 602, and a second sending module 603; wherein the content of the first and second substances,
the second receiving module 601 is configured to receive an over-the-air OTA subscription message sent by a terminal device and generated in advance based on a theme template; wherein the OTA subscription message at least comprises: the equipment model of the terminal equipment, the current version of the terminal equipment and the identifier of the terminal equipment;
the upgrade detection module 602 is configured to detect whether the terminal device meets a preset upgrade condition based on the OTA subscription message;
the second sending module 603 is configured to, if the terminal device meets the preset upgrade condition, push an upgrade notification message to the terminal device; and the terminal equipment carries out version upgrading on the terminal equipment based on the upgrading notification message.
Further, the upgrade detection module 602 is further configured to verify the OTA subscription message according to the predetermined topic template; and if the OTA subscription message passes the verification, executing the operation of detecting whether the terminal equipment meets the preset upgrading condition based on the OTA subscription message.
Further, the theme template includes: upgrade indicating information, an equipment model field, a version field and an equipment ID field; wherein, the upgrade indication information is: OTA/device/upgrade; the device model field is: the device model of the terminal device; the version field is: a current version of the terminal device; the device ID field is: the identity of the terminal device.
The version upgrading device can execute the methods provided by the third embodiment and the fourth embodiment of the application, and has corresponding functional modules and beneficial effects of the execution methods. For details of the technology that are not described in detail in this embodiment, reference may be made to the version upgrading methods provided in the third embodiment and the fourth embodiment of the present application.
EXAMPLE seven
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 7 illustrates a schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the device 700 comprises a computing unit 701, which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM)702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 701 executes the respective methods and processes described above, such as the version-up method. For example, in some embodiments, the version upgrade method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the version-up method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the version upgrade method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (15)

1. A version upgrading method is applied to terminal equipment and comprises the following steps:
sending an over-the-air OTA subscription message generated in advance based on a theme template to a management server; wherein the OTA subscription message at least comprises: the equipment model of the terminal equipment, the current version of the terminal equipment and the identifier of the terminal equipment;
if the terminal equipment meets the preset upgrading condition, receiving an upgrading notification message pushed to the terminal equipment by the management server;
and upgrading the version of the terminal equipment based on the upgrading notification message.
2. The method of claim 1, wherein the upgrading the version of the terminal device based on the upgrade notification message comprises:
sending an OTA upgrade request to an upgrade server in response to the upgrade notification message; wherein the OTA upgrade request at least comprises: a current version of the terminal device;
receiving an OTA upgrade package corresponding to the OTA upgrade request issued by an upgrade server; and using the OTA upgrade package to upgrade the version of the terminal equipment.
3. The method of claim 1, the theme template comprising: upgrade indicating information, an equipment model field, a version field and an equipment ID field; wherein, the upgrade indication information is: OTA/device/upgrade; the device model field is: the device model of the terminal device; the version field is: a current version of the terminal device; the device ID field is: the identity of the terminal device.
4. A version upgrading method is applied to a management server and comprises the following steps:
receiving an over-the-air OTA subscription message which is sent by a terminal device and is generated in advance based on a theme template; wherein the OTA subscription message at least comprises: the equipment model of the terminal equipment, the current version of the terminal equipment and the identifier of the terminal equipment;
detecting whether the terminal equipment meets preset upgrading conditions or not based on the OTA subscription message;
if the terminal equipment meets the preset upgrading condition, pushing an upgrading notification message to the terminal equipment; and the terminal equipment carries out version upgrading on the terminal equipment based on the upgrading notification message.
5. The method of claim 4, prior to the detecting whether the terminal device satisfies a preset upgrade condition based on the OTA subscription message, the method further comprising:
checking the OTA subscription message according to the predetermined theme template; and if the OTA subscription message passes the verification, executing the operation of detecting whether the terminal equipment meets the preset upgrading condition based on the OTA subscription message.
6. The method of claim 4, the theme template comprising: upgrade indicating information, an equipment model field, a version field and an equipment ID field; wherein, the upgrade indication information is: OTA/device/upgrade; the device model field is: the device model of the terminal device; the version field is: a current version of the terminal device; the device ID field is: the identity of the terminal device.
7. A version upgrade apparatus, the apparatus comprising: the system comprises a first sending module, a first receiving module and a version upgrading module; wherein the content of the first and second substances,
the first sending module is used for sending an over-the-air OTA subscription message generated in advance based on a theme template to the management server; wherein the OTA subscription message at least comprises: the equipment model of the terminal equipment, the current version of the terminal equipment and the identifier of the terminal equipment;
the first receiving module is configured to receive an upgrade notification message pushed by the management server to the terminal device if the terminal device meets a preset upgrade condition;
and the version upgrading module is used for upgrading the version of the terminal equipment based on the upgrading notification message.
8. The apparatus of claim 7, the version upgrade module, in particular to send an OTA upgrade request to an upgrade server in response to the upgrade notification message; wherein the OTA upgrade request at least comprises: a current version of the terminal device; receiving an OTA upgrade package corresponding to the OTA upgrade request issued by an upgrade server; and using the OTA upgrade package to upgrade the version of the terminal equipment.
9. The apparatus of claim 7, the theme template comprising: upgrade indicating information, an equipment model field, a version field and an equipment ID field; wherein, the upgrade indication information is: OTA/device/upgrade; the device model field is: the device model of the terminal device; the version field is: a current version of the terminal device; the device ID field is: the identity of the terminal device.
10. A version upgrade apparatus, the apparatus comprising: the system comprises a second receiving module, an upgrade detecting module and a second sending module; wherein the content of the first and second substances,
the second receiving module is used for receiving an over-the-air OTA subscription message which is sent by the terminal equipment and is generated in advance based on the theme template; wherein the OTA subscription message at least comprises: the equipment model of the terminal equipment, the current version of the terminal equipment and the identifier of the terminal equipment;
the upgrade detection module is used for detecting whether the terminal equipment meets the preset upgrade condition or not based on the OTA subscription message;
the second sending module is configured to push an upgrade notification message to the terminal device if the terminal device meets the preset upgrade condition; and the terminal equipment carries out version upgrading on the terminal equipment based on the upgrading notification message.
11. The apparatus of claim 10, the upgrade detection module further configured to verify the OTA subscription message according to a predetermined topic template; and if the OTA subscription message passes the verification, executing the operation of detecting whether the terminal equipment meets the preset upgrading condition based on the OTA subscription message.
12. The apparatus of claim 10, the theme template comprising: upgrade indicating information, an equipment model field, a version field and an equipment ID field; wherein, the upgrade indication information is: OTA/device/upgrade; the device model field is: the device model of the terminal device; the version field is: a current version of the terminal device; the device ID field is: the identity of the terminal device.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-3 or 4-6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any of claims 1-3 or 4-6.
15. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-3 or 4-6.
CN202110221236.8A 2021-02-26 2021-02-26 Version upgrading method and device, electronic equipment and storage medium Pending CN112835616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110221236.8A CN112835616A (en) 2021-02-26 2021-02-26 Version upgrading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110221236.8A CN112835616A (en) 2021-02-26 2021-02-26 Version upgrading method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112835616A true CN112835616A (en) 2021-05-25

Family

ID=75933942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110221236.8A Pending CN112835616A (en) 2021-02-26 2021-02-26 Version upgrading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112835616A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835728A (en) * 2021-09-17 2021-12-24 北京百度网讯科技有限公司 Data updating method and device, electronic equipment and storage medium
CN114049702A (en) * 2021-10-14 2022-02-15 摩拜(北京)信息技术有限公司 Resource upgrading method and device, vehicle lock and electronic equipment
CN114500482A (en) * 2022-01-19 2022-05-13 上海黑眸智能科技有限责任公司 OTA (over the air) upgrading system, method, equipment side and server side based on manual upgrading of server side
CN114979206A (en) * 2022-05-20 2022-08-30 重庆长安汽车股份有限公司 Vehicle OTA (over the air) upgrading system and method based on subscription and release mode
CN114978902A (en) * 2022-05-18 2022-08-30 阿里云计算有限公司 Information processing method, apparatus, device, storage medium, and program product
CN116048601A (en) * 2022-05-17 2023-05-02 荣耀终端有限公司 Software version information synchronization method, system and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190065749A1 (en) * 2017-08-24 2019-02-28 Apple Inc. Secure element operating system update notification
US20190208407A1 (en) * 2016-08-24 2019-07-04 Gemalto Sa Method for downloading files from an ota platform over-the-air to secure elements, and corresponding ota platform
CN110908683A (en) * 2019-10-22 2020-03-24 深圳市广和通无线通信软件有限公司 Software system upgrading method and device of hardware module, storage medium and terminal
CN111158718A (en) * 2019-12-26 2020-05-15 智车优行科技(北京)有限公司 Local communication server, OTA (over the air) upgrading method thereof and cloud server
CN111831304A (en) * 2020-06-19 2020-10-27 新华三技术有限公司 Version upgrading method and device, electronic equipment and storage medium
CN112073994A (en) * 2020-09-03 2020-12-11 百度在线网络技术(北京)有限公司 Method and device for over-the-air upgrading, electronic equipment and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190208407A1 (en) * 2016-08-24 2019-07-04 Gemalto Sa Method for downloading files from an ota platform over-the-air to secure elements, and corresponding ota platform
US20190065749A1 (en) * 2017-08-24 2019-02-28 Apple Inc. Secure element operating system update notification
CN110908683A (en) * 2019-10-22 2020-03-24 深圳市广和通无线通信软件有限公司 Software system upgrading method and device of hardware module, storage medium and terminal
CN111158718A (en) * 2019-12-26 2020-05-15 智车优行科技(北京)有限公司 Local communication server, OTA (over the air) upgrading method thereof and cloud server
CN111831304A (en) * 2020-06-19 2020-10-27 新华三技术有限公司 Version upgrading method and device, electronic equipment and storage medium
CN112073994A (en) * 2020-09-03 2020-12-11 百度在线网络技术(北京)有限公司 Method and device for over-the-air upgrading, electronic equipment and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张宇杰;: "基于Android平台智能手机在线升级技术的改进与实现", 电子质量, no. 01 *
鲍军民;: "气流纺纱机监控终端OTA升级功能的设计", 工业控制计算机, no. 02, pages 38 - 40 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835728A (en) * 2021-09-17 2021-12-24 北京百度网讯科技有限公司 Data updating method and device, electronic equipment and storage medium
CN113835728B (en) * 2021-09-17 2023-12-29 北京百度网讯科技有限公司 Data updating method and device, electronic equipment and storage medium
CN114049702A (en) * 2021-10-14 2022-02-15 摩拜(北京)信息技术有限公司 Resource upgrading method and device, vehicle lock and electronic equipment
CN114500482A (en) * 2022-01-19 2022-05-13 上海黑眸智能科技有限责任公司 OTA (over the air) upgrading system, method, equipment side and server side based on manual upgrading of server side
CN116048601A (en) * 2022-05-17 2023-05-02 荣耀终端有限公司 Software version information synchronization method, system and device
CN114978902A (en) * 2022-05-18 2022-08-30 阿里云计算有限公司 Information processing method, apparatus, device, storage medium, and program product
CN114978902B (en) * 2022-05-18 2024-05-14 阿里云计算有限公司 Information processing method, apparatus, device, storage medium, and program product
CN114979206A (en) * 2022-05-20 2022-08-30 重庆长安汽车股份有限公司 Vehicle OTA (over the air) upgrading system and method based on subscription and release mode
CN114979206B (en) * 2022-05-20 2023-05-26 重庆长安汽车股份有限公司 Vehicle OTA upgrading system and method based on subscription and release mode

Similar Documents

Publication Publication Date Title
CN112835616A (en) Version upgrading method and device, electronic equipment and storage medium
CN112653758B (en) Method, device, equipment and medium for updating edge node
CN112866391A (en) Message pushing method and device, electronic equipment and storage medium
CN114430366B (en) Information acquisition application issuing method, related device and computer program product
CN113468067B (en) Application program debugging method and device, electronic equipment and computer readable medium
CN114064091A (en) OTA (over the air) upgrade control method and device, electronic equipment and automatic driving vehicle
CN114025037A (en) Cloud mobile phone overhauling method and device, electronic equipment and storage medium
CN114185734A (en) Cluster monitoring method and device and electronic equipment
CN114035863A (en) Method, device and equipment for operating android application in Linux system
CN116243949A (en) Software upgrading method and device, embedded equipment and storage medium
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN115391158A (en) Time delay determination method, system and device and electronic equipment
CN115599438A (en) Method, device, equipment and medium for constructing application program publishing package
CN114880009A (en) Vehicle instrument upgrading system and method, electronic equipment and storage medium
CN113656239A (en) Monitoring method and device for middleware and computer program product
CN114281389A (en) Method and device for upgrading SOC (system on chip) and automatic driving vehicle
CN114091909A (en) Collaborative development method, system, device and electronic equipment
CN113220342A (en) Centralized configuration method and device, electronic equipment and storage medium
CN112925623A (en) Task processing method and device, electronic equipment and medium
CN112799879A (en) Node fault processing method, device, equipment and storage medium
CN113596129B (en) Restarting method, restarting device, restarting equipment and restarting storage medium of cloud mobile phone
CN113204478B (en) Method, device and equipment for operating test unit and storage medium
CN110221869B (en) Method and device for configuring data center operating environment
CN115509688A (en) Method and device for deploying non-containerized application
CN117290342A (en) Distributed database version information management method, device, electronic 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