CN111698342A - Temperature controller communication address allocation method and system - Google Patents

Temperature controller communication address allocation method and system Download PDF

Info

Publication number
CN111698342A
CN111698342A CN202010362889.3A CN202010362889A CN111698342A CN 111698342 A CN111698342 A CN 111698342A CN 202010362889 A CN202010362889 A CN 202010362889A CN 111698342 A CN111698342 A CN 111698342A
Authority
CN
China
Prior art keywords
address
temperature controller
communication
communication address
slave
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010362889.3A
Other languages
Chinese (zh)
Inventor
马盼盼
李海清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HAILIN ENERGY TECHNOLOGY Inc
Original Assignee
HAILIN ENERGY TECHNOLOGY Inc
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 HAILIN ENERGY TECHNOLOGY Inc filed Critical HAILIN ENERGY TECHNOLOGY Inc
Priority to CN202010362889.3A priority Critical patent/CN111698342A/en
Publication of CN111698342A publication Critical patent/CN111698342A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation

Abstract

The embodiment of the invention provides a method and a system for allocating communication addresses of temperature controllers, wherein the method comprises the following steps: each slave temperature controller detects whether a communication address is distributed or not; generating a delay time if the communication address is not allocated; if the communication address is not allocated after the delay time is up, sending an address allocation request to the main temperature controller; wherein, the address allocation request carries the target unique identifier of the slave temperature controller; after receiving the address allocation request, the master temperature controller generates a communication address corresponding to the target unique identifier and sends a write address message containing the communication address and the target unique identifier to the slave temperature controller; and the slave temperature controller stores the communication address after receiving the write address message. When the method provided by the embodiment of the invention is applied to the communication address allocation of the temperature controller, the communication address does not need to be written manually, and the communication address can be automatically acquired according to the address allocation request of the slave temperature controller.

Description

Temperature controller communication address allocation method and system
Technical Field
The invention relates to the technical field of equipment communication, in particular to a temperature controller communication address allocation method and system.
Background
When a temperature control system is built by using temperature controllers on the market, a master-slave system is usually built, namely one master temperature controller corresponds to a plurality of slave temperature controllers, and different slave temperature controllers are arranged in different rooms. For such a temperature control system, each slave thermostat needs to be assigned a different communication address. In the prior art, the following two approaches are generally adopted:
1. the manual writing method is to write communication addresses into slave temperature controllers used in different rooms manually by a method such as pressing keys.
The manual writing mode is very complicated in operation, and in the situation that the number of temperature controllers in the system is large, the workload of writing communication addresses into the temperature controllers is very large due to the fact that the temperature controllers are arranged in large spatial positions, and a large amount of time and labor are consumed.
In addition, the communication address is written manually, which is difficult to avoid errors, for example, when one master temperature controller corresponds to a plurality of slave temperature controllers, a plurality of slave temperature controllers share one communication address, which is not beneficial to intelligent management and control of the temperature system.
2. And (4) a broadcast addressing mode is adopted, namely the master sends addressing broadcast to the slave to complete address allocation.
In this way, the number of times that the master thermostat sends the addressing broadcast is preset, and if the set number of times is small, the problem that the slave thermostat is not assigned an address is easy to occur; if the setting times are more, the slave temperature controllers are easily assigned with addresses, but the master temperature controller continuously sends addressing broadcast, so that the master temperature controller and the slave temperature controller cannot enter a user interface in time.
Disclosure of Invention
The embodiment of the invention provides a method and a system for allocating communication addresses of temperature controllers, which are used for realizing automatic allocation of the communication addresses of the temperature controllers and improving the address allocation efficiency.
In order to achieve the above object, an embodiment of the present invention discloses a method for allocating communication addresses of temperature controllers, where the method includes:
each slave temperature controller detects whether a communication address is distributed or not;
generating a delay time if the communication address is not allocated;
if the communication address is not allocated after the delay time is up, sending an address allocation request to the main temperature controller; the address allocation request carries a target unique identifier of the slave temperature controller;
after receiving the address allocation request, the master temperature controller generates a communication address corresponding to the target unique identifier and sends a write address message containing the communication address and the target unique identifier to the slave temperature controller;
and the slave temperature controller stores the communication address after receiving the address writing message.
Preferably, the method further comprises:
and after the slave temperature controller sends an address allocation request to the master temperature controller, waiting for a first preset time, and if a communication address is not allocated yet, regenerating the delay time.
Preferably, the delay time is a random time.
Preferably, the slave thermostat storing the communication address includes:
the slave temperature controller acquires the target unique identifier from the address writing message;
judging whether the target unique identifier is the same as the own unique identifier;
and if the communication addresses are the same, storing the communication addresses, otherwise, waiting for a second preset time and regenerating the delay time.
Preferably, the generating of the communication address corresponding to the target unique identifier by the master thermostat comprises:
and the main temperature controller generates a communication address corresponding to the target unique identifier by using a random algorithm.
In order to achieve the above purpose, the embodiment of the invention discloses a temperature controller communication address allocation system, which comprises a main temperature controller and a plurality of slave temperature controllers, wherein the slave temperature controllers are respectively connected with the main temperature controller through data buses;
the slave temperature controller comprises:
the address detection unit is used for detecting whether the slave temperature controller is allocated with a communication address;
the delay unit is used for generating delay time when the slave temperature controller is not allocated with a communication address;
the address request unit is used for sending an address allocation request to the master temperature controller and receiving a write address message sent by the master temperature controller when a communication address is not allocated yet after the delay time is reached, wherein the address allocation request carries a target unique identifier of a slave temperature controller;
the storage unit is used for storing the communication address corresponding to the target unique identifier after the address request unit receives the address writing message sent by the main temperature controller;
the main temperature controller comprises:
the communication unit is used for receiving the address allocation request sent by the slave temperature controller;
the communication unit is used for receiving an address allocation request sent by a temperature controller, and then generating a communication address corresponding to a target unique identifier in the address allocation request;
the communication unit is further configured to send a write address message including the communication address and the target unique identifier to the slave thermostat.
Preferably, the delay unit is further configured to regenerate the delay time if a communication address is not yet allocated after the address request unit waits for a first preset time after sending an address allocation request to the master thermostat.
Preferably, the delay time is a random time.
Preferably, the slave thermostat further comprises:
the identification matching unit is used for acquiring the target unique identification from the write address message received by the address request unit; judging whether the target unique identifier is the same as the own unique identifier; and if the communication addresses are the same, triggering the storage unit to store the communication addresses, otherwise, triggering the delay unit to regenerate the delay time after waiting for a second preset time.
Preferably, the address generation unit generates a communication address corresponding to the target unique identifier using a random algorithm.
The embodiment of the invention provides a method and a system for allocating communication addresses of temperature controllers. Therefore, the communication address allocation scheme provided by the embodiment of the invention does not need to manually write the communication address, and the communication address can be allocated according to the address allocation request of the slave temperature controller. In addition, the slave temperature controllers with the distributed communication addresses can enter the user interface immediately, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for allocating communication addresses of temperature controllers according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for allocating communication addresses of thermostat according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for allocating communication addresses of temperature controllers according to an embodiment of the present invention;
fig. 4 is an architecture diagram of a communication address allocation system for a thermostat according to an embodiment of the present invention;
fig. 5 is a structural diagram of a slave thermostat according to an embodiment of the present invention;
fig. 6 is a structural diagram of a main temperature controller according to an embodiment of the present invention;
fig. 7 is a structural diagram of another slave thermostat according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to realize automatic allocation of communication addresses of temperature controllers and improve address allocation efficiency, the embodiment of the invention provides a method and a system for allocating communication addresses of temperature controllers.
The communication address allocation method for the temperature controllers is applied to a master-slave system built by a master temperature controller and a plurality of slave temperature controllers. Fig. 1 is a flowchart of a method for allocating communication addresses of a thermostat according to an embodiment of the present invention, illustrating an interaction process between a master thermostat and a slave thermostat, and the method according to the embodiment of the present invention is described below with reference to fig. 1. Specifically, the method comprises the following steps:
s101: each slave thermostat detects whether it has been assigned a communication address.
In a system built by a main temperature controller and a plurality of slave temperature controllers, for a newly connected slave temperature controller, whether a communication address is allocated or not is detected immediately after the power is on; in addition, considering that there is a possibility that the communication address of the slave thermostat originally in the system may be erased, it is also necessary to detect whether the communication address is still allocated to the slave thermostat that has been powered on.
S102: if no communication address is assigned, a delay time is generated.
Preferably, if the detection result is an assigned communication address, the slave thermostat may directly enter a user mode for user operation. However, if the detection result is that no communication address is allocated, the communication address needs to be acquired, but in the solution of the present invention, the slave thermostat initiates an address allocation request to the master thermostat, and in order to avoid that multiple slave thermostats in the system simultaneously send address allocation requests to the master thermostat, step S102 of the present invention staggers the time of sending requests by each slave thermostat by generating a delay time, that is, requests the communication address to the master thermostat by sending requests in a time-sharing manner.
The delay time may be a delay time of a positive timing system or a delay time of a down-timing system, and the present invention is not limited to any one of the two timing systems, regardless of whether the positive timing system or the down-timing system is used, but only to two different timing systems.
Wherein the delay time is a random time. Preferably, the generated random time may be several milliseconds to several tens or hundreds of milliseconds, which can be defined by those skilled in the art according to actual needs.
In one implementation, the random time may be generated using a random algorithm. Of course, the random time is generated by using a random algorithm as a specific mode, and the invention is not limited to the specific mode for generating the random time.
S103: no communication address is allocated after the delay time is reached.
S104: and sending an address allocation request to the main thermostat.
In practical application, the communication address can be written in manually besides the condition that the slave thermostat requests the master thermostat for the communication address. When the delay time is reached, it indicates that the slave thermostat is ready to send an address assignment request. If the communication address is written manually before the delay time of the slave thermostat arrives, the communication address does not need to be requested from the master thermostat, and therefore, the step S103 and the step S104 can avoid the slave thermostat which has the communication address before the delay time arrives from sending an address allocation request, and the efficiency of address allocation is improved.
When the delay time is up, if no communication address is allocated yet, the slave thermostat may send an address allocation request to the master thermostat, and the sent address allocation request carries the target unique identifier of the slave thermostat.
It can be understood that, because a plurality of slave thermostats are arranged in the system, each slave thermostat is provided with a unique identifier to distinguish each slave thermostat, and the unique identifier of each slave thermostat corresponds to each slave thermostat one to one. When the slave thermostat sends an address request to the master thermostat, its unique identifier may be included in the address assignment request, so that the master thermostat generates and returns a communication address according to the unique identifier of each slave thermostat.
S105: and after receiving the address allocation request, the main temperature controller generates a communication address corresponding to the target unique identifier.
S106: and sending a write address message containing the communication address and the target unique identification to the slave thermostat.
In one implementation, the master thermostat generates a communication address corresponding to the target unique identifier using a random algorithm. In another implementation, the master thermostat may also generate a continuous communication address using existing algorithms. It should be noted that, although the communication address assigned to each slave thermostat by the master thermostat in the embodiment of the present invention is a unique communication address having a different address, the present invention is not limited to which algorithm is used to generate the communication address.
S107: and storing the communication address after receiving the address writing message from the temperature controller.
Specifically, each slave thermostat acquires a communication address assigned by the master thermostat from the write address message and stores the communication address in a storage unit of the slave thermostat.
When the method provided by the embodiment of the invention is applied to allocating the communication address, each slave temperature controller firstly detects whether the communication address is allocated or not, the slave temperature controller which is not allocated with the communication address generates delay time for timing, when the delay time is up and the communication address is not allocated, the slave temperature controller sends an address allocation request to the main temperature controller, and the main temperature controller allocates the communication address according to the request. Therefore, the communication address allocation scheme provided by the embodiment of the invention does not need to manually write the communication address, and the communication address can be allocated according to the address allocation request of the slave temperature controller. In addition, the slave temperature controllers with the distributed communication addresses can enter the user interface immediately, and user experience is improved.
For the master temperature controller, only one address allocation request can be processed at the same time, and when a plurality of slave temperature controllers send the address allocation requests to the master temperature controller at the same time, request conflict is easy to occur, so that data packet loss occurs. In addition to the request collision due to the same delay time, the slave thermostat may not receive the address writing message transmitted from the master thermostat due to a data communication abnormality or the like. In view of the foregoing problems, an embodiment of the present invention provides another method for allocating a communication address of a thermostat, and referring to fig. 2, a flowchart of the another method for allocating a communication address of a thermostat according to an embodiment of the present invention is described below by taking an interaction process between a master thermostat and a slave thermostat as an example, and specifically, the method includes the following steps:
s201: each slave thermostat detects whether it has been assigned a communication address.
S202: if no communication address is assigned, a delay time is generated.
S203: no communication address is allocated after the delay time is reached.
S204: and sending an address allocation request to the main thermostat.
S205: and after receiving the address allocation request, the main temperature controller generates a communication address corresponding to the target unique identifier.
S206: and whether the communication address is not allocated after waiting for the first preset time, and if so, returning to the step S202.
It should be noted that, when the system is operating normally and the communication is also normal, for the slave thermostat that has failed to send the request last time, after returning to step S202 to regenerate the delay time, the master thermostat may normally successfully receive the write address message sent by the master thermostat, and thus a communication address is assigned. However, for some special cases such as when the system fails, even if returning to step S202 to regenerate the delay time, it is difficult to receive the master thermostat transmission write address message, and not only a communication address is not assigned, but also it is continuously returned to step S202 and continues to execute steps S202 to S206, i.e., enter a dead loop.
To avoid this, a threshold number of cycles may be set, and when the number of times the slave thermostat generates the delay time is greater than the threshold number of cycles, the slave thermostat does not generate the delay time. In a preferred scheme, when the number of times of detecting the generation delay time is larger than the threshold value of the cycle number, an alarm signal is sent so that a technician can detect the fault.
S207: and sending a write address message containing the communication address and the target unique identification to the slave thermostat.
S208: and storing the communication address after receiving the address writing message from the temperature controller.
It should be noted that the steps S201 to S205, S207 and S208 are similar to the steps S101 to S107 in the embodiment of the method shown in fig. 1, and related points can refer to the description in the embodiment shown in fig. 1, and this embodiment is not repeated.
It can be seen that the method embodiment shown in fig. 2 not only has all the advantages of the method embodiment shown in fig. 1, but also considers that the slave thermostat does not receive the address writing message sent by the master thermostat for a long time due to request conflict or failure, and the like, and obtains the opportunity of resending the address allocation request by regenerating the delay time, thus ensuring that the thermostat automatically allocates the communication address and improving the success rate of communication address allocation.
In a preferred embodiment of the present invention, referring to fig. 3, a flowchart of a method for allocating a communication address of a thermostat according to an embodiment of the present invention is illustrated below by taking an example of an interaction process between a master thermostat and a slave thermostat, and specifically, the method includes the following steps:
s301: each slave thermostat detects whether it has been assigned a communication address.
S302: if no communication address is assigned, a delay time is generated.
S303: no communication address is allocated after the delay time is reached.
S304: and sending an address allocation request to the main thermostat.
S305: and after receiving the address allocation request, the main temperature controller generates a communication address corresponding to the target unique identifier.
S306: and whether the communication address is not allocated after waiting for the first preset time, and if so, returning to the step S302.
S307: and sending a write address message containing the communication address and the target unique identification to the slave thermostat.
It should be noted that, the above steps S301 to S207 are similar to the steps S201 to S207 in the embodiment of the method shown in fig. 2, and related points can refer to the description in the embodiment shown in fig. 2, and this embodiment is not repeated.
S308: and the slave temperature controller acquires the target unique identifier from the address writing message.
S309: judging whether the target unique identifier is the same as the own unique identifier; if yes, go to step S310, otherwise go to step S311.
The slave temperature controller sends an address allocation request to the master temperature controller, wherein the address allocation request carries a target unique identifier, the master temperature controller obtains the target unique identifier from the received address allocation request, generates a communication address corresponding to the target unique identifier, and packages the communication address and the target unique identifier together into a write address message to be sent to the slave temperature controller. However, due to various reasons such as network problems, it is possible to send a write address message to other slave thermostats, which may cause an address assignment error. Therefore, after receiving the address writing message, step S308 first obtains the target unique identifier sent by the master thermostat from the address writing message, then compares whether the obtained target unique identifier is the same as the own unique identifier, and performs subsequent processing according to the comparison result, which is different from the way of directly storing the communication address in the embodiment of the method shown in fig. 1 or fig. 2.
S310: and storing the communication address.
S311: and regenerating the delay time after waiting for a second preset time.
When the comparison result is the same, indicating that the communication address in the write address request sent by the master temperature controller is the communication address aiming at the slave temperature controller, and therefore storing the communication address; on the contrary, when the comparison result is different, it indicates that the communication address in the write address request sent by the master thermostat is not the communication address for the slave thermostat, and therefore the delay time is regenerated after waiting for the second preset time.
It should be noted that the "first preset time" and the "second preset time" are only used for distinguishing the preset times, and the two preset times may be the same or different in value, and the present invention is not limited thereto. In addition, the first preset time and the second preset time may be set to several minutes, and of course, a person skilled in the art may set the values of the first preset time and the second preset time according to the specific situation in the practical application, for example, the values of the first preset time and the second preset time may be determined according to the number of the slave thermostats in the system.
It can be seen that, in the embodiment of the method shown in fig. 3, besides all the advantages of the embodiment of the method shown in fig. 2, the case that the write address message of the master thermostat is erroneously sent to other slave thermostats is also considered, according to the determination result of the target unique identifier and the own unique identifier carried in the write address message, when the unique identifiers are the same, it is indicated that the write address message is correctly sent, so that the communication address is stored, and when the unique identifiers are different, it is indicated that the write address message is erroneously sent, so that the delay time is regenerated, thus it is seen that the accuracy of communication address allocation of the slave thermostats is improved.
Correspondingly, an embodiment of the present invention further provides a temperature controller communication address allocation system, as shown in fig. 4, the system includes a master temperature controller and a plurality of slave temperature controllers, and the slave temperature controllers are respectively connected to the master temperature controller through data buses.
As shown in fig. 5, the slave thermostat includes: address detection unit 11, delay unit 12, address request unit 13, and storage unit 14.
The address detection unit 11 is configured to detect whether the slave thermostat has been assigned a communication address;
a delay unit 12 for generating a delay time when the slave thermostat is not assigned a communication address;
an address request unit 13, configured to send an address allocation request to the master temperature controller when a communication address is not yet allocated after the delay time is reached, and receive an address writing message sent by the master temperature controller, where the address allocation request carries a target unique identifier of a slave temperature controller;
and the storage unit 14 is configured to store the communication address corresponding to the target unique identifier after the address requesting unit 13 receives the address writing message sent by the main thermostat.
As shown in fig. 6, the main thermostat includes: a communication unit 21 and an address generation unit 22.
The communication unit 21 is configured to receive an address assignment request sent by the slave thermostat;
an address generating unit 22, configured to generate a communication address corresponding to a target unique identifier in an address allocation request after the communication unit 21 receives the address allocation request sent from the thermostat;
the communication unit 21 is further configured to send a write address message including the communication address and the target unique identifier to the slave thermostat.
Preferably, if the detection result of the address detection unit of each slave thermostat is an assigned communication address, the slave thermostat may directly enter a user mode for user operation. However, if the detection result of the address detection unit is that no communication address is allocated, the communication address needs to be acquired, but in the scheme of the invention, the slave thermostat initiates an address allocation request to the master thermostat, and in order to avoid that a plurality of slave thermostats in the system simultaneously send the address allocation request to the master thermostat, the address generation unit generates delay time to stagger the time for sending the address allocation request by each slave thermostat, so that the address request unit can send the address allocation request to the master thermostat in a time-sharing manner.
The delay time may be a delay time of a positive timing system or a delay time of a down-timing system, and the present invention is not limited to any one of the two timing systems, regardless of whether the positive timing system or the down-timing system is used, but only to two different timing systems.
Wherein the delay time is a random time. Preferably, the generated random time may be several milliseconds to several tens or hundreds of milliseconds, which can be defined by those skilled in the art according to actual needs.
In one implementation, the random time may be generated using a random algorithm. Of course, the random time is generated by using a random algorithm as a specific mode, and the invention is not limited to the specific mode for generating the random time.
In an embodiment of the present invention, the delay unit 12 is further configured to, after the address request unit 13 sends the address allocation request to the master thermostat, wait for a first preset time and then regenerate the delay time if the communication address is not allocated yet.
In the system according to an embodiment of the present invention, when a communication address is assigned, the address detection unit of each slave thermostat detects whether a communication address is assigned, the delay unit in the slave thermostat to which the communication address is not assigned generates a delay time for timing, the address request unit sends an address assignment request to the master thermostat when the delay time is up and the communication address is not assigned, and the address generation unit in the master thermostat assigns the communication address according to the request. Therefore, the communication address allocation scheme provided by the embodiment of the invention does not need to manually write the communication address, and the communication address can be allocated according to the address allocation request of the slave temperature controller. In addition, the condition that the address allocation request of the slave temperature controller fails to be sent is also considered, the communication address is automatically allocated to the slave temperature controller, and meanwhile, the success rate of communication address allocation is improved.
An embodiment of the present invention further provides a slave temperature controller, as shown in fig. 7, the slave temperature controller includes: address detection unit 11, delay unit 12, address request unit 13, storage unit 14, and identification matching unit 15.
The identification matching unit 15 is configured to obtain the target unique identification from the write address message received by the address requesting unit 13; judging whether the target unique identifier is the same as the own unique identifier; if the two preset time periods are the same, the storage unit 14 is triggered to store the communication address, otherwise, the delay unit 12 is triggered to regenerate the delay time after waiting for a second preset time period.
In one implementation, the address generation unit 22 generates the communication address corresponding to the target unique identifier by using a random algorithm.
It can be seen that, in the thermostat communication address assignment system constructed by the slave thermostat shown in fig. 7, in addition to all the advantages of the system embodiment shown in fig. 4, in consideration of the fact that the slave thermostat does not receive the address writing message sent by the communication unit of the master thermostat for a long time due to request collision or failure, the delay unit regenerates the delay time to obtain the opportunity of resending the address assignment request, and thus, the accuracy of assignment of communication addresses of the slave thermostats is improved.
For the system embodiment, since it is basically similar to the method embodiment, it is relatively simple to describe, and for related points, refer to the partial description of the method embodiment.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those skilled in the art will appreciate that all or part of the steps in the above method embodiments may be implemented by a program to instruct relevant hardware to perform the steps, and the program may be stored in a computer-readable storage medium, referred to herein as a storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A communication address allocation method for a temperature controller is characterized by comprising the following steps:
each slave temperature controller detects whether a communication address is distributed or not;
generating a delay time if the communication address is not allocated;
if the communication address is not allocated after the delay time is up, sending an address allocation request to the main temperature controller; the address allocation request carries a target unique identifier of the slave temperature controller;
after receiving the address allocation request, the master temperature controller generates a communication address corresponding to the target unique identifier and sends a write address message containing the communication address and the target unique identifier to the slave temperature controller;
and the slave temperature controller stores the communication address after receiving the address writing message.
2. The thermostat communication address assignment method of claim 1, further comprising:
and after the slave temperature controller sends an address allocation request to the master temperature controller, waiting for a first preset time, and if a communication address is not allocated yet, regenerating the delay time.
3. The thermostat communication address allocation method of claim 2, wherein the delay time is a random time.
4. The thermostat communication address allocation method of claim 2, wherein the slave thermostat storing the communication address comprises:
the slave temperature controller acquires the target unique identifier from the address writing message;
judging whether the target unique identifier is the same as the own unique identifier;
and if the communication addresses are the same, storing the communication addresses, otherwise, waiting for a second preset time and regenerating the delay time.
5. The thermostat communication address allocation method according to any one of claims 1 to 4, wherein the generating of the communication address corresponding to the target unique identifier by the master thermostat comprises:
and the main temperature controller generates a communication address corresponding to the target unique identifier by using a random algorithm.
6. A communication address distribution system of a temperature controller is characterized by comprising a main temperature controller and a plurality of slave temperature controllers, wherein the slave temperature controllers are respectively connected with the main temperature controller through data buses;
the slave temperature controller comprises:
the address detection unit is used for detecting whether the slave temperature controller is allocated with a communication address;
the delay unit is used for generating delay time when the slave temperature controller is not allocated with a communication address;
the address request unit is used for sending an address allocation request to the master temperature controller and receiving a write address message sent by the master temperature controller when a communication address is not allocated yet after the delay time is reached, wherein the address allocation request carries a target unique identifier of a slave temperature controller;
the storage unit is used for storing the communication address corresponding to the target unique identifier after the address request unit receives the address writing message sent by the main temperature controller;
the main temperature controller comprises:
the communication unit is used for receiving the address allocation request sent by the slave temperature controller;
the communication unit is used for receiving an address allocation request sent by a temperature controller, and then generating a communication address corresponding to a target unique identifier in the address allocation request;
the communication unit is further configured to send a write address message including the communication address and the target unique identifier to the slave thermostat.
7. The thermostat communication address allocation system of claim 6, wherein the delay unit is further configured to regenerate the delay time if no communication address is allocated after waiting for a first preset time after the address request unit sends an address allocation request to the master thermostat.
8. The thermostat communication address allocation system of claim 7, wherein the delay time is a random time.
9. The thermostat communication address assignment system of claim 7, wherein the slave thermostat further comprises:
the identification matching unit is used for acquiring the target unique identification from the write address message received by the address request unit; judging whether the target unique identifier is the same as the own unique identifier; and if the communication addresses are the same, triggering the storage unit to store the communication addresses, otherwise, triggering the delay unit to regenerate the delay time after waiting for a second preset time.
10. The thermostat communication address allocation system of claim 6 or 7, wherein the address generation unit generates the communication address corresponding to the target unique identifier using a random algorithm.
CN202010362889.3A 2020-04-30 2020-04-30 Temperature controller communication address allocation method and system Pending CN111698342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010362889.3A CN111698342A (en) 2020-04-30 2020-04-30 Temperature controller communication address allocation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010362889.3A CN111698342A (en) 2020-04-30 2020-04-30 Temperature controller communication address allocation method and system

Publications (1)

Publication Number Publication Date
CN111698342A true CN111698342A (en) 2020-09-22

Family

ID=72476929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010362889.3A Pending CN111698342A (en) 2020-04-30 2020-04-30 Temperature controller communication address allocation method and system

Country Status (1)

Country Link
CN (1) CN111698342A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965308A (en) * 2021-10-26 2022-01-21 上海三思电子工程有限公司 Connection communication method, slave device and device control system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1547366A (en) * 2003-12-03 2004-11-17 何世刚 Automatic addressing method for electronic instruments and application
CN101477506A (en) * 2008-01-04 2009-07-08 鸿富锦精密工业(深圳)有限公司 Addressing system and method of master equipment to slave equipment
WO2009140910A1 (en) * 2008-05-19 2009-11-26 Zheng Kuanyong A method and system of active allocation of ip address
KR20120005300A (en) * 2010-07-08 2012-01-16 엘지전자 주식회사 Air conditioner and auto addressing method
CN107071077A (en) * 2017-01-10 2017-08-18 邯郸美的制冷设备有限公司 Mailing address distribution method, equipment and its system of air-conditioning system
CN107249048A (en) * 2017-06-26 2017-10-13 珠海格力电器股份有限公司 Air-conditioning system and its address distribution method and device
US20180202682A1 (en) * 2017-01-05 2018-07-19 Lg Electronics Inc. Air conditioner and control method thereof
CN109936640A (en) * 2017-12-19 2019-06-25 苏州阿特斯阳光电力科技有限公司 From the address distribution method and device of node device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1547366A (en) * 2003-12-03 2004-11-17 何世刚 Automatic addressing method for electronic instruments and application
CN101477506A (en) * 2008-01-04 2009-07-08 鸿富锦精密工业(深圳)有限公司 Addressing system and method of master equipment to slave equipment
WO2009140910A1 (en) * 2008-05-19 2009-11-26 Zheng Kuanyong A method and system of active allocation of ip address
KR20120005300A (en) * 2010-07-08 2012-01-16 엘지전자 주식회사 Air conditioner and auto addressing method
US20180202682A1 (en) * 2017-01-05 2018-07-19 Lg Electronics Inc. Air conditioner and control method thereof
CN107071077A (en) * 2017-01-10 2017-08-18 邯郸美的制冷设备有限公司 Mailing address distribution method, equipment and its system of air-conditioning system
CN107249048A (en) * 2017-06-26 2017-10-13 珠海格力电器股份有限公司 Air-conditioning system and its address distribution method and device
CN109936640A (en) * 2017-12-19 2019-06-25 苏州阿特斯阳光电力科技有限公司 From the address distribution method and device of node device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965308A (en) * 2021-10-26 2022-01-21 上海三思电子工程有限公司 Connection communication method, slave device and device control system

Similar Documents

Publication Publication Date Title
US10204072B2 (en) Method for automatically allocating addresses to similar bus users
US6216172B1 (en) Automatic can address allocation method
US20130290947A1 (en) Termimal and method for updating firmware of baseboard management controller
CN113114793B (en) Slave node address competition method and device and electrical appliance system
CN106789498B (en) Network address allocation method of Modbus communication network, slave node equipment and communication system
CN113114545B (en) Equipment ad hoc network method and device and air conditioning system
US20140201356A1 (en) Monitoring system of managing cloud-based hosts and monitoring method using for the same
CN110762604B (en) Indoor unit, pairing method and device of indoor unit and wired controller, storage medium and air conditioner
EP4274190A1 (en) Smart device control method and apparatus, electronic device, and computer readable medium
CN111597123B (en) Automatic address allocation method, automatic address allocation device, computer equipment and storage medium
CN112566155B (en) Networking method, device and system
CN113114792A (en) Equipment ad hoc network method and device and air conditioning system
CN115314470A (en) RS-485 networking communication address automatic allocation method, host, slave and system
KR100257413B1 (en) Address management for remote terminals in digital loop transmission systems
CN116319683A (en) Method, system and device for distributing networking address and electronic equipment
CN111698342A (en) Temperature controller communication address allocation method and system
CN115242752A (en) Address allocation method, device, equipment and medium for battery management system
CN112835598B (en) Automobile ECU (electronic control Unit) refreshing method and system and computer readable storage medium thereof
CN108881514B (en) Address allocation method of bus system, communication equipment and bus system
EP4351279A1 (en) Control method, control device and lighting system
CN113612868B (en) Equipment address allocation method, device and system
US7583690B2 (en) Allocation of station addresses to communication users in a bus system
CN109539647B (en) Water chilling unit control system and method and water chilling unit
JP4236650B2 (en) Network system
CN113032307A (en) Integrated device access request processing method and related assembly

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200922

RJ01 Rejection of invention patent application after publication