CN112286556A - Communication equipment and remote upgrading method of MCU thereof - Google Patents

Communication equipment and remote upgrading method of MCU thereof Download PDF

Info

Publication number
CN112286556A
CN112286556A CN202011193099.3A CN202011193099A CN112286556A CN 112286556 A CN112286556 A CN 112286556A CN 202011193099 A CN202011193099 A CN 202011193099A CN 112286556 A CN112286556 A CN 112286556A
Authority
CN
China
Prior art keywords
mcu
wireless communication
communication module
upgrading
feedback information
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
CN202011193099.3A
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.)
Shanghai Simcom Wireless Solutions Co Ltd
Original Assignee
Shanghai Simcom Wireless Solutions 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 Shanghai Simcom Wireless Solutions Co Ltd filed Critical Shanghai Simcom Wireless Solutions Co Ltd
Priority to CN202011193099.3A priority Critical patent/CN112286556A/en
Publication of CN112286556A publication Critical patent/CN112286556A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a communication device and a remote upgrading method of an MCU thereof, wherein the communication device comprises the MCU and a wireless communication module which are in communication connection, and the remote upgrading method comprises the following steps: the wireless communication module sends a query request to the cloud server, and downloads the MCU upgrading package from the cloud server when receiving first feedback information sent by the cloud server according to the query request; the wireless communication module sends an upgrading instruction to the MCU; the MCU analyzes the upgrading instruction and obtains an analysis result, and second feedback information is sent to the wireless communication module when the analysis result meets a preset condition; the wireless communication module sends the MCU upgrading packet to the MCU according to the second feedback information; and the MCU updates according to the received MCU updating packet. According to the invention, the MCU upgrading package is downloaded from the cloud server through the wireless communication module and transmitted to the MCU, so that the MCU is remotely upgraded on line, the remote automatic upgrading of the MCU is realized, and the upgrading efficiency of the MCU is improved.

Description

Communication equipment and remote upgrading method of MCU thereof
Technical Field
The invention relates to the technical field of communication equipment, in particular to communication equipment and a remote upgrading method of an MCU (microprogrammed control unit) of the communication equipment.
Background
A Micro Control Unit (MCU) is a core component of a communication device (such as an embedded communication device), and a main MCU internal program is upgraded by using a special burning tool through a Personal Computer (PC), so that once the MCU program needs to be upgraded, the MCU device needs to be taken out of the embedded communication device, and then the MCU is upgraded by using the PC burning tool; however, such an upgrading method has the problems of complicated upgrading process, low upgrading efficiency and the like. In addition, when the MCU cannot be taken out of the embedded communication device, the MCU cannot be upgraded, and thus the MCU needs to be returned to the factory for each upgrade, which results in waste of time and cost.
Disclosure of Invention
The technical problem to be solved by the invention is to overcome the defect that the MCU of the communication equipment in the prior art needs to be upgraded by a special burning tool, so that the MCU needs to be returned to a factory or cannot be taken out, and further the MCU cannot be upgraded, and the invention provides the communication equipment and the MCU remote upgrading method thereof.
The invention solves the technical problems through the following technical scheme:
the invention provides a remote upgrading method of an MCU in communication equipment, wherein the communication equipment comprises the MCU and a wireless communication module which are in communication connection, and the remote upgrading method comprises the following steps:
the wireless communication module sends a query request to a cloud server, and downloads an MCU (microprogrammed control unit) upgrade package from the cloud server when receiving first feedback information sent by the cloud server according to the query request;
the first feedback information is used for representing that the cloud server stores MCU updating information used for upgrading the MCU;
the wireless communication module sends an upgrading instruction to the MCU;
the MCU analyzes the upgrading instruction and obtains an analysis result, and second feedback information is sent to the wireless communication module when the analysis result meets a preset condition;
the wireless communication module sends the MCU upgrading packet to the MCU according to the second feedback information;
and the MCU carries out upgrading according to the received MCU upgrading packet.
Preferably, the step of sending the MCU query request to the cloud server by the wireless communication module further includes:
the MCU sends version number information of the MCU to the wireless communication module;
the wireless communication module sends the received version number information to the cloud server;
the step of downloading the MCU upgrade package from the cloud server when receiving the first feedback information sent by the cloud server according to the query request comprises:
and the wireless communication module receives the first feedback message sent by the cloud server when the cloud server inquires that the MCU updating information is stored according to the version number information.
Preferably, the step of sending the MCU query request to the cloud server by the wireless communication module further includes:
the MCU sends a trigger instruction to the wireless communication module;
and the wireless communication module sends the query request to the cloud server according to the trigger instruction.
Preferably, the step of downloading the MCU upgrade package from the cloud server when receiving the first feedback information sent by the cloud server includes:
the wireless communication module generates a downloading request and sends the downloading request to the cloud server when receiving the first feedback information;
the wireless communication module downloads the MCU upgrading package corresponding to the MCU updating information when receiving third feedback information sent by the cloud server according to the downloading request;
the third feedback information is used for representing the information that the cloud server allows the wireless communication module to download the MCU upgrading package.
Preferably, the step of the MCU analyzing the upgrade instruction and obtaining an analysis result, and sending the second feedback information to the wireless communication module when the analysis result satisfies a preset condition includes:
the MCU analyzes the upgrading instruction and acquires an analysis result;
the analysis result is used for representing the size of the MCU upgrading packet;
the MCU judges whether the size of the MCU upgrading packet is larger than the storage space of the MCU, if so, the MCU sends fourth feedback information to the wireless communication module; if not, the MCU sends the second feedback information to the wireless communication module;
the fourth feedback information is used for representing the information which can not execute the upgrading operation.
Preferably, the step of sending the MCU upgrade package to the MCU by the wireless communication module according to the second feedback information includes:
and the wireless communication module performs sub-packet processing on the MCU upgrading packet according to the second feedback information to acquire a plurality of sub-packet data, and sequentially transmits the sub-packet data to the MCU according to a time sequence.
Preferably, the remote upgrade method further includes:
the MCU calculates to obtain initial receiving times according to the size of the MCU upgrading packet and the size of data transmitted by the wireless communication module each time;
the wireless communication module sequentially transmits the sub-packet data to the MCU according to a time sequence, and then the method further comprises the following steps:
the MCU counts the actual receiving times of the sub-packet data;
the MCU compares whether the initial receiving times and the actual receiving times are consistent, if so, the MCU sends fifth feedback information for representing the successful transmission of the MCU upgrading packet to the wireless communication module; if not, generating reminding information of abnormal data receiving.
Preferably, the upgrade instruction includes a reference CRC (Cyclic Redundancy Check) Check code;
after the MCU upgrade package is completely received and before the MCU is upgraded according to the MCU upgrade package, the remote upgrade method further includes:
the MCU checks the acquired MCU upgrading packet and acquires a first CRC (cyclic redundancy check) code, whether the first CRC code is consistent with the reference check code or not is judged, and if yes, the MCU sends fifth feedback information for representing successful transmission of the MCU upgrading packet to the wireless communication module; and if not, the MCU regenerates the new second feedback information and sends the new second feedback information to the wireless communication module, and the wireless communication module sends the MCU upgrading package to the MCU according to the second feedback information.
The invention also provides communication equipment, which comprises an MCU and a wireless communication module which are in communication connection;
the wireless communication module is used for sending a query request to a cloud server and downloading an MCU (microprogrammed control unit) upgrade package from the cloud server when receiving first feedback information sent by the cloud server;
the first feedback information is used for representing that the cloud server stores MCU updating information used for upgrading the MCU;
the wireless communication module is used for sending an upgrading instruction to the MCU;
the MCU is also used for analyzing the upgrading instruction and acquiring an analysis result, and sending second feedback information to the wireless communication module when the analysis result meets a preset condition;
the wireless communication module is also used for sending the MCU upgrading packet to the MCU according to the second feedback information;
and the MCU is also used for upgrading according to the received MCU upgrading packet.
Preferably, the MCU is further configured to send version number information of the MCU to the wireless communication module;
the wireless communication module is further used for sending the received version number information to the cloud server;
the wireless communication module is further used for receiving the first feedback message sent by the cloud server when the cloud server inquires that the MCU update information is stored according to the version number information.
Preferably, the MCU is further configured to send a trigger instruction to the wireless communication module;
the wireless communication module is further used for sending the query request to the cloud server according to the trigger instruction.
Preferably, the wireless communication module is further configured to generate a download request and send the download request to the cloud server when receiving the first feedback information;
the wireless communication module is further used for downloading the MCU upgrading package corresponding to the MCU updating information when receiving third feedback information sent by the cloud server according to the downloading request;
the third feedback information is used for representing the information that the cloud server allows the wireless communication module to download the MCU upgrading package.
Preferably, the MCU is further configured to parse the upgrade instruction and obtain the parsing result;
the analysis result is used for representing the size of the MCU upgrading packet;
the MCU is also used for judging whether the size of the MCU upgrading packet is larger than the storage space of the MCU, if so, the MCU sends fourth feedback information to the wireless communication module; if not, the MCU sends the second feedback information to the wireless communication module;
the fourth feedback information is used for representing the information which can not execute the upgrading operation.
Preferably, the wireless communication module is further configured to perform packet processing on the MCU upgrade packet according to the second feedback information to obtain a plurality of packet data, and sequentially send the packet data to the MCU according to a time sequence.
Preferably, the MCU is further configured to calculate an initial receiving frequency according to the size of the MCU upgrade package and the size of data transmitted by the wireless communication module each time;
the wireless communication module is further configured to sequentially transmit the packetized data to the MCU according to a time sequence, and then further includes:
the MCU is also used for counting the actual receiving times of the sub-packet data;
the MCU is also used for comparing whether the initial receiving times and the actual receiving times are consistent, if so, the MCU sends fifth feedback information for representing the successful transmission of the MCU upgrading packet to the wireless communication module; if not, generating reminding information of abnormal data receiving.
Preferably, the upgrade instruction comprises a reference CRC check code;
after the MCU upgrading package is completely received and before the MCU is upgraded according to the MCU upgrading package, the MCU is further used for checking the obtained MCU upgrading package and obtaining a first CRC check code, judging whether the first CRC check code is consistent with the reference check code or not, and if so, the MCU sends fifth feedback information for representing the successful transmission of the MCU upgrading package to the wireless communication module; and if not, the MCU regenerates the new second feedback information and sends the new second feedback information to the wireless communication module, and the wireless communication module sends the MCU upgrading package to the MCU according to the second feedback information.
Preferably, the communication device comprises an embedded communication device.
Preferably, the MCU and the wireless communication module are communicatively connected via a UART (Universal Asynchronous Receiver/Transmitter), a USB (Universal Serial Bus), or a PCIE (Peripheral Component Interconnect Express) hardware interface.
The positive progress effects of the invention are as follows:
(1) the wireless communication module sends a query request to the cloud server, after the cloud server determines program upgrading updating information corresponding to the MCU, the corresponding MCU upgrading package is downloaded from the cloud server according to the feedback information request of the cloud server, and the MCU is transmitted to the MCU under the condition that the MCU allows transmission, so that the MCU is remotely upgraded on line, the condition that the MCU needs to be taken out of communication equipment or can be upgraded by returning to a factory is avoided, the remote automatic upgrading of the MCU is realized, the upgrading process of the MCU is greatly simplified, the upgrading efficiency of the MCU is improved, and the upgrading cost of the MCU is reduced.
(2) Because the data volume sent to the MCU by the wireless communication module each time is limited by the communication protocol, the MCU upgrading packet is subjected to sub-packet processing to obtain a plurality of sub-packet data, and the sub-packet data are sequentially sent to the MCU according to the time sequence, so that the wireless communication module can transmit the upgrading packet to the MCU through various communication protocol connections; the MCU firstly checks the transmission times and performs CRC (cyclic redundancy check) on the received upgrade package, and then upgrades the upgrade package according to the received upgrade package, so that the success rate of the upgrade process is ensured; when the upgrade cannot be carried out, the feedback information is sent out in time so as to facilitate the timely processing; in addition, the upgrading package is retransmitted to the MCU through the wireless communication module, and the success rate of MCU upgrading is further ensured.
Drawings
Fig. 1 is a flowchart of a remote upgrading method for an MCU in a communication device according to embodiment 1 of the present invention.
Fig. 2 is a flowchart of a remote upgrading method for an MCU in a communication device in embodiment 2 of the present invention.
Fig. 3 is a schematic structural diagram of a communication device according to embodiment 3 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
As shown in fig. 1, this embodiment provides a remote upgrade method for an MCU in a communication device, where the communication device includes an MCU and a wireless communication module that are communicatively connected, and the remote upgrade method includes:
s101, a wireless communication module sends a query request to a cloud server;
s102, downloading an MCU (microprogrammed control unit) upgrade package from the cloud server when the wireless communication module receives first feedback information sent by the cloud server according to the query request;
the first feedback information is used for representing that MCU updating information used for upgrading the MCU is stored in the cloud server;
s103, the wireless communication module sends an upgrading instruction to the MCU;
s104, the MCU analyzes the upgrading instruction, acquires an analysis result, and sends second feedback information to the wireless communication module when the analysis result meets a preset condition;
s105, the wireless communication module sends the MCU upgrading packet to the MCU according to the second feedback information;
and S106, upgrading the MCU according to the received MCU upgrading packet.
In the remote upgrading method in this embodiment, the query request is sent to the cloud server through the wireless communication module, after the cloud server determines the program upgrading update information corresponding to the MCU, the corresponding MCU upgrading package is downloaded from the cloud server according to the feedback information request of the cloud server, and is transmitted to the MCU when the MCU allows transmission, so as to realize remote online upgrading of the MCU, thereby avoiding the situation that the MCU needs to be taken out of the communication device or upgraded by returning to the factory, realizing remote automatic upgrading of the MCU, greatly simplifying the upgrading process of the MCU, improving the upgrading efficiency of the MCU, and reducing the upgrading cost of the MCU.
Example 2
As shown in fig. 2, the remote upgrading method for the MCU in the communication device of this embodiment is a further improvement of embodiment 1, and specifically:
step S101 is preceded by:
s10101, the MCU sends a trigger instruction to the wireless communication module;
s10102, the MCU sends version number information of the MCU to the wireless communication module;
the execution sequence of steps S10101 and S10102 may be interchanged according to actual requirements.
Step S101 includes:
s1011, the wireless communication module sends a query request to the cloud server according to the trigger instruction and sends the received version number information to the cloud server;
step S102 includes:
s1021, the wireless communication module receives a first feedback message sent by the cloud server when the cloud server inquires that the MCU updating information is stored according to the version number information;
s1022, the wireless communication module generates a downloading request and sends the downloading request to the cloud server when receiving the first feedback information;
s1023, downloading an MCU (microprogrammed control unit) upgrade package corresponding to the MCU update information by the wireless communication module when receiving third feedback information sent by the cloud server according to the download request;
and the third feedback information is used for representing the information that the cloud server allows the wireless communication module to download the MCU upgrading package.
The upgrade instruction in this embodiment may be in the form of:
upgrade instruction a (5 bytes):
Head(0x7F) data Len (MCU upgrade package size) 2 bytes CRC 2 bytes
Step S104 includes:
s1041, the MCU analyzes the upgrade instruction and obtains an analysis result;
the analysis result is used for representing the size of the MCU upgrading package;
s1042, judging whether the size of the MCU upgrading packet is larger than the storage space of the MCU by the MCU, if so, executing a step S1043; if not, executing the step S1044;
s1043, the MCU sends fourth feedback information to the wireless communication module;
the fourth feedback information is used for representing information which cannot execute upgrading operation;
and S1044, the MCU sends second feedback information to the wireless communication module.
Step S105 includes:
s1051, the wireless communication module performs sub-packet processing on the MCU upgrading packet according to the second feedback information to obtain a plurality of sub-packet data, and sequentially transmits the sub-packet data to the MCU according to the time sequence.
In addition, the remote upgrade method of the embodiment further includes:
the MCU calculates to obtain initial receiving times according to the size of the MCU upgrading packet and the size of data transmitted by the wireless communication module each time;
wherein, when the MCU and the wireless communication module are connected through the UART protocol, data 2048B (bytes) is transmitted each time.
Calculating according to the size of the MCU upgrading packet and the ratio of 2048B to obtain initial receiving times; wherein, when the integer division can not be carried out, the value is obtained by adding 1 to the ratio value.
The wireless communication module also comprises the following steps of sequentially transmitting the sub-packet data to the MCU according to the time sequence:
the MCU counts the actual receiving times of the received sub-packet data;
the MCU compares whether the initial receiving times and the actual receiving times are consistent, if so, the MCU sends fifth feedback information for representing the successful transmission of the MCU upgrading packet to the wireless communication module; if not, generating reminding information of abnormal data receiving.
The upgrade instruction of the present embodiment includes a reference CRC check code;
after all receiving the MCU upgrade package and before the MCU upgrades according to the MCU upgrade package, the remote upgrade method further comprises:
the MCU checks the acquired MCU upgrading packet and acquires a first CRC (cyclic redundancy check) code, and judges whether the first CRC code is consistent with the reference check code, if so, the MCU sends fifth feedback information for representing successful transmission of the MCU upgrading packet to the wireless communication module; if not, the MCU regenerates the new second feedback information and sends it to the wireless communication module, and executes step 105 again.
Because the data volume sent to the MCU by the wireless communication module each time is limited by the communication protocol, the remote upgrading method in the embodiment performs sub-packaging processing on the MCU upgrading packet to obtain a plurality of sub-packaged data, and sequentially sends the sub-packaged data to the MCU according to the time sequence, so that the wireless communication module can transmit the upgrading packet to the MCU through various communication protocol connections; the MCU firstly checks the transmission times and performs CRC (cyclic redundancy check) on the received upgrade package, and then upgrades the upgrade package according to the received upgrade package, so that the success rate of the upgrade process is ensured; when the upgrade cannot be carried out, the feedback information is sent out in time so as to facilitate the timely processing; in addition, the upgrading package is retransmitted to the MCU through the wireless communication module, and the success rate of MCU upgrading is further ensured.
Example 3
As shown in fig. 3, the present embodiment provides a communication device including the MCU1 and the wireless communication module 2 that are communicatively connected.
The wireless communication module 2 is used for sending a query request to the cloud server and downloading the MCU upgrading package from the cloud server when receiving first feedback information sent by the cloud server;
the first feedback information is used for representing that MCU updating information used for upgrading the MCU is stored in the cloud server;
the wireless communication module 2 is used for sending an upgrading instruction to the MCU 1;
the MCU1 is also used for analyzing the upgrading instruction and acquiring an analysis result, and sending second feedback information to the wireless communication module when the analysis result meets a preset condition;
the wireless communication module 2 is further configured to send the MCU upgrade package to the MCU1 according to the second feedback information;
the MCU1 is also used to upgrade according to the received MCU upgrade package.
Specifically, the communication device in this embodiment is an embedded communication device, and the MCU1 and the wireless communication module 2 are communicatively connected through a UART.
The communication device in this embodiment sends a query request to the cloud server through the wireless communication module, and after the cloud server determines the program upgrade update information corresponding to the MCU, the corresponding MCU upgrade package is downloaded from the cloud server according to the feedback information request of the cloud server, and is transmitted to the MCU when the MCU allows transmission, so as to realize remote online upgrade of the MCU, thereby avoiding the situation that the MCU needs to be taken out of the communication device or upgraded by returning to the factory, realizing remote automatic upgrade of the MCU, greatly simplifying the upgrade process of the MCU, improving the upgrade efficiency of the MCU, and reducing the upgrade cost of the MCU.
Example 4
As shown in fig. 3, the communication device of the present embodiment is a further improvement of embodiment 3, specifically:
the MCU1 is used for sending a trigger instruction to the wireless communication module 2;
the MCU1 is also used for sending version number information of the MCU1 to the wireless communication module 2;
the wireless communication module 2 is used for sending a query request to the cloud server according to the trigger instruction;
the wireless communication module 2 is also used for sending the received version number information to a cloud server;
the wireless communication module 2 is further configured to receive a first feedback message sent by the cloud server when the cloud server queries that the update information of the MCU1 is stored according to the version number information;
the wireless communication module 2 is further used for generating a downloading request and sending the downloading request to the cloud server when the first feedback information is received;
the wireless communication module 2 is further configured to download the MCU1 upgrade package corresponding to the update information of the MCU1 when receiving the third feedback information sent by the cloud server according to the download request;
the third feedback information is used for representing information that the cloud server allows the wireless communication module 2 to download the MCU1 upgrade package.
The wireless communication module 2 is also used for sending an upgrading instruction to the MCU 1;
the MCU1 is also used for analyzing the upgrading instruction and acquiring an analysis result;
the analysis result is used for representing the size of the MCU1 upgrade package;
the MCU1 is further used for judging whether the size of the MCU1 upgrade package is larger than the storage space of the MCU1, if so, the MCU1 sends fourth feedback information to the wireless communication module 2;
the fourth feedback information is used for representing the information which can not execute the upgrading operation;
if not, the MCU1 sends second feedback information to the wireless communication module 2;
the wireless communication module 2 is further configured to perform sub-packet processing on the MCU1 upgrade packet according to the second feedback information to obtain a plurality of sub-packet data, and sequentially transmit the sub-packet data to the MCU1 according to a time sequence.
In addition, the MCU1 is further configured to calculate an initial receiving number according to the size of the MCU1 upgrade package and the size of data transmitted by the wireless communication module 2 each time;
the MCU1 is also used for counting the actual receiving times of the received subpackage data;
the MCU1 is further configured to compare whether the initial receiving frequency is consistent with the actual receiving frequency, and if so, the MCU1 sends fifth feedback information to the wireless communication module 2, where the fifth feedback information is used to characterize that the transmission of the MCU1 upgrade package is successful;
otherwise, the MCU1 generates a reminding message that the data reception is abnormal;
the upgrade instruction of the present embodiment includes a reference CRC check code;
the MCU1 is further configured to check the obtained MCU1 upgrade packet and obtain a first CRC check code, and determine whether the first CRC check code is consistent with the reference check code, if so, the MCU1 sends fifth feedback information to the wireless communication module 2, where the fifth feedback information is used to indicate that the MCU1 upgrade packet is successfully transmitted; if not, the MCU1 regenerates new second feedback information and sends the new second feedback information to the wireless communication module 2, and re-executes the step that the wireless communication module 2 sends the MCU1 upgrade package to the MCU1 according to the second feedback information;
the MCU1 is also used for upgrading according to the received MCU1 upgrade package.
Because the data volume sent to the MCU by the wireless communication module each time is limited by the communication protocol, the communication equipment in the embodiment performs sub-packaging processing on the MCU upgrading packet to obtain a plurality of sub-packaged data, and sequentially sends the sub-packaged data to the MCU according to the time sequence, so that the wireless communication module can transmit the upgrading packet to the MCU through various communication protocol connections; the MCU firstly checks the transmission times and performs CRC (cyclic redundancy check) on the received upgrade package, and then upgrades the upgrade package according to the received upgrade package, so that the success rate of the upgrade process is ensured; when the upgrade cannot be carried out, the feedback information is sent out in time so as to facilitate the timely processing; in addition, the upgrading package is retransmitted to the MCU through the wireless communication module, and the success rate of MCU upgrading is further ensured.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (11)

1. A remote upgrading method for an MCU in communication equipment is characterized in that the communication equipment comprises the MCU and a wireless communication module which are in communication connection, and the remote upgrading method comprises the following steps:
the wireless communication module sends a query request to a cloud server, and downloads an MCU (microprogrammed control unit) upgrade package from the cloud server when receiving first feedback information sent by the cloud server according to the query request;
the first feedback information is used for representing that the cloud server stores MCU updating information used for upgrading the MCU;
the wireless communication module sends an upgrading instruction to the MCU;
the MCU analyzes the upgrading instruction and obtains an analysis result, and second feedback information is sent to the wireless communication module when the analysis result meets a preset condition;
the wireless communication module sends the MCU upgrading packet to the MCU according to the second feedback information;
and the MCU carries out upgrading according to the received MCU upgrading packet.
2. The remote upgrade method of claim 1, wherein the step of the wireless communication module sending the MCU query request to a cloud server is preceded by the further step of:
the MCU sends version number information of the MCU to the wireless communication module;
the wireless communication module sends the received version number information to the cloud server;
the step of downloading the MCU upgrade package from the cloud server when receiving the first feedback information sent by the cloud server according to the query request comprises:
and the wireless communication module receives the first feedback message sent by the cloud server when the cloud server inquires that the MCU updating information is stored according to the version number information.
3. The remote upgrade method of claim 1, wherein the step of the wireless communication module sending the MCU query request to the cloud server is preceded by the steps of:
the MCU sends a trigger instruction to the wireless communication module;
and the wireless communication module sends the query request to the cloud server according to the trigger instruction.
4. The remote upgrading method of claim 1, wherein the step of downloading the MCU upgrade package from the cloud server when receiving the first feedback information sent by the cloud server comprises:
the wireless communication module generates a downloading request and sends the downloading request to the cloud server when receiving the first feedback information;
the wireless communication module downloads the MCU upgrading package corresponding to the MCU updating information when receiving third feedback information sent by the cloud server according to the downloading request;
the third feedback information is used for representing the information that the cloud server allows the wireless communication module to download the MCU upgrading package.
5. The remote upgrading method according to claim 1, wherein the step of the MCU parsing the upgrade instruction and obtaining a parsing result, and sending second feedback information to the wireless communication module when the parsing result satisfies a preset condition includes:
the MCU analyzes the upgrading instruction and acquires an analysis result;
the analysis result is used for representing the size of the MCU upgrading packet;
the MCU judges whether the size of the MCU upgrading packet is larger than the storage space of the MCU, if so, the MCU sends fourth feedback information to the wireless communication module; if not, the MCU sends the second feedback information to the wireless communication module;
the fourth feedback information is used for representing the information which can not execute the upgrading operation.
6. The remote upgrade method of claim 5, wherein the step of the wireless communication module transmitting the MCU upgrade package to the MCU according to the second feedback information comprises:
and the wireless communication module performs sub-packet processing on the MCU upgrading packet according to the second feedback information to acquire a plurality of sub-packet data, and sequentially transmits the sub-packet data to the MCU according to a time sequence.
7. The remote upgrade method of claim 6, wherein the remote upgrade method further comprises:
the MCU calculates to obtain initial receiving times according to the size of the MCU upgrading packet and the size of data transmitted by the wireless communication module each time;
the wireless communication module sequentially transmits the sub-packet data to the MCU according to a time sequence, and then the method further comprises the following steps:
the MCU counts the actual receiving times of the sub-packet data;
the MCU compares whether the initial receiving times and the actual receiving times are consistent, if so, the MCU sends fifth feedback information for representing the successful transmission of the MCU upgrading packet to the wireless communication module; if not, generating reminding information of abnormal data receiving.
8. The remote upgrade method according to claim 1, wherein the upgrade instruction includes a reference CRC check code;
after the MCU upgrade package is completely received and before the MCU is upgraded according to the MCU upgrade package, the remote upgrade method further includes:
the MCU checks the acquired MCU upgrading packet and acquires a first CRC (cyclic redundancy check) code, whether the first CRC code is consistent with the reference check code or not is judged, and if yes, the MCU sends fifth feedback information for representing successful transmission of the MCU upgrading packet to the wireless communication module; and if not, the MCU regenerates the new second feedback information and sends the new second feedback information to the wireless communication module, and the wireless communication module sends the MCU upgrading package to the MCU according to the second feedback information.
9. The communication equipment is characterized by comprising an MCU and a wireless communication module which are in communication connection;
the wireless communication module is used for sending a query request to a cloud server and downloading an MCU (microprogrammed control unit) upgrade package from the cloud server when receiving first feedback information sent by the cloud server;
the first feedback information is used for representing that the cloud server stores MCU updating information used for upgrading the MCU;
the wireless communication module is used for sending an upgrading instruction to the MCU;
the MCU is also used for analyzing the upgrading instruction and acquiring an analysis result, and sending second feedback information to the wireless communication module when the analysis result meets a preset condition;
the wireless communication module is also used for sending the MCU upgrading packet to the MCU according to the second feedback information;
and the MCU is also used for upgrading according to the received MCU upgrading packet.
10. The communication device of claim 9, wherein the communication device comprises an embedded communication device.
11. The communication device according to claim 9 or 10, wherein the MCU and the wireless communication module are communicatively connected through a UART, USB or PCIE hardware interface.
CN202011193099.3A 2020-10-30 2020-10-30 Communication equipment and remote upgrading method of MCU thereof Pending CN112286556A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011193099.3A CN112286556A (en) 2020-10-30 2020-10-30 Communication equipment and remote upgrading method of MCU thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011193099.3A CN112286556A (en) 2020-10-30 2020-10-30 Communication equipment and remote upgrading method of MCU thereof

Publications (1)

Publication Number Publication Date
CN112286556A true CN112286556A (en) 2021-01-29

Family

ID=74352985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011193099.3A Pending CN112286556A (en) 2020-10-30 2020-10-30 Communication equipment and remote upgrading method of MCU thereof

Country Status (1)

Country Link
CN (1) CN112286556A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113568635A (en) * 2021-07-06 2021-10-29 青岛中科英泰商用***股份有限公司 Automatic upgrading system and method for intelligent stamping machine
CN114500480A (en) * 2021-12-29 2022-05-13 芯讯通无线科技(上海)有限公司 Method, system, equipment and medium for upgrading GPS chip of communication module
CN115314385A (en) * 2022-07-28 2022-11-08 深圳市思达仪表有限公司 Firmware upgrading method and device for networking module, computer equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915237A (en) * 2015-06-24 2015-09-16 深圳市兰丁科技有限公司 Upgrading method and upgrading control method of Bluetooth device firmware program, and equipment
CN105591824A (en) * 2016-01-14 2016-05-18 杭州赫智电子科技有限公司 Method and system for firmware upgrade
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system
CN108874428A (en) * 2018-06-29 2018-11-23 无锡和晶科技股份有限公司 A kind of remote upgrade method of refrigerator controller control software
CN109862099A (en) * 2019-01-15 2019-06-07 浙江吉利汽车研究院有限公司 A kind of upgrade checkout method, apparatus, terminal and system
CN110633097A (en) * 2018-06-21 2019-12-31 新智数字科技有限公司 OTA (over the air) upgrading method and device for single chip microcomputer
CN111625267A (en) * 2020-06-02 2020-09-04 中电科蓉威电子技术有限公司 Program online upgrading system and method based on UWB communication
CN111722860A (en) * 2020-06-16 2020-09-29 东软睿驰汽车技术(沈阳)有限公司 OTA (over the air) upgrading method and device based on finite state machine

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915237A (en) * 2015-06-24 2015-09-16 深圳市兰丁科技有限公司 Upgrading method and upgrading control method of Bluetooth device firmware program, and equipment
CN105591824A (en) * 2016-01-14 2016-05-18 杭州赫智电子科技有限公司 Method and system for firmware upgrade
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system
CN110633097A (en) * 2018-06-21 2019-12-31 新智数字科技有限公司 OTA (over the air) upgrading method and device for single chip microcomputer
CN108874428A (en) * 2018-06-29 2018-11-23 无锡和晶科技股份有限公司 A kind of remote upgrade method of refrigerator controller control software
CN109862099A (en) * 2019-01-15 2019-06-07 浙江吉利汽车研究院有限公司 A kind of upgrade checkout method, apparatus, terminal and system
CN111625267A (en) * 2020-06-02 2020-09-04 中电科蓉威电子技术有限公司 Program online upgrading system and method based on UWB communication
CN111722860A (en) * 2020-06-16 2020-09-29 东软睿驰汽车技术(沈阳)有限公司 OTA (over the air) upgrading method and device based on finite state machine

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113568635A (en) * 2021-07-06 2021-10-29 青岛中科英泰商用***股份有限公司 Automatic upgrading system and method for intelligent stamping machine
CN114500480A (en) * 2021-12-29 2022-05-13 芯讯通无线科技(上海)有限公司 Method, system, equipment and medium for upgrading GPS chip of communication module
CN115314385A (en) * 2022-07-28 2022-11-08 深圳市思达仪表有限公司 Firmware upgrading method and device for networking module, computer equipment and medium
CN115314385B (en) * 2022-07-28 2024-05-24 深圳市思达仪表有限公司 Firmware upgrading method and device for networking module, computer equipment and medium

Similar Documents

Publication Publication Date Title
CN112286556A (en) Communication equipment and remote upgrading method of MCU thereof
CN102546784B (en) Method for conducting batch upgrading for device firmware based on controller area network (CAN) bus
CN105677363A (en) OTA (Over-the-Air Technology) upgrading system
CN111064720B (en) Method and device for converting configuration gateway data protocol
CN101807155B (en) Embedded software on-line updating method
CN105262627A (en) Firmware upgrade method, device and system
CN108052474B (en) Data format conversion method, device, equipment and computer readable storage medium
CN111752579B (en) Bluetooth terminal upgrading method and device, storage medium and electronic equipment
WO2011076146A1 (en) Method for downloading application data, digital television reception terminal and system
CN113746892B (en) Remote upgrading method and wireless terminal equipment
CN103973421A (en) File transmitting method and device
CN111240713A (en) Method for detecting remote breakpoint continuous transmission through power utilization
CN105897461A (en) Multi-system OTA upgrading method and multi-system equipment
CN113721966B (en) Node upgrading method and device, storage medium and electronic device
CN111736866A (en) One-to-one and one-to-many compatible online upgrading method and terminal equipment
CN112822199A (en) OTA (over the air) upgrading method and system based on protocol conversion
CN110045969B (en) Application program installation method, server, system, device and storage medium
CN112152825B (en) Multi-stage module upgrading method and device for household appliance and electronic equipment
CN104965747A (en) Method and device for upgrading software
CN114884935A (en) Data upgrading method and device, electronic equipment and storage medium
CN114221866A (en) Method, device and medium for upgrading terminal
CN111752577A (en) System version upgrading method and device
CN112181147B (en) Small program-based wearable device interaction method and device and electronic device
CN113138788A (en) Air conditioner program upgrading method and air conditioner system
CN116132974A (en) Method, apparatus and storage medium for over-the-air in a multi-node device network

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