CN105142235B - Communication method and device of air conditioning unit - Google Patents
Communication method and device of air conditioning unit Download PDFInfo
- Publication number
- CN105142235B CN105142235B CN201510497199.8A CN201510497199A CN105142235B CN 105142235 B CN105142235 B CN 105142235B CN 201510497199 A CN201510497199 A CN 201510497199A CN 105142235 B CN105142235 B CN 105142235B
- Authority
- CN
- China
- Prior art keywords
- server
- air conditioner
- connection
- module
- request
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 106
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000004378 air conditioning Methods 0.000 title claims abstract description 10
- 230000000977 initiatory effect Effects 0.000 claims abstract description 13
- 238000001514 detection method Methods 0.000 claims description 67
- 239000002699 waste material Substances 0.000 abstract description 11
- 230000006870 function Effects 0.000 description 7
- 230000002159 abnormal effect Effects 0.000 description 5
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- FGUUSXIOTUKUDN-IBGZPJMESA-N C1(=CC=CC=C1)N1C2=C(NC([C@H](C1)NC=1OC(=NN=1)C1=CC=CC=C1)=O)C=CC=C2 Chemical compound C1(=CC=CC=C1)N1C2=C(NC([C@H](C1)NC=1OC(=NN=1)C1=CC=CC=C1)=O)C=CC=C2 FGUUSXIOTUKUDN-IBGZPJMESA-N 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 230000002950 deficient Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000003745 diagnosis Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000010977 unit operation Methods 0.000 description 1
Landscapes
- Air Conditioning Control Device (AREA)
Abstract
The invention discloses a communication method and device of an air conditioning unit. Wherein, the method comprises the following steps: detecting a connection state between the air conditioner and the server, wherein the connection state comprises smooth communication or interrupted communication; when the connection state is communication interruption, the air conditioner initiates a connection reestablishment request for i times to the server, wherein i is less than or equal to N, and N is a natural number; after initiating the ith connection reestablishment request to the server, re-detecting whether the connection between the air conditioner and the server is reestablished; when the connection state is still communication interruption, pausing to initiate a connection reestablishment request to the server; and when the connection state is smooth communication, controlling the air conditioner to send air conditioner operation data to the server. The invention solves the technical problems of flow waste of the wireless communication module and overlarge pressure of the server caused by that the wireless communication module is continuously reconnected with the server for a long time after the communication between the wireless communication module of the air conditioning unit and the server is interrupted.
Description
Technical field
The present invention relates to air-conditioner fields, in particular to the means of communication and device of a kind of air-conditioner set.
Background technique
When GPRS module shipment and after install normal work, it will keep in communication with server, information is sent in real time
Server.When there are the abnormal conditions such as server exception or network congestion, GPRS module and server-link will be interrupted, and lead
The data for causing GPRS module to receive are not transferred to server.And after restoring connection, data during disconnecting without
Method is resent to server.
Currently, in the case where GPRS module and server disconnecting, if GPRS module is provided with reconnection mechanism,
GPRS module will uninterruptedly connect server, until reconnecting with server.Server is uninterruptedly connected in GPRS module
During, it will lead to a large amount of consumption of flow.In addition, if GPRS module amount controller is too many, when server has been repaired
Cheng Hou, a large amount of GPRS modules will connect server simultaneously, cause server stress excessive, and performance will be affected.
After above-mentioned air-conditioner set wireless communication module and server communicating interrupt, wireless communication module is interior for a long time not
The excessive problem of the pressure of the disconnected flow waste and server for reconnecting wireless communication module caused by server, at present still
It does not put forward effective solutions.
Summary of the invention
The embodiment of the invention provides a kind of means of communication of air-conditioner set and devices, wireless at least to solve air-conditioner set
After communication module and server communicating interrupt, channel radio caused by server is constantly reconnected in wireless communication module long-time
The excessive technical problem of the pressure of the flow waste and server of interrogating module.
According to an aspect of an embodiment of the present invention, a kind of means of communication of air-conditioner set are provided, comprising: detection air-conditioning
Connection status between device and server, wherein connection status includes communicating unimpeded or communicating interrupt;When connection status is communication
When interruption, air conditioner initiates i reconstruction connection request to server, wherein i is less than or equal to N, and N is natural number;To server
Initiate after i-th rebuilds connection request, whether the connection detected between air conditioner and server again rebuilds, when connection status still
When for communicating interrupt, pause initiates server to rebuild connection request;When connection status be communicate it is unimpeded when, control air conditioner to
Server sends operation of air conditioner data.
Further, after pause is initiated to the reconstruction connection request of server, method further include: pre- in delay first
If after the period, air conditioner initiates to rebuild connection request again to server.
Further, after postponing the first preset time period, air conditioner initiates to rebuild connection request again to server
The step of include: the random times in detection cycle, air conditioner initiates j reconstruction connection request to server, wherein detects
Period is the time cycle after postponing the first preset time period, and j is less than or equal to M, and M is natural number.
Further, the random times in detection cycle, air conditioner to server initiate j reconstruction connection request it
Afterwards, method further include: whether the connection detected between air conditioner and server again rebuilds, when connection status is still communicating interrupt
When, in next detection cycle, air conditioner initiates j reconstruction connection request to server, until air conditioner is thought highly of with service
Build up function.
Further, after the connection status between detection air conditioner and server, method further include: work as connection status
When for communicating interrupt, air conditioner is by the operation of air conditioner data buffer storage generated to cache unit;Air conditioner and server it
Between connection reconstruction after, the operation of air conditioner data cached in cache unit are sent to server.
Further, module detects the connection status between air conditioner and server to air conditioner by wireless communication, and leads to
Wireless communication module is crossed to initiate to rebuild connection request and operation of air conditioner data.
According to another aspect of an embodiment of the present invention, a kind of communication device of air-conditioner set is additionally provided, comprising: the first inspection
Module is surveyed, for detecting the connection status between air conditioner and server, wherein connection status includes communicating in unimpeded or communication
It is disconnected;First request module, for initiating i reconstruction connection request to server, wherein i when connection status is communicating interrupt
It is natural number less than or equal to N, N;Second detection module, for being examined after initiating server i-th and rebuilding connection request again
Whether the connection surveyed between air conditioner and server rebuilds, and when connection status is still communicating interrupt, server is initiated in pause
Rebuild connection request;First control module, for when connection status is to communicate unimpeded, control air conditioner to send empty to server
Adjust operation data.
Further, device further includes third request module, is used for the air conditioner after postponing the first preset time period
Again it initiates to rebuild connection request to server.
Further, third request module includes: the first request submodule, for the random times in detection cycle,
Air conditioner to server initiate j reconstruction connection request, wherein detection cycle for postpone after the first preset time period when
Between the period, j be less than or equal to M, M is natural number.
Further, third request module further include: detection sub-module, for detecting between air conditioner and server again
Connection whether rebuild, when connection status is still communicating interrupt, in next detection cycle, air conditioner to server initiate
J reconstruction connection request, until air conditioner and server are rebuild successfully.
Further, device further include: cache module, for when connection status is communicating interrupt, air conditioner will
The operation of air conditioner data buffer storage of generation is to cache unit;Sending module, for the connection reconstruction between air conditioner and server
Later, the operation of air conditioner data cached in cache unit are sent to server.
Further, module detects the connection status between air conditioner and server to device by wireless communication, and passes through
Wireless communication module initiates to rebuild connection request and operation of air conditioner data.
In embodiments of the present invention, using the connection status between detection air conditioner and server, wherein connection status packet
It includes and communicates unimpeded or communicating interrupt;When connection status is communicating interrupt, air conditioner, which initiates i reconstruction connection to server, is asked
It asks, wherein i is less than or equal to N, and N is natural number;After initiating server i-th and rebuilding connection request, air conditioner is detected again
Whether the connection between server rebuilds, and when connection status is still communicating interrupt, pause initiates server to rebuild connection
Request;When connection status is to communicate unimpeded, control air conditioner sends the mode of operation of air conditioner data to server, solves sky
After adjusting unit wireless communication module and server communicating interrupt, server is constantly reconnected in wireless communication module long-time and is made
At wireless communication module flow waste and server the excessive technical problem of pressure.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the means of communication of optional air-conditioner set according to an embodiment of the present invention;
Fig. 2 is a kind of network topological diagram of optional air-conditioner set system according to an embodiment of the present invention;
Fig. 3 is the flow chart of the means of communication of another optional air-conditioner set according to an embodiment of the present invention;
Fig. 4 is the flow chart of the means of communication of another optional air-conditioner set according to an embodiment of the present invention;And
Fig. 5 is a kind of structural schematic diagram of the communication device of optional air-conditioner set according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Embodiment one
According to embodiments of the present invention, a kind of embodiment of the method for the means of communication of air-conditioner set is provided, needs to illustrate
It is that step shown in the flowchart of the accompanying drawings can execute in a computer system such as a set of computer executable instructions,
Also, although logical order is shown in flow charts, and it in some cases, can be to be different from sequence execution herein
Shown or described step.
Fig. 1 is a kind of flow chart of the means of communication of optional air-conditioner set according to an embodiment of the present invention, such as Fig. 1 institute
Show, this method comprises the following steps:
Step S102 detects the connection status between air conditioner and server, wherein connection status include communicate it is unimpeded or
Communicating interrupt.
In above-mentioned steps S102, air conditioner detects the connection status between air conditioner and server.Connection status can be with
Including communicating unimpeded and communicating interrupt, wherein the reason of causing communicating interrupt can be any one in following three kinds or more
Kind: network congestion or network interruption between communicating interrupt caused by air conditioner abnormal power-down, air conditioner and server and
Server occurs abnormal.
It should be noted that air conditioner may include wireless communication module, air conditioner can be examined by wireless communication module
The connection surveyed between server fills state.
Step S104, when connection status is communicating interrupt, air conditioner initiates i reconstruction connection request to server,
In, i is less than or equal to N, and N is natural number.
In above-mentioned steps S104, between air conditioner and server when communicating interrupt, it will be sent out to server in air conditioner
Act the request for rebuilding connection, wherein the number i for rebuilding connection request can be preset, rebuild the number i of connection request
Less than or equal to preset natural number N, for example, N=5, i=3.
It should be noted that air conditioner may include wireless communication module, when wireless communication module is provided with reconnection function,
Air conditioner module can initiate to rebuild connection request to server by wireless communication.
Step S106 is detected between air conditioner and server again after initiating server i-th and rebuilding connection request
Connection whether rebuild.
Step S108, when connection status is still communicating interrupt, pause initiates server to rebuild connection request.
In above-mentioned steps S106 into step S108, after the request that air conditioner initiates i-th reconstruction connection, air-conditioning is thought highly of
Connection status between new detection air conditioner and server.In the case where communicating interrupt, it can suspend and weight is initiated to server
Key connection request.
It should be noted that air conditioner may include wireless communication module, air conditioner can module weight by wireless communication
Connection status between new detection air conditioner and server.
It should also be noted that, the application is by after initiating i-th and rebuilding the request of connection, air conditioner and server it
Between connection status when being still communicating interrupt, can be to avoid air conditioner in communicating interrupt by the method for pause connection server
Afterwards, air conditioner for a long time reconnect server incessantly, caused by air conditioner flow waste the problem of.Further,
When server is connect with multiple air conditioners, exist in synchronization, the case where multiple air conditioners connect server simultaneously, passes through
Above-mentioned steps air conditioner suspends the connection to server, can solve and reconnects server incessantly for a long time by air conditioner
Caused by server connection pressure increase the problem of.
Step S110, when connection status is to communicate unimpeded, control air conditioner sends operation of air conditioner data to server.
In above-mentioned steps S110, after the connection status that air conditioner detects between air conditioner and server, if connection
It rebuilds successfully, i.e., connection status is when communicating unimpeded, to restore normal communication between air conditioner and server.
It should be noted that operation of air conditioner data herein can be in air-conditioner set operation, air-conditioner set is detected
Fault data when failure, the fault data may include the title of defective device, the type of failure, failure occur when
Between etc. data.
S102 to step S110 through the above steps detects the connection status between air conditioner and server, wherein connection
State includes communicating unimpeded or communicating interrupt;When connection status is communicating interrupt, air conditioner is initiated i reconstruction to server and is connected
Connect request, wherein i is less than or equal to N, and N is natural number;After initiating server i-th and rebuilding connection request, detection is empty again
Adjust whether the connection between device and server rebuilds, when connection status is still communicating interrupt, pause is initiated to rebuild to server
Connection request;When connection status is to communicate unimpeded, control air conditioner sends operation of air conditioner data to server, solves air-conditioning
After unit wireless communication module and server communicating interrupt, server is constantly reconnected in wireless communication module long-time and is caused
Wireless communication module flow waste and server the excessive technical problem of pressure.
Optionally, in step S108, after pause is initiated to the reconstruction connection request of server, this method can also be wrapped
It includes:
Step S109, after postponing the first preset time period, air conditioner initiates to rebuild connection request again to server.
Specifically, it after air conditioner initiates i reconstruction connection request to server, rebuilds in no successful situation, it is empty
Device pause is adjusted to initiate the reconstruction connection request to server.First preset time period can be it is preset, such as: 10 is small
When.
Optionally, step S109, after postponing the first preset time period, air conditioner initiates the company of reconstruction to server again
Connecing request may include:
Step S1091, the random times in detection cycle, air conditioner initiate j reconstruction connection request to server,
In, detection cycle is the time cycle after postponing the first preset time period, and j is less than or equal to M, and M is natural number.
In above-mentioned steps S1091, detection cycle can be the preset time cycle, such as: detection cycle can be with
It is 0 point to 24 points of second day after communicating interrupt.Air conditioner can be after communicating interrupt when 0 point to 24 points of second day any
Between to server initiate rebuild connection request.Further, daily 0 point to 8 points is that server workload is smaller, operating pressure
Air conditioner can be rebuild connection request in 0 point to 24 of second day after detection cycle is communicating interrupt by the lower period
At the time of be arranged in after communicating interrupt in second day 0 point to 8 points of period.Wherein, the number j for rebuilding connection request is less than
Equal to preset natural number M, for example, M=5, j=4.
It should be noted that the number i of above-mentioned reconstruction connection request and rebuild connection request number j can be it is identical
Number is also possible to different numbers.
It should be noted that through the above steps in S1091, by air conditioner detection cycle random times to server
It initiates to reconnect request, avoid in synchronization, a large amount of air conditioner initiates to reconnect request to server, caused by
The excessive problem of server stress.
Optionally, in step S1091, random times in detection cycle, air conditioner initiates j reconstruction company to server
After connecing request, this method can also include:
Step S1093, whether the connection detected between air conditioner and server again rebuilds, when connection status is still communication
When interruption, in next detection cycle, air conditioner initiates j reconstruction connection request to server, until air conditioner and service
Think highly of and builds up function.
In above-mentioned steps S1093, after air conditioner initiates j reconstruction connection request to server, air conditioner can be with
Again connection status is detected, in no rebuild successfully, in next detection cycle, initiates to rebuild connection request again.
It, can be with it should be noted that in the case that air conditioner and server are not rebuild successfully in first detection cycle
It is rebuild again in next detection cycle.It avoids and constantly initiates to rebuild connection request within the current detection period in air conditioner,
Caused by the waste of air conditioner flow and the big problem of server stress.
Optionally, in step S102, after detecting the connection status between air conditioner and server, this method can also be wrapped
It includes:
Step S1031, when connection status be communicating interrupt when, air conditioner by the operation of air conditioner data buffer storage generated extremely
Cache unit.
In above-mentioned steps S1031, when air conditioner detects that connection status is communicating interrupt, when can be by communicating interrupt
Between operation of air conditioner data in section cached.Wherein cache unit can be the FLASH in air conditioner in wireless communication module
Chip.
After the connection reconstruction between air conditioner and server, the air-conditioning cached in cache unit is transported by step S1033
Row data are sent to server.
In above-mentioned steps S1033, after air conditioner and server re-establish connection, wireless communication module can will lead to
Operation of air conditioner data in news break period section are retransmitted to server, to ensure the integrality of operation of air conditioner data, so as to
Server is more accurately analyzed and diagnosed.
It should be noted that the application S1031 to S1033 through the above steps, solves in the prior art in air conditioner
Between server when communicating interrupt, when rebuilding the connection relationship with server, the data during communicating interrupt can not be sent out
Send to server, caused by data loss problem.
Optionally, module detects the connection status between air conditioner and server to air conditioner by wireless communication, and passes through
Wireless communication module, which is sent, rebuilds connection request and operation of air conditioner data.
Specifically, air conditioner may include wireless communication module, and wireless communication module can connect with outdoor unit of the air conditioner
It connects.Wireless communication module can be GPRS module.Air conditioner is by wireless communication between module detection air conditioner and server
Connection status, and sent to server and rebuild connection request and operation of air conditioner data.
In conjunction with a kind of optional application scenarios, as shown in Fig. 2, air-conditioning system air-cooled ducted air conditioner is connected by system bus and outdoor unit
It connects, wireless communication module is connect with the server being located on internet.Fig. 3 is that according to an embodiment of the present invention another is optional
The flow chart of the means of communication of air-conditioner set, as shown in figure 3, a kind of optional embodiment of the application may include walking as follows
It is rapid:
Step a, wireless communication module detect communicating interrupt between air conditioner and server, it should be noted that this Shen
Please in wireless communication module can be GPRS module.
Step b, wireless communication module initiate 5 reconstruction connection requests to server.
Step c, wireless communication module judge whether reconnected between air conditioner and server.When air conditioner and service
When reconnecting successfully between device, step f is executed, when reconnecting failure between air conditioner and server, executes step d.
Step d, wireless communication module pause are initiated to rebuild connection request.
Step e, random times of the wireless communication module between 0 point to 8 points of second day re-initiate 5 reconstructions connection
Request.
Step f, wireless communication module send operation of air conditioner data to server.
From the foregoing, it will be observed that through wireless communication module after communicating interrupt, being initiated in advance under the above-mentioned implement scene of the application
If after the reconstruction connection request of number, pause is initiated to rebuild the mode of connection request, avoids wireless communication module and taste for a long time
A large amount of flow waste caused by examination connection server, and solve multiple wireless communication modules and initiate to rebuild connection at the same time
Request, caused by the excessive problem of server stress.
In conjunction with another optional application scenarios, Fig. 4 is the optional air-conditioner set of another kind according to an embodiment of the present invention
The means of communication flow chart, as shown in figure 4, a kind of optional embodiment of the application may include steps of:
Step A, GPRS module detect communicating interrupt between air conditioner and server.
Operation of air conditioner data are stored in FLASH chip by step B, GPRS module detection, wherein are arranged in GPRS module
There is FLASH chip.
Step C, GPRS module judge connection whether is re-established between air conditioner and server.When air conditioner and server
Between when reconnecting successfully, execute step D, when reconnecting failure between air conditioner and server, execute step B.
The operation of air conditioner data stored in FLASH are sent to server by step D, GPRS module.
It should be noted that the GPRS module under above-mentioned application scenarios can be the wireless communication module in the present embodiment.
From the foregoing, it will be observed that detecting that air conditioner and server communicate by GPRS module under the above-mentioned implement scene of the application
After interruption, the operation data of air conditioner is stored in FLASH chip, after being reconnected successfully between air conditioner and server,
The operation of air conditioner data stored in FLASH are sent to the mode of server, are solved by air conditioner and server communicating interrupt
Caused by loss of data the problem of.
Embodiment two
According to embodiments of the present invention, a kind of embodiment of the communication device of air-conditioner set is additionally provided, it should be noted that
The communication device of the air-conditioner set can be used to implement the means of communication of the air-conditioner set of the embodiment of the present invention, the embodiment of the present invention
The means of communication of air-conditioner set can also be executed by the communication device of the air-conditioner set, in embodiment of the present invention method
Carried out repeating no more for explanation.
Fig. 5 is a kind of structural schematic diagram of the communication device of optional air-conditioner set according to an embodiment of the present invention.Such as Fig. 5
Described, which includes:
First detection module 40, for detecting the connection status between air conditioner and server, wherein connection status includes
Communicate unimpeded or communicating interrupt.
Specifically, first detection module 40 detects the connection status between air conditioner and server.Connection status can wrap
It includes and communicates unimpeded and communicating interrupt, wherein the reason of causing communicating interrupt can be any one in following three kinds or a variety of:
Network congestion or network interruption and service between communicating interrupt caused by air conditioner abnormal power-down, air conditioner and server
Device occurs abnormal.
It should be noted that first detection module 40 may include wireless communication module, first detection module 40 can lead to
Cross the connection dress state between wireless communication module detection air conditioner and server.
First request module 42, for initiating i reconstruction connection to server and asking when connection status is communicating interrupt
It asks, wherein i is less than or equal to N, and N is natural number.
Specifically, it between air conditioner and server when communicating interrupt, will be initiated to server in the first request module 42
Rebuild the request of connection, wherein the number i for rebuilding connection request can be preset, and the number i for rebuilding connection request is small
In being equal to preset natural number N, for example, N=5, i=3.
It should be noted that the first request module 42 may include wireless communication module, wireless communication module is provided with weight
Even when function, the first request module 42 module can be initiated to rebuild connection request to server by wireless communication.
Second detection module 44, for server initiate i-th rebuild connection request after, again detect air conditioner with
Whether the connection between server rebuilds.
Second request module 46, for when connection status is still communicating interrupt, pause to initiate server to rebuild connection
Request.
Specifically, after the request that the first request module 42 initiates i-th reconstruction connection, the second detection module 44 is examined again
Survey the connection status between air conditioner and server.In the case where communicating interrupt, the second request module 46 can be suspended to clothes
Business device initiates Multiple Bonds connection request.
It should be noted that the second detection module 44 may include wireless communication module, the second detection module 44 can lead to
It crosses wireless communication module and detects connection status between air conditioner and server again.
It should also be noted that, the application is by after initiating i-th and rebuilding the request of connection, air conditioner and server it
Between connection status when being still communicating interrupt, can be to avoid air conditioner in communicating interrupt by the method for pause connection server
Afterwards, air conditioner for a long time reconnect server incessantly, caused by air conditioner flow waste the problem of.Further,
When server is connect with multiple air conditioners, exist in synchronization, the case where multiple air conditioners connect server simultaneously, passes through
Above-mentioned steps air conditioner suspends the connection to server, can solve and reconnects server incessantly for a long time by air conditioner
Caused by server connection pressure increase the problem of.
It should also be noted that, above-mentioned first detection module 40 and the second detection module 44 can be identical detection mould
Block.Above-mentioned first request module 42 and the second request module 46 can be identical request module.
Control module 48, for when connection status is to communicate unimpeded, control air conditioner to send operation of air conditioner to server
Data.
Specifically, after the connection status that the second detection module 44 detects between air conditioner and server, if connection weight
Function is built up, i.e. connection status is when communicating unimpeded, to restore normal communication between air conditioner and server.
It should be noted that operation of air conditioner data herein can be in air-conditioner set operation, air-conditioner set is detected
Fault data when failure, the fault data may include the title of defective device, the type of failure, failure occur when
Between etc. data.
By above-mentioned first detection module 40, for detecting the connection status between air conditioner and server, wherein connection
State includes communicating unimpeded or communicating interrupt;First request module 42, for when connection status be communicating interrupt when, air conditioner to
Server initiates i reconstruction connection request, wherein i is less than or equal to N, and N is natural number;Second detection module 44, for clothes
After device initiation i-th of being engaged in rebuilds connection request, whether the connection detected between air conditioner and server again is rebuild, the second request
Module 46, for when connection status is still communicating interrupt, pause to initiate server to rebuild connection request;Control module 48,
For when connection status is to communicate unimpeded, control air conditioner to send operation of air conditioner data to server, solves air-conditioner set
After wireless communication module and server communicating interrupt, nothing caused by server is constantly reconnected in wireless communication module long-time
The technical problem that the flow of line communication module wastes and the pressure of server is excessive.
Optionally, which can also include:
Third request module, for after postponing the first preset time period, air conditioner to initiate to rebuild to server again
Connection request.
Specifically, after the first request module 42 initiates i reconstruction connection request to server, no successful feelings are rebuild
Under condition, the reconstruction connection request to server is initiated in air conditioner pause.First preset time period can be preset, example
Such as: 10 hours.
Optionally, third request module may include:
First request submodule, for the random times in detection cycle, air conditioner is initiated j reconstruction to server and is connected
Connect request, wherein detection cycle is the time cycle after postponing the first preset time period, and j is less than or equal to M, and M is nature
Number.
Specifically, detection cycle can be the preset time cycle, such as: after detection cycle can be communicating interrupt
0 point to 24 points of second day.First request submodule can after communicating interrupt second day 0 point to 24 points of any time to
Server initiates to rebuild connection request.Further, daily 0 point to 8 points is that server workload is smaller, and operating pressure is lower
Period the first request submodule can be rebuild into connection in 0 point to 24 of second day after detection cycle is communicating interrupt
It is arranged in after communicating interrupt at the time of request in second day 0 point to 8 points of period.Wherein, the number j of connection request is rebuild
Less than or equal to preset natural number M, for example, M=5, j=4.
It should be noted that initiating to reconnect request to server in the random times of detection cycle by air conditioner, keep away
Exempted from synchronization, a large amount of air conditioner initiates to reconnect request to server, caused by server stress is excessive asks
Topic.
Optionally, third request module can also include:
Detection sub-module, for detecting whether the connection between air conditioner and server rebuilds again.
4th request module, for when connection status is still communicating interrupt, in next detection cycle, air conditioner to
Server initiates j reconstruction connection request, until air conditioner and server are rebuild successfully.
It specifically, can the company of detection again after the first request submodule initiates j reconstruction connection request to server
State is connect, in no rebuild successfully, in next detection cycle, initiates to rebuild connection request again.
It, can be with it should be noted that in the case that air conditioner and server are not rebuild successfully in first detection cycle
It is rebuild again in next detection cycle.It avoids and constantly initiates to rebuild connection request within the current detection period in air conditioner,
Caused by the waste of air conditioner flow and the big problem of server stress.
It should be noted that the first request module, the second request module, third request module in the embodiment of the present application with
And the 4th request module can be identical request module.
Optionally, which can also include:
Cache module, for when connection status is communicating interrupt, air conditioner to delay the operation of air conditioner data generated
It deposits to cache module.
It specifically, can be by the operation of air conditioner in the communicating interrupt period when detecting connection status is communicating interrupt
Data are cached.Wherein cache module can be with the FLASH chip in the wireless communication module of air conditioner.
Sending module, after the connection reconstruction between air conditioner and server, the sky that will be cached in cache unit
Operation data is adjusted to be sent to server.
Specifically, after air conditioner and server re-establish connection, wireless communication module can be by the communicating interrupt time
Operation of air conditioner data in section are retransmitted to server, to ensure the integrality of operation of air conditioner data, so as to server progress
More accurately analysis and diagnosis.
It should be noted that the function that the application is executed by cache module and sending module, solves the prior art
In between air conditioner and server when communicating interrupt, when rebuilding the connection relationship with server, during communicating interrupt
Data can not be sent to server, caused by data loss problem.
Optionally, module detects the connection status between air conditioner and server to the device by wireless communication, and passes through
Wireless communication module initiates to rebuild connection request and operation of air conditioner data.
Specifically, air conditioner may include wireless communication module, and wireless communication module can connect with outdoor unit of the air conditioner
It connects.Wireless communication module can be GPRS module.Module it can detect the company between air conditioner and server by wireless communication
State is connect, and is sent to server and rebuilds connection request and operation of air conditioner data.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (6)
1. a kind of means of communication of air-conditioner set characterized by comprising
Detect the connection status between air conditioner and server, wherein the connection status includes communicating unimpeded or communicating interrupt;
When the connection status is the communicating interrupt, the air conditioner initiates i reconstruction connection request to the server,
Wherein, i is less than or equal to N, and N is natural number;
After initiating the server i-th and rebuilding connection request, detected between the air conditioner and the server again
Connection whether rebuild;
When the connection status is still the communicating interrupt, pause initiates the server to rebuild connection request;
When the connection status is that the communication is unimpeded, the air conditioner is controlled to the server and sends operation of air conditioner number
According to;
After connection status between detection air conditioner and server, the method also includes: when the connection status is institute
When stating communicating interrupt, the air conditioner is by the operation of air conditioner data buffer storage generated to cache unit;In the air-conditioning
After connection reconstruction between device and the server, the operation of air conditioner data cached in the cache unit are sent to
The server;
Wherein, after pause is initiated to the reconstruction connection request of the server, the method also includes: it is pre- in delay first
If after the period, the air conditioner initiates the reconstruction connection request to the server again;
After postponing first preset time period, the air conditioner, which initiates the reconstruction connection to the server again, is asked
The step of asking include:
Random times in detection cycle, the air conditioner initiate the j reconstruction connection request to the server,
In, the detection cycle is the time cycle after postponing the first preset time period, and j is less than or equal to M, and M is natural number.
2. the method according to claim 1, wherein the random times in detection cycle, the air conditioner pair
After the server initiates the j reconstruction connection request, the method also includes:
Again detect whether the connection between the air conditioner and the server rebuilds;
When the connection status is still the communicating interrupt, in next detection cycle, the air conditioner is to the service
Device initiates the j reconstruction connection request, until the air conditioner and the server are rebuild successfully.
3. the method according to claim 1, wherein module detects the sky to the air conditioner by wireless communication
The connection status between device and the server is adjusted, and the reconstruction connection request and institute are sent by the wireless communication module
State operation of air conditioner data.
4. a kind of communication device of air-conditioner set characterized by comprising
First detection module, for detecting the connection status between air conditioner and server, wherein the connection status includes logical
Interrogate unimpeded or communicating interrupt;
First request module, for when the connection status is the communicating interrupt, Xiang Suoshu server to be initiated i reconstruction and connected
Connect request, wherein i is less than or equal to N, and N is natural number;
Second detection module, for detecting the air conditioner again after initiating the server i-th and rebuilding connection request
Whether the connection between the server rebuilds;
Second request module, for when the connection status is still the communicating interrupt, pause to initiate weight to the server
Build connection request;
Control module, for controlling the air conditioner and being sent out to the server when the connection status is that the communication is unimpeded
Send operation of air conditioner data;
Described device further include: cache module, for when the connection status is the communicating interrupt, the air conditioner will
The operation of air conditioner data buffer storage through generating is to cache unit;Sending module, in the air conditioner and the server
Between connection reconstruction after, the operation of air conditioner data cached in the cache unit are sent to the server;
Described device further includes,
Third request module, for after postponing the first preset time period, the air conditioner to be initiated to the server again
The reconstruction connection request;
The third request module includes:
First request submodule, for the random times in detection cycle, the air conditioner initiates j institute to the server
State reconstruction connection request, wherein the detection cycle is time cycle after postpone the first preset time period, j less than etc.
In M, M be natural number.
5. device according to claim 4, which is characterized in that the third request module further include:
Whether detection sub-module, the connection for being detected between the air conditioner and the server again rebuild;
4th request module, it is described in next detection cycle for when the connection status is still the communicating interrupt
Air conditioner initiates the j reconstruction connection request to the server, until the air conditioner and the server are rebuild successfully.
6. device according to claim 4, which is characterized in that module detects the air-conditioning to described device by wireless communication
Connection status between device and the server, and the reconstruction connection request and described is initiated by the wireless communication module
Operation of air conditioner data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510497199.8A CN105142235B (en) | 2015-08-13 | 2015-08-13 | Communication method and device of air conditioning unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510497199.8A CN105142235B (en) | 2015-08-13 | 2015-08-13 | Communication method and device of air conditioning unit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105142235A CN105142235A (en) | 2015-12-09 |
CN105142235B true CN105142235B (en) | 2019-02-26 |
Family
ID=54727401
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510497199.8A Active CN105142235B (en) | 2015-08-13 | 2015-08-13 | Communication method and device of air conditioning unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105142235B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106254427A (en) * | 2016-07-22 | 2016-12-21 | 广东美的暖通设备有限公司 | The air conditioning unit means of communication and device |
CN108259536B (en) * | 2016-12-29 | 2021-09-14 | 佛山市顺德区美的电热电器制造有限公司 | Control method, device and system |
CN106817729B (en) * | 2017-01-22 | 2020-03-06 | 广东美的暖通设备有限公司 | Communication control method and device of air conditioner |
CN110220273A (en) * | 2019-04-26 | 2019-09-10 | 广东建设职业技术学院 | A kind of Heating,Ventilating and Air Conditioning monitor supervision platform and its control method based on Internet of Things |
CN111397174A (en) * | 2020-03-27 | 2020-07-10 | 四川虹美智能科技有限公司 | Centralized management and control system and management method thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102387069A (en) * | 2011-10-08 | 2012-03-21 | 华为技术有限公司 | Method and system for connecting clients with server and clients as well as server |
CN202581692U (en) * | 2012-05-08 | 2012-12-05 | 珠海格力电器股份有限公司 | Air conditioning system and fault processing device, processing system and data processing platform thereof |
US20130054818A1 (en) * | 2011-08-31 | 2013-02-28 | Seiko Epson Corporation | Processing terminal and processing method |
-
2015
- 2015-08-13 CN CN201510497199.8A patent/CN105142235B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130054818A1 (en) * | 2011-08-31 | 2013-02-28 | Seiko Epson Corporation | Processing terminal and processing method |
CN102387069A (en) * | 2011-10-08 | 2012-03-21 | 华为技术有限公司 | Method and system for connecting clients with server and clients as well as server |
CN202581692U (en) * | 2012-05-08 | 2012-12-05 | 珠海格力电器股份有限公司 | Air conditioning system and fault processing device, processing system and data processing platform thereof |
Also Published As
Publication number | Publication date |
---|---|
CN105142235A (en) | 2015-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105142235B (en) | Communication method and device of air conditioning unit | |
CN104750596B (en) | A kind of alarm information processing method and service subsystem | |
CN101953139B (en) | DHCP in response to Internet connectedness initializes | |
CN105897827A (en) | Server node, local area network server cluster and realizing method thereof | |
CN103259699B (en) | Method of testing, system and client and service end | |
CN105202704B (en) | Air conditioner fault information display method and device | |
CN109245926A (en) | Intelligent network adapter, intelligent network adapter system and control method | |
CN111142801B (en) | Distributed storage system network sub-health detection method and device | |
CN106101264A (en) | Content distributing network daily record method for pushing, device and system | |
CN110457176A (en) | For the monitoring method of distributed system, device, storage medium and electronic equipment | |
CN108616914A (en) | A kind of method and device of disconnection reconnecting | |
CN107992386A (en) | A kind of router memory method for testing pressure and system | |
CN105677451A (en) | Load balancing method and equipment used for multiple processes | |
CN114675983A (en) | Business data processing method and device, storage medium and electronic equipment | |
CN107104822B (en) | Server disaster recovery processing method and device, storage medium and electronic equipment | |
KR101571374B1 (en) | Information management method and device | |
CN110198230B (en) | Application monitoring method and device, storage medium and electronic device | |
CN109828945A (en) | A kind of service message processing method and system | |
CN106231003B (en) | A kind of address distribution method and device | |
CN108683561A (en) | A kind of station state detection method and device | |
CN104468221B (en) | Server failure hot change-over method, device and system | |
CN109474579A (en) | A kind of method and apparatus of network reconnection | |
CN111835578A (en) | Information transmission management method, information transmission management apparatus, and readable storage medium | |
CN109995597A (en) | A kind of network equipment failure processing method and processing device | |
CN107621991A (en) | Data processing method and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |