CN105446924A - Compatible processing method and system for communication protocol of air conditioner controller - Google Patents
Compatible processing method and system for communication protocol of air conditioner controller Download PDFInfo
- Publication number
- CN105446924A CN105446924A CN201410421583.5A CN201410421583A CN105446924A CN 105446924 A CN105446924 A CN 105446924A CN 201410421583 A CN201410421583 A CN 201410421583A CN 105446924 A CN105446924 A CN 105446924A
- Authority
- CN
- China
- Prior art keywords
- symbol variable
- judgement symbol
- old
- preset value
- communication data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 81
- 238000003672 processing method Methods 0.000 title claims abstract description 19
- 238000012546 transfer Methods 0.000 claims description 33
- 238000012545 processing Methods 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 abstract description 8
- 238000000034 method Methods 0.000 abstract description 5
- 238000011161 development Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
Landscapes
- Selective Calling Equipment (AREA)
- Air Conditioning Control Device (AREA)
- Communication Control (AREA)
Abstract
The invention discloses a compatible processing method and a system for a communication protocol of an air conditioner controller, wherein the method comprises the following steps: defining and setting judgment sign variables of a new protocol and an old protocol; and controlling the transmission of the new protocol communication data or the old protocol communication data according to the judgment mark variable. The new product and the old product can selectively receive the new protocol communication data and the old protocol communication data, namely the new product can receive the new protocol communication data and the old protocol communication data, the old product can receive the old protocol communication data, and finally the new product and the old product are universal. The problem that the functions of the household appliance system are continuously upgraded to cause that a new product and an old product cannot be used universally is effectively solved.
Description
Technical field
The present invention relates to computer software fields, particularly relate to a kind of air-conditioner controller communications protocol compatibility processing method and system.
Background technology
In the controller software development phase of household electrical appliance, in order to ensure the extendability of director demon, the length that in home appliance system, the communication reception array of each controller can specify in communications protocol usually additionally increases some byte lengths again.But along with home appliance system, as the continuous upgrading of the function of air-conditioner set, when especially increasing the larger function of some data volume, the length of communications protocol can constantly be expanded, even exceed reception array length original on some air-conditioner controller software.Now, if the collocation of new product and old system product has appearred in the unit of shipment, the air-conditioner controller of old system product possibly cannot receive the data exceeding its length range, thus causes unit communication abnormality.Finally cause new product and old system product can not be general.
Summary of the invention
Based on this, being necessary constantly upgrades for the function of home appliance system causes the problem that new product and old system product can not be general, provides a kind of air-conditioner controller communications protocol compatibility processing method and system.
For realizing a kind of air-conditioner controller communications protocol compatibility processing method provided by the invention, comprise the steps:
Define and the judgement symbol variable of New Deal and old agreement is set;
According to described judgement symbol variable, controls transfer New Deal communication data or old protocol data.
Wherein in an embodiment, described definition also arranges the judgement symbol variable of New Deal and old agreement, comprises the steps:
Described judgement symbol variable is set and equals preset value.
Wherein in an embodiment, described according to described judgement symbol variable, controls transfer New Deal communication data or old protocol data, comprise the steps:
Judge whether described judgement symbol variable equals preset value;
If described judgement symbol variable equals described preset value, then New Deal communication data described in controls transfer;
If described judgement symbol variable is not equal to described preset value, then old protocol data described in controls transfer;
Wherein, when described judgement symbol variable equals described preset value, corresponding described New Deal.
Wherein in an embodiment, the value of described preset value is 1 or 0.
Wherein in an embodiment, also comprise the steps:
By the value negate of described judgement symbol variable, and continue to judge whether described judgement symbol variable equals described preset value.
Accordingly, for realizing any one air-conditioner controller communications protocol compatibility processing method above-mentioned, present invention also offers a kind of air-conditioner controller communications protocol compatible processing system, comprising definition module and control module, wherein:
Described definition module, for defining and arranging the judgement symbol variable of New Deal and old agreement;
Described control module, for according to described judgement symbol variable, controls transfer New Deal communication data or old protocol data.
Wherein in an embodiment, described definition module comprises setting unit;
Described setting unit, equals preset value for arranging described judgement symbol variable.
Wherein in an embodiment, described control module comprises judging unit, the first control module and the second control module;
Described judging unit, for judging whether described judgement symbol variable equals described preset value;
Described first control module, if equal described preset value for described judgement symbol variable, then New Deal communication data described in controls transfer;
Described second control module, if be not equal to described preset value for described judgement symbol variable, then old protocol data described in controls transfer;
Wherein, when described judgement symbol variable equals described preset value, corresponding described New Deal.
Wherein in an embodiment, described control module also comprises the 3rd control module;
Described 3rd control module, for the value negate by described judgement symbol variable, and control described judging unit continue judge whether described judgement symbol variable equals described preset value.
The beneficial effect of above-mentioned air-conditioner controller communications protocol compatibility processing method and system: wherein method is by defining and arranging the judgement symbol variable of New Deal and old agreement; And according to judgement symbol variable, controls transfer New Deal communication data or with regard to protocol data.It is by defining and arranging the judgement symbol variable for judging New Deal or old agreement, and according to judgement symbol variable, selectable controls transfer New Deal communication data or old protocol data, thus realize new product and old system product receive New Deal communication data and old protocol data selectively, namely new product receives New Deal communication data or old protocol data, old system product receive old protocol data, finally achieve the general of new product and old system product.The function efficiently solving home appliance system is constantly upgraded and is caused the problem that new product and old system product can not be general.
Further, it does not need to increase air-conditioner controller new model in addition, only need change the compatibility that air-conditioner controller software just can realize New Deal and old agreement, decrease cost of development.
Accompanying drawing explanation
Fig. 1 is air-conditioner controller communications protocol compatibility processing method one specific embodiment process flow diagram;
Fig. 2 is another specific embodiment process flow diagram of air-conditioner controller communications protocol compatibility processing method;
Fig. 3 is air-conditioner controller communications protocol compatible processing system one specific embodiment structural representation.
Embodiment
For making technical solution of the present invention clearly, below in conjunction with drawings and the specific embodiments, technical solution of the present invention is described in further details.
See Fig. 1, as the air-conditioner controller communications protocol compatibility processing method of a specific embodiment, comprise the steps:
Step S100, defines and arranges the judgement symbol variable of New Deal and old agreement.
Step S200, according to judgement symbol variable, controls transfer New Deal communication data or old protocol data.
It is by defining and arranging the judgement symbol variable for judging New Deal or old agreement, and according to judgement symbol variable, selectable controls transfer New Deal communication data or old protocol data, thus new product and old system product receive New Deal communication data and old protocol data selectively, namely new product can receive New Deal communication data or old protocol data, and old system product can receive old protocol data.Thus realize the circle transmission of New Deal communication data and old protocol data.Finally achieve the general of new product and old system product.The function efficiently solving home appliance system is constantly upgraded and is caused the problem that new product and old system product can not be general.
Further, it does not need to increase air-conditioner controller new model in addition, only need change the compatibility that air-conditioner controller software just can realize New Deal and old agreement, decrease cost of development.
Wherein, in step S100, define and arrange in the judgement symbol variable of New Deal and old agreement, comprising step S110, judgement symbol variable being set and equaling preset value.Wherein, judgement symbol variable equals preset value and may correspond to as New Deal, also may correspond to as old agreement.The value of preset value can be 1, also can be 0.
Below with the value of preset value for 1, it is example that judgement symbol variable Flg equals 1 corresponding New Deal, air-conditioner controller communications protocol compatibility processing method of the present invention is done to further describing in detail.
See Fig. 2, step S200, according to judgement symbol variable, controls New Deal communication data or the transmission of old protocol data, comprises the steps:
Step S210, judges whether judgement symbol variable equals preset value; If so, then step S220 is performed; If not, then step S230 is performed.
Step S220, if judgement symbol variable equals preset value, then controls transfer New Deal communication data.
Step S230, if judgement symbol variable is not equal to preset value, then the old protocol data of controls transfer.
Wherein, when the value of preset value is 1, by performing step S210, judge whether judgement symbol variable Flg equals 1.As Flg=1, due to correspondence New Deal when the judgement symbol variable arranged equals preset value (i.e. Flg=1).Therefore, now perform step S220, controls transfer New Deal communication data, realizes New Deal communication data and transfers to goods.When Flg ≠ 1, due to correspondence New Deal when the judgement symbol variable arranged equals preset value (i.e. Flg=1), accordingly, when judgement symbol variable is not equal to preset value (i.e. Flg ≠ 1), then corresponding old agreement.Therefore, now step S230 is performed, the old protocol data of controls transfer.
It is by the judgement symbol variable set up initial value to New Deal and old agreement, i.e. preset value.And by judging the value of judgement symbol variable, selectively carry out the transmission of New Deal and old agreement, achieve new product and can receive New Deal communication data or old protocol data, old system product can receive the object of old protocol data.Solve new product and old system product because of the upgrading of air-conditioner controller communications protocol cause can not be general problem, better can process the stock of old system product, the slow-witted material of old system product can not be caused, and new product and old system product are mixed takes and occur product problem.
Wherein, as execution of step S200, namely according to judgement symbol variable, after selectively controlling New Deal communication data and the transmission of old protocol data, also comprise the steps:
Step S240, by the value negate of judgement symbol variable, and continues to judge whether judgement symbol variable equals preset value.
By by after the value negate of judgement symbol variable, and continue to judge whether judgement symbol variable equals preset value, the alternate cycles realizing New Deal communication data and old protocol data is transmitted, thus reaches the collocation of new product and old system product.
Concrete, still with the value of preset value for 1, when judgement symbol variable equals preset value, corresponding New Deal is that example is described.
When by judging that judgement symbol variable equals 1, namely during Flg=1, now after controls transfer New Deal communication data.By the value negate of judgement symbol variable, namely now the value of judgement symbol variable is 0, corresponds to old agreement.Now, by again judging judgement symbol variable, obtaining judgement symbol variable and being not equal to 1, then the old protocol data of controls transfer.Then, again by the value negate of now judgement symbol variable, namely now the value of judgement symbol variable is 1, corresponds to New Deal.Now, judge by carrying out third time to judgement symbol variable, obtain judgement symbol variable and equal 1, then controls transfer New Deal communication data.By that analogy, finally achieve the alternate cycles transmission of New Deal communication data and old protocol data, thus realize new product and old system product can receive New Deal communication data and old protocol data selectively, namely new product can receive New Deal communication data or old protocol data, old system product can receive old protocol data, finally achieve the collocation of new product and old system product.
In like manner, when by judging that judgement symbol variable is not equal to 1, namely during Flg ≠ 1, the now old protocol data of controls transfer.By the value negate of judgement symbol variable, namely now the value of judgement symbol variable is 1, corresponds to New Deal.Now, by again judging judgement symbol variable, obtaining judgement symbol variable and equaling 1, then controls transfer New Deal communication data.Then, again by the value negate of now judgement symbol variable, namely now the value of judgement symbol variable is 0, corresponds to old agreement.Now, judge by carrying out third time to judgement symbol variable, obtain judgement symbol variable and be not equal to 1, then the old protocol data of controls transfer.By that analogy, the final alternate cycles transmission achieving New Deal communication data and old protocol data equally, realize new product and old system product receive New Deal communication data and old protocol data selectively, namely new product can receive New Deal communication data or old protocol data, old system product can receive old protocol data, thus achieve the collocation of new product and old system product equally.
Accordingly, for realizing any one air-conditioner controller communications protocol compatibility processing method above-mentioned, present invention also offers a kind of air-conditioner controller communications protocol compatible processing system.Due to the principle of work of air-conditioner controller communications protocol compatible processing system provided by the invention and air-conditioner controller communications protocol compatibility processing method principle provided by the invention same or similar, therefore repeat part and repeat no more.
See Fig. 3, as the air-conditioner controller communications protocol compatible processing system 100 of a specific embodiment, comprise definition module 110 and control module 120, wherein:
Definition module 110, for defining and arranging the judgement symbol variable of New Deal and old agreement.
Control module 120, for according to judgement symbol variable, controls transfer New Deal communication data or old protocol data.
Wherein, definition module 110 comprises setting unit 111.
Setting unit 111, equals preset value for arranging judgement symbol variable.
It should be noted that, control module 120 comprises judging unit 121, first control module 122 and the second control module 123.
Judging unit 121, for judging whether judgement symbol variable equals preset value.
First control module 122, if equal preset value for judgement symbol variable, then controls transfer New Deal communication data.
Second control module 123, if be not equal to preset value for judgement symbol variable, then the old protocol data of controls transfer.
What deserves to be explained is, control module 120 also comprises the 3rd control module 124.
3rd control module 124, for the value negate by judgement symbol variable, and control judging unit continue judge whether judgement symbol variable equals preset value.
It is defined by definition module 110 and arranges the judgement symbol variable for judging New Deal or old agreement, and by control module 120 according to judgement symbol variable, selectable controls transfer New Deal communication data or old protocol data, thus realize the circle transmission of New Deal communication data and old protocol data, new product and old system product can receive New Deal communication data and old protocol data selectively, namely new product can receive New Deal communication data or old protocol data, old system product can receive old protocol data, finally achieve the general of new product and old system product.The function efficiently solving home appliance system is constantly upgraded and is caused the problem that new product and old system product can not be general.
Further, it does not need to increase air-conditioner controller new model in addition, only need change air-conditioner controller software, namely increase definition module 110 and control module 120 at air-conditioner controller software, just can realize the compatibility of New Deal and old agreement, decrease cost of development, simple and convenient, be easy to realize.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.
Claims (9)
1. an air-conditioner controller communications protocol compatibility processing method, is characterized in that, comprises the steps:
Define and the judgement symbol variable of New Deal and old agreement is set;
According to described judgement symbol variable, controls transfer New Deal communication data or old protocol data.
2. air-conditioner controller communications protocol compatibility processing method according to claim 1, is characterized in that, described definition also arranges the judgement symbol variable of New Deal and old agreement, comprises the steps:
Described judgement symbol variable is set and equals preset value.
3. air-conditioner controller communications protocol compatibility processing method according to claim 2, is characterized in that, described according to described judgement symbol variable, and controls transfer New Deal communication data or old protocol data, comprise the steps:
Judge whether described judgement symbol variable equals preset value;
If described judgement symbol variable equals described preset value, then New Deal communication data described in controls transfer;
If described judgement symbol variable is not equal to described preset value, then old protocol data described in controls transfer;
Wherein, when described judgement symbol variable equals described preset value, corresponding described New Deal.
4. air-conditioner controller communications protocol compatibility processing method according to claim 3, is characterized in that, the value of described preset value is 1 or 0.
5. air-conditioner controller communications protocol compatibility processing method according to claim 4, is characterized in that, also comprise the steps:
By the value negate of described judgement symbol variable, and continue to judge whether described judgement symbol variable equals described preset value.
6. an air-conditioner controller communications protocol compatible processing system, is characterized in that, comprises definition module and control module, wherein:
Described definition module, for defining and arranging the judgement symbol variable of New Deal and old agreement;
Described control module, for according to described judgement symbol variable, controls transfer New Deal communication data or old protocol data.
7. air-conditioner controller communications protocol compatible processing system according to claim 6, it is characterized in that, described definition module comprises setting unit;
Described setting unit, equals preset value for arranging described judgement symbol variable.
8. air-conditioner controller communications protocol compatible processing system according to claim 7, it is characterized in that, described control module comprises judging unit, the first control module and the second control module;
Described judging unit, for judging whether described judgement symbol variable equals described preset value;
Described first control module, if equal described preset value for described judgement symbol variable, then New Deal communication data described in controls transfer;
Described second control module, if be not equal to described preset value for described judgement symbol variable, then old protocol data described in controls transfer;
Wherein, when described judgement symbol variable equals described preset value, corresponding described New Deal.
9. air-conditioner controller communications protocol compatible processing system according to claim 8, it is characterized in that, described control module also comprises the 3rd control module;
Described 3rd control module, for the value negate by described judgement symbol variable, and control described judging unit continue judge whether described judgement symbol variable equals described preset value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410421583.5A CN105446924A (en) | 2014-08-25 | 2014-08-25 | Compatible processing method and system for communication protocol of air conditioner controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410421583.5A CN105446924A (en) | 2014-08-25 | 2014-08-25 | Compatible processing method and system for communication protocol of air conditioner controller |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105446924A true CN105446924A (en) | 2016-03-30 |
Family
ID=55557145
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410421583.5A Pending CN105446924A (en) | 2014-08-25 | 2014-08-25 | Compatible processing method and system for communication protocol of air conditioner controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105446924A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109714334A (en) * | 2018-12-26 | 2019-05-03 | 珠海格力电器股份有限公司 | Method, device, processor, circuit and storage medium for transmitting air conditioner data |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020033760A1 (en) * | 2000-09-18 | 2002-03-21 | Shinji Kobayashi | Portable information divice, access device for portable information device, home network system, and home network access method |
CN1361391A (en) * | 2000-12-28 | 2002-07-31 | 广东科龙电器股份有限公司 | Network air conditioner and its intelligent control method |
CN101223515A (en) * | 2004-10-27 | 2008-07-16 | 休珀纳有限公司 | Networked device control architecture |
CN101599854A (en) * | 2008-06-06 | 2009-12-09 | 中国移动通信集团公司 | Component-based protocol stack reconfiguration method, device and system |
CN103179027A (en) * | 2011-12-22 | 2013-06-26 | 中兴通讯股份有限公司 | Method and system for realizing compatibility of electrical appliance, and universal peripheral access gateway |
CN103338189A (en) * | 2013-06-08 | 2013-10-02 | 临沂市拓普网络股份有限公司 | Data sharing control device, system and method with various types of communication protocol interfaces |
CN103954011A (en) * | 2014-05-07 | 2014-07-30 | 珠海格力电器股份有限公司 | Indoor unit and outdoor unit matching method and device of air conditioning unit and air conditioning unit |
CN104202222A (en) * | 2014-08-20 | 2014-12-10 | 惠州Tcl移动通信有限公司 | Smart home controller and communication method thereof |
-
2014
- 2014-08-25 CN CN201410421583.5A patent/CN105446924A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020033760A1 (en) * | 2000-09-18 | 2002-03-21 | Shinji Kobayashi | Portable information divice, access device for portable information device, home network system, and home network access method |
CN1361391A (en) * | 2000-12-28 | 2002-07-31 | 广东科龙电器股份有限公司 | Network air conditioner and its intelligent control method |
CN101223515A (en) * | 2004-10-27 | 2008-07-16 | 休珀纳有限公司 | Networked device control architecture |
CN101599854A (en) * | 2008-06-06 | 2009-12-09 | 中国移动通信集团公司 | Component-based protocol stack reconfiguration method, device and system |
CN103179027A (en) * | 2011-12-22 | 2013-06-26 | 中兴通讯股份有限公司 | Method and system for realizing compatibility of electrical appliance, and universal peripheral access gateway |
CN103338189A (en) * | 2013-06-08 | 2013-10-02 | 临沂市拓普网络股份有限公司 | Data sharing control device, system and method with various types of communication protocol interfaces |
CN103954011A (en) * | 2014-05-07 | 2014-07-30 | 珠海格力电器股份有限公司 | Indoor unit and outdoor unit matching method and device of air conditioning unit and air conditioning unit |
CN104202222A (en) * | 2014-08-20 | 2014-12-10 | 惠州Tcl移动通信有限公司 | Smart home controller and communication method thereof |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109714334A (en) * | 2018-12-26 | 2019-05-03 | 珠海格力电器股份有限公司 | Method, device, processor, circuit and storage medium for transmitting air conditioner data |
CN109714334B (en) * | 2018-12-26 | 2020-11-24 | 珠海格力电器股份有限公司 | Method, device, processor, circuit and storage medium for transmitting air conditioner data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3185482A1 (en) | Intelligent home controller and communication method thereof | |
US10715602B2 (en) | Adaptive internet-of-things service system using detachable/attachable hardware module | |
CN203366312U (en) | Household appliance upgrading system and household appliance | |
CN109313560B (en) | System with protocol independent configuration environment | |
CN104270460A (en) | Method and system for downloading control software of wireless terminal | |
CN105785905A (en) | Configurable field bus system and configuration method thereof | |
TWI482461B (en) | Device management system and method | |
CN104506448B (en) | A kind of intelligent router that Internet of Things is adaptive | |
CN105577717A (en) | Control method and system compatible with connection of multiple different electrical appliances | |
CN111190621A (en) | Firmware burning method, device, system, terminal device and storage medium | |
CN110071914B (en) | Communication method, frame structure construction method, device, MCU, system and medium | |
CN106331284A (en) | Communication system based on WIFI Internet of things technology | |
CN104790128A (en) | Sewing-device upgrading device | |
CN204644604U (en) | A kind of sewing device update device | |
CN105446924A (en) | Compatible processing method and system for communication protocol of air conditioner controller | |
CN105701052A (en) | Communication device and communication method used for serial port communication | |
CN105242938B (en) | automatic program downloading system and method | |
CN105373422A (en) | Method for controlling terminal device to enter downloading mode, terminal device and computer device | |
CN104777786B (en) | Hot plug recognition methods and system | |
CN106997179A (en) | The method and intelligence control system of intelligent control platform management equipment | |
CN205490628U (en) | Plc gateway device | |
CN103873284A (en) | Equipment management system and method | |
KR101470168B1 (en) | Reprogramming method for cpu of controller | |
CN109495119B (en) | Radio frequency switch control method, device, mobile terminal and storage medium | |
CN114095303A (en) | Communication device, data transmission method and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160330 |
|
RJ01 | Rejection of invention patent application after publication |