CN111459522B - Air conditioner and communication module upgrading method thereof - Google Patents

Air conditioner and communication module upgrading method thereof Download PDF

Info

Publication number
CN111459522B
CN111459522B CN202010251196.7A CN202010251196A CN111459522B CN 111459522 B CN111459522 B CN 111459522B CN 202010251196 A CN202010251196 A CN 202010251196A CN 111459522 B CN111459522 B CN 111459522B
Authority
CN
China
Prior art keywords
communication module
upgrading
address
communication
modules
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
CN202010251196.7A
Other languages
Chinese (zh)
Other versions
CN111459522A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010251196.7A priority Critical patent/CN111459522B/en
Publication of CN111459522A publication Critical patent/CN111459522A/en
Application granted granted Critical
Publication of CN111459522B publication Critical patent/CN111459522B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Air Conditioning Control Device (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an air conditioner and a communication module upgrading method thereof. The communication module upgrading method of the air conditioner comprises the following steps: one main communication module is selected from all communication modules of the air conditioner; the main communication module acquires an upgrading address from a remote server and sends the upgrading address to other communication modules; and each communication module downloads an upgrading program from the upgrading address respectively for upgrading. The invention can ensure that all communication modules in the same system of the air conditioner are upgraded at the same time, and avoid the problem that the selected main communication module can not complete a new upgrading function because the version numbers of the communication modules are inconsistent.

Description

Air conditioner and communication module upgrading method thereof
Technical Field
The invention relates to a hardware upgrading technology, in particular to an upgrading method for each communication module of an air conditioner with a plurality of communication modules.
Background
The air conditioner DTU module is a unit for transmitting air conditioner data to a remote server, and is convenient for analyzing big data of the air conditioner. In order to ensure stable data transmission of the air conditioning system, a plurality of communication modules, such as DTU modules, are usually provided under one system.
In order to ensure that the corresponding functions of the communication modules meet the subsequent requirements, each communication module has a program upgrading function. When a plurality of communication modules exist in an air conditioning system, as shown in fig. 1, a plurality of DTU modules select a master module with an optimal signal through an internal election mechanism, and the rest communication modules are slave modules, and only one master module of one air conditioning system performs data transmission with a remote server.
Therefore, the current approach has the following problems:
1. because only the main module is interacted with the server, how to ensure that all communication modules under the same air conditioning system are upgraded simultaneously.
2. The inside of a communication module of the same air conditioning system is interactive based on a CAN bus, the CAN bus is not suitable for transmitting a large amount of data, and how a main module synchronously sends an upgrade package (upgrade program) to other slave modules.
3. If the slave module is not upgraded timely due to offline, and the air conditioning system is added again, or a new communication module is added, how to ensure the consistency of the software versions of the communication modules in the same air conditioning system.
Disclosure of Invention
The invention provides an air conditioner and a communication module upgrading method thereof, aiming at solving the technical problem of how to simultaneously upgrade a plurality of communication modules in an air conditioning system in the prior art.
The invention provides a communication module upgrading method of an air conditioner, which comprises the following steps:
one main communication module is selected from all communication modules of the air conditioner;
the main communication module acquires an upgrading address from a remote server and sends the upgrading address to other communication modules;
and each communication module downloads an upgrading program from the upgrading address respectively for upgrading.
The communication module upgrading method further comprises the steps that when a new communication module is added to be connected with the existing communication module, the new communication module and the existing communication module check the program version numbers of the new communication module and the existing communication module, when the program version numbers of the new communication module and the existing communication module are not consistent, one of the existing communication modules sends the upgrading address to the new communication module, and the new communication module downloads the upgrading program from the upgrading address for upgrading.
Furthermore, all the communication modules communicate with each other through a bus.
When the communication module network is abnormal, when the network is recovered, the communication module with the abnormal network and the existing communication module check the program version number of each other, when the program version number of the communication module with the abnormal network is not consistent with that of the existing communication module, one of the existing communication modules sends the upgrading address to the communication module with the abnormal network, and the communication module with the abnormal network downloads the upgrading program from the upgrading address for upgrading.
Further, the network exception comprises a bus connection exception with other communication modules and/or a connection exception with the upgrade address.
Further, when the air conditioner is started and/or after all communication modules of the air conditioner are upgraded successfully each time, all the communication modules select the main communication module according to the mutual signal strength value. And the main communication module acquires an upgrading instruction from a remote server and verifies the upgrading instruction, and acquires the upgrading address from the upgrading instruction if the upgrading instruction passes the verification.
Further, the program version number is fixed in a fixed address of the upgrading program.
Further, the communication module is a DTU module.
The air conditioner provided by the invention comprises a plurality of communication modules, and the plurality of communication modules are upgraded by adopting the communication module upgrading method in the technical scheme.
The invention can realize the wireless remote upgrading function of a plurality of communication modules installed on the air conditioning system. If new functions or requirements exist and the communication modules need to be put into practical use, the upgrading of the communication modules can be directly and remotely controlled, the intermediate complicated step of upgrading is omitted, and the production and installation cost is saved. Moreover, the invention can ensure the simultaneous upgrade of all communication modules under the air-conditioning system, even if a new communication module is added or a communication module network fault occurs, the upgrade synchronization can be ensured, and a series of influences caused by inconsistent program version numbers due to the fact that all communication modules under the same air-conditioning system can not be upgraded simultaneously are solved, such as: if the reselected main communication module is not upgraded or the upgrade is unsuccessful, the data reported by the air conditioning system has no new function, and cannot meet new requirements. Meanwhile, the invention also solves the problem that the interior of the air conditioning system cannot be synchronously upgraded in time due to the fact that the interior of the air conditioning system cannot be subjected to large concurrent communication because of CAN bus communication among a plurality of communication modules of the air conditioning system. The method of the invention not only reduces the mutual transmission data quantity between the communication modules, but also does not influence the communication between the communication modules and the unit and between the unit and the unit.
Drawings
The invention is described in detail below with reference to examples and figures, in which:
FIG. 1 is a flow chart of the invention for electing a master communication module.
FIG. 2 is an upgrade flow diagram of the present invention.
Fig. 3 is a flowchart of the upgrade process when a new communication module is added.
Detailed Description
The principles and embodiments of the present invention are described in detail below with reference to the accompanying drawings.
The communication module upgrading method of the air conditioner also comprises the steps that a main communication module is selected from all online communication modules, the selection is usually carried out when the air conditioner is started each time, the communication modules select one main communication module according to the mutual signal strength values so as to ensure the real-time communication with a remote server, and other communication modules are used as slave modules to be connected with the main communication module and receive messages sent by the main communication module. Only the master communication module communicates with the remote server, the communication modules of other slave modules can communicate with the HTTP server, and program files of all the communication modules needing to be upgraded are stored in the HTTP server.
As shown in fig. 2, the main communication module is responsible for transmitting the data of the air conditioning system to the remote server after determining. If the program needs to be upgraded, namely after an upgrading instruction issued by the remote server is received, the main communication module verifies the correctness of the upgrading instruction, and if the program does not pass through the upgrading instruction, the upgrading instruction is discarded. If the communication module passes the upgrading address, the upgrading address is obtained from the upgrading instruction, and the upgrading address (namely the URL address) is sent to other communication modules serving as slave modules. All the communication modules communicate with each other through a bus, for example, a Can bus, and the master communication module sends the upgrade address to other communication modules serving as slave modules through a Can bus.
When all the communication modules receive the upgrade address, the upgrade address is saved to the local, meanwhile, the communication modules of the master communication module and the slave module request an upgrade package (upgrade program) from the HTTP server according to the upgrade address, and the upgrade packages are respectively downloaded and complete the upgrade of the programs of the communication modules, so that the unified upgrade of the communication modules in the same system of the air conditioner can be completed. The fixed address of each upgrading program has a program version number of the upgrading program, and after upgrading, each communication module can store the program version number of the currently used program.
As shown in fig. 3, when a new communication module is added to the air conditioner, a confirmation message is transmitted to other communication modules by broadcasting, the new communication module and the existing communication module check the program version number of each other by transmitting a message on the bus, when the program version numbers of the new communication module and the existing communication module are not identical, one of the existing communication modules (e.g., the main communication module) transmits an upgrade address to the new communication module, and the new communication module downloads the upgrade program from the upgrade address to upgrade and stores the new program version number.
In the upgrading process, some communication modules may be abnormal, so that when the main communication module broadcasts an upgrading address through the bus, the abnormal communication module cannot respond in time and is disconnected from the system connection, when the abnormal communication module is connected to the bus again, the abnormal communication module and the existing communication module check the mutual program version number by sending messages on the bus as when the new communication module is added to the air conditioner, when the program version number of the abnormal communication module is not consistent with that of the existing communication module, one of the existing communication modules (such as the main communication module) sends the upgrading address to the abnormal communication module through the bus, and the abnormal communication module downloads the upgrading program from the upgrading address to upgrade and stores the new program version number. Besides the foregoing example bus connection exception, the existing communication module may also be or simultaneously have an upgrade address connection exception, that is, an exception in connection with the HTTP server, and when the network connection is restored, the program version number also needs to be checked to determine whether the upgrade together with other communication modules is successful, so as to ensure that all communication modules are upgraded at the same time.
No matter a new communication module is added into the air conditioner or an abnormal communication module network is recovered and is added into the air conditioner again, after all the communication modules are upgraded, the election process of the main communication module is carried out again, so that the communication module with the strongest signal value can be selected to be in good communication connection with the remote server.
Besides the communication module upgrading method, the invention also protects the air conditioner adopting the communication module upgrading method.
The invention separately places the remote server responsible for air conditioner data acquisition and interaction and the upgraded data packet, places the upgraded data packet on a special HTTP server, obtains the upgrade address from the remote server through the main communication module, then distributes the upgrade address to other communication modules, and respectively downloads the upgrade packet (upgrade program) from the HTTP server, thereby realizing remote synchronous upgrade of a plurality of communication modules under the air conditioner system, and realizing uniform upgrade even if the communication modules with network disconnection are reconnected again or new communication modules are added.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (8)

1. A communication module upgrading method of an air conditioner is characterized by comprising the following steps:
one main communication module is selected from all communication modules of the air conditioner;
the main communication module acquires an upgrading address from a remote server and sends the upgrading address to other communication modules;
each communication module downloads an upgrading program from the upgrading address to upgrade;
the communication modules communicate with each other through the bus, after the network is recovered, the communication module with the abnormal network and the existing communication module check the program version numbers of the communication modules with the abnormal network, when the program version numbers of the communication module with the abnormal network and the existing communication module are not consistent, one of the existing communication modules sends the upgrading address to the communication module with the abnormal network, and the communication module with the abnormal network downloads the upgrading program from the upgrading address for upgrading.
2. The method for upgrading a communication module according to claim 1, further comprising: when a new communication module is added to be connected with the existing communication module, the new communication module and the existing communication module check the program version numbers of each other, when the program version numbers of the new communication module and the existing communication module are not consistent, one of the existing communication modules sends the upgrade address to the new communication module, and the new communication module downloads the upgrade program from the upgrade address to upgrade.
3. The communication module upgrading method according to claim 1, wherein the network exception comprises a bus connection exception with other communication modules and/or a connection exception with the upgrade address.
4. The method for upgrading the communication module according to claim 1, wherein the main communication module is selected by all the communication modules according to the signal strength value of each other when the air conditioner is started and/or after all the communication modules of the air conditioner are upgraded successfully.
5. The communication module upgrade method according to claim 2 or 1, wherein the program version number is fixed in a fixed address of the upgrade program.
6. The method for upgrading a communication module of claim 1, wherein the communication module is a DTU module.
7. The communication module upgrading method of claim 1, wherein the main communication module obtains an upgrading instruction from a remote server and verifies the upgrading instruction, and if the verification is passed, obtains the upgrading address from the upgrading instruction.
8. An air conditioner comprising a plurality of communication modules, wherein the plurality of communication modules are upgraded by the communication module upgrading method according to any one of claims 1 to 7.
CN202010251196.7A 2020-04-01 2020-04-01 Air conditioner and communication module upgrading method thereof Active CN111459522B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010251196.7A CN111459522B (en) 2020-04-01 2020-04-01 Air conditioner and communication module upgrading method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010251196.7A CN111459522B (en) 2020-04-01 2020-04-01 Air conditioner and communication module upgrading method thereof

Publications (2)

Publication Number Publication Date
CN111459522A CN111459522A (en) 2020-07-28
CN111459522B true CN111459522B (en) 2021-09-14

Family

ID=71681562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010251196.7A Active CN111459522B (en) 2020-04-01 2020-04-01 Air conditioner and communication module upgrading method thereof

Country Status (1)

Country Link
CN (1) CN111459522B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111998510B (en) * 2020-08-28 2022-02-18 海信(山东)空调有限公司 Air conditioner and control method thereof
CN112822254A (en) * 2020-12-31 2021-05-18 山东向明环保科技有限公司 Data acquisition and transmission system and method for remotely upgrading and allocating parameters on line
CN113238779A (en) * 2021-05-24 2021-08-10 深圳市网是科技有限公司 High-reliability upgrading method for single embedded device composed of multiple modules

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255958A (en) * 2011-06-27 2011-11-23 北京星网锐捷网络技术有限公司 Data synchronization method and system thereof
CN103793181A (en) * 2012-11-05 2014-05-14 腾讯科技(深圳)有限公司 Data synchronizing method and data synchronizing system of multilevel association storage architecture
CN107168143A (en) * 2016-03-07 2017-09-15 拉克洛博公司 Modular system and its update method, and the robot system based on module
CN109683930A (en) * 2018-12-17 2019-04-26 珠海格力电器股份有限公司 Air-conditioning equipment programme upgrade method, device, system and household appliance

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201138372A (en) * 2010-04-29 2011-11-01 Hon Hai Prec Ind Co Ltd Master server and method for decoding multimedia files using the master server
CN101841408A (en) * 2010-05-07 2010-09-22 北京星网锐捷网络技术有限公司 Primary/standby route equipment switching method and route equipment
CN104301905B (en) * 2014-10-20 2018-10-16 上海电机学院 Smart home ad hoc network method based on supervision of election strategy and system
CN106874054B (en) * 2017-03-06 2020-11-10 四川天邑康和通信股份有限公司 Method and system for on-line upgrading module program in repeater
CN107580040B (en) * 2017-08-29 2020-11-03 聚好看科技股份有限公司 Method and device for upgrading communication module in intelligent household terminal
CN109669708B (en) * 2018-11-02 2022-08-12 金卡智能集团股份有限公司 Remote upgrading method for modular Internet of things terminal equipment
CN110262822B (en) * 2019-06-17 2020-11-24 珠海格力电器股份有限公司 Multi-split system and upgrading method and device thereof
CN110809263A (en) * 2019-11-11 2020-02-18 龙尚科技(上海)有限公司 Internet of things communication method, Internet of things communication system and Internet of things equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255958A (en) * 2011-06-27 2011-11-23 北京星网锐捷网络技术有限公司 Data synchronization method and system thereof
CN103793181A (en) * 2012-11-05 2014-05-14 腾讯科技(深圳)有限公司 Data synchronizing method and data synchronizing system of multilevel association storage architecture
CN107168143A (en) * 2016-03-07 2017-09-15 拉克洛博公司 Modular system and its update method, and the robot system based on module
CN109683930A (en) * 2018-12-17 2019-04-26 珠海格力电器股份有限公司 Air-conditioning equipment programme upgrade method, device, system and household appliance

Also Published As

Publication number Publication date
CN111459522A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN111459522B (en) Air conditioner and communication module upgrading method thereof
WO2020107905A1 (en) Monitoring and managing methods for device, and terminal device
CN103095745A (en) Vehicle-mounted terminal, electronic module and device, system and method of electronic module upgrade
CN105491084A (en) IOV (Internet of vehicles) system based on OTA protocol, and control method therefor
CN102098590A (en) Automatic upgrading method and system of firmware version of optical network unit
CN103369051A (en) Data server cluster system and data synchronization method
CN104949288A (en) Multi-connected air conditioning unit, program upgrading system and method thereof as well as program upgrading device
CN107483297B (en) Active monitoring system and method for quality of service carried on embedded equipment
CN101686139A (en) Method, device and system of multicast upgrading
CN113115350B (en) Offline detection method for T-BOX
CN112583646A (en) Remote upgrading method for intelligent electric meter
CN107172613B (en) A kind of remote maintenance system and method for car wireless terminal
CN114500305B (en) Device monitoring method, device, storage medium and program product
CN108282177B (en) Upgrading method based on fault-tolerant design of vehicle-mounted OTA terminal
CN111736866A (en) One-to-one and one-to-many compatible online upgrading method and terminal equipment
CN115878160B (en) ECU (electronic control Unit) upgrading method and system based on CAN (controller area network) communication
CN115604113B (en) FAN network equipment rapid upgrading method, system, equipment and medium
CN115268965A (en) Adaptive software remote upgrading method and system for low-voltage intelligent circuit breaker
CN116107618A (en) Flowmeter controller upgrading method, computer equipment and storage medium
CN113849213B (en) OTA upgrading system and method for edge equipment
CN115567895A (en) OTA software update data transmission method and system
CN102158462A (en) Method for repairing remote diagnosis by using 2nd Generation (2G) or 3rd Generation (3G) module
CN107707411A (en) The upgrade method and system of a kind of EPON
CN114125052A (en) Target operation execution method and device, storage medium and electronic device
CN112596763A (en) Method, device and equipment for wireless upgrading of intelligent household equipment

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