CN104065763B - The automated randomized addressing communication means of free quantity air-conditioning based on RS485 - Google Patents
The automated randomized addressing communication means of free quantity air-conditioning based on RS485 Download PDFInfo
- Publication number
- CN104065763B CN104065763B CN201410291870.9A CN201410291870A CN104065763B CN 104065763 B CN104065763 B CN 104065763B CN 201410291870 A CN201410291870 A CN 201410291870A CN 104065763 B CN104065763 B CN 104065763B
- Authority
- CN
- China
- Prior art keywords
- address
- machine
- outdoor unit
- indoor
- addressing
- 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
Abstract
The invention discloses a kind of automated randomized addressing communication means of free quantity air-conditioning based on RS485, specifically comprise the following steps:Step 1:Addressing;Step 2:Search;Step 3:Address determines;Step 4:Address procedures are exited, into normal communication mode.The automated randomized addressing communication means of free quantity air-conditioning based on RS485 of the present invention uses auto-addressing mode, solves the problems, such as artificial addressing, removes intermediate steps, saves manpower and cost.
Description
Technical field
The present invention relates to independent assortment variable-frequency multi-connection type air-conditioner control system, specifically a kind of free number based on RS485
Measure the automated randomized addressing communication means of air-conditioning.
Background technology
Variable-frequency multi-connection type air-conditioning system largely uses manual addressing mode in the market, and hand is needed in sale or installation
Dynamic adjust reaches the purpose of addressing, so installs cumbersome, and operating efficiency is low, and cost of labor is high.
The content of the invention
In order to solve above-mentioned technical problem present in prior art, the invention provides a kind of freedom based on RS485
The automated randomized addressing communication means of quantity air-conditioning, specifically comprises the following steps:
Step 1:Addressing
Indoor and outdoor machine is simultaneously upper electric.The outer machine timing N seconds, send addressing order(Broadcasting command), interior machine, which receives, broadcasts life
Order, current gained random number is read, by data processing, record is used as current address;
Step 2:Search
Poll 2-N(N is the number of indoor set, can be changed according to product)Address, the interior machine data back to normal received,
Outer machine is verified by checking, is determined whether there is interior machine address and is repeated, after the interior machine data for receiving repeat to address (RA), to machine in correspondence
Transmission resets location order, needs to provide already present address in order, then reaffirms poll, waits until to inquire about all interiors always
Untill machine communication is unique and normal;
Step 3:It is determined that
N tablelands location is determined, sends and determines addressing order, then send sequentialize commands, sorted again to interior machine, training in rotation is owned
Indoor set is sorted, and all indoor sets are ranked up, after collated, the code of all indoor sets of sequence is sent into storage
Equipment;
Step 4:Address procedures are exited, into normal communication mode.
Further, step 1 addressing concretely comprises the following steps:
First, upper electricity, outdoor unit postpone the N seconds to indoor and outdoor machine control panel simultaneously, start to send addressing broadcasting command, in the N seconds
Interior, indoor set is by with minimum time unit count, and repeatedly the mode of accumulated error is overflowed in circulation, makes count value fully random
Change.When indoor set receives the addressing order of outdoor unit, interception current indoor machine count value be address generation value, by with
Total number of units of indoor set is calculated, and obtains 2-255 numerical value as current address.
Further, what step 2 was searched concretely comprises the following steps:
1. outdoor unit sends and begins look for action command;
2. outdoor unit sends inquiry packet in a manner of the fixed cycle(Such as one per second), using 2-255 as target
Location sends inquiry packet successively;
3. when indoor set receives inquiry packet, then data are replied within outdoor unit polling cycle;
4. if the data that outdoor unit receives are correct, current address is sent 3 times, it is errorless three times, then note down current indoor
Machine address, inquired about into next address;
5. if outdoor unit, which receives data, mistake occurs, send 3 times, mistake occurs in reception, illustrates that bus has competition, then
Outdoor unit is sent to current indoor machine deallocation order, and it is deallocation scope to 255 to specify since current address is;
6. if outdoor unit does not receive reply, repeating transmission once confirms still then to inquire about nextly after cycle satisfaction without reply
Location;
7. after outdoor unit inquires about 255 end of address (EOA), outdoor unit can be inquired about once 2-255 addresses again again again,
Confirm there is competition mistake or under-enumeration without any indoor set.
8. outdoor unit sends broadcasting command, confirm to search release.
Further, what is determined in step 3 concretely comprises the following steps:
1. outdoor unit to all indoor sets for noting down before according to the size of the numerical value of address by order, enter row address weight
It is fixed, all address of indoor unit are positioned into continuation address, 2-N(N is less than 255);
2. when sequence is completed, engineering staff can be by upper computer software, and the sequence to machine is adjusted, and adjustment terminates
Current indoor machine address deposit storage device is noted down afterwards, when outdoor unit is not detected by upper computer software, is then noted down default sort
For address, and it is stored in storage device.
The automated randomized addressing communication means of free quantity air-conditioning based on RS485 of the present invention uses auto-addressing mode,
Solve the problems, such as artificial addressing, remove intermediate steps, save manpower and cost.
Brief description of the drawings
Fig. 1 and 2 is the control flow of the automated randomized addressing communication means of free quantity air-conditioning based on RS485 of the present invention
Figure.
Embodiment
The invention will be further described below in conjunction with the accompanying drawings.
The free automated randomized addressing of quantity air-conditioning will solve the problems, such as follows:The problem of random number produces;Random address weight
The problem of multiple;The problem of address is resequenced;The problem of 485 bus contention.
1. the problem of random number produces:The present invention adds software to combine the method for producing random number using hardware.Specifically
Thinking is:For circuit control panel, the execution of MCU programs is since power-on time meets MCU operations, with the frequency of crystal oscillator concussion
Rate is by software merit rating so as to execute instruction, and because each original paper of control panel hardware has error, there is also error in itself for crystal oscillator.
The control panel of upper electricity simultaneously, the time of actual MCU sign ons execution simultaneously differ, and it is also variant to perform speed.So pass through
Software adds counting, overflows the method for clearing, and after by repeatedly circulating execution, while the count value of upper electric control panel now is
Individual random number.Count value identical probability is very low.
2. the problem of random address repeats:When obtaining random address repetition, control panel can be controlled again fixed with software
Location.
The problem 3. address is resequenced:When all address of indoor unit all uniquely determine it is later, due to ground random before
Location is probably interruption, it is also possible to and it is continuous, so needing to resequence to caused address.
4.485 the problem of bus contention:When more than two terminals, which are opened, sends signal simultaneously, bus signals can be caused
Competition, during real process, corrupt data that receiving terminal can be caused to receive by repeatedly judging corrupt data, can confirm that bus
Whether competition is had, by judging competition it is known that there is address of indoor unit repetition.
As shown in figure 1, the automated randomized addressing communication means of free quantity air-conditioning based on RS485 of the present invention, specifically holds
Capable flow:
Step 1:Addressing
Indoor and outdoor machine is simultaneously upper electric.The outer machine timing N seconds, send addressing order(Broadcasting command), interior machine, which receives, broadcasts life
Order, current gained random number is read, by data processing, record is used as current address.
Step 2:Search
Poll 2-N(N is the number of indoor set, can be changed according to product)Address, the interior machine data back to normal received,
Outer machine is verified by checking, is determined whether there is interior machine address and is repeated, after the interior machine data for receiving repeat to address (RA), to machine in correspondence
Transmission resets location order, needs to provide already present address in order, then reaffirms poll.Wait until to inquire about all interiors always
Untill machine communication is unique and normal.
Step 3:It is determined that
N tablelands location is determined, sends and determines addressing order, then send sequentialize commands, sorted again to interior machine, training in rotation is owned
Indoor set is sorted, and all indoor sets are ranked up, after collated, the code of all indoor sets of sequence is sent into storage
Equipment.
Step 4:Address procedures are exited, into normal communication mode.
Step 1 addressing concretely comprises the following steps:
First, upper electricity, outdoor unit postpone the N seconds to indoor and outdoor machine control panel simultaneously, start to send addressing broadcasting command, in the N seconds
Interior, indoor set is by with minimum time unit count, and repeatedly the mode of accumulated error is overflowed in circulation, makes count value fully random
Change.When indoor set receives the addressing order of outdoor unit, interception current indoor machine count value be address generation value, by with
Total number of units of indoor set is calculated, and obtains 2-255 numerical value as current address.
What step 2 was searched concretely comprises the following steps:
1. outdoor unit sends and begins look for action command;
2. outdoor unit sends inquiry packet in a manner of the fixed cycle(Such as one per second), using 2-255 as target
Location sends inquiry packet successively;
3. when indoor set receives inquiry packet, then data are replied within outdoor unit polling cycle;
4. if the data that outdoor unit receives are correct, current address is sent 3 times, it is errorless three times, then note down current indoor
Machine address, inquired about into next address;
5. if outdoor unit, which receives data, mistake occurs, send 3 times, mistake occurs in reception, illustrates that bus has competition, then
Outdoor unit is sent to current indoor machine deallocation order, and it is deallocation scope to 255 to specify since current address is;
6. if outdoor unit does not receive reply, repeating transmission once confirms still then to inquire about nextly after cycle satisfaction without reply
Location;
7. after outdoor unit inquires about 255 end of address (EOA), outdoor unit can be inquired about once 2-255 addresses again again again,
Confirm there is competition mistake or under-enumeration without any indoor set.
8. outdoor unit sends broadcasting command, confirm to search release.
What is determined in step 3 concretely comprises the following steps:
1. outdoor unit to all indoor sets for noting down before according to the size of the numerical value of address by order, enter row address weight
It is fixed, all address of indoor unit are positioned into continuation address, 2-N(N is less than 255);
2. when sequence is completed, engineering staff can be by upper computer software, and the sequence to machine is adjusted, and adjustment terminates
Current indoor machine address deposit storage device is noted down afterwards, when outdoor unit is not detected by upper computer software, is then noted down default sort
For address, and it is stored in storage device.
Claims (2)
1. a kind of automated randomized addressing communication means of free quantity air-conditioning based on RS485, specifically comprises the following steps:
Step 1:Addressing
Indoor and outdoor machine is simultaneously upper electric;The outer machine timing N seconds, sending addressing order, i.e. broadcasting command, interior machine receives broadcasting command,
Current gained random number is read, by data processing, record is used as current address;
Step 2:Search
Poll 2-N addresses, N is the number of indoor set, the interior machine data back to normal received, and outer machine is verified by checking, is sentenced
It is fixed whether to there is interior machine address to repeat, after the interior machine data for receiving repeat to address (RA), sent to machine in correspondence and reset location order, ordered
In need to provide already present address, then reaffirm poll, it is unique and normal to wait until to inquire about all indoor sets communications always
Untill;
Step 3:It is determined that
N tablelands location is determined, sends and determines addressing order, then send sequentialize commands, is sorted again to interior machine, all interiors of poll
Machine is sorted, and all indoor sets are ranked up, after collated, the code of all indoor sets of sequence is sent into storage and set
It is standby;
Step 4:Address procedures are exited, into normal communication mode;
Step 1 addressing concretely comprises the following steps:
First, upper electricity, outdoor unit postpone the N seconds to indoor and outdoor machine control panel simultaneously, start to send addressing broadcasting command, within the N seconds, room
Interior machine is by with minimum time unit count, and repeatedly the mode of accumulated error is overflowed in circulation, count value is fully randomized;When
When indoor set receives the addressing order of outdoor unit, interception current indoor machine count value be address generation value, by with interior
Total number of units of machine is calculated, and obtains 2-255 numerical value as current address;
What step 2 was searched concretely comprises the following steps:
(1)Outdoor unit sends and begins look for action command;
(2)Outdoor unit sends inquiry packet in a manner of the fixed cycle, and inquiry number is sent successively as destination address using 2-255
According to bag;
(3)When indoor set receives inquiry packet, then data are replied within outdoor unit polling cycle;
(4)If the data that outdoor unit receives are correct, current address is sent 3 times, it is errorless three times, then with recording current indoor machine
Location, inquired about into next address;
(5)If outdoor unit, which receives data, mistake occurs, send 3 times, mistake occurs in reception, illustrates that bus has competition, then room
Outer machine is sent to current indoor machine deallocation order, and it is deallocation scope to 255 to specify since current address is;
(6)If outdoor unit does not receive reply, repeating transmission once confirms still then to inquire about next address after cycle satisfaction without reply;
(7)After outdoor unit inquires about 255 end of address (EOA), outdoor unit can be inquired about once 2-255 addresses again again again, really
Recognize has competition mistake or under-enumeration without any indoor set;
(8)Outdoor unit sends broadcasting command, confirms to search release.
2. the automated randomized addressing communication means of free quantity air-conditioning based on RS485, its feature exist as claimed in claim 1
In:What is determined in step 3 concretely comprises the following steps:
(1)Outdoor unit to all indoor sets for recording before according to the size of the numerical value of address by order, enter row address and reset,
All address of indoor unit are positioned into continuation address, 2-N, N are less than 255;
(2)When sequence is completed, by upper computer software, the sequence to machine is adjusted engineering staff, and adjustment records after terminating
Current indoor machine address is stored in storage device, when outdoor unit is not detected by upper computer software, then is recorded as communicating by default sort
Address, and it is stored in storage device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410291870.9A CN104065763B (en) | 2014-06-26 | 2014-06-26 | The automated randomized addressing communication means of free quantity air-conditioning based on RS485 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410291870.9A CN104065763B (en) | 2014-06-26 | 2014-06-26 | The automated randomized addressing communication means of free quantity air-conditioning based on RS485 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104065763A CN104065763A (en) | 2014-09-24 |
CN104065763B true CN104065763B (en) | 2018-02-16 |
Family
ID=51553290
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410291870.9A Active CN104065763B (en) | 2014-06-26 | 2014-06-26 | The automated randomized addressing communication means of free quantity air-conditioning based on RS485 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104065763B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104965473B (en) * | 2015-07-22 | 2018-01-02 | 广东美的暖通设备有限公司 | Multiple on-line system and the multiple on-line system automatic addressing method based on CAN |
CN105181103B (en) * | 2015-08-21 | 2017-12-12 | 重庆大唐科技股份有限公司 | Digital weighing sensor automatic addressing method |
CN105391814A (en) * | 2015-10-19 | 2016-03-09 | 珠海格力电器股份有限公司 | Address allocation method and device for main and auxiliary wire controllers |
CN105546730B (en) * | 2015-12-23 | 2018-07-24 | 宁波奥克斯电气股份有限公司 | The automatic addressing method of multi-connected air conditioner indoor unit |
CN107166562B (en) * | 2017-04-21 | 2019-10-01 | 珠海格力电器股份有限公司 | A kind of combined air conditioners and its adjustment method and device |
CN112887439A (en) * | 2019-11-29 | 2021-06-01 | 株洲中车时代电气股份有限公司 | CAN address configuration method and system for air conditioning unit frequency converter |
CN111654557A (en) * | 2020-05-29 | 2020-09-11 | 宋斌 | Automatic distribution method of RS485 address codes, upper computer and lower computer |
CN111964228A (en) * | 2020-07-27 | 2020-11-20 | 新科环保科技有限公司 | Automatic addressing method for multi-connected air conditioner indoor unit |
CN112084126A (en) * | 2020-09-08 | 2020-12-15 | 南京华天科技发展股份有限公司 | RS485 automatic address generation method |
CN112235435A (en) * | 2020-10-21 | 2021-01-15 | 递易(上海)智能科技有限公司 | Method and equipment for fast coding |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101446438A (en) * | 2008-08-29 | 2009-06-03 | 广东志高空调有限公司 | Method for assigning address to indoor unit of central air-conditioning system, device and system thereof |
CN101551153A (en) * | 2009-01-15 | 2009-10-07 | 东元总合科技(杭州)有限公司 | Multi-connected air-conditioning system and auto-addressing method thereof |
CN103216913A (en) * | 2013-04-23 | 2013-07-24 | 四川长虹电器股份有限公司 | Air conditioner address setting method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4803296B2 (en) * | 2009-10-30 | 2011-10-26 | ダイキン工業株式会社 | Indoor unit and air conditioner equipped with the same |
-
2014
- 2014-06-26 CN CN201410291870.9A patent/CN104065763B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101446438A (en) * | 2008-08-29 | 2009-06-03 | 广东志高空调有限公司 | Method for assigning address to indoor unit of central air-conditioning system, device and system thereof |
CN101551153A (en) * | 2009-01-15 | 2009-10-07 | 东元总合科技(杭州)有限公司 | Multi-connected air-conditioning system and auto-addressing method thereof |
CN103216913A (en) * | 2013-04-23 | 2013-07-24 | 四川长虹电器股份有限公司 | Air conditioner address setting method |
Also Published As
Publication number | Publication date |
---|---|
CN104065763A (en) | 2014-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104065763B (en) | The automated randomized addressing communication means of free quantity air-conditioning based on RS485 | |
CN101446438B (en) | Method for assigning address to indoor unit of central air-conditioning system, device and system thereof | |
CN102325201A (en) | Method for allocating network addresses to slave node equipment in Modbus communication network | |
CN103279371B (en) | A kind of many methods from the upgrading of machine program on-line synchronous of dcs | |
CN108293060B (en) | Method and system for updating firmware of slave station, master station and slave station | |
CN109002303A (en) | A kind of intelligent electric meter firmware upgrade method, equipment and storage medium | |
CN107124336A (en) | Intelligent terminal, log equipment, distribution network systems and method | |
CN104135741A (en) | Method of Bluetooth low energy communication, Bluetooth devices and system | |
CN104101048A (en) | Setting method for communication address of indoor unit in air conditioning system and air conditioning system | |
CN108833602A (en) | A kind of bus address auto-allocation method and system based on component manufacturing variation | |
EP3764010A1 (en) | Data sending method and apparatus, and multiple on-line system and storage medium | |
CN110762604B (en) | Indoor unit, pairing method and device of indoor unit and wired controller, storage medium and air conditioner | |
CN103051674A (en) | Method and device for remotely upgrading wireless communication module as well as handheld unit (HHU) | |
CN103472779A (en) | Smart home building control system and method thereof for accessing air-conditioning system | |
CN101395429A (en) | Air conditioner and address setting method in air conditioner | |
EP3422655B1 (en) | Method for managing address of meter device, and acquisition terminal and meter device | |
CN105546730A (en) | Automatic addressing method of multi-connected air conditioner indoor unit | |
CN103516824A (en) | Network topology identification method based on IP layer and devices | |
CN106487575A (en) | A kind of communication module batch upgrading method based on power line communication | |
CN107181628A (en) | Two-way wireless communication method, device and terminal | |
CN104033991A (en) | Central air-conditioning system and indoor unit address collocation method of central air-conditioning system | |
CN104077152A (en) | Batch upgrading method and batch upgrading device for embedded system | |
CN109373521B (en) | Communication method and device of air conditioner, outdoor unit, indoor unit and air conditioner | |
CN111211955A (en) | Method for distributing slave node address and node management system | |
CN100456761C (en) | Automatic addressing method for electronic instruments and application |
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 |