CN104065763A - Free-number air conditioner automatic random addressing communication method based on RS485 - Google Patents

Free-number air conditioner automatic random addressing communication method based on RS485 Download PDF

Info

Publication number
CN104065763A
CN104065763A CN201410291870.9A CN201410291870A CN104065763A CN 104065763 A CN104065763 A CN 104065763A CN 201410291870 A CN201410291870 A CN 201410291870A CN 104065763 A CN104065763 A CN 104065763A
Authority
CN
China
Prior art keywords
address
premises station
addressing
indoor
indoor set
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.)
Granted
Application number
CN201410291870.9A
Other languages
Chinese (zh)
Other versions
CN104065763B (en
Inventor
董晓磊
曾祥学
吴强强
付增跃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Teco Group Science and Technology Hangzhou Co Ltd
Original Assignee
Teco Group Science and Technology Hangzhou Co Ltd
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 Teco Group Science and Technology Hangzhou Co Ltd filed Critical Teco Group Science and Technology Hangzhou Co Ltd
Priority to CN201410291870.9A priority Critical patent/CN104065763B/en
Publication of CN104065763A publication Critical patent/CN104065763A/en
Application granted granted Critical
Publication of CN104065763B publication Critical patent/CN104065763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Air Conditioning Control Device (AREA)
  • Small-Scale Networks (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a free-number air conditioner automatic random addressing communication method based on RS485. The method comprises a step (1) of addressing, a step (2) of searching, a step (3) of determining an address, and a step (4) of quitting the addressing process and entering into a normal communication mode. According to the free-number air conditioner automatic random addressing communication method based on RS485, an automatic addressing mode is used, an artificial addressing problem is solved, intermediate steps are removed, and manpower and cost are saved.

Description

The automated randomized addressing communication means of free quantity air-conditioning based on RS485
Technical field
The present invention relates to independent assortment variable-frequency multi-connection type air-conditioner control system, specifically a kind of automated randomized addressing communication means of free quantity air-conditioning based on RS485.
Background technology
Variable-frequency multi-connection type air-conditioning system is most of in the market adopts manual addressing mode, needs manually to adjust the object that reaches addressing in the time selling or install, install so cumbersome, inefficiency, cost of labor is high.
Summary of the invention
In order to solve the above-mentioned technical problem existing in prior art, the invention provides a kind of automated randomized addressing communication means of free quantity air-conditioning based on RS485, specifically comprise the steps:
Step 1: addressing
Indoor and outdoor machine powers on simultaneously.Outer machine timing N second, sends addressing order (broadcasting command), and interior machine receives broadcasting command, reads current gained random number, and through data processing, record is as current address;
Step 2: search
Poll 2-N(N is the number of indoor set, can change according to product) address, the interior machine receiving is replied normal data, outer machine, by checking verification, has determined whether the repetition of interior machine address, receives after the interior machine data of repeat to address (RA), send to corresponding interior machine and reset location order, in order, need to provide already present address, and then confirm poll, wait until always all indoor set communications of inquiry all unique and normal till;
Step 3: determine
Determine location, N tableland, send and determine addressing order, then send sequence order, again give interior machine sequence, all indoor set sequences of training in rotation, sort to all indoor sets, after sequence, the code of all indoor sets of sequence are sent to memory device;
Step 4: exit addressing process, enter normal communication mode.
Further, the concrete steps of step 1 addressing are:
First, indoor and outdoor machine control board powers on simultaneously, and off-premises station postpones N second, starts to send addressing broadcasting command, and within N second, indoor set is by with minimum time unit count, and repeatedly the mode of accumulated error is overflowed in circulation, makes the abundant randomization of count value.In the time that indoor set receives the addressing order of off-premises station, the count value that intercepts current indoor set is address generate value, by calculating with total number of units of indoor set, obtains the numerical value of a 2-255 as current address.
Further, the concrete steps that step 2 is searched are:
1. off-premises station sends and starts to search action command;
2. off-premises station sends data query bag (for example per second) in the mode of fixed cycle, sends successively data query bag taking 2-255 as destination address;
3. when indoor set receives data query bag, within off-premises station polling cycle, reply data;
4. if the data that off-premises station receives are correct, current address is sent 3 times, three times are all errorless, note down current address of indoor unit, enter next address inquiry;
5. if there is mistake in off-premises station reception data, send 3 times, receive and all occur mistake, illustrate that bus has competition, off-premises station sends to the order of current indoor set deallocation, and appointment is deallocation scope from current address for starting to 255;
If 6. off-premises station does not receive reply, retransmit once confirmation still without replying, the cycle meets rear inquiry next address;
7. inquire about after 255 ends of address (EOA) when off-premises station, off-premises station can be inquired about once 2-255 address again again again, and confirming has competition mistake or under-enumeration without any indoor set.
8. off-premises station sends broadcasting command, confirms to search release.
Further, in step 3, definite concrete steps are:
1. off-premises station passes through order to all indoor sets of record before according to the size of the numerical value of address, carries out address and resets, and by all address of indoor unit location continuation address, 2-N(N is less than 255);
2. when having sorted, engineering staff can pass through upper computer software, and the sequence of machine is adjusted, adjustment finishes the current address of indoor unit of rear record and deposits memory device in, when off-premises station does not detect upper computer software, be address by default sort record, and deposit memory device in.
The automated randomized addressing communication means of free quantity air-conditioning based on RS485 of the present invention adopts auto-addressing mode, has solved artificial addressing problem, removes intermediate steps, saves manpower and cost.
Brief description of the drawings
Fig. 1 and 2 is the control flow chart of the automated randomized addressing communication means of free quantity air-conditioning based on RS485 of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described.
The problem that the automated randomized addressing of free quantity air-conditioning will solve is as follows: the problem that random number produces; The problem that random address repeats; The problem of address rearrangement; The problem of 485 bus contentions.
1. the problem that random number produces: what the present invention adopted is that hardware adds software in conjunction with the method that produces random number.Concrete thought is: for circuit control panel, the execution of MCU program is that the time meets MCU operation beginning from power on, thereby the frequency with crystal oscillator concussion configures and carries out instruction through software, and because the each original paper of control board hardware all has error, crystal oscillator itself also exists error.The control board simultaneously powering on, the time that actual MCU sign on is carried out is not identical, and execution speed is also variant.So add counting by software, overflow the method for zero clearing, after carrying out by repeatedly circulating, the control board simultaneously powering on count value is now a random number.The probability that count value is identical is very low.
2. the problem that random address repeats: in the time that repeat the random address of acquisition, can software control control board deallocation.
3. address rearrangement problem: all unique definite later when all address of indoor unit, because random before address may be interrupted, may be also continuous, so need to resequence to the address producing.
The problem of 4.485 bus contentions: in the time that more than two terminal is opened transmitted signal simultaneously, can cause the competition of bus signals, when real process, the data that can cause receiving terminal to be received are made mistakes, make mistakes by decision data repeatedly, can confirm whether bus has competition, compete and can know have address of indoor unit to repeat by judgement.
As shown in Figure 1, the automated randomized addressing communication means of free quantity air-conditioning based on RS485 of the present invention, the concrete flow process of carrying out:
Step 1: addressing
Indoor and outdoor machine powers on simultaneously.Outer machine timing N second, sends addressing order (broadcasting command), and interior machine receives broadcasting command, reads current gained random number, and through data processing, record is as current address.
Step 2: search
Poll 2-N(N is the number of indoor set, can change according to product) address, the interior machine receiving is replied normal data, outer machine is by checking verification, determine whether the repetition of interior machine address, received after the interior machine data of repeat to address (RA), sent to corresponding interior machine and reset location order, in order, need to provide already present address, and then confirm poll.Wait until always all indoor set communications of inquiry all unique and normal till.
Step 3: determine
Determine location, N tableland, send and determine addressing order, then send sequence order, again give interior machine sequence, all indoor set sequences of training in rotation, sort to all indoor sets, after sequence, the code of all indoor sets of sequence are sent to memory device.
Step 4: exit addressing process, enter normal communication mode.
The concrete steps of step 1 addressing are:
First, indoor and outdoor machine control board powers on simultaneously, and off-premises station postpones N second, starts to send addressing broadcasting command, and within N second, indoor set is by with minimum time unit count, and repeatedly the mode of accumulated error is overflowed in circulation, makes the abundant randomization of count value.In the time that indoor set receives the addressing order of off-premises station, the count value that intercepts current indoor set is address generate value, by calculating with total number of units of indoor set, obtains the numerical value of a 2-255 as current address.
The concrete steps that step 2 is searched are:
1. off-premises station sends and starts to search action command;
2. off-premises station sends data query bag (for example per second) in the mode of fixed cycle, sends successively data query bag taking 2-255 as destination address;
3. when indoor set receives data query bag, within off-premises station polling cycle, reply data;
4. if the data that off-premises station receives are correct, current address is sent 3 times, three times are all errorless, note down current address of indoor unit, enter next address inquiry;
5. if there is mistake in off-premises station reception data, send 3 times, receive and all occur mistake, illustrate that bus has competition, off-premises station sends to the order of current indoor set deallocation, and appointment is deallocation scope from current address for starting to 255;
If 6. off-premises station does not receive reply, retransmit once confirmation still without replying, the cycle meets rear inquiry next address;
7. inquire about after 255 ends of address (EOA) when off-premises station, off-premises station can be inquired about once 2-255 address again again again, and confirming has competition mistake or under-enumeration without any indoor set.
8. off-premises station sends broadcasting command, confirms to search release.
Concrete steps definite in step 3 are:
1. off-premises station passes through order to all indoor sets of record before according to the size of the numerical value of address, carries out address and resets, and by all address of indoor unit location continuation address, 2-N(N is less than 255);
2. when having sorted, engineering staff can pass through upper computer software, and the sequence of machine is adjusted, adjustment finishes the current address of indoor unit of rear record and deposits memory device in, when off-premises station does not detect upper computer software, be address by default sort record, and deposit memory device in.

Claims (4)

1. the automated randomized addressing communication means of free quantity air-conditioning based on RS485, specifically comprises the steps:
Step 1: addressing
Indoor and outdoor machine powers on simultaneously;
Outer machine timing N second, sends addressing order (broadcasting command), and interior machine receives broadcasting command, reads current gained random number, and through data processing, record is as current address;
Step 2: search
Poll 2-N(N is the number of indoor set, can change according to product) address, the interior machine receiving is replied normal data, outer machine, by checking verification, has determined whether the repetition of interior machine address, receives after the interior machine data of repeat to address (RA), send to corresponding interior machine and reset location order, in order, need to provide already present address, and then confirm poll, wait until always all indoor set communications of inquiry all unique and normal till;
Step 3: determine
Determine location, N tableland, send and determine addressing order, then send sequence order, again give interior machine sequence, all indoor set sequences of training in rotation, sort to all indoor sets, after sequence, the code of all indoor sets of sequence are sent to memory device;
Step 4: exit addressing process, enter normal communication mode.
2. the automated randomized addressing communication means of free quantity air-conditioning based on RS485 as claimed in claim 1, is characterized in that: the concrete steps of step 1 addressing are:
First, indoor and outdoor machine control board powers on simultaneously, and off-premises station postpones N second, starts to send addressing broadcasting command, and within N second, indoor set is by with minimum time unit count, and repeatedly the mode of accumulated error is overflowed in circulation, makes the abundant randomization of count value;
In the time that indoor set receives the addressing order of off-premises station, the count value that intercepts current indoor set is address generate value, by calculating with total number of units of indoor set, obtains the numerical value of a 2-255 as current address.
3. the automated randomized addressing communication means of free quantity air-conditioning based on RS485 as claimed in claim 1, is characterized in that: the concrete steps that step 2 is searched are:
1. off-premises station sends and starts to search action command;
2. off-premises station sends data query bag (for example per second) in the mode of fixed cycle, sends successively data query bag taking 2-255 as destination address;
3. when indoor set receives data query bag, within off-premises station polling cycle, reply data;
4. if the data that off-premises station receives are correct, current address is sent 3 times, three times are all errorless, note down current address of indoor unit, enter next address inquiry;
5. if there is mistake in off-premises station reception data, send 3 times, receive and all occur mistake, illustrate that bus has competition, off-premises station sends to the order of current indoor set deallocation, and appointment is deallocation scope from current address for starting to 255;
If 6. off-premises station does not receive reply, retransmit once confirmation still without replying, the cycle meets rear inquiry next address;
7. inquire about after 255 ends of address (EOA) when off-premises station, off-premises station can be inquired about once 2-255 address again again again, and confirming has competition mistake or under-enumeration without any indoor set;
8. off-premises station sends broadcasting command, confirms to search release.
4. the automated randomized addressing communication means of free quantity air-conditioning based on RS485 as claimed in claim 1, is characterized in that: concrete steps definite in step 3 are:
1. off-premises station passes through order to all indoor sets of record before according to the size of the numerical value of address, carries out address and resets, and by all address of indoor unit location continuation address, 2-N(N is less than 255);
2. when having sorted, engineering staff can pass through upper computer software, and the sequence of machine is adjusted, adjustment finishes the current address of indoor unit of rear record and deposits memory device in, when off-premises station does not detect upper computer software, be address by default sort record, and deposit memory device in.
CN201410291870.9A 2014-06-26 2014-06-26 The automated randomized addressing communication means of free quantity air-conditioning based on RS485 Active CN104065763B (en)

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 true CN104065763A (en) 2014-09-24
CN104065763B 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)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965473A (en) * 2015-07-22 2015-10-07 广东美的暖通设备有限公司 VRV air-conditioning system and automatic addressing method therefor based on CAN bus
CN105181103A (en) * 2015-08-21 2015-12-23 重庆大唐科技股份有限公司 Automatic addressing method for digital weighing sensor
CN105391814A (en) * 2015-10-19 2016-03-09 珠海格力电器股份有限公司 Address allocation method and device for main and auxiliary line controllers
CN105546730A (en) * 2015-12-23 2016-05-04 宁波奥克斯电气股份有限公司 Automatic addressing method of multi-connected air conditioner indoor unit
CN107166562A (en) * 2017-04-21 2017-09-15 珠海格力电器股份有限公司 Multi-connected air conditioner and debugging method and device thereof
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
CN112887439A (en) * 2019-11-29 2021-06-01 株洲中车时代电气股份有限公司 CAN address configuration method and system for air conditioning unit frequency converter

Citations (4)

* Cited by examiner, † Cited by third party
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
US20120214399A1 (en) * 2009-10-30 2012-08-23 Kaichi Tsuji Indoor unit and air conditioner with same
CN103216913A (en) * 2013-04-23 2013-07-24 四川长虹电器股份有限公司 Air conditioner address setting method

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
US20120214399A1 (en) * 2009-10-30 2012-08-23 Kaichi Tsuji Indoor unit and air conditioner with same
CN103216913A (en) * 2013-04-23 2013-07-24 四川长虹电器股份有限公司 Air conditioner address setting method

Cited By (14)

* Cited by examiner, † Cited by third party
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
CN104965473A (en) * 2015-07-22 2015-10-07 广东美的暖通设备有限公司 VRV air-conditioning system and automatic addressing method therefor based on CAN bus
CN105181103A (en) * 2015-08-21 2015-12-23 重庆大唐科技股份有限公司 Automatic addressing method for digital weighing sensor
CN105391814A (en) * 2015-10-19 2016-03-09 珠海格力电器股份有限公司 Address allocation method and device for main and auxiliary line controllers
CN105546730B (en) * 2015-12-23 2018-07-24 宁波奥克斯电气股份有限公司 The automatic addressing method of multi-connected air conditioner indoor unit
CN105546730A (en) * 2015-12-23 2016-05-04 宁波奥克斯电气股份有限公司 Automatic addressing method of multi-connected air conditioner indoor unit
CN107166562A (en) * 2017-04-21 2017-09-15 珠海格力电器股份有限公司 Multi-connected air conditioner and debugging method and device thereof
CN107166562B (en) * 2017-04-21 2019-10-01 珠海格力电器股份有限公司 Multi-connected air conditioner and debugging method and device thereof
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
CN111654557B (en) * 2020-05-29 2024-07-02 安徽天光传感器有限公司 Automatic distribution method for RS485 address code, 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

Also Published As

Publication number Publication date
CN104065763B (en) 2018-02-16

Similar Documents

Publication Publication Date Title
CN104065763A (en) Free-number air conditioner automatic random addressing communication method based on RS485
CN102325201B (en) Method for allocating network addresses to slave node equipment in Modbus communication network
CN101969429A (en) Automatic identification method of electric power meter on RS-485 bus
CN104949288A (en) Multi-connected air conditioning unit, program upgrading system and method thereof and program upgrading device
CN103475747B (en) Address information sending method of electric energy meter networked system capable of automatically sending address information
CN103307704B (en) The main outer machine of air-conditioning one many machines indoor address distribution method
CN101478577A (en) System and method for addressing the slave device by the master device
CN103092113A (en) Time control method of navigation management beam scanning
CN109284121B (en) Method and system for synchronously updating programs of energy storage power supply multi-stage network multi-control equipment
EP3422655B1 (en) Method for managing address of meter device, and acquisition terminal and meter device
CN107181628A (en) Two-way wireless communication method, device and terminal
CN115623358A (en) Meter reading method, meter reading device and meter reading system
CN108931032A (en) A kind of air conditioning control method, device, splitter arrangement and air conditioner
CN113381916A (en) CAN bus intelligent household management method, device, equipment and storage medium
CN100456761C (en) Automatic addressing method for electronic instruments and application
CN104574541A (en) Method and system for synchronizing time sequence of RSUs and multiple antennae
CN205490872U (en) Camera shutter control device and system
CN101442756A (en) Method and apparatus for recognizing baseband zooming unit logic topology structure
CN101551769B (en) Agglomeration method and device of configurable firmware
CN106789188B (en) A kind of method of the apparatus self-adaptation addressing of bus type topological structure
CN113395610B (en) Electromagnetic water meter data supplementary reading method and system
CN113301182B (en) Networking communication system based on PLC bus
CN101945422A (en) Test method of antennas and wireless communication device applying same
CN103841436A (en) Automatic network registering method for set top box
CN106789296B (en) A kind of processing system and method for station institute's terminal remote signalling and the configuration of line switching signal

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