CN108293060B - Method and system for updating firmware of slave station, master station and slave station - Google Patents

Method and system for updating firmware of slave station, master station and slave station Download PDF

Info

Publication number
CN108293060B
CN108293060B CN201580084468.6A CN201580084468A CN108293060B CN 108293060 B CN108293060 B CN 108293060B CN 201580084468 A CN201580084468 A CN 201580084468A CN 108293060 B CN108293060 B CN 108293060B
Authority
CN
China
Prior art keywords
station
slave station
data packet
firmware
target slave
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.)
Active
Application number
CN201580084468.6A
Other languages
Chinese (zh)
Other versions
CN108293060A (en
Inventor
李宇翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen A&E Intelligent Technology Institute Co Ltd
Original Assignee
Shenzhen A&E Intelligent Technology Institute 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 Shenzhen A&E Intelligent Technology Institute Co Ltd filed Critical Shenzhen A&E Intelligent Technology Institute Co Ltd
Publication of CN108293060A publication Critical patent/CN108293060A/en
Application granted granted Critical
Publication of CN108293060B publication Critical patent/CN108293060B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A method for updating slave station firmware is used for effectively improving the efficiency of a plurality of slave station firmware updates. The method comprises the following steps: the method comprises the steps that a master station acquires address information of each target slave station in a plurality of target slave stations and firmware data packets (101) to be updated of the target slave stations; the master station transmits a setting frame (102) to each target slave station according to the address information of each target slave station; the master station receives the confirmation information (103) sent by each target slave station; and after the master station confirms that the initialization setting of each target slave station is successful according to the confirmation information sent by each target slave station, the master station broadcasts the firmware data packet so that each target slave station receives the firmware data packet, writes the data of the firmware data packet into a flash, and finishes firmware updating (104). Meanwhile, a system for updating the firmware of the slave station, the master station and the slave station are also disclosed.

Description

Method and system for updating firmware of slave station, master station and slave station
Technical Field
The present invention relates to the field of communications, and in particular, to a method and a system for updating firmware of a slave station, a master station, and a slave station.
Background
At present, a field bus becomes one of the hot spots of technical development in the field of industrial control, and a Modbus has the advantages of simple protocol, easy implementation, high cost performance and the like, and is widely applied in the field of industrial automation. The network established by the Modbus protocol is typically an industrial communication system consisting of a programmable logic controller and a computer connected by either a public line or a local private line, the network having only one master station from which all communications originate and the network can support up to 247 slave stations. In some cases, if the functions of the slave station need to be completed, the stability of the slave station needs to be enhanced, or bugs need to be repaired, firmware upgrade needs to be carried out on the slave station.
In the prior art, a method for updating firmware of slave stations includes that a master station sends firmware update data to each slave station, each slave station receives the firmware update data and sends a response of successful reception to the master station, and the slave stations update the firmware according to the received firmware update data.
The defects of the prior art are as follows: the prior art adopts the mode that the main station upgrades the firmware of each slave station respectively to carry out, because 247 slave stations can be supported at most in the whole communication network, under the condition that the number of the slave stations is large, the main station upgrades the firmware of each slave station respectively, which consumes time, and has slow upgrading speed and low efficiency.
Disclosure of Invention
The embodiment of the invention provides a method and a system for updating firmware of slave stations, a master station and slave stations, which can effectively improve the updating efficiency of the firmware of a plurality of slave stations.
A first aspect of an embodiment of the present invention provides a method for updating a station firmware, including:
the method comprises the steps that a master station obtains address information of each target slave station in a plurality of target slave stations and firmware data packets to be updated of the target slave stations, and the target slave stations are slave stations needing to update the firmware data packets.
And the master station sends a setting frame to each target slave station according to the address information of each target slave station, so that the target slave stations set the status bits of the target slave stations according to the setting frame and feed back confirmation information for receiving the setting frame to the slave stations, and different status values of the status bits are used for indicating the receiving or storing condition of the firmware data packet.
And after the master station confirms that the initialization setting of each target slave station is successful according to the confirmation information, broadcasting the firmware data packet so that each target slave station performs data updating according to the firmware data packet, and adjusting the state value of the state bit in the data updating process.
Further, the method further comprises:
and the master station sends a query frame to each target slave station, wherein the query frame is used for indicating each target slave station to feed back the state value of the state bit of each target slave station.
And the master station receives the state value sent by the target slave station.
And when the master station receives the state value returned by at least one target slave station in the target slave stations, correspondingly storing second state bit information returned by the at least one target slave station and the at least one target slave station.
And the master station determines the receiving or storing condition of the firmware data packet corresponding to the target slave station according to the stored state value.
And the main station determines to rebroadcast the firmware data packet according to the receiving or storing condition.
Further, after the master station broadcasts the firmware information, the method further includes:
and the master station sends a soft reset frame to each target slave station so that the target slave station executes reset operation according to the soft reset frame.
Further, the broadcasting, by the master station, the firmware data packet includes:
the master station broadcasts the firmware data packet over a plurality of communication cycles.
A second aspect of an embodiment of the present invention provides a method for updating a firmware from a station, including:
the slave station receives the setting frame transmitted by the master station.
And the slave station sets a state bit of the target slave station according to the setting frame and sends confirmation information for receiving the setting frame to the master station, wherein different state values of the state bit are used for indicating the receiving or storing condition of the firmware data packet.
And the slave station receives the firmware data packet broadcasted by the master station.
And the slave stations update data according to the firmware data packet and adjust the state value of the state bit in the data updating process.
And when the slave station reaches a preset state value, the target slave station executes reset operation.
Further, when the target slave station receives the firmware data packet broadcast by the master station, the method further includes:
and the slave station receives the query frame sent by the master station.
And the slave station feeds back the state value of the state bit of each target slave station according to the query frame.
Further, the target slave station performing a reset operation includes:
and the slave station receives the soft reset frame sent by the master station.
And the slave station executes reset operation according to the soft reset frame.
Further, the receiving, by the target slave station, the firmware data packet broadcasted by the master station includes:
and the slave station receives the firmware data packet broadcasted by the master station in multiple communication periods.
A third aspect of an embodiment of the present invention provides a master station, including:
the system comprises an obtaining module and a updating module, wherein the obtaining module is used for obtaining address information of each target slave station in a plurality of target slave stations and firmware data packets to be updated of the target slave stations, and the target slave stations are slave stations needing to update the firmware data packets.
And the first sending module is used for sending a setting frame to each target slave station according to the address information of each target slave station acquired by the acquiring module so that the target slave station sets a state bit of the target slave station according to the setting frame, wherein different state values of the state bit are used for indicating the receiving or storing condition of the firmware data packet.
And the first receiving module is used for receiving the confirmation information which is sent by the target slave station and used for receiving the setting frame.
And the data transmission module is used for broadcasting the firmware data packet after confirming that the initialization setting of each target slave station is successful according to the confirmation information so as to enable each target slave station to carry out data updating according to the firmware data packet and adjust the state value of the state bit in the data updating process.
Further, the method also comprises the following steps:
and the second sending module is used for sending a query frame to each target slave station, wherein the query frame is used for indicating each target slave station to feed back the state value of the state bit of each target slave station.
And the second receiving module is used for receiving the state value sent by the target slave station.
And the storage module is used for correspondingly storing second state bit information returned by at least one target slave station with the at least one target slave station when the receiving module receives the state value returned by at least one target slave station in the target slave stations.
And the determining module is used for determining the receiving or storing condition of the firmware data packet corresponding to the target slave station according to the state value stored by the storage module.
The data transmission module is also used for determining to rebroadcast the firmware data packet according to the receiving or storing condition determined by the determination module.
Further, the method also comprises the following steps:
and the third sending module is used for sending a soft reset frame to each target slave station so that the target slave station executes reset operation according to the soft reset frame.
A fourth aspect of an embodiment of the present invention provides a secondary station, including:
and the third receiving module is used for receiving the setting frame sent by the master station.
And the setting module is used for setting a state bit of the target slave station according to the setting frame received by the third receiving module, wherein different state values of the state bit are used for indicating the receiving or storing condition of the firmware data packet.
And the fourth sending module is used for sending confirmation information to the master station according to the setting frame received by the third receiving module.
And the fourth receiving module is used for receiving the firmware data packet broadcasted by the main station.
And the data updating module is used for updating data according to the firmware data packet received by the fourth receiving module and adjusting the state value of the state bit in the data updating process.
And the execution module is used for executing reset operation when the target slave station reaches a preset state value.
Further, the method also comprises the following steps:
and the fifth receiving module is used for receiving the query frame sent by the master station.
And a fifth sending module, configured to send, to the master station, the state value of the state bit of each target slave station according to the query frame received by the fifth receiving module.
Further, the execution module includes:
and the receiving unit is used for receiving the soft reset frame sent by the main station.
And the execution unit is used for executing reset operation according to the soft reset frame received by the receiving unit.
A fifth aspect of the present invention provides a system for updating from a station firmware, comprising: a master station and a plurality of slave stations;
the method comprises the steps that a master station obtains address information of each slave station in a plurality of slave stations and firmware data packets to be updated of the slave stations, and the slave stations are slave stations needing to update the firmware data packets.
And the master station sends a setting frame to each slave station according to the address information of each slave station.
And the slave station receives the setting frame sent by the master station.
And the slave station sets a status bit of the slave station according to the setting frame and feeds back confirmation information for receiving the setting frame to the slave station, wherein different status values of the status bit are used for indicating the receiving or storing condition of the firmware data packet.
And after the master station confirms that the initialization setting of each slave station is successful according to the confirmation information, broadcasting the firmware data packet.
And the slave station receives the firmware data packet broadcasted by the master station, updates data according to the firmware data packet, and adjusts the state value of the state bit in the data updating process.
Further, when the firmware data packet is broadcast, the master station sends a query frame to each slave station, where the query frame is used to instruct each slave station to feed back a state value of a state bit of each slave station.
And the slave station receives the query frame transmitted by the master station.
And the slave station feeds back the state value of the state bit of each slave station according to the query frame.
And the master station receives the state value sent by the slave station.
When the master station receives the state value returned by at least one slave station of the slave stations, the second state bit information returned by the at least one slave station is correspondingly stored with the at least one slave station.
And the master station determines the receiving or storing condition of the firmware data packet corresponding to the slave station according to the stored state value.
And the main station determines to rebroadcast the firmware data packet according to the receiving or storing condition.
Further, after the master station broadcasts the firmware information, the master station sends a soft reset frame to each slave station.
And the slave station receives the soft reset frame sent by the master station.
And the slave station executes reset operation according to the soft reset frame.
Further, the broadcasting, by the master station, the firmware data packet includes:
the master station broadcasts the firmware data packet over a plurality of communication cycles.
And the slave station receives the firmware data packet broadcasted by the master station in multiple communication periods.
According to the technical scheme, the embodiment of the invention has the following advantages:
the method comprises the steps that a master station acquires address information of each target slave station in a plurality of target slave stations and firmware data packets to be updated of the target slave stations, wherein the target slave stations are slave stations needing to update the firmware data packets, after the master station confirms that initialization setting of the target slave stations is successful according to confirmation information, the master station transmits the firmware data packets to the target slave stations in a broadcast data transmission mode, so that the target slave stations can receive the firmware data packets transmitted by the master station together, and the target slave stations independently update data according to the firmware data packets, so that firmware updating speed of the target slave stations is high, and efficiency is high.
Drawings
Fig. 1 is a schematic diagram of a method for updating firmware of a station according to embodiment 1 of the present invention;
fig. 2 is a schematic diagram of a method for updating firmware from a station according to embodiment 2 of the present invention;
fig. 3 is a schematic diagram of a method for updating firmware of a station according to embodiment 3 of the present invention;
fig. 4 is a schematic diagram of a master station according to embodiment 4 of the present invention;
fig. 5 is a schematic diagram of a secondary station of embodiment 5 of the present invention;
fig. 6 is a schematic diagram of a system for updating firmware from a station according to embodiment 6 of the present invention.
Detailed Description
The embodiment of the invention provides a slave station firmware updating method, a master station and a slave station, which can effectively improve the updating efficiency of a plurality of slave station firmware.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The present invention will now be described in detail with reference to the following examples.
Example 1
Referring to fig. 1, the present invention provides a method for updating firmware of a station, comprising:
101. the master station acquires address information of each target slave station in the target slave stations and firmware data packets to be updated of the target slave stations.
It can be understood that the master station may obtain the information about the plurality of slave stations from the upper computer, or may obtain the information about the plurality of slave stations from the xml file, where the information about the plurality of slave stations includes how many slave stations are shared under the network coverage of the master station, and how many of the slave stations need to update the firmware. And the master station determines the slave station needing firmware updating as a target slave station, and the relevant information of the slave station also comprises address information of the target slave station and a firmware data packet to be updated.
The firmware data packet may include the following: a station address indicating a station address of the target slave station; function code, defining function (which can be customized to 0x 1C); the number of packets indicates how many data packets are in total; packet sequence number, representing the current number of packets; a packet size, representing the size of the firmware data packet; data, firmware information.
The data format included in the firmware data may be as follows:
station address Function code Number of bags Packet sequence number Bag size Data of Data of
102. And the master station transmits the setting frame to each target slave station according to the address information of each target slave station.
And the master station sends a setting frame to each target slave station according to the address information of each target slave station, so that the target slave station receives the setting frame, sets the state bit of the target slave station according to the setting frame and feeds back confirmation information of the received setting frame to the slave station.
The different status values of the status bits are used to indicate receipt or storage of a firmware packet.
It is understood that the setup frame may include the following: station address, function code (which can be customized to 0x20), error flag (16bit), write FLASH flag (1bit) and writable flag (1 bit).
The data format of the setting frame may be as follows:
station address Function code Error flag 1 Error flag 2 Flash sign Writable sign
It will be appreciated that the master station transmits a set frame to each target slave station based on the address information of each target slave station, so that each target slave station reads the data information in the set frame, and sets a first state value of the state bit of the target slave station based on the read data, the first state value may be used to represent an initialization value of the state bit of the target slave station, i.e. a state value when a firmware packet has not been received, for example, the target slave station may set the error flag bit to "error", the Flash flag bit to "unwritten", and the writeable flag bit to "writeable".
103. And the master station receives the confirmation information sent by each target slave station.
If the acknowledgement information of the nth target slave station is not received within the preset time period (N is used for distinguishing each slave station, and may be an identifier or a serial number), executing step 102; if the master station confirms that the acknowledgement information of each slave station is received within the preset time period, step 104 is executed.
104. And after the master station confirms that the initialization setting of each slave station is successful according to the confirmation information sent by each target slave station, the master station broadcasts the firmware data packet so that each slave station receives the firmware data packet, and writes the data of the firmware data packet into Flash to finish firmware updating.
If the master station receives the confirmation information sent by each slave station in the preset time period, the master station determines that the initialization setting of each target slave station is successful, the master station transmits a firmware data packet in a broadcast communication mode so that each slave station receives the firmware data packet, data of the firmware data packet is written into Flash, and the firmware updating process is completed.
Example 2
Referring to fig. 2, the present invention provides a method for updating firmware of a station, including:
201. and the slave station receives the setting frame transmitted by the master station.
The slave station receives a setting frame transmitted by the master station, and the setting frame may include the following: station address bits, function code bits (which can be customized to 0x20), error identification bits (16bit), write FLASH flag bits (1bit) and writable flag bits (1 bit).
The data format of the setting frame may be as follows:
station address Function code Error flag 1 Error flag 2 Flash sign Writable sign
The slave station in this embodiment is the same as the target slave station in embodiment 1, that is, a slave station whose firmware needs to be updated.
202. And the slave station sets the state value of the state bit of the target slave station according to the setting frame.
The slave station reads the data information in the setting frame and sets a first state value of the state bit of the target slave station according to the read data, wherein the first state value can be used for representing an initialization value of the state bit of the target slave station, namely the state value when the firmware data packet is not received, for example, the target slave station can set an error flag bit to be 'error', which indicates that the target slave station does not receive the data; setting the Flash flag bit to 'unwritten', indicating that the target slave station does not write the firmware data packet into Flash; and setting the writable flag bit to be 'writable' to indicate that the target slave station is the slave station of which the firmware needs to be updated. The different status values of the status bits are used to indicate receipt or storage of a firmware packet.
203. The slave station transmits acknowledgement information for receiving the setting frame to the master station.
If the slave station completes setting the state value of the slave station state bit according to the setting frame, namely the slave station completes initialization setting of the state value, the slave station sends confirmation information for indicating the slave station to complete initialization setting to the master station.
204. And the slave station receives the firmware data packet broadcasted by the master station.
The slave station receives a firmware data packet transmitted by the master station in a broadcast form, wherein the firmware data packet may include the following items: a station address indicating a station address of the target slave station; function codes, which can be customized to 0x 1C; the number of packets indicates how many data packets are in total; packet sequence number, representing the current number of packets; a packet size, representing the size of the firmware data packet; data, firmware information.
The data format of the firmware data may be as follows:
station address Function code Number of bags Packet sequence number Bag size Data of Data of
It is understood that the slave station may read a function code (0x1C) of the firmware packet, the function code indicating that the packet is a packet transmitted in a broadcast manner, and receive the firmware packet, or read a station address in the packet, and confirm whether to accept the firmware data inclusion according to the station address.
205. And the slave station updates data according to the firmware data packet and adjusts the state value of the state bit in the data updating process.
And the slave station updates data according to the firmware data packet, and adjusts the first state value to a second state value in the data updating process, wherein the second state value is used for indicating the proceeding situation of updating the firmware data packet by the slave station.
The specific process of the slave station adjusting the first state value to the second state value in the data updating process comprises the following steps:
and the slave station receives the firmware data packet, performs CRC (cyclic redundancy check) on the firmware data packet, and if the slave station judges that the CRC is correct, the slave station adjusts the corresponding error mark in the slave station state bit from the error of the first state value to the correct of the second state value, which indicates that the slave station has received the firmware data packet.
And the slave station stores the data in the firmware data packet into the memory.
And if the slave station judges that the error marks in each firmware data packet are correct, the slave station writes the data in the firmware data packet into Flash, and adjusts the Flash mark corresponding to the slave station status bit from 'unwritten' to 'written' of the first status value, which indicates that the slave station writes the data in the firmware data packet into Flash.
And if the slave station judges that the data in each firmware data packet is written into Flash, the slave station performs CRC (cyclic redundancy check) on the written data in Flash.
And if the slave station correctly checks the CRC of the data written in the Flash, the slave station adjusts the state value of the slave station state bit to a third state value, and the third state value can be understood as setting a firmware updating identifier to indicate that the firmware updating of the slave station is completed.
206. And when the state value reaches a preset value, the slave station executes reset operation.
And when the slave station reaches a preset third state value, the slave station receives an externally input reset instruction, and the slave station executes reset operation according to the reset instruction.
In the embodiment of the invention, the data receiving state is recorded by adjusting the state value of the state bit in the data updating process, so that the accuracy of receiving data from the slave station is ensured.
Example 3
Referring to fig. 3, an embodiment of the invention provides a method for updating firmware of a station, including:
301. the master station acquires address information of each target slave station in the target slave stations and firmware data packets to be updated of the target slave stations, and the target slave stations are slave stations needing to update the firmware data packets.
It can be understood that the master station may obtain the information about the plurality of slave stations from the upper computer, or may obtain the information about the plurality of slave stations from the xml file, where the information about the plurality of slave stations includes how many slave stations are shared under the network coverage of the master station, and how many of the slave stations need to update the firmware. And the master station determines the slave station needing firmware updating as a target slave station, and the relevant information of the slave station also comprises address information of the target slave station and a firmware data packet to be updated.
The firmware data packet may include the following: a station address indicating a station address of the target slave station; function codes, which can be customized to 0x 1C; the number of packets indicates how many data packets are in total; packet sequence number, representing the current number of packets; a packet size, representing the size of the firmware data packet; data, firmware information.
The data format included in the firmware data may be as follows:
station address Function code Number of bags Packet sequence number Bag size Data of Data of
The firmware packet acquired by the slave station is an unpackaged packet, and the slave station performs packetization operation, but the acquired firmware packet may be a packetized packet, and is not limited herein. For the size specification of the firmware packet: every 128 bytes is 1 frame, every 2 kbytes is 1 block, 1 block contains 16 frames, Flash needs to be written according to blocks, and one firmware data packet is a plurality of blocks.
302. And the master station transmits the setting frame to each target slave station according to the address information of each target slave station.
The slave station receives a setting frame transmitted by the master station, and the setting frame may include the following: station address, function code (which can be customized to 0x20), error flag (16bit), write FLASH flag (1bit) and writable flag (1 bit).
The data format of the setting frame may be as follows:
station address Function code Error flag 1 Error flag 2 Flash sign Writable sign
303. And the slave station receives the setting frame sent by the master station and sets the state value of the state bit of the slave station according to the setting frame.
It is understood that the slave station may read a function code (0x1C) of the firmware packet, the function code indicating that the packet is a packet transmitted in a broadcast manner, and receive the firmware packet, or read a station address in the packet, and confirm whether to receive the firmware packet according to the station address.
The different status values of the status bits are used to indicate receipt or storage of a firmware packet.
The slave station reads the data information in the setting frame and sets a first state value of the state bit of the target slave station according to the read data, wherein the first state value can be used for representing an initialization value of the state bit of the slave station, namely the state value when the firmware data packet is not received, for example, the slave station can set an error flag bit to be 'error', which indicates that the target slave station does not receive the data; setting the Flash flag bit to 'unwritten', indicating that the target slave station does not write the firmware data packet into Flash; and setting the writable flag bit to be 'writable' to indicate that the target slave station is the slave station of which the firmware needs to be updated. The different status values of the status bits of the slave station are used to indicate the receipt or storage of a firmware packet. In this embodiment, a slave station whose status bit is "writable" is referred to as a target slave station.
304. The slave station transmits first acknowledgement information for receiving the setup frame to the master station,
and if the slave station finishes setting the state value of the slave station state bit according to the setting frame, namely the slave station finishes the initialization setting of the state value, the slave station sends first confirmation information to the master station.
305. And broadcasting the firmware data packet by the master station after the master station confirms that the initialization setting of each target slave station is successful according to the confirmation information.
The master station transmits the firmware data packets in a broadcast mode, each slave station can receive the firmware data packets transmitted by the master station, the master station confirms and initializes the state of each slave station in the master station according to the confirmation information, and it should be noted that the memory of the master station stores the state of each corresponding target slave station.
If the acknowledgement information of the nth slave station is not received within the preset time period (N is used for distinguishing the slave stations, and may be a flag or a sequence number), the master station repeatedly transmits the setting frame, for example, the master station retransmits the setting frame 3 times to ensure that the slave station can receive the setting frame transmitted by the master station, and if the master station still does not receive the acknowledgement information transmitted by the target slave station, the master station sets the status of the target slave station to "no response".
If the master station confirms that the setting of the state of each slave station is completed within the preset time period, the master station confirms that the initialization setting of each target slave station is successful, and after the master station confirms that the initialization setting of each target slave station is successful, step 306 is executed.
306. And the slave station receives the firmware data packet broadcasted by the master station.
It is understood that the slave station after this step is the target slave station, and the target slave station can read the function code (0x1C) of the firmware data packet, which is used to indicate that the data packet is a data packet transmitted in a broadcast manner, and the target slave station can receive the firmware data packet.
307. And each target slave station updates data according to the firmware data packet and adjusts the state value of the state bit in the data updating process.
And the slave station updates data according to the firmware data packet, and adjusts the first state value to a second state value in the data updating process, wherein the second state value is used for indicating the proceeding situation of updating the firmware data packet by the slave station.
The specific process of the slave station adjusting the first state value to the second state value in the data updating process comprises the following steps:
and the slave station receives the firmware data packet, performs CRC (cyclic redundancy check) on the firmware data packet, and if the slave station judges that the CRC is correct, the slave station adjusts the corresponding error mark in the slave station state bit from the error of the first state value to the correct of the second state value, which indicates that the slave station has received the firmware data packet.
And the slave station stores the data in the firmware data packet into the memory.
And if the slave station judges that the error marks in each firmware data packet are correct, the slave station writes the data in the firmware data packet into Flash, and adjusts the Flash mark corresponding to the slave station status bit from 'unwritten' to 'written' of the first status value, which indicates that the slave station writes the data in the firmware data packet into Flash.
And performing CRC (cyclic redundancy check) on the data written in the Flash, and if the CRC is correct, setting an update mark to indicate that the updating of the firmware data of the slave station is finished.
It should be noted that each firmware data packet is composed of a plurality of blocks, and the slave station corresponding to the corresponding state represents the transmission condition of one block. After the slave station receives one block and finishes transmitting, writing the data of one block into Flash and then receiving another block, wherein step 307 is a repeated process, the slave station performs CRC check on the data written into Flash after all data are transmitted, and if the CRC check is correct, an update mark is set to indicate that the firmware data of the slave station is completely updated.
308. The master station transmits a query frame to each slave station.
It can be understood that the master station may broadcast the firmware data packets in communication cycles, each communication cycle broadcasts data of 16 frames at a time, and waits for a preset time length, and since no slave station will respond when the master station transmits the broadcasted firmware data packet, the master station needs to perform query confirmation so as to enable the slave station to confirm that the transmission of the firmware data packet broadcasted in the communication cycle is correct, so the master station transmits a query frame to the target slave station so as to enable the slave station to respond. And in the process that the master station broadcasts the data packet to each target, each target slave station of the master station sends a query frame. The inquiry frame is used for indicating the state value of the state bit fed back by each target slave station.
309. And the slave station receives the query frame transmitted by the master station.
The query frame includes a station address and a function code, the function code can be customized to be 0x21, and the format of the query frame is as follows:
station address Function code
310. And the slave station feeds back the state value of the state bit of the target slave station according to the query frame.
The frame format of the feedback is the same as the frame format of the slave station status bit. The data format of the feedback is as follows:
station address Function code Error flag 1 Error flag 2 Flash sign Writable sign
311. When the master station receives the state value returned by at least one target slave station in the target slave stations, the state value returned by the at least one target slave station is correspondingly stored with the at least one target slave station;
it can be understood that the master station correspondingly stores the slave station states of the slave stations in the memory according to the state values returned by the slave stations, and determines whether to rebroadcast the firmware data packet according to the state values.
The slave station state further comprises: transmission errors, Flash write errors, etc.
Station address Function code Error flag 1 Error flag 2 Flash sign Writable sign
For example, when the master station receives that the state value of the corresponding error flag in the second state information fed back by the nth target slave station is "correct", the master station correspondingly stores the state value of the error flag of the state bit of the target slave station as "correct", which indicates that the target slave station has received the nth firmware data packet and the received firmware data packet is correct.
312. And the master station determines the receiving or storing condition of the firmware data packet corresponding to the target slave station according to the stored state value.
And the main station determines whether to rebroadcast the corresponding firmware data packet according to the receiving or storing condition.
For example: and the slave station judges that the error flags in each firmware data packet are correct, writes the data in the firmware data packet into Flash, and adjusts the Flash flag corresponding to the slave station status bit from 'unwritten' to 'written' of the first status value, which indicates that the slave station writes the data in the firmware data packet into Flash.
And if the master station does not receive the second state information with the state value of the error mark fed back by the target slave station being correct, the master station broadcasts and retransmits the corresponding data frame and waits for a preset time length to ensure that the slave station can receive and receive the correct data frame, and if the slave station still receives the error after repeating for 3 times, the master station sets the state of the slave station corresponding to the target slave station in the master station to be transmission error.
Similarly, if the master station does not receive the state value that the corresponding Flash flag fed back by the target slave station is written in the preset time length, the master station stores the state of the status bit of the slave station as a Flash error.
313. And when the master station determines that the corresponding status bits of the target slave stations are all correspondingly stored and all the firmware data packets are completely transmitted, the master station sends a soft reset frame to the target slave stations.
And when the master station determines that the corresponding status bits of the slave stations are stored correspondingly and the data transmission of all the firmware data packets is completed, indicating that the firmware data packets which need to be broadcast transmitted to the slave stations by the master station are transmitted, the master station sends a soft reset frame to the target slave stations.
314. And the target slave station receives the soft reset frame transmitted by the master station.
The format of the soft reset frame is as follows:
station address Function code
315. The slave station transmits the received second acknowledgement information to the master station.
The data format of the second acknowledgement information sent by the slave station to the master station is the same as the format of the soft reset frame.
The data format of the acknowledgement information is as follows:
station address Function code
316. And the target slave station executes the reset operation according to the soft reset frame.
The slave station executes the reset operation according to the soft reset frame, namely, the written data is called from the Flash area according to the firmware update mark, the written data is adjusted to an actual operation area, and finally, the task of simultaneously upgrading the firmware of all the slave stations is completed.
In the embodiment of the invention, the master station sends the query frame to query the state of the data received from the slave station, and the master station determines whether to rebroadcast the corresponding firmware data packet according to the receiving or storing condition so as to ensure that the slave station can accurately receive the firmware data packet.
Example 4
In the above description of the user switching method in the embodiment of the present invention, a primary station in the embodiment of the present invention is described below with reference to fig. 4, where the primary station 1 in the embodiment of the present invention includes:
an obtaining module 401, configured to obtain address information of each target slave station in the multiple target slave stations, and a firmware data packet to be updated of the multiple target slave stations, where the multiple target slave stations are slave stations that need to update the firmware data packet.
A first sending module 402, configured to send a setting frame to each target slave station according to the address information of each target slave station acquired by the acquiring module 401, so that the target slave station sets a status bit of the target slave station according to the setting frame, where different status values of the status bit are used to indicate a receiving or storing condition of the firmware data packet.
A first receiving module 403, configured to receive acknowledgement information of the received setting frame sent by the target slave station.
A data transmission module 404, configured to broadcast the firmware data packet after confirming that the initialization setting of each target slave station is successful according to the confirmation information received by the first receiving module 403, so that each target slave station performs data updating according to the firmware data packet, and adjusts a state value of the state bit in the data updating process.
Further, the master station 1 further includes:
a second sending module 405, configured to send a query frame to each target slave station, where the query frame is used to instruct each target slave station to feed back a state value of a state bit of each target slave station.
And a second receiving module 406, configured to receive the status value sent by the target slave station.
The storing module 407, when the second receiving module 406 receives the state value returned by at least one of the target slave stations, stores the second state bit information returned by the at least one target slave station in correspondence with the at least one target slave station.
And a determining module 408, configured to determine, according to the state value stored in the storing module 407, a receiving or storing condition of the firmware packet corresponding to the target slave station.
The data transmission module 404 is further configured to rebroadcast the firmware data packet according to the receiving or storing condition determined by the determination module 408.
A third sending module 409, configured to send a soft reset frame to each target slave station, so that the target slave station performs a reset operation according to the soft reset frame.
Example 5
Referring to fig. 5, an embodiment of the present invention provides a secondary station 2 including:
a third receiving module 501, configured to receive a setting frame sent by the master station.
A setting module 502, configured to set a status bit of the target slave station according to the setting frame received by the third receiving module 501, where different status values of the status bit are used to indicate a receiving or storing condition of the firmware data packet.
A fourth sending module 503, configured to send acknowledgement information to the master station according to the setting frame received by the third receiving module 501.
A fourth receiving module 504, configured to receive the firmware data packet broadcast by the master station.
The data updating module 505 is configured to perform data updating according to the firmware data packet received by the fourth receiving module 504, and adjust a state value of the state bit during the data updating process.
And an executing module 506, configured to execute a reset operation when the target slave station reaches the preset state value.
A fifth receiving module 507, configured to receive the query frame sent by the master station.
A fifth sending module 508, configured to send the state value of the state bit of each target slave station to the master station according to the query frame received by the fifth receiving module 507.
Further, the executing module 506 further includes:
a receiving unit 5061, configured to receive the soft reset frame sent by the master station.
An execution unit 5062 is configured to execute a reset operation according to the soft reset frame received by the reception unit 5061.
Example 6
Referring to fig. 6, the present invention provides a system for updating firmware from a station 2, comprising: comprising a primary station 1 and a plurality of secondary stations 2.
The master station 1 obtains address information of each slave station 2 in the plurality of slave stations 2 and firmware data packets to be updated of the plurality of slave stations 2, and the plurality of slave stations 2 are the slave stations 2 which need to update the firmware data packets.
The master station 1 transmits a setting frame to each slave station 2 based on the address information of each slave station 2.
The slave station 2 receives the setting frame transmitted by the master station 1.
And the slave station 2 sets a status bit of the slave station 2 according to the setting frame and feeds back confirmation information for receiving the setting frame to the slave station 2, wherein different status values of the status bit are used for indicating the receiving or storing condition of the firmware data packet.
And after the master station 1 confirms that the initialization setting of each slave station 2 is successful according to the confirmation information, broadcasting the firmware data packet.
And the slave station 2 receives the firmware data packet broadcast by the master station 1, performs data updating according to the firmware data packet, and adjusts the state value of the state bit in the data updating process.
Further, when broadcasting the firmware data packet, the master station 1 sends a query frame to each slave station 2, where the query frame is used to instruct each slave station 2 to feed back a state value of a state bit of each slave station 2.
And the slave station 2 receives the query frame transmitted by the master station 1.
And the slave station 2 feeds back the state value of the state bit of each slave station 2 according to the query frame.
The primary station 1 receives the state value sent by the secondary station 2.
When the master station 1 receives the state value returned by at least one slave station 2 of the slave stations 2, the second state bit information returned by the at least one slave station 2 is correspondingly stored with the at least one slave station 2.
And the master station 1 determines the receiving or storing condition of the firmware data packet corresponding to the slave station 2 according to the stored state value.
The primary station 1 determines to rebroadcast the firmware data packet according to the received or stored condition.
Further, after the master station 1 broadcasts the firmware information, the master station 1 transmits a soft reset frame to each slave station 2.
And the slave station 2 receives the soft reset frame sent by the master station 1.
The slave station 2 performs a reset operation according to the soft reset frame.
Further, the master station 1 broadcasts the firmware packet through a plurality of communication cycles.
And the slave station 2 receives the firmware data packet broadcasted by the master station 1 in multiple communication periods.
The specific working steps of the system may refer to the specific descriptions corresponding to embodiments 1 to 3, which are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (18)

1. A method of updating from station firmware, comprising:
the method comprises the steps that a master station obtains address information of each target slave station in a plurality of target slave stations and firmware data packets to be updated of the target slave stations, wherein the target slave stations are slave stations needing to update the firmware data packets;
the master station sends a setting frame to each target slave station according to the address information of each target slave station, so that the target slave stations set state bits of the target slave stations according to the setting frame and feed back confirmation information of the setting frame to the master station, wherein different state values of the state bits are used for indicating the receiving or storing condition of the firmware data packet;
and after the master station confirms that the initialization setting of each target slave station is successful according to the confirmation information, broadcasting the firmware data packet so that each target slave station performs data updating according to the firmware data packet, and adjusting the state value of the state bit in the data updating process.
2. The method of claim 1, wherein when broadcasting the firmware packet, the method further comprises:
the master station sends a query frame to each target slave station, wherein the query frame is used for indicating each target slave station to feed back a state value of a state bit of each target slave station;
the master station receives the state value sent by the target slave station;
when the master station receives the state value returned by at least one target slave station in the target slave stations, correspondingly storing second state bit information returned by the at least one target slave station and the at least one target slave station;
the master station determines the receiving or storing condition of the firmware data packet corresponding to the target slave station according to the stored state value;
and the main station determines to rebroadcast the firmware data packet according to the receiving or storing condition.
3. The method of claim 1 or 2, wherein after the primary station broadcasts the firmware information, the method further comprises:
and the master station sends a soft reset frame to each target slave station so that the target slave station executes reset operation according to the soft reset frame.
4. The method of claim 1 or 2, wherein the primary station broadcasting the firmware data packet comprises:
the master station broadcasts the firmware data packet over a plurality of communication cycles.
5. A method of updating from station firmware, comprising:
the slave station receives a setting frame sent by the master station;
the slave station sets a status bit of the slave station according to the setting frame and sends confirmation information for receiving the setting frame to the master station, and different status values of the status bit are used for indicating the receiving or storing condition of the firmware data packet;
the slave station receives a firmware data packet broadcasted by the master station;
each slave station updates data according to the firmware data packet, and adjusts the state value of the slave station state bit in the data updating process;
and when the slave station reaches a preset state value, the slave station executes reset operation.
6. The method of claim 5, wherein when the slave station receives the firmware packet broadcast by the master station, the method further comprises:
the slave station receives a query frame sent by the master station;
and the slave station feeds back the state value of the state bit of each slave station according to the query frame.
7. The method of claim 5 or 6, wherein the secondary station performing a reset operation comprises:
the slave station receives a soft reset frame sent by the master station;
and the slave station executes reset operation according to the soft reset frame.
8. The method of claim 5 or 6, wherein the receiving of the firmware data packet broadcast by the primary station by the secondary station comprises:
and the slave station receives the firmware data packet broadcasted by the master station in multiple communication periods.
9. A primary station, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring address information of each target slave station in a plurality of target slave stations and firmware data packets to be updated of the target slave stations, and the target slave stations are slave stations needing to update the firmware data packets;
a first sending module, configured to send a setting frame to each target slave station according to the address information of each target slave station acquired by the acquiring module, so that the target slave station sets a status bit of the target slave station according to the setting frame, where different status values of the status bit are used to indicate a receiving or storing condition of the firmware data packet;
a first receiving module, configured to receive acknowledgement information that the target slave station has received the setting frame and is sent by the target slave station;
and the data transmission module is used for broadcasting the firmware data packet after confirming that the initialization setting of each target slave station is successful according to the confirmation information so as to enable each target slave station to carry out data updating according to the firmware data packet and adjust the state value of the state bit in the data updating process.
10. The primary station of claim 9, further comprising:
a second sending module, configured to send a query frame to each target slave station, where the query frame is used to indicate that each target slave station feeds back a state value of a state bit of each target slave station;
the second receiving module is used for receiving the state value sent by the target slave station;
the storage module is used for correspondingly storing second state bit information returned by at least one target slave station and the at least one target slave station when the receiving module receives the state value returned by at least one target slave station in the target slave stations;
the determining module is used for determining the receiving or storing condition of the firmware data packet corresponding to the target slave station according to the state value stored by the storage module;
the data transmission module is further configured to determine to rebroadcast the firmware data packet according to the receiving or storing condition determined by the determination module.
11. The primary station of claim 9 or 10, further comprising:
and the third sending module is used for sending a soft reset frame to each target slave station so that the target slave station executes reset operation according to the soft reset frame.
12. A secondary station, comprising:
the third receiving module is used for receiving the setting frame sent by the master station;
the setting module is used for setting a state bit of a target slave station according to the setting frame received by the third receiving module, and different state values of the state bit are used for indicating the receiving or storing condition of a firmware data packet;
a fourth sending module, configured to send acknowledgement information to the master station according to the setting frame received by the third receiving module;
a fourth receiving module, configured to receive the firmware data packet broadcast by the master station;
the data updating module is used for updating data according to the firmware data packet received by the fourth receiving module and adjusting the state value of the state bit in the data updating process;
and the execution module is used for executing reset operation when the target slave station reaches a preset state value.
13. A secondary station as claimed in claim 12, further comprising:
a fifth receiving module, configured to receive the query frame sent by the master station;
and a fifth sending module, configured to send, to the master station, the state value of the state bit of each target slave station according to the query frame received by the fifth receiving module.
14. A secondary station as claimed in claim 12 or 13, characterised in that the execution module comprises:
a receiving unit, configured to receive a soft reset frame sent by the master station;
and the execution unit is used for executing reset operation according to the soft reset frame received by the receiving unit.
15. A system for slave firmware update, the system comprising a master station and a plurality of slave stations;
the method comprises the steps that a master station obtains address information of each slave station in a plurality of slave stations and firmware data packets to be updated of the slave stations, wherein the slave stations are slave stations needing to update the firmware data packets;
the master station sends a setting frame to each slave station according to the address information of each slave station;
the slave station receives a setting frame sent by the master station;
the slave station sets a state bit of the slave station according to the setting frame and feeds back confirmation information of the setting frame to the master station, wherein different state values of the state bit are used for indicating the receiving or storing condition of the firmware data packet;
after the master station confirms that the initialization setting of each slave station is successful according to the confirmation information, broadcasting the firmware data packet;
and the slave station receives the firmware data packet broadcasted by the master station, updates data according to the firmware data packet, and adjusts the state value of the state bit in the data updating process.
16. The system of claim 15,
when the firmware data packet is broadcasted, the master station sends a query frame to each slave station, wherein the query frame is used for indicating each slave station to feed back the state value of the state bit of each slave station;
the slave station receives a query frame sent by the master station;
the slave station feeds back the state value of the state bit of each slave station according to the query frame;
the master station receives the state value sent by the slave station;
when the master station receives the state value returned by at least one slave station of the slave stations, correspondingly storing second state bit information returned by the at least one slave station with the at least one slave station;
the master station determines the receiving or storing condition of the firmware data packet corresponding to the slave station according to the stored state value;
and the main station determines to rebroadcast the firmware data packet according to the receiving or storing condition.
17. The system of claim 15 or 16, wherein after the primary station broadcasts the firmware information,
the master station sends soft reset frames to each slave station;
the slave station receives a soft reset frame sent by the master station;
and the slave station executes reset operation according to the soft reset frame.
18. The system of claim 15 or 16, wherein the master station broadcasting the firmware data packet comprises:
the main station broadcasts the firmware data packet through a plurality of communication periods;
and the slave station receives the firmware data packet broadcasted by the master station in multiple communication periods.
CN201580084468.6A 2015-12-29 2015-12-29 Method and system for updating firmware of slave station, master station and slave station Active CN108293060B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/099328 WO2017113080A1 (en) 2015-12-29 2015-12-29 Slave station firmware update method, system, master station and slave station

Publications (2)

Publication Number Publication Date
CN108293060A CN108293060A (en) 2018-07-17
CN108293060B true CN108293060B (en) 2021-06-08

Family

ID=59224004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580084468.6A Active CN108293060B (en) 2015-12-29 2015-12-29 Method and system for updating firmware of slave station, master station and slave station

Country Status (2)

Country Link
CN (1) CN108293060B (en)
WO (1) WO2017113080A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113039546A (en) * 2019-02-26 2021-06-25 深圳配天智能技术研究院有限公司 Master-slave equipment communication system and method
TWI703836B (en) * 2019-11-26 2020-09-01 台達電子工業股份有限公司 Method for data hand-shaking based on ethercat protocol
CN110941179B (en) * 2019-12-09 2023-03-31 杭州和利时自动化有限公司 Undisturbed downloading method, device and equipment and readable storage medium
CN111639876B (en) * 2020-06-07 2022-05-17 电管家能源管理(上海)有限公司 Main station connection and calculation system
CN111817939B (en) * 2020-07-22 2022-01-28 浙江中控技术股份有限公司 Master station redundancy implementation system and method based on industrial Ethernet protocol
CN112035135A (en) * 2020-08-07 2020-12-04 珠海格力电器股份有限公司 Method, apparatus and storage medium for updating firmware program of slave station apparatus
CN112565041B (en) * 2020-12-18 2022-06-14 杭州和利时自动化有限公司 Hardware information configuration method, device and medium of FF field bus system
CN112929251B (en) * 2021-02-07 2022-09-09 深圳市显控科技股份有限公司 CAN-based slave station data refreshing method, device and system
CN114244753B (en) * 2021-11-29 2023-09-29 上海繁易信息科技股份有限公司 Quick communication method for multiple upper computers and controllers based on RS485 bus
CN114268539B (en) * 2021-12-22 2023-09-12 中国长江三峡集团有限公司 Preprocessing method and system for automatically issuing and monitoring Powerlink master station configuration
CN116028387A (en) * 2023-01-31 2023-04-28 惠州市海葵信息技术有限公司 Data processing method, slave station, master station, and storage medium
CN116980290B (en) * 2023-09-22 2024-01-26 北京智芯微电子科技有限公司 Infrared communication upgrading method and device and electronic equipment
CN117784699B (en) * 2024-02-28 2024-05-28 深圳市瑞天激光有限公司 Communication method, device and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945181A (en) * 2012-12-03 2013-02-27 钜泉光电科技(上海)股份有限公司 Method for updating device software based on power line

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010198332A (en) * 2009-02-25 2010-09-09 Canon Inc Firmware update device, firmware update system, firmware update method, and firmware update program
JP5857451B2 (en) * 2011-06-03 2016-02-10 富士通株式会社 Distribution method and distribution system
CN102326371B (en) * 2011-08-05 2014-11-05 华为技术有限公司 Transmission method for door application assembly information, and slave station and main station
CN102546784B (en) * 2011-12-29 2014-03-26 深圳市迈进科技有限公司 Method for conducting batch upgrading for device firmware based on controller area network (CAN) bus
CN103414547B (en) * 2013-07-22 2017-10-10 大唐移动通信设备有限公司 A kind of main website controls method, main website and the system of many slave stations
CN104980956B (en) * 2015-06-29 2019-02-22 迈锐数据(北京)有限公司 The method of remote batch update node firmware
CN105049309B (en) * 2015-07-29 2018-03-09 上海新时达电气股份有限公司 Servo-driver synchronous method based on POWERLINK real-time ethernets

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945181A (en) * 2012-12-03 2013-02-27 钜泉光电科技(上海)股份有限公司 Method for updating device software based on power line

Also Published As

Publication number Publication date
WO2017113080A1 (en) 2017-07-06
CN108293060A (en) 2018-07-17

Similar Documents

Publication Publication Date Title
CN108293060B (en) Method and system for updating firmware of slave station, master station and slave station
CN102546784B (en) Method for conducting batch upgrading for device firmware based on controller area network (CAN) bus
CN104144466A (en) Access method for sensor in Internet of Things, Internet of Things system and server
CN104949288A (en) Multi-connected air conditioning unit, program upgrading system and method thereof as well as program upgrading device
US20120117557A1 (en) Method and system for upgrading wireless data card
CN102625281A (en) Wireless communication module and upgrade method thereof
CN107273158B (en) Program upgrading method and device, host, slave and multi-split air conditioning system
CN106155734B (en) Method and device for downloading software version
CN106681777A (en) Quick program updating method for multi-split unit
CN108800454B (en) Data synchronization method and device and multi-split air conditioning system
CN105278413A (en) Communication method for upper computer and CAN equipment of same type
CN103516824A (en) Network topology identification method based on IP layer and devices
CN105700927A (en) Version upgrade method, terminal equipment and version server
US20140188253A1 (en) Method and system for reprogramming
US20220334824A1 (en) Method for managing software versions of electronic device(s) in a vehicle and related device
CN104750524A (en) Upgraded data package transmitting method and device and data package upgrading method and device
CN113721966A (en) Node upgrading method and device, storage medium and electronic device
CN104077152A (en) Batch upgrading method and batch upgrading device for embedded system
CN104079371A (en) Method, equipment and system of data communication
CN112035135A (en) Method, apparatus and storage medium for updating firmware program of slave station apparatus
CN106648578A (en) Desktop layout sharing method, sending terminal and receiving terminal
CN102341784B (en) Method for quick map recovery in case of error in moca
CN106412657B (en) A kind of method and system of set-top box programming sequence code
CN104185169A (en) Stator synchronization method of air write card, device and system thereof
CN115334041A (en) Method for automatically allocating addresses to communication equipment of master station and slave station, master station, slave station and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant