CN103307704B - The main outer machine of air-conditioning one many machines indoor address distribution method - Google Patents
The main outer machine of air-conditioning one many machines indoor address distribution method Download PDFInfo
- Publication number
- CN103307704B CN103307704B CN201310245794.3A CN201310245794A CN103307704B CN 103307704 B CN103307704 B CN 103307704B CN 201310245794 A CN201310245794 A CN 201310245794A CN 103307704 B CN103307704 B CN 103307704B
- Authority
- CN
- China
- Prior art keywords
- address
- indoor set
- premises station
- indoor
- sequence code
- 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
Landscapes
- Small-Scale Networks (AREA)
Abstract
The main outer machine of a kind of air-conditioning one many machines indoor address distribution method, relates to air-conditioning multiple indoor set device talk address assignment.Address distribution method, comprise the following steps: A, in the plant produced stage, utilize computer one to one the current computer time (year, month, day, hour, min, second) to be added that the random number of two bytes sends to indoor set controller as identifier, indoor set controller is stored into eeprom memory after receiving the identifier of 8 bytes; B, in the installation and debugging stage, address registration is initiated through button menu trigger condition, now indoor set produces the CRC8 check code of a byte according to identifier calculation and is attached to aforementioned identifiers and is sent to off-premises station together, this string numeral is carried out sequencing numbers and sends it back indoor set according to agreement by off-premises station, indoor set stores this numbering as address, and off-premises station stores and sends total quantity as indoor set number of units.The present invention utilizes existing internal-external machine RS485 communication network, the mode linked by indoor and outdoor machine, realizes automatically distributing and registration address of indoor unit function, and easy and simple to handle, success rate is high.
Description
Technical field
The present invention relates to air-conditioning one master and multiple slaves device talk address assignment.
Background technology
Every platform off-premises station of multi-type air-conditioning can connect multiple stage indoor set, controls communication among unit and adopts RS485 bus medium; Require during communication that every platform has definite unduplicated address number from equipment (indoor set), otherwise cannot use.Adopt common dial-up, other mode of key zone more complicated, operating personnel operate consuming time more, easily dial by mistake.
Summary of the invention
The object of the present invention is to provide the main outer machine of a kind of air-conditioning one easy and simple to handle many machines indoor address distribution method.
Object of the present invention can realize like this, designs the main outer machine of a kind of air-conditioning one many machines indoor address distribution method, comprises the following steps:
Current time is added 2 random numbers and is sent to indoor set controller as login ID by A, computer, and indoor set controller is stored into memory after receiving the identifier of 8 bytes; Time is accurate to year, month, day, hour, min, second;
B, indoor set calculate the CRC8 of a generation byte according to sequence code and are attached to aforementioned identifiers and are sent to off-premises station together, this string numeral is carried out sequencing numbers and sends it back indoor set according to agreement by off-premises station, indoor set stores this numbering as address, and off-premises station stores total quantity as indoor set number of units.
Further, register control procedure to comprise:
A1, initiation login state: outdoor controller initiates registration, indoor set receives initiation registration and enters address registration state;
A2, search sequence code: off-premises station is initiated login state time delay and entered search sequence code state after 5 seconds, and indoor set receives the search sequence code order of off-premises station, the sequence code inquiry of response off-premises station;
A3, address assignment: off-premises station receives correct indoor set sequence code response, carries out sequencing numbers and numbering is sent back to indoor set; Indoor set receives this numbering and stores as the address be assigned to, and enters address acquisition wait state;
A4, address assignment complete detection: off-premises station enters transmission address assignment and completes detection after completing and inquiring about from the CRC CRC8 of 00H ~ FFH; After indoor set receives orders, detect whether have address;
A5, address assignment complete: off-premises station sends and is assigned sense command.Then the state of being assigned is entered without interior machine response; Indoor set enters normal operating condition after receiving and being assigned order.
Preferably, initiate login state: off-premises station interval 100ms sends and initiates log-in command, and indoor set receives the address registration order of off-premises station, enters address registration state, according to the sequence code calculating cyclic redundancy check code CRC8 of 8 bytes;
Search sequence code: after off-premises station enters search sequence code state, sends search sequence code; Indoor set receives the search sequence code order of off-premises station, replys, otherwise do not reply when the CRC8 that analysis judgment receives is identical with the CRC8 calculated;
Address assignment: off-premises station receives correct indoor set sequence code response, enters address assignment state, sends allocation address order to the machine of corresponding CRC8; The indoor set that corresponding CRC8 is identical with sequence code receives the address assignment order of off-premises station, and address acquisition also stores, and waits for that the address registration of outer machine enters normal operating condition after completing order;
Address assignment completes detection: off-premises station enters transmission address assignment and completes sense command lasting 5 seconds after completing and inquiring about from the CRC CRC8 of 00H ~ FFH; If there is response, reenter initiation login state;
If nonreply, enter address assignment and complete the stage; Continuous 10 take turns initiation registration still has interior machine to reply zero-address, and compulsory withdrawal is registered; Indoor set receive off-premises station be assigned sense command after, interior machine testing has zero-address, and the interior machine of allocation address does not process, and does not have the interior machine of allocation address to continue response;
Address assignment completes: after off-premises station enters address assignment completion status, inquires about machine in allocation address by platform;
Indoor set receive off-premises station be assigned order after, interior machine enters normal operating condition.
Further, described sequence code at least comprises 6 bytes; In byte 1, Bit0 is month data, and Bit1 ~ Bit7 is time data; In byte 2, Bit0 ~ Bit3 is date data, and Bit4 ~ Bit7 is month data; In byte 3, Bit0 ~ Bit2 is minute data, and Bit2 ~ Bit7 is hour data; In byte 4, Bit0 ~ Bit3 is data in second, and Bit4 ~ Bit7 is minute data; In byte 5, Bit0 ~ Bit5 is random data, and Bit5 ~ Bit7 is data in second; In byte 6, Bit0 ~ Bit7 is random data.
Further, when again receive under login state initiate log-in command time advanced row sequence code each byte add 1 after calculating cyclic redundancy check code CRC8 again.
The present invention utilizes existing internal-external machine RS485 communication network, the mode linked by indoor and outdoor machine, realizes automatically distributing and registration address of indoor unit function, and easy and simple to handle, success rate is high.
Accompanying drawing explanation
Fig. 1 is the control procedure schematic diagram of present pre-ferred embodiments;
Detailed description of the invention
Below in conjunction with embodiment, the invention will be further described.
The main outer machine of a kind of air-conditioning one many machines indoor address distribution method, first utilize computer by current time, be accurate to year, month, day, hour, min, second, the random number of adding 2 sends to indoor set controller as login ID, and indoor set controller is stored into EEPPROM after receiving the identifier of 8 bytes; Then indoor set produces the CRC8 of a byte according to this string identifier calculation and is attached to aforementioned identifiers and is sent to off-premises station together, this string numeral is carried out sequencing numbers and sends it back indoor set according to agreement by off-premises station, indoor set stores this numbering as address, and off-premises station stores total quantity as indoor set number of units.
The unique sequence code of indoor set generates and sends when carrying out production test and stores to indoor set controller.
Sequence code at least comprises 6 bytes, and its content is followed successively by:
Byte1:
Byte2:
Byte3:
Byte4:
Byte5:
Byte6:
Guarantee indoor set, outdoor unit modules is energized and is in normal operating condition (non-program state), operation off-premises station specified button or upper computer software enter registration process, within continuous 3 minutes, do not have registration to complete, then compulsory withdrawal registration.
As shown in Figure 1, register control procedure to comprise:
A1, initiation login state: outdoor controller enters initiation login state, and indoor set receives the address registration order of off-premises station, enters address registration state;
A2, search sequence code: off-premises station is initiated login state time delay and entered search sequence code state after 5 seconds, and indoor set receives the search sequence code order of off-premises station, the sequence code inquiry of response off-premises station;
A3, address assignment: off-premises station receives correct indoor set sequence code response, enters address assignment state; Indoor set receives the address assignment order of off-premises station, enters address acquisition wait state;
A4, address assignment complete detection: off-premises station sends detection and is assigned check command after completing and inquiring about from the CRC CRC8 of 00H ~ FFH; After indoor set receives detection check order, detect whether have address;
A5, address assignment complete: off-premises station sends and is assigned sense command.Then the state of being assigned is entered without interior machine response; Indoor set enters normal operating condition after receiving and being assigned order.
Address registration each stage performs an action:
1, login state is initiated: off-premises station interval 100ms sends and initiates log-in command, and indoor set receives the address registration order of off-premises station, enters address registration state, according to the sequence code calculating cyclic redundancy check code CRC8 of 8 bytes.When again receive under login state initiate log-in command time advanced row sequence code each byte add 1 after calculating cyclic redundancy check code CRC8 again.
2, search sequence code: after off-premises station enters search sequence code state, sends search sequence code; Indoor set receives the search sequence code order of off-premises station, replys, otherwise do not reply when the CRC8 that analysis judgment receives is identical with calculating CRC8.
3, address assignment: off-premises station receives correct indoor set sequence code response, enters address assignment state, sends allocation address order to the machine of corresponding CRC8; The indoor set that corresponding CRC8 is identical with sequence code receives the address assignment order of off-premises station, and address acquisition also stores, and waits for that the address registration of outer machine enters normal operating condition after completing order.
4, address assignment completes detection: off-premises station enters transmission address assignment and completes detection life lasting 5 seconds after completing and inquiring about from the CRC CRC8 of 00H ~ FFH; Response is had then to reenter initiation login state; Nonreply then enters address assignment and completes; Continuous 10 take turns initiation registration still has interior machine to reply zero-address, and compulsory withdrawal is registered; Indoor set receive off-premises station be assigned sense command after, interior machine testing has zero-address, and the interior machine of allocation address does not process, and does not have the interior machine of allocation address to continue response.
5, address assignment completes: after off-premises station enters address assignment completion status, inquires about machine in allocation address by platform; Indoor set receive off-premises station be assigned order after, interior machine enters normal operating condition.
6, the present invention utilizes existing internal-external machine RS485 communication network, the mode linked by indoor and outdoor machine, realizes automatically distributing and registration address of indoor unit function, and easy and simple to handle, success rate is high.
Claims (5)
1. the main outer machine of air-conditioning one many machines indoor address distribution method, is characterized in that comprising the following steps:
Current time and two byte random numbers are sent to indoor set controller as login ID by A, computer, and indoor set controller is stored into memory after receiving the sequence code of 8 bytes; Time is accurate to year, month, day, hour, min, second;
B, indoor set calculate the CRC8 check code of a generation byte according to sequence code and are attached to aforementioned identifiers and are sent to off-premises station together, this string numeral is carried out sequencing numbers and sends it back indoor set according to agreement by off-premises station, indoor set stores this numbering as address, and off-premises station stores total quantity as indoor set number of units.
2. the main outer machine of air-conditioning one according to claim 1 many machines indoor address distribution method, is characterized in that, registration control procedure comprises:
A1, initiation login state: outdoor controller enters initiates the order of login state broadcast transmission, and indoor set also enters address registration state after receiving and initiating order;
A2, search sequence code: off-premises station is initiated login state time delay and entered search sequence code state after 5 seconds, and indoor set receives the query identifier order of off-premises station, the identifier query of response off-premises station;
A3, address assignment: off-premises station receives correct indoor set sequence code response, carries out sequencing numbers and numbering is sent back to indoor set; Indoor set receives this numbering and stores as the address be assigned to, and enters address acquisition wait state;
A4, address assignment complete detection: off-premises station sends detection and is assigned check command after completing and inquiring about from the CRC CRC8 of 00H ~ FFH; After indoor set receives detection check order, detect whether have address;
A5, address assignment complete: off-premises station sends and is assigned sense command; Then the state of being assigned is entered without interior machine response; Indoor set enters normal operating condition after receiving and being assigned order.
3. the main outer machine of air-conditioning one according to claim 2 many machines indoor address distribution method, is characterized in that:
Initiate login state: off-premises station interval 100ms sends and initiates log-in command, and indoor set receives the address registration order of off-premises station, enters address registration state, according to the identifier calculation CRC CRC8 of 8 bytes;
Search sequence code: after off-premises station enters search sequence code state, sends search sequence code; Indoor set receives the search sequence code order of off-premises station, replys, otherwise do not reply when the CRC CRC8 that analysis judgment receives is identical with calculating cyclic redundancy check code CRC8;
Address assignment: off-premises station receives correct indoor set sequence code response, enters address assignment state, sends allocation address and orders to the machine of corresponding CRC CRC8; The indoor set that corresponding CRC8 is identical with sequence code receives the address assignment order of off-premises station, and address acquisition also stores, and waits for that the address registration of outer machine enters normal operating condition after completing order;
Address assignment completes detection: off-premises station enters transmission address assignment and completes sense command lasting 5 seconds after completing and inquiring about from the CRC CRC8 of 00H ~ FFH; If there is response, reenter initiation login state; If nonreply, enter address assignment and complete the stage; Continuous 10 take turns initiation registration still has interior machine to reply zero-address, and compulsory withdrawal is registered; Indoor set receive off-premises station be assigned sense command after, interior machine is with and detects without allocation address, and the interior machine of allocation address does not process, does not have the interior machine of allocation address to continue response;
Address assignment completes: after off-premises station enters address assignment completion status, inquires about machine in allocation address by platform; Indoor set receive off-premises station be assigned order after, enter normal operating condition.
4. the main outer machine of air-conditioning one according to claim 1 many machines indoor address distribution method, it is characterized in that, described sequence code at least comprises 6 bytes; In byte 1, Bit0 is month data, and Bit1 ~ Bit7 is time data; In byte 2, Bit0 ~ Bit3 is date data, and Bit4 ~ Bit7 is month data; In byte 3, Bit0 ~ Bit2 is minute data, and Bit2 ~ Bit7 is hour data; In byte 4, Bit0 ~ Bit3 is data in second, and Bit4 ~ Bit7 is minute data; In byte 5, Bit0 ~ Bit5 is random data, and Bit5 ~ Bit7 is data in second; In byte 6, Bit0 ~ Bit7 is random data.
5. the main outer machine of air-conditioning one according to Claims 2 or 3 many machines indoor address distribution method, is characterized in that: when again receive under login state initiate log-in command time advanced person's row sequence code each byte add 1 after calculating cyclic redundancy check code CRC8 again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310245794.3A CN103307704B (en) | 2013-06-20 | 2013-06-20 | The main outer machine of air-conditioning one many machines indoor address distribution method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310245794.3A CN103307704B (en) | 2013-06-20 | 2013-06-20 | The main outer machine of air-conditioning one many machines indoor address distribution method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103307704A CN103307704A (en) | 2013-09-18 |
CN103307704B true CN103307704B (en) | 2016-03-02 |
Family
ID=49133211
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310245794.3A Active CN103307704B (en) | 2013-06-20 | 2013-06-20 | The main outer machine of air-conditioning one many machines indoor address distribution method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103307704B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105783178B (en) * | 2014-12-23 | 2019-03-22 | 青岛海尔空调电子有限公司 | A kind of control method of air-conditioning Centralized Controller |
CN106871346B (en) * | 2017-02-05 | 2019-07-19 | 广东美的暖通设备有限公司 | The communication means and device of multi-online air-conditioning system |
CN108717119B (en) * | 2018-04-20 | 2021-05-11 | 南京红十字血液中心 | Random quality control sample adding method based on time sequence for enzyme-linked immunoassay |
CN110296503B (en) * | 2019-05-10 | 2021-04-27 | 珠海格力电器股份有限公司 | Method for automatically allocating addresses to air conditioning unit and air conditioning system |
CN110576884B (en) * | 2019-09-05 | 2021-09-28 | 阿纳克斯(苏州)轨道系统有限公司 | Vehicle RS485 cascade communication method for rail transit |
CN113010343B (en) * | 2021-02-25 | 2023-07-07 | 中车株洲电力机车有限公司 | High-safety equipment coding method and system and train |
CN113765760B (en) * | 2021-07-26 | 2023-05-12 | 江苏科曜能源科技有限公司 | Method for automatically distributing address of slave control unit by battery management system |
CN116414569B (en) * | 2023-06-12 | 2023-08-11 | 上海聪链信息科技有限公司 | Task processing system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1412490A (en) * | 2001-10-15 | 2003-04-23 | Lg电子株式会社 | Air Conditioning system and control method thereof |
EP1429083A1 (en) * | 2002-12-10 | 2004-06-16 | Lg Electronics Inc. | Multi-air conditioner system with integrated control system |
CN1987239A (en) * | 2005-12-22 | 2007-06-27 | 乐金电子(天津)电器有限公司 | Air conditioning system capable of group control and its operation method |
CN101078932A (en) * | 2006-05-24 | 2007-11-28 | 日立空调·家用电器株式会社 | Air conditioner and address setting method for the same |
CN101852472A (en) * | 2009-04-01 | 2010-10-06 | 欧威尔空调(中国)有限公司 | Automatic addressing method for air conditioning system and air conditioning controller |
KR20120026374A (en) * | 2010-09-09 | 2012-03-19 | 엘지전자 주식회사 | Air conditioner and addressing method |
-
2013
- 2013-06-20 CN CN201310245794.3A patent/CN103307704B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1412490A (en) * | 2001-10-15 | 2003-04-23 | Lg电子株式会社 | Air Conditioning system and control method thereof |
EP1429083A1 (en) * | 2002-12-10 | 2004-06-16 | Lg Electronics Inc. | Multi-air conditioner system with integrated control system |
CN1987239A (en) * | 2005-12-22 | 2007-06-27 | 乐金电子(天津)电器有限公司 | Air conditioning system capable of group control and its operation method |
CN101078932A (en) * | 2006-05-24 | 2007-11-28 | 日立空调·家用电器株式会社 | Air conditioner and address setting method for the same |
CN101852472A (en) * | 2009-04-01 | 2010-10-06 | 欧威尔空调(中国)有限公司 | Automatic addressing method for air conditioning system and air conditioning controller |
KR20120026374A (en) * | 2010-09-09 | 2012-03-19 | 엘지전자 주식회사 | Air conditioner and addressing method |
Also Published As
Publication number | Publication date |
---|---|
CN103307704A (en) | 2013-09-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103307704B (en) | The main outer machine of air-conditioning one many machines indoor address distribution method | |
CN105224362A (en) | Host computer carries out the method and system of program upgrade to slave computer | |
CN102831756B (en) | Mobile terminal positioning electric utility meter reading method and meter reading system | |
CN108019881B (en) | Wire controller power supply control method and device of multi-connected air conditioning system and air conditioner | |
CN103760874A (en) | Method for locating meter reading fault source of low-voltage area | |
CN110084718A (en) | A kind of family Tai Qu becomes the accurate method of calibration of relationship and device | |
CN107069961A (en) | A kind of transformer station's telemechanical apparatus and the method for regulating and controlling main website remote signalling automated closed-loop joint debugging | |
WO2015149594A1 (en) | Iec61850-based communication simulation method for partial discharge on-line monitoring device | |
CN103869771A (en) | Environment monitoring system | |
CN110765112A (en) | Energy equipment data association method and system based on Internet of things identification technology | |
CN202975216U (en) | Automatic collector test tool system | |
WO2015149596A1 (en) | Iec61850-based communication simulation method for leakage current on-line monitoring device | |
WO2015149595A1 (en) | Iec61850-based communication simulation method for insulation on-line monitoring device | |
CN106941281A (en) | A kind of telemechanical apparatus based on supervisory control of substation backstage and the method for regulating and controlling main website remote measurement automated closed-loop joint debugging | |
CN107357621A (en) | A kind of method that long distance wireless software upgrading is carried out to satellite time transfer equipment | |
CN111030867A (en) | Communication acquisition device based on dial switch and communication protocol configuration-free method | |
CN108088315A (en) | A kind of intelligence firework display system | |
CN104155086B (en) | Wirelessly remotely controlled optical fiber sensing structure health monitoring system and application method thereof | |
CN106909615B (en) | Method and device for verifying data information consistency between master station and substation | |
CN103926913A (en) | Total station tunnel deformation remote monitoring system and establishing method thereof | |
CN209215571U (en) | Batch verification formula clock of power meter check system | |
CN114158217B (en) | Customized value streaming method of master station system | |
CN113395610B (en) | Electromagnetic water meter data supplementary reading method and system | |
CN106935008B (en) | Ad hoc network method of meter reading system | |
CN116150195A (en) | System and method for online monitoring safety low-carbon electricity consumption of users in multiple types of parks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |