CN116132975A - Method, device and storage medium for over-the-air downloading in a network of node devices - Google Patents

Method, device and storage medium for over-the-air downloading in a network of node devices Download PDF

Info

Publication number
CN116132975A
CN116132975A CN202310079128.0A CN202310079128A CN116132975A CN 116132975 A CN116132975 A CN 116132975A CN 202310079128 A CN202310079128 A CN 202310079128A CN 116132975 A CN116132975 A CN 116132975A
Authority
CN
China
Prior art keywords
mcu
ota
information
unpacking
upgrading
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
CN202310079128.0A
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.)
Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Original Assignee
Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Intelligent Home Appliance Technology Co Ltd filed Critical Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Priority to CN202310079128.0A priority Critical patent/CN116132975A/en
Publication of CN116132975A publication Critical patent/CN116132975A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application relates to the technical field of smart home, and discloses a method, equipment and a storage medium for over-the-air downloading in a node equipment network. The node equipment network comprises the following components: a gateway device, and a node device in near field wireless communication with the gateway device, the node device comprising: two or more micro control units MCU. The method comprises the following steps: under the condition that an upgrade notification sent by the gateway equipment is received, a first MCU sends a first upgrade request to the gateway equipment; receiving an over-the-air OTA data packet to be upgraded, which is sent by the gateway equipment, and carrying out OTA upgrading; and under the condition that the OTA data packet to be upgraded comprises second MCU upgrading information, synchronizing the OTA data packet to be upgraded to the second MCU, so that the second MCU performs OTA upgrading. Thus, the equipment upgrading efficiency in the node equipment network is improved, and the resources are saved.

Description

Method, device and storage medium for over-the-air downloading in a network of node devices
Technical Field
The present application relates to the technical field of smart home, for example, to a method, an apparatus, a device and a storage medium for over-the-air downloading in a network of node devices.
Background
With the development of intelligent technology, over-the-Air (OTA) OTA technology of intelligent single products is indispensable. With OTA, the product can be ensured to be rapidly marketed to occupy the market, and the iteration of the product can be continuously improved, so that the market competitiveness of the product is improved.
In order to facilitate installation, reduce power consumption and the like, the intelligent single products in the intelligent home system mostly adopt a near-field radio frequency wireless communication scheme, such as zigbee, bluetooth, local area network WiFi and the like. As shown in FIG. 1, the intelligent single products are used as node equipment of a wireless network to communicate with gateway equipment, and are connected to an IOT platform by proxy internet surfing of the gateway equipment, so that remote intelligent control and upgrading are realized.
Currently, the node devices in the wireless network mostly adopt a hardware architecture of a wireless communication module and a bottom plate main control micro control unit (Microcontroller Unit, MCU) to realize the whole intelligent single-product function. The wireless communication module is responsible for wireless communication with the gateway end and is connected to the IOT platform, the main functional business logic of intelligent single product is responsible for to bottom plate master control MCU, if adopt the intelligent lamp of zigbee communication, the zigbee module is responsible for the wireless communication with the gateway, realize data transmission functions such as remote control instruction and intelligent lamp's state report, bottom plate MCU is responsible for functions such as the dimming of intelligent lamp body, the color temperature of transferring, transfer RGB, wireless communication module's MCU and bottom plate MCU mutually support, two MCUs constitute an intelligent single product jointly. However, the OTA scheme of the intelligent home system is mostly an upgrade scheme aiming at a single MCU, and the intelligent single product of the multi-MCU scheme has the problem that only one MCU can be upgraded, and each MCU can be upgraded for a plurality of times.
It should be noted that the information disclosed in the foregoing background section is only for enhancing understanding of the background of the present application and thus may include information that does not form the prior art that is already known to those of ordinary skill in the art.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview, and is intended to neither identify key/critical elements nor delineate the scope of such embodiments, but is intended as a prelude to the more detailed description that follows.
The embodiment of the disclosure provides a method, a device, equipment and a storage medium for over-the-air downloading in a node equipment network, so as to solve the problem of low upgrading efficiency of household equipment of multiple MCUs. The node equipment network comprises the following components: a gateway device, and a node device in near field wireless communication with the gateway device, the node device comprising: two or more micro control units MCU.
In some embodiments, the method comprises:
under the condition that an upgrade notification sent by the gateway equipment is received, a first MCU sends a first upgrade request to the gateway equipment;
receiving an over-the-air OTA data packet to be upgraded, which is sent by the gateway equipment, and carrying out OTA upgrading;
and under the condition that the OTA data packet to be upgraded comprises second MCU upgrading information, synchronizing the OTA data packet to be upgraded to the second MCU, so that the second MCU performs OTA upgrading.
In some embodiments, the apparatus comprises:
the first request module is configured to send a first upgrade request to the gateway equipment by the first MCU under the condition of receiving the upgrade notification sent by the gateway equipment;
the first receiving upgrading module is configured to receive an over-the-air OTA data packet to be upgraded, which is sent by the gateway equipment, and conduct OTA upgrading;
and the first sending upgrading module is configured to synchronize the OTA data packet to be upgraded to the second MCU under the condition that the OTA data packet to be upgraded includes second MCU upgrading information, so that the second MCU performs OTA upgrading.
In some embodiments, the apparatus for over-the-air downloading in a node device network includes a processor and a memory storing program instructions, the processor being configured, when executing the program instructions, to perform the above-described method for over-the-air downloading in a node device network.
In some embodiments, the node device comprises:
a node device body;
the above-mentioned device for over-the-air downloading in the node equipment network is installed in the node equipment body.
In some embodiments, the storage medium stores program instructions that, when executed, perform the above-described method for over-the-air in a network of node devices.
The method, the device and the equipment for over-the-air downloading in the node equipment network provided by the embodiment of the disclosure can realize the following technical effects:
the node equipment comprises two or more micro control units MCU, so that after receiving an over-the-air OTA data packet to be upgraded sent by the gateway equipment and carrying out OTA upgrading, the first MCU can synchronize the OTA data packet to be upgraded to the second MCU under the condition that the OTA data packet to be upgraded comprises second MCU upgrading information, so that the second MCU carries out OTA upgrading, thereby realizing OTA of two or more MCU at one time, enabling the multi-MCU node equipment to upgrade a plurality of MCU at one time, improving equipment upgrading efficiency in the node equipment network and saving resources.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which like reference numerals refer to similar elements, and in which:
fig. 1 is a schematic structural diagram of a network of node devices according to an embodiment of the present disclosure;
fig. 2 is a flow chart of an over-the-air method for a network of node devices according to an embodiment of the present disclosure;
fig. 3 is a signaling interaction diagram for over-the-air downloading in a network of node devices according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an over-the-air downloading apparatus in a node device network according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an over-the-air downloading apparatus in a node device network according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an over-the-air downloading apparatus in a node device network according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a node device according to an embodiment of the disclosure.
Detailed Description
So that the manner in which the features and techniques of the disclosed embodiments can be understood in more detail, a more particular description of the embodiments of the disclosure, briefly summarized below, may be had by reference to the appended drawings, which are not intended to be limiting of the embodiments of the disclosure. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may still be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawing.
The terms first, second and the like in the description and in the claims of the embodiments of the disclosure and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe embodiments of the present disclosure. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The term "plurality" means two or more, unless otherwise indicated.
In the embodiment of the present disclosure, the character "/" indicates that the front and rear objects are an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes an object, meaning that there may be three relationships. For example, a and/or B, represent: a or B, or, A and B.
With development of intelligent technology, many home appliances are intelligent home appliances, and as shown in fig. 1, a node device serving as a wireless network communicates with a gateway device, and is connected to a cloud device by proxy internet access through the gateway device, for example: and the IOT platform realizes remote intelligent control and upgrading. In the embodiment of the disclosure, the home appliance as the node device can realize the whole intelligent single-product function by using the hardware architecture of the MCU main control micro control unit of the wireless communication module, namely the node device can comprise: and the two or more micro control units MCU are used for receiving the OTA data packet to be upgraded sent by the gateway equipment, and after OTA upgrading, the first MCU can synchronize the OTA data packet to be upgraded to the second MCU under the condition that the OTA data packet to be upgraded comprises the second MCU upgrading information, so that the second MCU can carry out OTA upgrading, thereby realizing OTA of the two or more MCUs at one time, enabling the multi-MCU node equipment to upgrade the plurality of MCUs at one time, improving the equipment upgrading efficiency in the node equipment network and saving resources.
Fig. 2 is a flow chart of an over-the-air method for a network of node devices according to an embodiment of the present disclosure. As shown in fig. 2, the process of over-the-air in the network of node devices may include:
step 201: and under the condition that the upgrade notification sent by the gateway equipment is received, the first MCU sends a first upgrade request to the gateway equipment.
In the node device network shown in fig. 1, any node device may be upgraded in a unicast manner, that is, the gateway device may download an upgrade packet, that is, an OTA data packet to be upgraded, to the local and store the upgrade packet, and the gateway device may notify the node device that the upgrade may be performed, that is, the first MCU in the node device may receive the upgrade notification sent by the gateway device. In some embodiments, the first MCU may be a wireless communication module MCU in a home device.
After receiving the upgrade notification, the first MCU may generate a first upgrade request carrying first split information according to the first MCU firmware information, where the first split information includes: one or more of unpacking minimum unit information, unpacking offset address information, and the like.
The near-field radio frequency wireless communication technology (such as bluetooth mesh, zigbee and the like) has the characteristics of short communication distance, low speed, small transmission data volume and the like, so that the node equipment adopting the near-field radio frequency wireless communication technology also has the characteristic of small transmission data volume, and the determining the first split information according to the first MCU firmware information comprises: one or more of unpacking minimum unit information, unpacking offset address information and the like, and further generating a first upgrading request carrying first unpacking information, wherein the first MCU in the node equipment can send the first upgrading request to the gateway equipment through a near-field radio frequency wireless communication technology.
Step 202: and receiving an over-the-air OTA data packet to be upgraded, which is sent by the gateway equipment, and carrying out OTA upgrading.
The first splitting information is carried in the first upgrading request, so that the gateway device can unpack the OTA data packet to be upgraded according to the first splitting information to obtain corresponding first OTA unpacking information, wherein the first OTA unpacking information can comprise: after unpacking, OTA data and corresponding unpacking offset address information. Alternatively, in some embodiments, the first OTA unpacking information may further include: and serial number identification information corresponding to each unpacked OTA data.
The gateway device may sequentially send the first OTA unpacking information, so that the first MCU receives each first OTA unpacking information sent by the gateway device, and then performs whole package verification on all the received first over-the-air OTA unpacking information, and under the condition that verification is determined to be successful, integrates and stores unpacked OTA data in each first OTA unpacking information.
In some embodiments, the gateway device sends the first OTA unpacking information with the sequence number identification information of "n", and may wait for the response information of the first MCU, and after receiving the response information of the first MCU, send the first OTA unpacking information with the sequence number identification information of "n+1" to the first MCU. If the response information of the first MCU is not received, and the sending times of the first OTA unpacking information with the serial number identification information of n is smaller than the set times, the first OTA unpacking information with the serial number identification information of n can be retransmitted. Wherein n is a natural number. Of course, when the response information of the first MCU is not received and the number of times of sending the first OTA unpacking information with the sequence number identification information of "n" is greater than or equal to or less than the set number of times, the failure of the current OTA upgrade, that is, unsuccessful verification, is indicated.
In some embodiments, the gateway device may sequentially send the first OTA unpacking information, and after determining that the first OTA unpacking information is sent, may send a transmission end instruction, and send a sequence and a check code, so that the first MCU may perform whole package check on the received first over-the-air OTA unpacking information according to the received sequence and the check code, and integrate and save the unpacked OTA data in each first unpacking information under the condition that the check is determined to be successful, otherwise, the check is unsuccessful, and the first OTA unpacking information may be discarded, where the OTA upgrade fails.
And integrating and storing the unpacked OTA data in each piece of first unpacking information, namely, the first MCU can carry out OTA upgrading.
Of course, when the first MCU is successfully upgraded, the first MCU version information may also be synchronized to the gateway device. Therefore, the gateway equipment can synchronize with the APP in the user terminal through the OTA platform, so that the user can know the upgrading situation in time.
Step 203: and under the condition that the OTA data packet to be upgraded comprises the second MCU upgrading information, synchronizing the OTA data packet to be upgraded to the second MCU, so that the second MCU performs OTA upgrading.
In an embodiment of the present disclosure, a node device includes: and two or more MCUs, so that the first MCU can inform the second MCU of carrying out OTA upgrading under the condition that the OTA data packet to be upgraded comprises second MCU upgrading information. In some embodiments, the first MCU may send upgrade synchronization information to the second MCU; receiving a second upgrading request carrying second splitting information sent by a second MCU, wherein the second splitting information is generated by the second MCU according to second MCU firmware information; unpacking the OTA data packet to be upgraded according to the second splitting information to obtain second OTA unpacking information; and transmitting each second OTA unpacking information to the second MCU, so that the second MCU performs OTA upgrading and transmits upgrading synchronization information.
The second MCU may determine second split information according to the second MCU firmware information, where the second split information also includes: and generating one or more of corresponding unpacking minimum unit information, unpacking offset address information and the like, and then generating a second upgrading request carrying second unpacking information, so that the first MCU can unpack the OTA data packet to be upgraded according to the second unpacking information to obtain each piece of second OTA unpacking information. Likewise, the second OTA unpacking information includes: and then, each second OTA unpacking information can be sequentially sent to the second MCU, and under the condition that the second MCU checks successfully, the unpacked OTA data in each second unpacking information is integrated and stored, so that OTA upgrading can be performed.
The second MCU performs the verification process, or performs the verification one by one according to the response information, or performs the whole packet verification according to the received sequence and the verification code, which is not described in detail.
Of course, the first MCU synchronizes the OTA data packet to be upgraded to the third MCU under the condition that the third MCU upgrading information is included in the OTA data packet to be upgraded, so that the third MCU performs OTA upgrading. That is, when the first MCU communicating with the gateway device receives the over-the-air OTA data packet to be upgraded and includes any other one, two or more MCUs upgrade information, the to-be-upgraded OTA data packet can be synchronized to the corresponding MCU, so that the corresponding MCU performs OTA upgrade.
Because only the first MCU can communicate with the gateway device, in some embodiments, after the second MCU performs OTA upgrade, the second MCU version information can be synchronized to the gateway device through the first MCU, so that the gateway device can synchronize with the APP in the user terminal through the OTA platform, and the user can know the upgrade condition in time. That is, the first MCU may receive the second MUC version information sent by the second MCU after the OTA upgrade is successful, and synchronize the second MUC version information to the gateway device.
It can be seen that, in the embodiment of the present disclosure, the node device includes two or more micro control units MCUs, so, after the first MCU receives an over-the-air OTA data packet to be upgraded sent by the gateway device and performs OTA upgrade, and when it is determined that the OTA data packet to be upgraded includes second MCU upgrade information, the OTA data packet to be upgraded can be synchronized to the second MCU, so that the second MCU performs OTA upgrade, thereby, OTA of two or more MCUs can be implemented at a time, multiple MCUs can be upgraded by multiple MCU node devices at a time, device upgrade efficiency in the node device network is improved, and resources are saved.
Of course, there may be two or more second MUCs in the node device, so that, when the OTA data packet to be upgraded includes the second MCU upgrade information, the OTA data packet to be upgraded is synchronized to the corresponding second MCU, so that the two or more second MUCs perform OTA upgrade, which is not specifically illustrated.
The following integrates the operation flow into a specific embodiment, and illustrates the over-the-air downloading process in the node device network provided by the embodiment of the invention.
In this embodiment, as shown in fig. 1, the node device network may include two MCUs, which are respectively: communication MCU and bottom plate MCU.
Fig. 3 is a signaling interaction diagram for over-the-air downloading in a network of node devices according to an embodiment of the present disclosure. With reference to fig. 3, the over-the-air download process in the node device network includes:
step 301: the network device obtains and stores the OTA data packet to be upgraded of the node device.
Step 302: the network device sends an upgrade notification to the communication MCU in the node device.
Step 303: and the communication MCU generates a first upgrading request carrying the first splitting information according to the firmware information.
Step 304: the communication MCU sends a first upgrade request to the gateway device.
Step 305: and the gateway equipment unpacks the OTA data packet to be upgraded according to the first splitting information to obtain corresponding first OTA unpacking information.
Step 306: the gateway equipment sequentially sends each first OTA unpacking information to the communication MCU, and reports the synchronization progress information to the user terminal through the IOT platform.
Of course, the synchronization progress information may be determined according to the number of the transmitted first OTA unpacking information.
Step 307: after the first OTA unpacking information is sent, the gateway equipment sends the completion notification information, the sequence and the check code to the communication MCU.
Step 308: and the communication MCU performs whole package verification on the first OTA unpacking information according to the received sequence and the verification code.
Step 309: and under the condition that the verification is successful, integrating and storing the unpacked OTA data in each piece of first OTA unpacking information. And proceeds to step 311.
Step 310: and discarding the first OTA unpacking information under the condition that the verification fails. The OTA upgrading process is ended.
Step 311: and after the communication MCU is successfully upgraded, synchronizing the version information of the communication MCU to the gateway equipment, and synchronizing the gateway equipment to the user terminal APP through the IOT platform.
Step 312: and under the condition that the OTA data packet to be upgraded comprises the upgrading information of the bottom plate MCU, the communication MCU sends the upgrading synchronization information to the bottom plate MCU.
Step 313: and the bottom plate MCU generates a second upgrading request carrying second splitting information according to the corresponding firmware information.
Step 314: the backplane MCU sends a second upgrade request to the communication MCU.
Step 315: and the communication MCU unpacks the OTA data packet to be upgraded according to the second unpacking information to obtain each second OTA unpacking information.
Step 316: and the communication MCU sequentially sends each second OTA unpacking information to the bottom plate MCU, and reports the synchronous progress information to the user terminal through the gateway equipment and the IOT platform.
Step 317: after the second OTA unpacking information is sent, the communication MCU sends the completion notification information, the sequence and the check code to the bottom plate MCU.
Step 318: and the bottom plate MCU performs whole package verification on the second OTA unpacking information according to the received sequence and the verification code.
Step 319: and under the condition that the verification is successful, integrating and storing the unpacked OTA data in each piece of second OTA unpacking information. And proceeds to step 321.
Step 320: and discarding the second OTA unpacking information under the condition that the verification fails. The upgrade of the bottom plate MCU fails.
Step 331: and after the upgrading is successful, the base plate MCU synchronizes the base plate MCU version information to the gateway equipment through the communication MCU and synchronizes the base plate MCU version information to the user terminal APP.
It can be seen that in this embodiment, the node device includes: communication MCU and bottom plate MCU to communication MCU receives the over-the-air OTA data package that waits to upgrade that gateway equipment sent, and after carrying out OTA upgrading, confirm to wait to upgrade under the condition that includes bottom plate MCU upgrading information in the OTA data package, can be with waiting to upgrade OTA data package synchronization to bottom plate MCU for bottom plate MCU carries out OTA upgrading, thereby can once realize the OTA of two MCUs, make many MCU node equipment can upgrade two or more MCUs once, improve the equipment upgrading efficiency in the node equipment network, also saved the resource.
According to the above procedure for over-the-air downloading in a network of node devices, an apparatus for over-the-air downloading in a network of node devices may be constructed.
Fig. 4 is a schematic structural diagram of an over-the-air downloading apparatus in a node device network according to an embodiment of the present disclosure. As shown in fig. 4, the over-the-air downloading apparatus 400 for a node device network includes: a first request module 410, a first receive upgrade module 420, and a second transmit upgrade module 430.
The first request module 410 is configured to, when receiving the upgrade notification sent by the gateway device, send a first upgrade request to the gateway device by the first MCU.
The first receiving upgrade module 420 is configured to receive an over-the-air OTA data packet to be upgraded sent by the gateway device, and perform OTA upgrade.
The first sending upgrade module 430 is configured to synchronize the to-be-upgraded OTA data packet to the second MCU under the condition that it is determined that the to-be-upgraded OTA data packet includes the second MCU upgrade information, so that the second MCU performs OTA upgrade.
In some embodiments, further comprising: the request generation module is configured to generate a first upgrading request carrying first split information according to the first MCU firmware information, wherein the first split information comprises: one or more of unpacking minimum unit information, unpacking offset address information, and the like.
In some embodiments, the first receive upgrade module 420 includes:
the receiving unit is configured to receive each first OTA unpacking information sent by the gateway device, where the first OTA unpacking information is obtained by unpacking an OTA data packet to be upgraded according to the first unpacking information by the gateway device, and includes: after unpacking, OTA data and corresponding unpacking offset address information.
And the verification merging unit is configured to carry out integral package verification on all the received first OTA unpacking information, and integrate and store unpacked OTA data in each first OTA unpacking information under the condition that verification is successful.
In some embodiments, further comprising: and the first synchronization module is configured to synchronize the first MCU version information to the gateway device.
In some embodiments, the first transmit upgrade module 430 includes:
and a notification unit configured to transmit upgrade synchronization information to the second MCU.
The request receiving unit is configured to receive a second upgrade request carrying second split information sent by a second MCU, wherein the second split information is generated by the second MCU according to second MCU firmware information.
The unpacking unit is configured to unpack the OTA data packet to be upgraded according to the second unpacking information to obtain second unpacking information.
And the distribution unit is configured to send each second OTA unpacking information to the second MCU so that the second MCU performs OTA upgrading.
In some embodiments, further comprising: and the second synchronization module is configured to receive second MUC version information sent by the second MCU after the OTA upgrade is successful and synchronize the second MUC version information to the gateway equipment.
The process for an over-the-air device to simulate an air environment in a network of node devices is further described below in connection with an embodiment.
In this embodiment, as shown in fig. 1, the node device network may include: communication MCU and bottom plate MCU.
Fig. 5 is a schematic structural diagram of an over-the-air downloading apparatus in a node device network according to an embodiment of the present disclosure. As shown in fig. 5, the over-the-air downloading apparatus 400 for a node device network may be applied to a communication MCU, and includes: the first request module 410, the first receive upgrade module 420, and the first transmit upgrade module 430 may further include: a request generation module 440, a first synchronization module 450, and a second synchronization module 460. The first reception upgrade module 420 includes: the receiving unit 421 and the check merging unit 422, the first transmission upgrade module 430 includes: a notification unit 431, a request receiving unit 432, an unpacking unit 433, and a distributing unit 434.
The network device sends an upgrade notification to the communication MCU in the node device, so that the request generating module 440 communicates with the MCU to generate a first upgrade request carrying first split information according to firmware information, so that the first requesting module 410 may send the first upgrade request to the gateway device, so that the gateway device unpacks the OTA data packet to be upgraded according to the first split information to obtain corresponding first OTA unpacking information, and sends each first OTA unpacking information to the communication MCU in turn, so that the receiving unit 421 in the first receiving upgrade module 420 may receive each first OTA unpacking information sent by the gateway device, and may also receive the completion notification information, the sequence and the check code sent by the gateway device, so that the check merging unit 422 may perform integral package check on the first OTA unpacking information according to the received sequence and the check code, and integrate and store the unpacked OTA data in each first OTA unpacking information under the condition that the check is determined to be successful. Then, the communication MCU may perform OTA upgrade, and after the upgrade is successful, the first synchronization module 450 synchronizes the version information of the communication MCU to the gateway device.
In the case that it is determined that the to-be-upgraded OTA data packet includes the base plate MCU upgrade information, the notification unit 431 in the first transmission upgrade module 430 sends upgrade synchronization information to the base plate MCU, so that the base plate MCU generates and sends a second upgrade request carrying second split information according to the corresponding firmware information, thereby, the request receiving unit 432 receives the second upgrade request carrying the second split information, the unpacking unit 433 can unpack the to-be-upgraded OTA data packet according to the second split information to obtain each second OTA unpacking information, and the distribution unit 434 sends each second OTA unpacking information to the base plate MCU in sequence, and after each second OTA unpacking information is sent, sends the notification information, the sequence and the check code to the base plate MCU, so that the base plate MCU performs integral package verification on the second OTA unpacking information according to the received sequence and the check code, integrates and stores the unpacked OTA data in each second OTA information, and performs OTA upgrade under the condition that the check success is determined. And, after the upgrade of the base plate MCU is successful, transmitting base plate MCU version information to the communication MCU, so that the second synchronization module 460 transmits the received base plate MCU version information to the gateway device.
It can be seen that in this embodiment, the node device includes: communication MCU and bottom plate MCU, be applied to in communication MCU's the device that is arranged in node equipment network in the air and wait to upgrade and download OTA data package in the air that gateway equipment sent, and after carrying out OTA upgrading, confirm to wait to upgrade to include in the OTA data package bottom plate MCU upgrade information under the circumstances, can wait to upgrade OTA data package synchronization to bottom plate MCU, make bottom plate MCU carry out OTA upgrading, thereby, can once realize the OTA of two MCUs, make many MCU node equipment can upgrade two or more MCUs once, improve the equipment upgrade efficiency in the node equipment network, and also saved the resource.
An embodiment of the present disclosure provides an apparatus 600 for over-the-air downloading in a node device network, with a structure as shown in fig. 6, including:
a processor (processor) 1000 and a memory (memory) 1001, and may also include a communication interface (Communication Interface) 1002 and a bus 1003. The processor 1000, the communication interface 1002, and the memory 1001 may communicate with each other via the bus 1003. The communication interface 1002 may be used for information transfer. The processor 1000 may invoke logic instructions in the memory 1001 to perform the method for over-the-air downloading in a network of node devices of the above-described embodiments.
Further, the logic instructions in the memory 1001 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 1001 is used as a computer readable storage medium for storing a software program and a computer executable program, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 1000 performs functional applications and data processing by running program instructions/modules stored in the memory 1001, i.e. implements the method for over-the-air downloading in a network of node devices in the method embodiments described above.
The memory 1001 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the terminal device, etc. In addition, the memory 1001 may include a high-speed random access memory, and may also include a nonvolatile memory.
The embodiment of the disclosure provides an over-the-air downloading device in a node equipment network, which comprises: a processor and a memory storing program instructions, the processor being configured to, when executing the program instructions, perform a method for over-the-air in a network of node devices.
In connection with fig. 7, an embodiment of the present disclosure provides a node apparatus 700 comprising: a node device body; the above-described apparatus 400 (600) for over-the-air downloading in a network of node devices. An over-the-air download apparatus 400 (600) for a network of node devices is installed at the node device body. The mounting relationships described herein are not limited to placement within a product, but include mounting connections to other components of a product, including but not limited to physical, electrical, or signal transmission connections, etc. Those skilled in the art will appreciate that the over-the-air apparatus 400 (600) for use in a node device network may be adapted to a viable node device body to implement other viable embodiments.
The disclosed embodiments provide a storage medium storing program instructions that, when executed, perform a method for over-the-air downloading in a network of node devices as described above.
The disclosed embodiments provide a computer program product comprising a computer program stored on a storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-described method for over-the-air in a network of node devices.
The storage medium may be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
Embodiments of the present disclosure may be embodied in a software product stored on a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of a method according to embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium including: a plurality of media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or a transitory storage medium.
The above description and the drawings illustrate embodiments of the disclosure sufficiently to enable those skilled in the art to practice them. Other embodiments may involve structural, logical, electrical, process, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in, or substituted for, those of others. The scope of the embodiments of the present disclosure encompasses the full ambit of the claims, as well as all available equivalents of the claims. When used in this application, although the terms "first," "second," etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without changing the meaning of the description, so long as all occurrences of the "first element" are renamed consistently and all occurrences of the "second element" are renamed consistently. The first element and the second element are both elements, but may not be the same element. Moreover, the terminology used in the present application is for the purpose of describing embodiments only and is not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a," "an," and "the" (the) are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, when used in this application, the terms "comprises," "comprising," and/or "includes," and variations thereof, mean that the stated features, integers, steps, operations, elements, and/or components are present, but that the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof is not precluded. Without further limitation, an element defined by the phrase "comprising one …" does not exclude the presence of other like elements in a process, method or apparatus comprising such elements. In this context, each embodiment may be described with emphasis on the differences from the other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method sections disclosed in the embodiments, the description of the method sections may be referred to for relevance.
Those of skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. The skilled artisan may use different methods for each particular application to achieve the described functionality, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the embodiments disclosed herein, the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be practiced in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units may be merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to implement the present embodiment. In addition, each functional unit in the embodiments of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than that disclosed in the description, and sometimes no specific order exists between different operations or steps. For example, two consecutive operations or steps may actually be performed substantially in parallel, they may sometimes be performed in reverse order, which may be dependent on the functions involved. Each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (10)

1. A method for over-the-air downloading in a network of node devices, the network of node devices comprising: a gateway device, and a node device in near field wireless communication with the gateway device, the node device comprising: two or more micro control units MCU, the method comprising:
under the condition that an upgrade notification sent by the gateway equipment is received, a first MCU sends a first upgrade request to the gateway equipment;
receiving an over-the-air OTA data packet to be upgraded, which is sent by the gateway equipment, and carrying out OTA upgrading;
and under the condition that the OTA data packet to be upgraded comprises second MCU upgrading information, synchronizing the OTA data packet to be upgraded to the second MCU, so that the second MCU performs OTA upgrading.
2. The method of claim 1, wherein prior to sending the first upgrade request to the gateway device, further comprising:
generating the first upgrading request carrying first split information according to first MCU firmware information, wherein the first split information comprises: one or more of unpacking minimum unit information, unpacking offset address information, and the like.
3. The method of claim 2, wherein the receiving the OTA data packet to be upgraded sent by the gateway device comprises:
receiving each first OTA unpacking information sent by the gateway device, where the first OTA unpacking information is obtained after the gateway device unpacks an OTA data packet to be upgraded according to the first unpacking information, and the method includes: after unpacking, OTA data and corresponding unpacking offset address information;
and carrying out integral package verification on all the received first OTA unpacking information, and integrating and storing the unpacked OTA data in each piece of first OTA unpacking information under the condition that verification is successful.
4. The method of claim 1, wherein after the OTA upgrade, further comprising:
and synchronizing the first MCU version information to the gateway equipment.
5. The method of claim 1, wherein synchronizing the OTA data packet to be upgraded to the second MCU comprises:
sending upgrade synchronization information to the second MCU;
receiving a second upgrading request carrying second split information sent by the second MCU, wherein the second split information is generated by the second MCU according to the second MCU firmware information;
unpacking the OTA data packet to be upgraded according to the second splitting information to obtain second OTA unpacking information;
and sending each second OTA unpacking information to the second MCU so that the second MCU performs OTA upgrading.
6. The method according to any one of claims 1-5, wherein after synchronizing the OTA data packet to be upgraded to the second MCU, further comprising:
and receiving second MUC version information sent by the second MCU after the OTA upgrade is successful, and synchronizing the second MUC version information to the gateway equipment.
7. An apparatus for over-the-air downloading in a network of node devices, the network comprising: a gateway device, and a node device in near field wireless communication with the gateway device, the node device comprising: two or more micro control units MCU, the method comprising:
the first request module is configured to send a first upgrade request to the gateway equipment by the first MCU under the condition of receiving the upgrade notification sent by the gateway equipment;
the first receiving upgrading module is configured to receive an over-the-air OTA data packet to be upgraded, which is sent by the gateway equipment, and conduct OTA upgrading;
and the first sending upgrading module is configured to synchronize the OTA data packet to be upgraded to the second MCU under the condition that the OTA data packet to be upgraded includes second MCU upgrading information, so that the second MCU performs OTA upgrading.
8. An apparatus for over-the-air downloading in a network of node devices, the apparatus comprising a processor and a memory storing program instructions, wherein the processor is configured, when executing the program instructions, to perform the method for over-the-air downloading in a network of node devices as claimed in any of claims 1 to 6.
9. A node device, comprising:
a node device body;
the apparatus for over-the-air downloading in a network of node devices as recited in claim 7 or 8, being installed in the node device body.
10. A storage medium storing program instructions which, when executed, perform a method for over-the-air downloading in a network of node devices as claimed in any one of claims 1 to 6.
CN202310079128.0A 2023-01-17 2023-01-17 Method, device and storage medium for over-the-air downloading in a network of node devices Pending CN116132975A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310079128.0A CN116132975A (en) 2023-01-17 2023-01-17 Method, device and storage medium for over-the-air downloading in a network of node devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310079128.0A CN116132975A (en) 2023-01-17 2023-01-17 Method, device and storage medium for over-the-air downloading in a network of node devices

Publications (1)

Publication Number Publication Date
CN116132975A true CN116132975A (en) 2023-05-16

Family

ID=86309761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310079128.0A Pending CN116132975A (en) 2023-01-17 2023-01-17 Method, device and storage medium for over-the-air downloading in a network of node devices

Country Status (1)

Country Link
CN (1) CN116132975A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465539A (en) * 2017-07-25 2017-12-12 北京康得新创科技股份有限公司 The upgrade-system of the upgrade method of firmware, terminal and firmware
CN111752579A (en) * 2019-10-17 2020-10-09 北京沃东天骏信息技术有限公司 Bluetooth terminal upgrading method and device, storage medium and electronic equipment
CN111796843A (en) * 2020-06-28 2020-10-20 中国第一汽车股份有限公司 Application program upgrading method, device, equipment and storage medium
CN111901419A (en) * 2020-07-28 2020-11-06 青岛海尔科技有限公司 Method, device and equipment for upgrading household appliance bottom plate
CN112152825A (en) * 2019-06-27 2020-12-29 广东美的制冷设备有限公司 Multi-stage module upgrading method and device for household electrical appliance and electronic equipment
CN112256297A (en) * 2020-09-24 2021-01-22 苏宁智能终端有限公司 Bluetooth peripheral firmware upgrading method and system and mobile phone terminal
CN112817617A (en) * 2019-11-18 2021-05-18 华为技术有限公司 Software upgrading method, device and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465539A (en) * 2017-07-25 2017-12-12 北京康得新创科技股份有限公司 The upgrade-system of the upgrade method of firmware, terminal and firmware
CN112152825A (en) * 2019-06-27 2020-12-29 广东美的制冷设备有限公司 Multi-stage module upgrading method and device for household electrical appliance and electronic equipment
CN111752579A (en) * 2019-10-17 2020-10-09 北京沃东天骏信息技术有限公司 Bluetooth terminal upgrading method and device, storage medium and electronic equipment
CN112817617A (en) * 2019-11-18 2021-05-18 华为技术有限公司 Software upgrading method, device and system
CN111796843A (en) * 2020-06-28 2020-10-20 中国第一汽车股份有限公司 Application program upgrading method, device, equipment and storage medium
CN111901419A (en) * 2020-07-28 2020-11-06 青岛海尔科技有限公司 Method, device and equipment for upgrading household appliance bottom plate
CN112256297A (en) * 2020-09-24 2021-01-22 苏宁智能终端有限公司 Bluetooth peripheral firmware upgrading method and system and mobile phone terminal

Similar Documents

Publication Publication Date Title
US10474452B2 (en) Firmware upgrade through GPIO port via UART protocol
CN106415490B (en) Mobile terminal, power adapter and upgrading method thereof
CN108475241B (en) SPI-based data transmission method and device
CN101686145A (en) Equipment capable of upgrading, upgrading method and system
WO2015143794A1 (en) Creating and upgrading methods, server, terminal, upgrading system, and storage media
CN107566377B (en) Method for carrying out multi-protocol adaptation on charging device and charging device
CN106301959A (en) Gateway batch upgrading method based on WINDOWS and LINUX platform and system
CN110990482A (en) Data synchronization method and device between asynchronous databases
CN103685496A (en) Transmission method and device of file data
CN111367542A (en) Household appliance and household appliance firmware upgrading method
CN103312489A (en) Method and device for synchronizing terminal and server
CN106416196B (en) Mobile terminal, power adapter and upgrading method thereof
KR101083547B1 (en) Method of upgrading firmware and system for the same
CN103369034A (en) Method, system and device for sending photos to digital photo frames
CN111585801A (en) ZigBee device upgrading method and related device
CN110635957B (en) Method and device for network distribution of Internet of things equipment and mobile terminal
EP3015990B1 (en) Information processing device, and destination information updating method and program
CN106657076B (en) TCP service implementation method and device for network name space
CN116132975A (en) Method, device and storage medium for over-the-air downloading in a network of node devices
CN116132974A (en) Method, apparatus and storage medium for over-the-air in a multi-node device network
CN104899164B (en) Address addressing method for integrated circuit bus, integrated circuit bus device and system
EP4207637A1 (en) Time synchronization method and apparatus, device, and storage medium
CN111343220A (en) Transponder, distributed file transmission method, system, medium and electronic equipment
CN104821939A (en) Method for realizing asynchronous communication between computer and mobile equipment, and device thereof
CN114189400A (en) Control method, device, system, storage medium and program product for household electrical appliance

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