CN111405543A - Data packet pushing and downloading method, device and system in wireless firmware upgrading - Google Patents

Data packet pushing and downloading method, device and system in wireless firmware upgrading Download PDF

Info

Publication number
CN111405543A
CN111405543A CN201910002781.0A CN201910002781A CN111405543A CN 111405543 A CN111405543 A CN 111405543A CN 201910002781 A CN201910002781 A CN 201910002781A CN 111405543 A CN111405543 A CN 111405543A
Authority
CN
China
Prior art keywords
terminal
data packet
server
push message
downloading
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
CN201910002781.0A
Other languages
Chinese (zh)
Other versions
CN111405543B (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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910002781.0A priority Critical patent/CN111405543B/en
Publication of CN111405543A publication Critical patent/CN111405543A/en
Application granted granted Critical
Publication of CN111405543B publication Critical patent/CN111405543B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Abstract

The invention discloses a method, a device and a system for pushing and downloading a data packet in wireless firmware upgrade, which are used for solving the problem of serious network resource waste caused by pushing and downloading the data packet in FOTA in the prior art. The method comprises the following steps: the server sends a push message for downloading the first data packet to the terminal, wherein the push message comprises a download address of the first data packet; and receiving first notification information which is sent by a terminal and carries a termination state, and stopping sending a push message of a data packet of the wireless firmware upgrade to the terminal.

Description

Data packet pushing and downloading method, device and system in wireless firmware upgrading
Technical Field
The invention mainly relates to the technical field of communication of the Internet of things, in particular to a method, a device and a system for pushing and downloading a data packet in wireless firmware upgrading.
Background
At present, the downloading method of data packets in FOTA process includes: push mode and pull mode. The push mode is that the server initiates data packet push, the terminal downloads and stores the data packet after receiving the data packet sent by the server, and sends a confirmation message to the server after the data packet is stored, and waits for receiving the next new data packet.
Fig. 1 is a schematic diagram of a data interaction process between a server and a terminal in the existing push mode, a method for processing a WRITE message of a data packet by the terminal is to receive the WRITE message, WRITE the data packet into an F L ASH chip, reply the WRITE RESPONSE to the server after success or failure, and the server side sets a retransmission timeout mechanism for the WRITE message, that is, preset a fixed time length, judge whether the WRITE RESPONSE sent by the terminal is received within the preset time length, and send the WRITE message of the data packet to the terminal again when the WRITE RESPONSE is not received.
However, the terminal may not be able to send the WRITE RESPONSE to the server within the preset time span due to insufficient power supply, a problem occurring in the F L ASH chip, and the like, and the server may resend the data packet to the terminal because the server does not receive the WRITE RESPONSE within the preset time span.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for pushing and downloading a data packet in wireless firmware upgrade, which are used for solving the problem of serious network resource waste caused by pushing and downloading the data packet in FOTA in the prior art.
The embodiment of the invention provides a data packet pushing and downloading method in wireless firmware upgrading, which comprises the following steps:
the server sends a push message for downloading the first data packet to the terminal, wherein the push message comprises a download address of the first data packet;
and receiving first notification information which is sent by a terminal and carries a termination state, and stopping sending a push message of a data packet of the wireless firmware upgrade to the terminal.
Further, the method further comprises: and receiving second notification information which is sent by the terminal and indicates that the first data packet is successfully processed, and sending a push message for downloading a next data packet of the first data packet to the terminal.
Further, before the server sends a push message for downloading the first data packet to the terminal, the method further includes: the server sends subscription request information to the terminal; and receiving prompt information of successful subscription sent by the terminal.
Further, before the server sends a push message for downloading the first data packet to the terminal, the method further includes: and the server judges whether the terminal is in an idle state currently according to the state information sent by the terminal, and if so, carries out the subsequent steps.
Further, if the received notification information sent by the terminal carries the identification information that the terminal is currently in the idle state, it is determined that the received first data packet sent by the terminal is successfully processed with the second notification information.
Further, after the server sends a push message for downloading the first data packet to the terminal, the method further includes: judging whether third notification information which is sent by the terminal and confirms that the push message is received within a set time length; and if so, stopping sending the push message for downloading the first data packet to the terminal.
Further, if the server does not receive the third notification information sent by the terminal and confirming that the third notification information of the push message is received within the set time length, the method further includes: and resending the push message for downloading the first data packet to the terminal.
The embodiment of the invention provides a data packet pushing and downloading method in wireless firmware upgrading, which comprises the following steps:
receiving a push message for downloading a first data packet sent by a server;
judging whether the first data packet can be successfully processed by the first data packet;
and if not, sending first notification information carrying the termination state to the server.
Further, the method further comprises: and if the first data packet can be successfully processed by the server, the first data packet is processed, and second notification information that the first data packet is successfully processed is sent to the server after the first data packet is processed.
Further, before the receiving the push message for downloading the first data packet sent by the server, the method further includes: and receiving subscription request information sent by the server, and sending prompt information of successful subscription to the server.
Further, the sending of the second notification information that the processing of the first data packet is successful to the server includes: and adjusting the self state to an idle state, and sending second notification information carrying the identification information of the terminal in the idle state to the server.
Further, after receiving a push message sent by the server to download the first data packet, the method further includes: and sending third notification information for confirming the reception of the push message to the server, wherein the third notification information carries the identification information of the current downloading state of the terminal.
The embodiment of the invention also provides a data packet pushing and downloading device in the wireless firmware upgrading, which comprises:
the first sending module is used for sending a push message for downloading a first data packet to the terminal, wherein the push message comprises a downloading address of the first data packet;
the first receiving module is used for receiving first notification information which is sent by a terminal and carries a termination state, and stopping sending a push message of a data packet of wireless firmware upgrade to the terminal.
The embodiment of the invention also provides a data packet pushing and downloading device in the wireless firmware upgrading, which comprises:
the second receiving module is used for receiving a push message which is sent by the server and used for downloading the first data packet;
the judging module is used for judging whether the first data packet can be successfully processed by the judging module;
and the second sending module is used for sending first notification information carrying the termination state to the server if the first data packet cannot be successfully processed by the second sending module.
The embodiment of the invention also provides electronic equipment, which comprises a memory and a processor: the processor is used for reading the program in the memory and executing the following processes: the server sends a push message for downloading the first data packet to the terminal, wherein the push message comprises a download address of the first data packet; and receiving first notification information which is sent by a terminal and carries a termination state, and stopping sending a push message of a data packet of the wireless firmware upgrade to the terminal.
Further, the processor is configured to receive second notification information that the processing of the first data packet sent by the terminal is successful, and send a push message for downloading a next data packet of the first data packet to the terminal.
Further, the processor is configured to send subscription request information to the terminal; and receiving prompt information of successful subscription sent by the terminal.
Further, the processor is configured to determine whether the terminal is currently in an idle state according to the state information sent by the terminal, and if so, perform the subsequent steps.
Further, the processor is configured to determine that the received first data packet sent by the terminal is successfully processed with the second notification information if the received notification information sent by the terminal carries the identification information that the terminal is currently in the idle state.
Further, the processor is configured to determine whether third notification information sent by the terminal and confirming that the push message is received within a set time length after the processor sends the push message for downloading the first data packet to the terminal; and if so, stopping sending the push message for downloading the first data packet to the terminal.
Further, the processor is configured to, if the server does not receive the third notification information sent by the terminal and confirming that the push message is received within the set time length, resend the push message for downloading the first data packet to the terminal.
An embodiment of the present invention further provides an electronic device, where the electronic device includes a memory and a processor:
the processor is used for reading the program in the memory and executing the following processes: receiving a push message for downloading a first data packet sent by a server; judging whether the first data packet can be successfully processed by the first data packet; and if not, sending first notification information carrying the termination state to the server.
Further, the processor is configured to, if it is determined that the processor can successfully process the first data packet, and send second notification information that the processing of the first data packet is successful to the server after the processing is completed.
Further, the processor is configured to receive subscription request information sent by the server, and send prompt information indicating that the subscription is successful to the server.
Further, the processor is configured to adjust a state of the processor to an idle state, and send, to the server, second notification information carrying identification information that the terminal is currently in the idle state.
Further, the processor is configured to send, to the server, third notification information for confirming that the push message is received, where the third notification information carries identification information of a state in which the terminal is currently in a download state.
An embodiment of the present invention further provides an electronic device, where the electronic device includes: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus; the memory has stored therein a computer program which, when executed by the processor, causes the processor to perform the method steps of any of the above applied to a server.
An embodiment of the present invention further provides an electronic device, where the electronic device includes: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus; the memory has stored therein a computer program which, when executed by the processor, causes the processor to perform the method steps of any of the above applied to a terminal.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program executable by an electronic device, and when the program runs on the electronic device, the electronic device is caused to execute the method steps applied to the server by any one of the above.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program executable by an electronic device, and when the program runs on the electronic device, the electronic device is caused to execute any one of the method steps applied to the terminal.
The embodiment of the invention provides a data packet pushing and downloading system in wireless firmware upgrading, which comprises any one of the electronic equipment applied to a server and any one of the electronic equipment applied to a terminal.
The embodiment of the invention provides a method, a device and a system for pushing and downloading a data packet in wireless firmware upgrading, wherein the method comprises the following steps: the server sends a push message for downloading the first data packet to the terminal, wherein the push message comprises a download address of the first data packet; and receiving first notification information which is sent by a terminal and carries a termination state, and stopping sending a push message of a data packet of the wireless firmware upgrade to the terminal. Because the server in the embodiment of the invention does not set a retransmission timeout mechanism any more, when the server receives the first notification information which is sent by the terminal and carries the termination state, the wireless firmware upgrading process is ended, and the problem of network resource waste caused by repeated data packet retransmission when the terminal breaks down is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of interaction between a server and a terminal in a conventional push mode according to an embodiment of the present invention;
fig. 2 is a schematic process diagram of a method for pushing and downloading a data packet in a wireless firmware upgrade according to an embodiment of the present invention;
fig. 3 is a schematic diagram of interaction between a server and a terminal in a push mode according to an embodiment of the present invention;
fig. 4 is a schematic diagram of interaction between a server and a terminal in a push mode according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a data packet pushing and downloading device in a wireless firmware upgrade according to embodiment 4 of the present invention;
fig. 6 is a schematic structural diagram of a data packet pushing and downloading device in a wireless firmware upgrade according to embodiment 5 of the present invention;
fig. 7 is a schematic structural diagram of a data packet push downloading system in a wireless firmware upgrade according to an embodiment of the present invention;
fig. 8 is an electronic device according to embodiment 8 of the present invention;
fig. 9 is an electronic device according to embodiment 9 of the present invention;
fig. 10 is an electronic device according to embodiment 10 of the present invention;
fig. 11 is an electronic device according to embodiment 11 of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the attached drawings, and it should be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
Example 1:
fig. 2 is a schematic process diagram of a method for pushing and downloading a data packet in a wireless firmware upgrade, where the process includes the following steps:
s201: the server sends a push message for downloading the first data packet to the terminal, wherein the push message comprises a download address of the first data packet.
In order to solve the problem of serious waste of network resources in FOTA push downloading in the prior art, in the embodiment of the invention, the server determines whether to finish the wireless firmware upgrading process according to whether to receive the first notification information which is sent by the terminal and carries the termination state, so that the retransmission of data packets is avoided.
When detecting that the terminal needs to perform FOTA upgrade, the server sends a push message for downloading the first data packet to the terminal, and in order to enable the terminal to complete downloading of the first data packet according to the push message, the push message includes a download address of the first data packet.
S202: and the terminal receives the push message for downloading the first data packet, judges whether the terminal can successfully process the first data packet, if not, performs S203, otherwise, performs S204.
If the terminal detects that the terminal cannot successfully process the data packet, in order to terminate the wireless firmware upgrading process, first notification information carrying a termination state is sent to the server to prompt the server to stop sending the data packet of the wireless firmware upgrading, and if the terminal succeeds in processing, second notification information of successful downloading of the first data packet is sent to the server, so that the server can determine whether to retransmit the push message for downloading the first data packet according to the notification information of the terminal.
S203: the terminal sends first notification information carrying the termination state to the server, the server receives the first notification information carrying the termination state sent by the terminal, and the server stops sending a push message of a data packet of the wireless firmware upgrade to the terminal.
When the server receives first notification information sent by the terminal, and the first notification information carries a termination state, the server determines that the terminal cannot perform the wireless firmware upgrade at present due to some reasons, and stops sending the data packet of the wireless firmware upgrade to the terminal at the moment in order to avoid the problem that the network resources are wasted due to the fact that the data packet is retransmitted for many times and no response exists.
S204: and the terminal processes the first data packet, and after the processing is finished, sends second notification information that the first data packet is successfully processed to the server, and the server receives the second notification information that the first data packet is successfully processed and sent by the terminal and sends a push message for downloading a next data packet of the first data packet to the terminal.
If the terminal detects that the terminal is in an upgradable state currently after receiving the push message for downloading the first data packet, and can successfully process the first data packet according to the push message, at the moment, the terminal downloads the first data packet according to the download address of the first data packet contained in the push message, and writes the first data packet into an F L ASH chip of the terminal after the download is completed so as to execute the wireless firmware upgrade subsequently.
In order to ensure the success of the wireless firmware upgrading, after the first data packet is processed according to the push message, second notification information that the first data packet is successfully processed is sent to the server, so that the server can send other data packets of the wireless firmware upgrading process again.
After the server receives the second notification information sent by the terminal, since the second notification information includes a message that the processing of the first data packet is successful, it indicates that the terminal can continue to execute the wireless firmware upgrade process, and at this time, the server sends a push message for downloading a next data packet of the first data packet to the terminal again, such as a push message including a download address of the second data packet.
When the server receives the first notification information which is sent by the terminal and carries the termination state, the wireless firmware upgrading process is ended, and the problem of network resource waste caused by repeated data packet retransmission when the terminal breaks down is avoided.
Example 2:
in order to implement the FOTA download upgrade of the terminal, on the basis of the foregoing embodiment, in an embodiment of the present invention, before the server sends a push message for downloading the first data packet to the terminal, the method further includes:
the server sends subscription request information to the terminal;
and receiving prompt information of successful subscription sent by the terminal.
In order to ensure that the terminal can report the state of the terminal to the server at any time and enable the server to determine whether to continuously send the push message for downloading the data packet to the terminal according to the state of the terminal, in the embodiment of the invention, the server pays attention to the state change of the terminal by virtue of the subscription function of the L WM2M protocol.
Specifically, when detecting that the terminal needs FOTA upgrade, the server sends subscription request information to the terminal, and when receiving the subscription request information, the terminal receives the subscription request information of the server and sends prompt information of successful subscription to the server so as to prompt the server to send a push message for downloading a data packet.
Specifically, in order to solve the problem of serious network resource waste in the push mode in the prior art, when the subscription function of the L WM2M protocol is used, the state and the state identification information included in the subscription function are modified as follows.
The subscription function of the current L WM2M protocol includes states of idle, downloading completed, and upgrading, and the corresponding identification information is 0, 1, 2, and 3, in the embodiment of the present invention, a termination state is added to the existing state, the identification information of the termination state is marked as 4, the meaning represented by the idle state is modified, and the termination state is modified from "not starting downloading or upgrading completed" to "idle waiting instruction or upgrading completed idle". concretely, the subscription function of the current L WM2M protocol includes states as shown in table 1, and the subscription function of the modified L WM2M protocol includes states as shown in table 2.
Figure BDA0001934323160000101
TABLE 1
Figure BDA0001934323160000102
TABLE 2
In this embodiment of the present invention, before the server sends a push message for downloading the first data packet to the terminal, the method further includes:
and the server judges whether the terminal is in an idle state currently according to the state information sent by the terminal, and if so, carries out the subsequent steps.
After the server successfully subscribes the state information of the terminal, in order to ensure that the current terminal can perform wireless firmware upgrade, the server may determine whether the current terminal is in an idle state according to the state information sent by the terminal, for example, the server receives a notification message, such as 0, sent by the terminal and carrying identification information of the idle state, and at this time, it is considered that the terminal can perform wireless firmware upgrade, and then a push message for downloading a first data packet is sent to the terminal.
After the terminal finishes downloading the first data packet, the state of the terminal is adjusted from downloading to downloading, the first data packet is written into an F L ASH chip of the terminal, and the state of the terminal is adjusted from downloading to upgrading to wait for the completion of writing of the first data packet.
In order to prompt the server to continue to execute the wireless firmware upgrade process, in this embodiment of the present invention, after the terminal successfully processes the first data packet, sending, to the server, second notification information that the first data packet is successfully processed includes:
and adjusting the self state to an idle state, and sending second notification information carrying the identification information of the terminal in the idle state to the server.
After the terminal successfully writes the first data packet into the F L ASH chip, in order to prompt the server that the next data packet can be sent, the state of the server is adjusted to the idle state again from the upgrade state, and second notification information is sent to the server, where the second notification information carries identification information of the terminal currently in the idle state, such as 0.
In the whole process of processing the first data packet, in order to enable the server to constantly master the state information of the terminal itself, the terminal sends notification information carrying the state information of the terminal itself, such as identification information which can carry the state of the terminal itself, to the server every time the state of the terminal itself changes, for example, when the terminal is in the downloading state, the notification message carrying the identification information of the downloading state can be sent, which may be 1. If the terminal determines that the terminal is in a failure state, the terminal cannot successfully process the first data packet, and in order to end the wireless firmware upgrade process, the terminal adjusts the state of the terminal from an idle state to a termination state, and sends first notification information to the server, where the first notification information specifically carries information that the terminal is currently in the termination state, and specifically may carry identification information of the termination state, such as 4.
Correspondingly, each type of state information of the terminal and the identification information corresponding to each type of state information are stored in the server. When the server receives the notification information sent by the terminal, the identification information carried in the notification information is identified, the state of the current terminal is determined, if the server identifies that the identification information carried in the notification information is 4, and the terminal is determined to be in the termination state currently according to the identification information of 4, the currently received notification information can be determined to be the first notification information. It is determined that the current terminal may not complete the wireless firmware upgrade due to its own reason, and the sending of the push message of the data packet to the terminal is stopped in order to save network resources.
When the server receives the notification information, the identification information carried in the notification information is identified, and the state of the current terminal is determined. If the server recognizes that the notification information carries the status information with the identification information of 0, it is determined that the terminal is in the state of the idle waiting instruction at this time, and it may be determined that the currently received notification information is the second notification information in which the processing of the first data packet is successful. At this time, in order to save resources, the server will not send the push message for downloading the first data packet any more, and if all the data packets are not downloaded completely, the server may continue to send the push message for downloading the next data packet of the first data packet, that is, the second data packet, to the terminal, and then continue to loop the above steps until the FOTA upgrade of the terminal is completed.
In the embodiment of the invention, the subscription request information is sent to the terminal by utilizing the subscription function of the L WM2M protocol, and after the prompt information of successful subscription sent by the terminal is received, the situation that the FOTA download and upgrade are carried out by the terminal can be concerned by receiving the notification information of the self state sent by the terminal.
Example 3:
in order to ensure that the terminal receives the data packet and to reduce unnecessary resource waste, on the basis of the foregoing embodiments, in an embodiment of the present invention, after the server sends a push message for downloading the first data packet to the terminal, the method further includes:
judging whether third notification information which is sent by the terminal and confirms that the push message is received within a set time length;
and if so, stopping sending the push message for downloading the first data packet to the terminal.
And if not, resending the push message for downloading the first data packet to the terminal.
Based on the above mentioned content, when the terminal performs the FOTA upgrade downloading process, the server first sends a push message for downloading the first data packet to the terminal, so that the terminal can download the first data packet according to the push message. In order to ensure that the terminal can receive the push message for FOTA upgrade, a timeout retransmission mechanism is set at the server, specifically, a certain time length can be preset. After sending a push message for downloading the first data packet to the terminal, the server judges whether third notification information is received within a preset time length, wherein the third notification information is sent when the terminal confirms that the push message is received.
After receiving the push message for downloading the first data packet, the terminal starts to download the first data packet when detecting that the terminal can successfully process the first data packet, adjusts the state of the terminal from idle to downloading, in order to prompt the server that the terminal has already received the push message for downloading the first data packet at the moment, and in order to prompt the server that the push message has no problem, the terminal can successfully download the first data packet, and sends third notification information to the server, preferably, the third notification information includes the current state information of the terminal. Specifically, the third notification information is sent when the terminal confirms that the push message for downloading the first data packet is received and the terminal confirms that the push message can be successfully downloaded to the first data packet, and in order to no longer receive push messages for downloading other data packets, the current state of the terminal is changed from the idle state to the downloading state. When the third notification information is sent, the current state information of the third notification information may be carried, and preferably, the identification information of the current state information of the terminal itself may be carried, for example, 1 may be used to represent the downloading state, so that the third notification information may carry the identification information 1.
Correspondingly, the server side stores various states of the terminal and identification information corresponding to the various states. If the server receives the third notification information within the set time length, the terminal is considered to have received the push message for downloading the first data packet, and the terminal is determined to be in the downloading state currently according to the identification information 1 carried in the third notification information, and the push message for downloading the first data packet is confirmed to enable the terminal to successfully download the first data packet. In order to reduce the consumption of the terminal or the waste of network resources, the server will stop sending the push message for downloading the first data packet to the terminal.
And if the server does not receive the third notification message within the set time length, the terminal is considered to not receive the push message for downloading the first data packet for some reasons, and in order to ensure that the terminal can normally perform FOTA upgrade, the server sends the push message for downloading the first data packet to the terminal again.
In the embodiment of the invention, if the server receives the third notification information of the terminal within the set time period, the server stops sending the push message for downloading the first data packet, so that the waste of resources is reduced, and if the third notification information is not received within the set time period, the push message for downloading the first data packet is sent again, so that the terminal can be ensured to receive the push message for downloading the first data packet for FOTA upgrading.
The above embodiments are described in detail with reference to fig. 3, and as shown in fig. 4, the method includes the following steps:
s301: the server sends subscription request information to the terminal and receives prompt information sent by the terminal for requesting successful subscription.
And the terminal receives subscription request information sent by the server and sends prompt information requesting successful subscription to the server.
S302: the server sends a push message for downloading the first data packet to the terminal.
The terminal receives a push message which is sent by the server and used for downloading the first data packet, judges whether the terminal can successfully process the first data packet, starts to download the first data packet if the terminal can successfully process the first data packet, and sends notification information for confirming that the push message is received to the server.
S303: the server judges whether notification information which is sent by the terminal and confirms that the push message is received within the set time length.
If so, stopping sending a push message for downloading the first data packet to the terminal;
and if not, retransmitting the push message for downloading the first data packet to the terminal.
S304: if receiving the notification information which is sent by the terminal and carries the termination state, stopping sending the push message of the data packet of the wireless firmware upgrade to the terminal;
and if the second notification information that the first data packet sent by the terminal is successfully processed is received, sending a push message for downloading a next data packet of the first data packet to the terminal.
The terminal receives a push message which is sent by a server and used for downloading a first data packet, and sends first notification information carrying a termination state to the server when detecting that the terminal cannot successfully process the first data packet; and if the first data packet is detected to be successfully processed by the server, sending second notification information that the first data packet is successfully processed to the server after the processing is completed.
The specific processes of the steps in the embodiments of the present invention are described in detail in the above embodiments, and are not described herein again.
Example 4:
based on the same technical concept, the embodiment of the invention provides a data packet pushing and downloading device in wireless firmware upgrading. As shown in fig. 5, the apparatus provided in the embodiment of the present invention includes:
a first sending module 501, configured to send a push message for downloading a first data packet to a terminal, where the push message includes a download address of the first data packet;
a first receiving module 502, configured to receive first notification information carrying a termination state sent by a terminal, and stop sending a push message of a data packet of a wireless firmware upgrade to the terminal.
Further, the first receiving module 502 is further configured to receive second notification information that the processing of the first data packet sent by the terminal is successful, and send a push message for downloading a next data packet of the first data packet to the terminal.
Further, the apparatus further includes a first subscription module 503, configured to send subscription request information to the terminal; and receiving prompt information of successful subscription sent by the terminal.
Further, the first subscription module 503 is further configured to determine whether the terminal is currently in an idle state according to the state information sent by the terminal, and if so, trigger the first sending module.
Further, the first receiving module 502 is configured to determine that the received first data packet sent by the terminal is successfully processed with the second notification information if the received notification information sent by the terminal carries the identification information that the terminal is currently in the idle state.
Further, the first receiving module 502 is further configured to determine whether a third notification message sent by the terminal and confirming that the push message is received within a set time length; if so, stopping sending a push message for downloading the first data packet to the terminal; and if the server does not receive the third notification information which is sent by the terminal and confirms that the third notification information of the push message is received, the server resends the push message for downloading the first data packet to the terminal.
Example 5:
based on the same technical concept, the embodiment of the invention provides a data packet pushing and downloading device in wireless firmware upgrading. As shown in fig. 6, the apparatus provided in the embodiment of the present invention includes:
a second receiving module 601, configured to receive a push message for downloading a first data packet sent by a server;
a determining module 602, configured to determine whether the first data packet can be successfully processed by itself;
a second sending module 603, configured to send, to the server, the first notification information carrying the termination state if it is determined that the first data packet cannot be successfully processed by the server.
Further, the second sending module 603 is further configured to, if it is determined that the first data packet can be successfully processed by itself, process the first data packet, and send second notification information that the processing of the first data packet is successful to the server after the processing is completed.
Further, the apparatus further includes a second subscription module 604, configured to receive subscription request information sent by the server, and send a prompt message that the subscription is successful to the server.
Further, the second sending module 603 is further configured to adjust the state of the terminal to an idle state, and send, to the server, second notification information carrying the identification information that the terminal is currently in the idle state.
Further, the second sending module 603 is further configured to send, to the server, third notification information for confirming that the push message is received, where the third notification information carries identification information of a state in which the terminal is currently in a downloading state.
Example 7:
fig. 7 is a schematic structural diagram of a data packet push downloading system in a wireless firmware upgrade, where the push downloading system 700 includes a server 701 and a terminal 702. Wherein:
the server 701 is configured to send a push message for downloading a first data packet to a terminal, where the push message includes a download address of the first data packet; and receiving first notification information which is sent by a terminal and carries a termination state, and stopping sending a push message of a data packet of the wireless firmware upgrade to the terminal.
The terminal 702 is configured to receive a push message for downloading a first data packet sent by a server; judging whether the first data packet can be successfully processed by the first data packet; and if not, sending first notification information carrying the termination state to the server.
Further, the server 701 is further configured to receive second notification information that the processing of the first data packet sent by the terminal is successful, and send a push message for downloading a next data packet of the first data packet to the terminal.
Further, the server 701 is further configured to send subscription request information to the terminal; and receiving prompt information of successful subscription sent by the terminal.
Further, the server 701 is further configured to determine whether the terminal is currently in an idle state according to the state information sent by the terminal, and if so, perform the subsequent steps.
Further, the server 701 is further configured to determine that the second notification information that the processing of the first data packet sent by the terminal is successful is received if the received notification information sent by the terminal carries the identification information that the terminal is currently in the idle state.
Further, the server 701 is further configured to determine whether third notification information sent by the terminal and confirming that the push message is received within a set time length; and if so, stopping sending the push message for downloading the first data packet to the terminal.
Further, the server 701 is further configured to, if the server does not receive the third notification information sent by the terminal and confirming that the push message is received, resend the push message for downloading the first data packet to the terminal.
Further, the terminal 702 is further configured to, if it is determined that the terminal can successfully process the first data packet, and send, after the processing is completed, second notification information that the processing of the first data packet is successful to the server.
Further, the terminal 702 is further configured to receive subscription request information sent by the server, and send a prompt message that the subscription is successful to the server.
Further, the terminal 702 is further configured to adjust the state of the terminal to an idle state, and send, to the server, second notification information carrying the identification information that the terminal is currently in the idle state.
Further, the terminal 702 is further configured to send, to the server, third notification information for confirming that the push message is received, where the third notification information carries identification information of a state in which the terminal is currently in a downloading state.
Example 8:
on the basis of the above embodiments, the embodiment of the present invention further provides an electronic device 800, as shown in fig. 8, including a memory 801 and a processor 802;
the processor 802 is configured to read the program in the memory 801 and execute the following processes:
sending a push message for downloading a first data packet to a terminal, wherein the push message comprises a download address of the first data packet;
and receiving first notification information which is sent by a terminal and carries a termination state, and stopping sending a push message of a data packet of the wireless firmware upgrade to the terminal.
In FIG. 8, the bus architecture may include any number of interconnected buses and bridges, with one or more processors represented by processor 802 and various circuits of memory represented by memory 801 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein.
Alternatively, the processor 802 may be a CPU (central processing unit), an ASIC (Application specific integrated Circuit), an FPGA (Field Programmable Gate Array), or a CP L D (Complex Programmable L organic Device).
The processor 802 is configured to receive second notification information that a first data packet sent by the terminal is successfully processed, and send a push message for downloading a next data packet of the first data packet to the terminal.
The processor 802 is configured to send subscription request information to the terminal; and receiving prompt information of successful subscription sent by the terminal.
The processor 802 is configured to determine whether the terminal is currently in an idle state according to the state information sent by the terminal, and if so, perform the subsequent steps.
The processor 802 is configured to determine that the first data packet sent by the terminal is received and the second notification information is successfully processed if the received notification information sent by the terminal carries the identification information that the terminal is currently in the idle state.
The processor 802 is configured to determine whether a third notification message sent by the terminal and confirming that the push message is received within a set time length after sending the push message for downloading the first data packet to the terminal; and if so, stopping sending the push message for downloading the first data packet to the terminal.
The processor 802 is configured to resend the push message for downloading the first data packet to the terminal if the server does not receive the third notification message sent by the terminal and confirming that the push message is received within the set time length.
Example 9:
on the basis of the foregoing embodiments, an electronic device 900 is further provided in an embodiment of the present invention, as shown in fig. 9, and includes a memory 901 and a processor 902;
the processor 902 is configured to read the program in the memory 901, and execute the following processes:
receiving a push message for downloading a first data packet sent by a server;
judging whether the first data packet can be successfully processed by the first data packet;
and if not, sending first notification information carrying the termination state to the server.
In fig. 9, the bus architecture may include any number of interconnected buses and bridges, with one or more processors, represented by processor 902, and various circuits, represented by memory 901, linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein.
Alternatively, the processor 902 may be a CPU (central processing unit), an ASIC (Application specific integrated Circuit), an FPGA (Field Programmable Gate Array), or a CP L D (Complex Programmable L organic Device).
The processor 902 is configured to, if it is determined that the first data packet can be successfully processed by itself, process the first data packet, and send second notification information that the first data packet is successfully processed to the server after the first data packet is processed.
The processor 902 is configured to receive subscription request information sent by the server, and send a prompt message indicating that the subscription is successful to the server.
The processor 902 is configured to adjust a self state to an idle state, and send second notification information carrying identification information that the terminal is currently in the idle state to the server.
The processor 902 is configured to send, to the server, third notification information for confirming that the push message is received, where the third notification information carries identification information of a state in which the terminal is currently in a download state.
Example 10:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device 1000, as shown in fig. 10, including: the system comprises a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002 and the memory 1003 are communicated with each other through the communication bus 1004;
the memory 1003 has stored therein a computer program which, when executed by the processor 1001, causes the processor 1001 to perform the steps of:
the server sends a push message for downloading the first data packet to the terminal, wherein the push message comprises a download address of the first data packet;
and receiving first notification information which is sent by a terminal and carries a termination state, and stopping sending a push message of a data packet of the wireless firmware upgrade to the terminal.
Further, the processor is configured to receive second notification information that the processing of the first data packet sent by the terminal is successful, and send a push message for downloading a next data packet of the first data packet to the terminal.
Further, the processor is configured to send subscription request information to the terminal; and receiving prompt information of successful subscription sent by the terminal.
Further, the processor is configured to determine whether the terminal is currently in an idle state according to the state information sent by the terminal, and if so, perform the subsequent steps.
Further, the processor is configured to determine that the received first data packet sent by the terminal is successfully processed with the second notification information if the received notification information sent by the terminal carries the identification information that the terminal is currently in the idle state.
Further, the processor is configured to determine whether third notification information sent by the terminal and confirming that the push message is received within a set time length after the processor sends the push message for downloading the first data packet to the terminal; and if so, stopping sending the push message for downloading the first data packet to the terminal.
Further, the processor is configured to resend the push message for downloading the first data packet to the terminal if the server does not receive the third notification message sent by the terminal within the set time length to confirm that the push message is received.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 1002 is used for communication between the electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The processor may be a general-purpose processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Example 11:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device 1100, as shown in fig. 11, including: the system comprises a processor 1101, a communication interface 1102, a memory 1103 and a communication bus 1104, wherein the processor 1101, the communication interface 1102 and the memory 1103 are communicated with each other through the communication bus 1104;
the memory 1103 has stored therein a computer program that, when executed by the processor 1101, causes the processor 1101 to perform the steps of:
receiving a push message for downloading a first data packet sent by a server;
judging whether the first data packet can be successfully processed by the first data packet;
and if not, sending first notification information carrying the termination state to the server.
Further, the processor is configured to, if it is determined that the processor can successfully process the first data packet, and send second notification information that the processing of the first data packet is successful to the server after the processing is completed.
Further, the processor is configured to receive subscription request information sent by the server, and send prompt information indicating that the subscription is successful to the server.
Further, the processor is configured to adjust a state of the processor to an idle state, and send, to the server, second notification information carrying identification information that the terminal is currently in the idle state.
Further, the processor is configured to send, to the server, third notification information for confirming that the push message is received, where the third notification information carries identification information of a state in which the terminal is currently in a download state.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 1102 is used for communication between the electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The processor may be a general-purpose processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Example 12:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device is caused to execute the following steps:
the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of:
the server sends a push message for downloading the first data packet to the terminal, wherein the push message comprises a download address of the first data packet;
and receiving first notification information which is sent by a terminal and carries a termination state, and stopping sending a push message of a data packet of the wireless firmware upgrade to the terminal.
Further, the processor is configured to receive second notification information that the processing of the first data packet sent by the terminal is successful, and send a push message for downloading a next data packet of the first data packet to the terminal.
Further, the processor is configured to send subscription request information to the terminal; and receiving prompt information of successful subscription sent by the terminal.
Further, the processor is configured to determine whether the terminal is currently in an idle state according to the state information sent by the terminal, and if so, perform the subsequent steps.
Further, the processor is configured to determine that the received first data packet sent by the terminal is successfully processed with the second notification information if the received notification information sent by the terminal carries the identification information that the terminal is currently in the idle state.
Further, the processor is configured to determine whether third notification information sent by the terminal and confirming that the push message is received within a set time length after the processor sends the push message for downloading the first data packet to the terminal; and if so, stopping sending the push message for downloading the first data packet to the terminal.
Further, the processor is configured to resend the push message for downloading the first data packet to the terminal if the server does not receive the third notification message sent by the terminal within the set time length to confirm that the push message is received.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MO), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memory (NANDF L ASH), Solid State Disks (SSDs), etc.
Example 13:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device is caused to execute the following steps:
the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of:
receiving a push message for downloading a first data packet sent by a server;
judging whether the first data packet can be successfully processed by the first data packet;
and if not, sending first notification information carrying the termination state to the server.
Further, the processor is configured to, if it is determined that the processor can successfully process the first data packet, and send second notification information that the processing of the first data packet is successful to the server after the processing is completed.
Further, the processor is configured to receive subscription request information sent by the server, and send prompt information indicating that the subscription is successful to the server.
Further, the processor is configured to adjust a state of the processor to an idle state, and send, to the server, second notification information carrying identification information that the terminal is currently in the idle state.
Further, the processor is configured to send, to the server, third notification information for confirming that the push message is received, where the third notification information carries identification information of a state in which the terminal is currently in a download state.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MO), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memory (NANDF L ASH), Solid State Disks (SSDs), etc.
For the system/apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
It is to be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or operation from another entity or operation without necessarily requiring or implying any actual such relationship or order between such entities or operations.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely application embodiment, or an embodiment combining application and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (31)

1. A method for data packet push downloading in wireless firmware upgrade, the method comprising:
the server sends a push message for downloading the first data packet to the terminal, wherein the push message comprises a download address of the first data packet;
and receiving first notification information which is sent by a terminal and carries a termination state, and stopping sending a push message of a data packet of the wireless firmware upgrade to the terminal.
2. The method of claim 1, wherein the method further comprises:
and receiving second notification information which is sent by the terminal and indicates that the first data packet is successfully processed, and sending a push message for downloading a next data packet of the first data packet to the terminal.
3. The method of claim 1 or 2, wherein before the server sends a push message to the terminal to download the first data package, the method further comprises:
the server sends subscription request information to the terminal;
and receiving prompt information of successful subscription sent by the terminal.
4. The method of claim 3, wherein before the server sends a push message to the terminal to download the first data package, the method further comprises:
and the server judges whether the terminal is in an idle state currently according to the state information sent by the terminal, and if so, carries out the subsequent steps.
5. The method of claim 3, wherein if the received notification information sent by the terminal carries identification information that the terminal is currently in an idle state, it is determined that the received first data packet sent by the terminal is successfully processed with the second notification information.
6. The method of claim 1, wherein after the server sends a push message to the terminal to download the first data package, the method further comprises:
judging whether third notification information which is sent by the terminal and confirms that the push message is received within a set time length;
and if so, stopping sending the push message for downloading the first data packet to the terminal.
7. The method of claim 6, wherein if the server does not receive the third notification message sent by the terminal for a set time period to confirm that the third notification message of the push message is received, the method further comprises:
and resending the push message for downloading the first data packet to the terminal.
8. A method for data packet push downloading in wireless firmware upgrade, the method comprising:
receiving a push message for downloading a first data packet sent by a server;
judging whether the first data packet can be successfully processed by the first data packet;
and if not, sending first notification information carrying the termination state to the server.
9. The method of claim 8, wherein the method further comprises:
and if the first data packet can be successfully processed by the server, processing the first data packet, and sending second notification information that the first data packet is successfully processed to the server after the first data packet is processed.
10. The method of claim 8 or 9, wherein before receiving the push message sent by the server to download the first data package, the method further comprises:
and receiving subscription request information sent by the server, and sending prompt information of successful subscription to the server.
11. The method of claim 10, wherein said sending a second notification to the server that the first packet processing was successful comprises:
and adjusting the self state to an idle state, and sending second notification information carrying the identification information of the terminal in the idle state to the server.
12. The method of claim 8, wherein after receiving a push message sent by a server to download a first data package, the method further comprises:
and sending third notification information for confirming the reception of the push message to the server, wherein the third notification information carries the identification information of the current downloading state of the terminal.
13. A device for pushing and downloading data packets in wireless firmware upgrade, the device comprising:
the first sending module is used for sending a push message for downloading a first data packet to the terminal, wherein the push message comprises a downloading address of the first data packet;
the first receiving module is used for receiving first notification information which is sent by a terminal and carries a termination state, and stopping sending a push message of a data packet of wireless firmware upgrade to the terminal.
14. A device for pushing and downloading data packets in wireless firmware upgrade, the device comprising:
the second receiving module is used for receiving a push message which is sent by the server and used for downloading the first data packet;
the judging module is used for judging whether the first data packet can be successfully processed by the judging module;
and the second sending module is used for sending first notification information carrying the termination state to the server if the first data packet cannot be successfully processed by the second sending module.
15. An electronic device, comprising a memory and a processor:
the processor is used for reading the program in the memory and executing the following processes: the server sends a push message for downloading the first data packet to the terminal, wherein the push message comprises a download address of the first data packet; and receiving first notification information which is sent by a terminal and carries a termination state, and stopping sending a push message of a data packet of the wireless firmware upgrade to the terminal.
16. The electronic device of claim 15, wherein the processor is configured to receive a second notification that the processing of the first packet sent by the terminal is successful, and send a push message to the terminal to download a next packet of the first packet.
17. The electronic device of claim 15 or 16, wherein the processor is configured to send subscription request information to the terminal; and receiving prompt information of successful subscription sent by the terminal.
18. The electronic device of claim 17, wherein the processor is configured to determine whether the terminal is currently in an idle state according to status information sent by the terminal, and if so, perform the following steps.
19. The electronic device of claim 17, wherein the processor is configured to determine that the second notification information indicates that the first packet sent by the terminal is successfully processed if the received notification information sent by the terminal carries identification information that the terminal is currently in an idle state.
20. The electronic device according to claim 15, wherein the processor is configured to determine whether a third notification message sent by the terminal and confirming that the push message is received within a set time period after sending the push message for downloading the first data packet to the terminal; and if so, stopping sending the push message for downloading the first data packet to the terminal.
21. The electronic device of claim 20, wherein the processor is configured to resend the push message for downloading the first data packet to the terminal if the server does not receive a third notification message sent by the terminal within a set time period to confirm receipt of the push message.
22. An electronic device, comprising a memory and a processor:
the processor is used for reading the program in the memory and executing the following processes: receiving a push message for downloading a first data packet sent by a server; judging whether the first data packet can be successfully processed by the first data packet; and if not, sending first notification information carrying the termination state to the server.
23. The electronic device of claim 22, wherein the processor is configured to process the first packet if it is determined that the first packet can be successfully processed by itself, and send a second notification to the server that the first packet is successfully processed after the first packet is successfully processed.
24. The electronic device of claim 21 or 22, wherein the processor is configured to receive subscription request information sent by the server, and send a notification that the subscription is successful to the server.
25. The electronic device of claim 24, wherein the processor is configured to adjust the self status to an idle status, and send second notification information carrying identification information that the terminal is currently in the idle status to the server.
26. The electronic device of claim 22, wherein the processor is configured to send third notification information to the server, the third notification information confirming that the push message is received, and the third notification information carries identification information that the terminal is currently in a downloading state.
27. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the method of any one of claims 1 to 7.
28. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the method of any one of claims 8-12.
29. A computer-readable storage medium, characterized in that it stores a computer program executable by an electronic device, which program, when run on the electronic device, causes the electronic device to carry out the steps of the method according to any one of claims 1-7.
30. A computer-readable storage medium, characterized in that it stores a computer program executable by an electronic device, which program, when run on the electronic device, causes the electronic device to carry out the steps of the method according to any one of claims 8-12.
31. A system for push downloading of data packets in a wireless firmware upgrade, characterized in that the system comprises an electronic device as applied in any of claims 15-21 to a server and an electronic device as applied in any of claims 22-26 to a terminal.
CN201910002781.0A 2019-01-02 2019-01-02 Data packet pushing and downloading method, device and system in wireless firmware upgrading Active CN111405543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910002781.0A CN111405543B (en) 2019-01-02 2019-01-02 Data packet pushing and downloading method, device and system in wireless firmware upgrading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910002781.0A CN111405543B (en) 2019-01-02 2019-01-02 Data packet pushing and downloading method, device and system in wireless firmware upgrading

Publications (2)

Publication Number Publication Date
CN111405543A true CN111405543A (en) 2020-07-10
CN111405543B CN111405543B (en) 2023-04-07

Family

ID=71413588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910002781.0A Active CN111405543B (en) 2019-01-02 2019-01-02 Data packet pushing and downloading method, device and system in wireless firmware upgrading

Country Status (1)

Country Link
CN (1) CN111405543B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337948A (en) * 2014-08-13 2016-02-17 中兴通讯股份有限公司 Information processing method and device
US20170206079A1 (en) * 2014-05-19 2017-07-20 Zte Corporation Method and Device for Upgrading Software
WO2017124736A1 (en) * 2016-01-19 2017-07-27 中兴通讯股份有限公司 Method, device and system for transmitting upgrade abnormality information
CN107239302A (en) * 2017-05-10 2017-10-10 努比亚技术有限公司 A kind of firmware upgrade method, terminal and server
CN107608701A (en) * 2017-10-20 2018-01-19 深圳市道通科技股份有限公司 A kind of method and apparatus of firmware updating

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170206079A1 (en) * 2014-05-19 2017-07-20 Zte Corporation Method and Device for Upgrading Software
CN105337948A (en) * 2014-08-13 2016-02-17 中兴通讯股份有限公司 Information processing method and device
WO2017124736A1 (en) * 2016-01-19 2017-07-27 中兴通讯股份有限公司 Method, device and system for transmitting upgrade abnormality information
CN107239302A (en) * 2017-05-10 2017-10-10 努比亚技术有限公司 A kind of firmware upgrade method, terminal and server
CN107608701A (en) * 2017-10-20 2018-01-19 深圳市道通科技股份有限公司 A kind of method and apparatus of firmware updating

Also Published As

Publication number Publication date
CN111405543B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
US10108511B2 (en) Test for 50 nanosecond spike filter
CN111857838B (en) Method and system for managing communication between UFS device and UFS host
US8082370B2 (en) Apparatus, method, and system for controlling communication between host device and USB device
CN110209405B (en) Automatic upgrading method and device for distributed system
WO2021057666A1 (en) Transmission control method, network management server, base station and storage medium
JP2009514084A (en) Data processing device with reset device
CN108900627B (en) Network request method, terminal device and storage medium
WO2024007995A1 (en) Network fault recovery method and apparatus, device, and storage medium
CN110769411B (en) Method, device, equipment and system for stably realizing batch OTA (over the air) upgrade of terminal equipment
US9377966B2 (en) Method and apparatus for efficiently processing storage commands
CN112350914A (en) Modbus communication method and system based on MQTT cloud platform
CN104917696A (en) Periodic and non-periodic mixed communication method and system used for low-speed serial bus
CN111405543B (en) Data packet pushing and downloading method, device and system in wireless firmware upgrading
CN102148743B (en) Data flow control method, device and mobile terminal
CN111857303B (en) FPGA (field programmable Gate array) resetting method, device and system and electronic equipment
CN111200833B (en) Method and device for determining network element state
NL2028891B1 (en) I3c pending read with retransmission
CN111176674B (en) OSGI plug-in upgrading method and device, electronic equipment and storage medium
CN110035496B (en) Cloud platform switching method and system and electronic equipment
CN112822248A (en) OTA upgrading method, OTA upgrading device, readable medium and electronic equipment
CN109450702B (en) Data processing method and device
CN113162796A (en) Equipment updating method, device and equipment updating system
TWI791316B (en) Method and system for implementing inter-process communications
CN111586115A (en) Data transmission system and method
CN113472841B (en) Implementation method and device for terminating remote procedure call request

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