Air conditioner indoor unit bus distributed address allocation method
By utilizing the broadcast and preemption mechanisms of the PowerBus bus, the problems of low efficiency and poor success rate in address allocation for indoor and outdoor units of air conditioners are solved, achieving efficient and reliable IP address allocation for indoor units. It supports indoor unit power failure and dynamic access, and is suitable for on-site installation of multi-split systems.
Patent Information
- Application Number
- CN202411812379.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2044-12-10
AI Technical Summary
Existing distributed indoor unit address allocation methods for air conditioner indoor and outdoor unit buses suffer from low address allocation efficiency, poor success rate, and poor power supply stability, especially in the event of power failure, when indoor unit address allocation cannot be completed.
The PowerBus bus is used for IP address allocation of multi-split indoor units. Virtual addresses are generated by the outdoor unit sending broadcast commands. The indoor units receive the commands and generate random countdown timers to preemptively send IP address requests. The outdoor unit confirms the request and assigns a real IP address, ensuring that the indoor units are dynamically allocated addresses when the power supply is stable.
It achieves efficient and reliable IP address allocation, has low bus cost, can still allocate addresses normally when the indoor unit loses power, supports dynamic access of new indoor units during system operation, and facilitates on-site installation and commissioning of multi-split systems.
Smart Images

Figure CN119697157B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of air conditioning technology, specifically to a distributed indoor unit address allocation method for the indoor and outdoor unit bus of an air conditioner. Background Technology
[0002] A multi-split air conditioning system is a central air conditioning system where an outdoor unit connects to multiple indoor units. Therefore, a system needs to be built with a central control unit (outdoor unit) and multiple slave units (indoor units). Thus, within the same refrigeration system, the central control unit needs to assign a unique valid address to each connected indoor unit. Since central air conditioning systems are installed on-site, and indoor units are installed probabilistically, the central control unit needs to automatically assign addresses to the slave indoor units after the on-site installation is completed during system initialization.
[0003] In existing technologies, indoor and outdoor units use RS485 or CAN bus. CAN bus indoor unit address allocation technology primarily uses a unique MAC address for the indoor unit, which requests an IP address from the outdoor unit (the outdoor air conditioner acts as the host) through the CAN bus's preemption mechanism. RS485 bus, on the other hand, uses a half-duplex communication method. The indoor unit uses random number allocation; that is, after powering on, the outdoor unit (the outdoor unit acts as the host) sends a command to the indoor unit to generate a random number. The indoor unit receives the command from the outdoor unit, executes the random number address generation, and waits for the indoor unit to complete the address generation before assigning an IP address to the indoor unit based on the random number address.
[0004] However, using the CAN bus requires an additional hardware address MAC chip, resulting in complex bus control circuitry and high costs. If a power outage occurs during address allocation, the internal address allocation cannot be completed. The drawbacks of using the RS485 bus are that, due to the lack of bus preemption mechanisms, only random number allocation is possible during address allocation. Therefore, there is a certain probability of failing to allocate an address to the internal unit, and the process is time-consuming. Furthermore, if a power outage occurs during address allocation, the allocation will fail. Additionally, even after internal address allocation, if a new internal unit is connected without a power outage, the internal unit cannot dynamically allocate an IP address; a new address allocation can only be achieved by re-triggering the address allocation process. Again, if a power outage occurs during address allocation, the internal address allocation cannot be completed. Summary of the Invention
[0005] This invention provides a distributed indoor unit address allocation method for air conditioner indoor and outdoor unit buses, aiming to solve the problems of low address allocation efficiency, poor success rate, and poor power supply stability in existing distributed indoor unit address allocation methods for air conditioner indoor and outdoor unit buses.
[0006] This invention provides a method for distributed indoor unit address allocation on an air conditioner's indoor and outdoor unit bus, the method comprising the following steps:
[0007] Step S1: Start. The outdoor unit of the air conditioner sends a broadcast command through the power supply bus. One second after power-on, the outdoor unit broadcasts the command three times at a first preset time interval and generates a virtual address, which is then sent to all indoor units of the air conditioner.
[0008] Step S2: Determine whether the indoor unit of the air conditioner has received the assigned IP address; if yes, the indoor unit of the air conditioner generates a random timer; if no, the indoor unit of the air conditioner receives the broadcast command from the outdoor unit of the air conditioner and generates a random countdown timer with a second preset time as the clock reference. The countdown timer starts counting down after receiving the last broadcast command from the outdoor unit of the air conditioner.
[0009] Step S3: When the countdown time is up, the indoor unit of the air conditioner starts the bus and sends a request command to the outdoor unit of the air conditioner to request an IP address; wherein, the request command is to request a random time value of the indoor unit of the air conditioner.
[0010] Step S4: Determine whether the request command for the indoor unit of the air conditioner was successfully sent. If yes, proceed to step S5. If no, resume the preemption and send command after the third preset time. If the preemption fails, resend the command, and the content sent is an iterative random count value of the request for the indoor unit of the air conditioner. Determine whether the delay time is greater than or equal to 90ms. If yes, proceed to step S5. If no, continue the preemption and sending command in a loop.
[0011] Step S5: The outdoor unit of the air conditioner receives the IP request from the indoor unit of the air conditioner and buffers the IP address sequence number requested by the indoor unit of the air conditioner.
[0012] Step S6: When the outdoor unit of the air conditioner determines that the indoor unit of the air conditioner has no more requests for IP addresses, the outdoor unit of the air conditioner sends a name-calling command based on the requested IP address of the indoor unit of the air conditioner; wherein, the name-calling command includes the real IP address of the corresponding indoor unit of the air conditioner assigned to the outdoor unit of the air conditioner;
[0013] Step S7: Determine whether the name call command received by the indoor unit of the air conditioner from the outdoor unit is consistent with the random count value requested by the indoor unit of the air conditioner; if yes, the indoor unit of the air conditioner replies to the name call command from the outdoor unit of the air conditioner and completes its own IP address drop memory; if no, continue to wait for the name call command sent by the outdoor unit of the air conditioner and repeatedly determine the name call command from the outdoor unit of the air conditioner and the random count value requested by the indoor unit of the air conditioner.
[0014] Step S8: The outdoor unit of the air conditioner receives the name-calling command from the indoor unit of the air conditioner, completes the IP address allocation for the indoor unit of the air conditioner that received the name-calling command, and writes it into the grounding memory; when the outdoor unit of the air conditioner completes the name-calling of all the indoor units of the air conditioner that applied for IP addresses, the IP address allocation for the indoor units of the air conditioner that were powered on is completed.
[0015] Preferably, step S1 specifically includes:
[0016] The outdoor unit of the air conditioner sends a broadcast command via the PowerBus power supply bus. One second after power-on, the outdoor unit broadcasts the command three times at 20ms intervals and generates a virtual address, which is then sent to all indoor units of the air conditioner.
[0017] Preferably, in step S2, the second preset time is 100ms, and the random count value of the random number countdown timer is 100ms to 1600ms.
[0018] Preferably, the following step is further included between step S5 and step S6:
[0019] The outdoor unit of the air conditioner determines whether the number of requested IP addresses plus the number of allocated IP addresses is greater than or equal to the maximum number of IP addresses. If yes, the outdoor unit requests a bus idle time greater than or equal to 100ms and executes step S6. If no, the outdoor unit requests a bus idle time less than 100ms and repeats step S5.
[0020] Preferably, the method further includes step S9, which specifically includes the following steps:
[0021] Step S91: The bus status data and control data of the indoor and outdoor units of the air conditioner are transmitted and received according to the address.
[0022] Step S92: Determine if a new indoor air conditioner unit with no address is connected; if yes, proceed to step S93; if no, proceed to step S91.
[0023] Step S93: The new air conditioner indoor unit starts the bus preemption and sends the request IP command, and the new air conditioner indoor unit generates a random number with a random count value of 100ms to 1600ms;
[0024] Step S94: After the new indoor unit of the air conditioner successfully preempts the bus, the outdoor unit of the air conditioner receives the request for the new indoor unit to apply for an IP address and buffers the IP address sequence number requested by the new indoor unit.
[0025] Step S95: The outdoor unit of the air conditioner sends a new name command based on the IP address requested by the indoor unit of the air conditioner. The new name command contains the real IP address assigned by the outdoor unit to the corresponding new indoor unit of the air conditioner, and the target address is the random number count value requested by the new indoor unit of the air conditioner.
[0026] Step S96: Determine whether the name call command received by the new air conditioner indoor unit from the air conditioner outdoor unit is consistent with the random count value requested by the new air conditioner indoor unit; if yes, the air conditioner indoor unit replies to the name call command from the air conditioner outdoor unit and completes its own IP address drop memory; the air conditioner outdoor unit receives the name call command replied by the new air conditioner indoor unit, completes the IP address allocation of the new air conditioner indoor unit for the name call command, and writes it into the drop memory, and the IP address allocation of the new air conditioner indoor unit is completed during operation; if not, the new air conditioner indoor unit re-applies more than 10 times, and the address allocation of the new air conditioner indoor unit is abnormal.
[0027] Preferably, the power supply bus circuit includes a control chip, a power supply circuit, an input circuit, and an output circuit; the input terminal of the control chip is connected to the input circuit, the output terminal of the control chip is connected to the output circuit, and the power supply circuit is electrically connected to both the input circuit and the output circuit to supply power to the control chip. The control chip is used to control the power supply to the indoor unit and the outdoor unit of the air conditioner, respectively.
[0028] Preferably, the power supply circuit includes a power chip, a first capacitor, a second capacitor, a third capacitor, a fourth capacitor, a fifth capacitor, and a first resistor.
[0029] The first terminal of the first capacitor is connected to the first terminal of the second capacitor, the first terminal of the first resistor, and pin 1 of the power chip, and is used to connect to the power supply. The second terminal of the first capacitor is connected to the second terminal of the second capacitor and pin 2 of the power chip. The second terminal of the first capacitor is also connected to the first terminal of the third capacitor, the first terminal of the fourth capacitor, and the first terminal of the fifth capacitor and grounded. The second terminal of the first resistor is connected to the second terminal of the third capacitor and pin 3 of the power chip. The second terminal of the fourth capacitor is connected to the second terminal of the fifth capacitor and pin 5 of the power chip and is connected to the power supply voltage. Pin 4 of the power chip serves as the NC control pin of the power chip.
[0030] Preferably, the input circuit includes a second resistor, a third resistor, a fourth resistor, a fifth resistor, and a first transistor;
[0031] The first end of the second resistor and the first end of the third resistor are respectively connected to the power supply voltage. The second end of the second resistor is connected to the collector of the first transistor and to the RX interface of the control chip. The second end of the third resistor is respectively connected to the base of the first transistor and the first end of the fourth resistor. The second end of the fourth resistor is respectively connected to the emitter of the first transistor and the first end of the fifth resistor. The second end of the fifth resistor is connected to the power supply.
[0032] Preferably, the output circuit includes a sixth resistor, a seventh resistor, an eighth resistor, and a second transistor;
[0033] The first end of the seventh resistor is connected to the power supply voltage, and the second end of the seventh resistor is connected to the first end of the sixth resistor and the base of the second transistor respectively; the second end of the sixth resistor is connected to the emitter of the second transistor and connected to the TX port of the control chip; the first end of the eighth resistor is connected to the power supply, and the second end of the eighth resistor is connected to the collector of the second transistor.
[0034] Compared with existing technologies, the beneficial effects of this invention are as follows: through steps S1-S8 above, this invention allocates IP addresses for multi-split air conditioner units via the PowerBus bus, resulting in: reliable algorithm, short IP address allocation time, and high allocation success rate; low bus cost; and bus power supply, ensuring normal IP address allocation even when the indoor unit is powered off. Dynamic allocation of indoor unit IP addresses allows for dynamic connection of new indoor units during system operation, facilitating on-site installation and debugging of multi-split air conditioner systems. Attached Figure Description
[0035] The present invention will now be described in detail with reference to the accompanying drawings. The above and other aspects of the present invention will become clearer and more readily understood through the detailed description following the accompanying drawings. In the drawings:
[0036] Figure 1 This is a flowchart of the distributed indoor unit address allocation method for the air conditioner indoor and outdoor unit bus provided in an embodiment of the present invention;
[0037] Figure 2 This is a circuit diagram of the power supply bus provided in an embodiment of the present invention;
[0038] Figure 3 This is a circuit diagram of the PowerBus bus provided in an embodiment of the present invention;
[0039] Figure 4 This is a circuit diagram of the control chip provided in an embodiment of the present invention.
[0040] In the diagram, 1 is the control chip, 2 is the power supply circuit, 3 is the input circuit, and 4 is the output circuit. Detailed Implementation
[0041] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0042] Combined with appendix Figure 1As shown in the figure, this embodiment of the invention provides a distributed indoor unit address allocation method for an air conditioner indoor and outdoor unit bus, the method comprising the following steps:
[0043] Step S1: Start. The outdoor unit of the air conditioner sends a broadcast command through the power supply bus. One second after power-on, the outdoor unit broadcasts the command three times at a first preset time interval and generates a virtual address, which is then sent to all indoor units of the air conditioner.
[0044] Step S2: Determine whether the indoor unit of the air conditioner has received the assigned IP address; if yes, the indoor unit of the air conditioner generates a random timer; if no, the indoor unit of the air conditioner receives the broadcast command from the outdoor unit of the air conditioner and generates a random countdown timer with a second preset time as the clock reference. The countdown timer starts counting down after receiving the last broadcast command from the outdoor unit of the air conditioner.
[0045] Step S3: When the countdown time is up, the indoor unit of the air conditioner starts the bus and sends a request command to the outdoor unit of the air conditioner to request an IP address; wherein, sending the request command is to request a random time value of the indoor unit of the air conditioner.
[0046] Specifically, the internal unit's countdown timer starts counting down T = (x) ms after receiving the last broadcast command A1 from the external unit, with a timing unit of 1 ms. After the countdown is complete (T = (0) ms), the internal unit initiates bus preemption and sends an IP request command A2. The content of the request command A2 is a random timing value (10-160) requested from the internal unit.
[0047] Step S4: Determine whether the request command for the indoor unit of the air conditioner was successfully sent. If yes, proceed to step S5. If no, resume the preemption and send after the third preset time. If the preemption fails, resend the command, and the content sent is an iterative random count value of the indoor unit of the air conditioner. Determine whether the delay time is greater than or equal to 90ms. If yes, proceed to step S5. If no, repeat the preemption and send command in a loop.
[0048] Specifically, the indoor unit sends a request command A2 to determine if the preemption of the indoor unit's bus was successful, and then re-sends the command after a 10ms timer. If the preemption fails, it is resent. The content of A2 is the request for a random timer value +1 for the indoor unit. It is then determined whether the delay time is greater than or equal to 90ms; if so, the outdoor unit receives the IP request from the indoor unit and buffers the IP address sequence number requested by the indoor unit.
[0049] Step S5: The outdoor unit of the air conditioner receives the IP request from the indoor unit of the air conditioner and buffers the IP address sequence number requested by the indoor unit of the air conditioner.
[0050] Step S6: When the outdoor unit of the air conditioner determines that the indoor unit of the air conditioner has no more requests for IP addresses, the outdoor unit of the air conditioner sends a name-calling command based on the requested IP address of the indoor unit of the air conditioner; wherein, the name-calling command includes the real IP address of the corresponding indoor unit of the air conditioner assigned to the outdoor unit of the air conditioner.
[0051] Step S7: Determine whether the name call command received by the indoor unit from the outdoor unit is consistent with the random count value requested by the indoor unit. If yes, the indoor unit replies to the name call command from the outdoor unit and completes its own IP address drop memory. If no, continue to wait for the name call command sent by the outdoor unit and repeatedly determine whether the name call command from the outdoor unit is consistent with the random count value requested by the indoor unit.
[0052] Step S8: The outdoor unit of the air conditioner receives the name-calling command from the indoor unit of the air conditioner, completes the IP address allocation for the indoor unit of the air conditioner that received the name-calling command, and writes it into the grounding memory; when the outdoor unit of the air conditioner completes the name-calling of all the indoor units of the air conditioner that applied for IP addresses, the IP address allocation for the indoor units of the air conditioner that were powered on is completed.
[0053] Specifically, through steps S1-S8 above, this invention uses the PowerBus bus to allocate IP addresses for multi-split air conditioners, resulting in the following advantages: reliable algorithm, short IP address allocation time, and high allocation success rate; low bus cost; bus power supply, ensuring normal IP address allocation even when the indoor unit is powered off. Dynamic allocation of indoor unit IP addresses allows for the dynamic connection of new indoor units during system operation, facilitating on-site installation and debugging of multi-split air conditioner systems.
[0054] Specifically, multi-split air conditioning unit (VRF) address allocation primarily employs automatic address allocation technology. Its core principle involves the outdoor unit sending communication commands, and all indoor units awaiting address allocation undergoing a process of application, outdoor unit authorization, and communication confirmation to ultimately confirm the successful address allocation. Once an indoor unit obtains an address, it no longer requests addresses from the outdoor unit. The remaining indoor units without assigned addresses then apply again, and this cycle continues until all indoor units have received their addresses. This technology boasts a clear principle, efficient algorithm, and strong portability, making it suitable for situations requiring efficient and accurate on-site address configuration.
[0055] In multi-unit systems, address allocation involves a series of control commands and data formats. These commands include address reset, address retrieval, address request, address allocation, and address confirmation commands. The design of these commands and data formats is to realize the core principle of automatic address allocation, ensuring reliable communication and accurate address allocation.
[0056] In addition, address allocation for multi-split air conditioning systems also involves specific engineering applications. For example, in the case of four indoor units, the automatic address allocation process is explained in detail, including the steps of the outdoor unit issuing an address reset control command, all indoor units responding, the indoor units sending an address request to the outdoor unit, the outdoor unit allocating an address after receiving the request, and the indoor units confirming the address.
[0057] In summary, multi-split air conditioning address allocation technology is achieved through automatic address allocation. By using specific control commands and data formats, it ensures that each indoor unit obtains a unique and correct address, thereby enabling the effective operation of the multi-split air conditioning system.
[0058] In this embodiment, step S1 specifically includes: the outdoor unit of the air conditioner sends a broadcast command via the PowerBus power supply bus. One second after power-on, the outdoor unit broadcasts this command three times at 20ms intervals and generates a virtual address, then sends the virtual address to all indoor units. Specifically, the outdoor unit sends an A1 broadcast command via the power supply bus. One second after power-on, the outdoor unit broadcasts 0xA1 three times at 20ms intervals and generates a virtual address, then sends the virtual address to all indoor units. No reply is required. The indoor units execute a random number countdown timer. Upon initial power-on in the engineering configuration, after the outdoor unit's IP address is reassigned, both the outdoor and indoor units retain their IP addresses after power-off. The indoor units retain their own IP addresses, and the outdoor unit retains the IP addresses of the indoor units, as well as the indoor unit's online IP address table. Users can query, clear, and reset the indoor unit's IP addresses through the outdoor unit's button or the factory settings mode of the online controller.
[0059] In this embodiment, in step S2, the second preset time is 100ms, and the random count value of the random number countdown timer is 100ms to 1600ms.
[0060] Specifically, after receiving the A1 broadcast command from the outdoor unit, the indoor unit of the air conditioner that has not been assigned an IP address generates a random countdown timer with a clock base of 100ms. The random count value is 1 to 16, which is 100ms to 1600ms. The countdown timer starts counting down after receiving the last broadcast command packet from the outdoor unit.
[0061] In this embodiment, between step S5 and step S6, the following step is further included: the outdoor unit of the air conditioner determines whether the number of requested IP addresses plus the number of allocated IP addresses is greater than or equal to the maximum number of IP addresses; if yes, the outdoor unit of the air conditioner requests a bus idle time greater than or equal to 100ms and executes step S6; if no, the outdoor unit of the air conditioner requests a bus idle time less than 100ms and repeats step S5.
[0062] In this embodiment, the method further includes step S9, which specifically includes the following steps:
[0063] Step S91: The bus status data and control data of the indoor and outdoor units of the air conditioner are transmitted and received according to the address.
[0064] Step S92: Determine if a new indoor air conditioner unit with no address is connected; if yes, proceed to step S93; if no, proceed to step S91.
[0065] Step S93: The new air conditioner indoor unit starts the bus preemption and sends the request IP command, and the new air conditioner indoor unit generates a random number with a random count value of 100ms to 1600ms;
[0066] Step S94: After the new indoor unit of the air conditioner successfully preempts the bus, the outdoor unit of the air conditioner receives the request for the new indoor unit to apply for an IP address and buffers the IP address sequence number requested by the new indoor unit.
[0067] Step S95: The outdoor unit of the air conditioner sends a new name command based on the IP address requested by the indoor unit of the air conditioner. The new name command contains the real IP address assigned by the outdoor unit to the corresponding new indoor unit of the air conditioner, and the target address is the random number count value requested by the new indoor unit of the air conditioner.
[0068] Step S96: Determine whether the name call command received by the new air conditioner indoor unit from the air conditioner outdoor unit is consistent with the random count value requested by the new air conditioner indoor unit; if yes, the air conditioner indoor unit replies to the name call command from the air conditioner outdoor unit and completes its own IP address drop memory; the air conditioner outdoor unit receives the name call command replied by the new air conditioner indoor unit, completes the IP address allocation of the new air conditioner indoor unit for the name call command, and writes it into the drop memory, and the IP address allocation of the new air conditioner indoor unit is completed during operation; if not, the new air conditioner indoor unit re-applies more than 10 times, and the address allocation of the new air conditioner indoor unit is abnormal.
[0069] In this embodiment, as Figures 2-4 As shown, the power supply bus circuit includes a control chip 1, a power supply circuit 2, an input circuit 3, and an output circuit 4. The input terminal of the control chip 1 is connected to the input circuit 3, and the output terminal of the control chip 1 is connected to the output circuit 4. The power supply circuit 2 is electrically connected to the input circuit 3 and the output circuit 4 respectively to supply power to the control chip 1. The control chip 1 is used to control the power supply of the indoor unit and the outdoor unit of the air conditioner respectively.
[0070] In this embodiment, the power supply circuit 2 includes a power chip IC7, a first capacitor C1, a second capacitor C2, a third capacitor C3, a fourth capacitor C4, a fifth capacitor C5, and a first resistor R1. The first terminal of the first capacitor C1 is connected to the first terminal of the second capacitor C2, the first terminal of the first resistor R1, and pin 1 of the power chip IC7, and is used to connect to the power supply (+5V). The second terminal of the first capacitor C1 is connected to the second terminal of the second capacitor C2 and pin 2 of the power chip IC7. The second terminal of the first capacitor C1 is also connected to the first terminal of the third capacitor C3, the first terminal of the fourth capacitor C4, and the first terminal of the fifth capacitor C5, and grounded. The second terminal of the first resistor R1 is connected to the second terminal of the third capacitor C3 and pin 3 of the power chip IC7. The second terminal of the fourth capacitor C4 is connected to the second terminal of the fifth capacitor C5 and pin 5 of the power chip IC7, and is connected to the power supply voltage (3V3). Pin 4 of the power chip IC7 serves as the NC control pin of the power chip IC7.
[0071] In this embodiment, the input circuit 3 includes a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, and a first transistor Q1;
[0072] The first end of the second resistor R2 and the first end of the third resistor R3 are respectively connected to the power supply voltage. The second end of the second resistor R2 is connected to the collector of the first transistor Q1 and to the RX interface of the control chip 1. The second end of the third resistor R3 is connected to the base of the first transistor Q1 and the first end of the fourth resistor R4. The second end of the fourth resistor R4 is connected to the emitter of the first transistor Q1 and the first end of the fifth resistor R5. The second end of the fifth resistor R5 is connected to the power supply.
[0073] In this embodiment, the output circuit 4 includes a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, and a third thermoelectric transistor Q2;
[0074] The first end of the seventh resistor R7 is connected to the power supply voltage, and the second end of the seventh resistor R7 is connected to the first end of the sixth resistor R6 and the base of the hot transistor Q2. The second end of the sixth resistor R6 is connected to the emitter of the hot transistor Q2 and connected to the TX port of the control chip 1. The first end of the eighth resistor R8 is connected to the power supply, and the second end of the eighth resistor R8 is connected to the collector of the hot transistor Q2.
[0075] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, article, or apparatus that includes that element.
[0076] The embodiments of the present invention have been described above with reference to the accompanying drawings. The disclosed embodiments are merely preferred embodiments of the present invention. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many equivalent changes in form without departing from the spirit and scope of the claims of the present invention, and all such changes are within the protection scope of the present invention.
Claims
1. A method for distributed indoor unit address allocation in an air conditioner's indoor and outdoor unit bus, characterized in that, The method includes the following steps: Step S1: Start. The outdoor unit of the air conditioner sends a broadcast command through the power supply bus. One second after power-on, the outdoor unit broadcasts the command three times at a first preset time interval and generates a virtual address, which is then sent to all indoor units of the air conditioner. Step S2: Determine whether the indoor unit of the air conditioner has received the assigned IP address; if yes, the indoor unit of the air conditioner generates a random timer; if no, the indoor unit of the air conditioner receives the broadcast command from the outdoor unit of the air conditioner and generates a random countdown timer with a second preset time as the clock reference. The countdown timer starts counting down after receiving the last broadcast command from the outdoor unit of the air conditioner. Step S3: When the countdown time is up, the indoor unit of the air conditioner starts the bus and sends a request command to the outdoor unit of the air conditioner to request an IP address; wherein, the request command is to request a random time value of the indoor unit of the air conditioner. Step S4: Determine whether the request command for the indoor unit of the air conditioner was successfully sent. If yes, proceed to step S5. If no, resume the preemption and send command after the third preset time. If the preemption fails, resend the command, and the content sent is an iterative random count value of the request for the indoor unit of the air conditioner. Determine whether the delay time is greater than or equal to 90ms. If yes, proceed to step S5. If no, continue the preemption and sending command in a loop. Step S5: The outdoor unit of the air conditioner receives the IP request from the indoor unit of the air conditioner and buffers the IP address sequence number requested by the indoor unit of the air conditioner. Step S6: When the outdoor unit of the air conditioner determines that the indoor unit of the air conditioner has no more requests for IP addresses, the outdoor unit of the air conditioner sends a name-calling command based on the requested IP address of the indoor unit of the air conditioner; wherein, the name-calling command includes the real IP address of the corresponding indoor unit of the air conditioner assigned to the outdoor unit of the air conditioner; Step S7: Determine whether the name call command received by the indoor unit of the air conditioner from the outdoor unit is consistent with the random count value requested by the indoor unit of the air conditioner; if yes, the indoor unit of the air conditioner replies to the name call command from the outdoor unit of the air conditioner and completes its own IP address drop memory; if no, continue to wait for the name call command sent by the outdoor unit of the air conditioner and repeatedly determine the name call command from the outdoor unit of the air conditioner and the random count value requested by the indoor unit of the air conditioner. Step S8: The outdoor unit of the air conditioner receives the name-calling command from the indoor unit of the air conditioner, completes the IP address allocation for the indoor unit of the air conditioner that received the name-calling command, and writes it into the grounding memory; when the outdoor unit of the air conditioner completes the name-calling of all the indoor units of the air conditioner that applied for IP addresses, the IP address allocation for the indoor units of the air conditioner that were powered on is completed.
2. The distributed indoor unit address allocation method for air conditioner indoor and outdoor unit buses as described in claim 1, characterized in that, Step S1 specifically includes: The outdoor unit of the air conditioner sends a broadcast command via the PowerBus power supply bus. One second after power-on, the outdoor unit broadcasts the command three times at 20ms intervals and generates a virtual address, which is then sent to all indoor units of the air conditioner.
3. The distributed indoor unit address allocation method for air conditioner indoor and outdoor unit buses as described in claim 1, characterized in that, In step S2, the second preset time is 100ms, and the random count value of the random number countdown timer is 100ms to 1600ms.
4. The distributed indoor unit address allocation method for air conditioner indoor and outdoor unit buses as described in claim 1, characterized in that, Between step S5 and step S6, the following steps are also included: The outdoor unit of the air conditioner determines whether the number of requested IP addresses plus the number of allocated IP addresses is greater than or equal to the maximum number of IP addresses. If yes, the outdoor unit requests a bus idle time greater than or equal to 100ms and executes step S6. If no, the outdoor unit requests a bus idle time less than 100ms and repeats step S5.
5. The distributed indoor unit address allocation method for air conditioner indoor and outdoor unit buses as described in claim 1, characterized in that, The method further includes step S9, which specifically includes the following steps: Step S91: The bus status data and control data of the indoor and outdoor units of the air conditioner are transmitted and received according to the address. Step S92: Determine if a new indoor air conditioner unit with no address is connected; if yes, proceed to step S93; if no, proceed to step S91. Step S93: The new air conditioner indoor unit starts the bus preemption and sends the request IP command, and the new air conditioner indoor unit generates a random number with a random count value of 100ms to 1600ms; Step S94: After the new indoor unit of the air conditioner successfully preempts the bus, the outdoor unit of the air conditioner receives the request for the new indoor unit to apply for an IP address and buffers the IP address sequence number requested by the new indoor unit. Step S95: The outdoor unit of the air conditioner sends a new name command based on the IP address requested by the indoor unit of the air conditioner. The new name command contains the real IP address assigned by the outdoor unit to the corresponding new indoor unit of the air conditioner, and the target address is the random number count value requested by the new indoor unit of the air conditioner. Step S96: Determine whether the name call command received by the new air conditioner indoor unit from the air conditioner outdoor unit is consistent with the random count value requested by the new air conditioner indoor unit; if yes, the air conditioner indoor unit replies to the name call command from the air conditioner outdoor unit and completes its own IP address drop memory; the air conditioner outdoor unit receives the name call command replied by the new air conditioner indoor unit, completes the IP address allocation of the new air conditioner indoor unit for the name call command, and writes it into the drop memory, and the IP address allocation of the new air conditioner indoor unit is completed during operation; if not, the new air conditioner indoor unit re-applies more than 10 times, and the address allocation of the new air conditioner indoor unit is abnormal.
6. The distributed indoor unit address allocation method for air conditioner indoor and outdoor unit buses as described in claim 1, characterized in that, The power supply bus circuit includes a control chip, a power supply circuit, an input circuit, and an output circuit. The input terminal of the control chip is connected to the input circuit, and the output terminal of the control chip is connected to the output circuit. The power supply circuit is electrically connected to both the input circuit and the output circuit to supply power to the control chip. The control chip is used to control the power supply to the indoor unit and the outdoor unit of the air conditioner.
7. The distributed indoor unit address allocation method for air conditioner indoor and outdoor unit buses as described in claim 6, characterized in that, The power supply circuit includes a power chip, a first capacitor, a second capacitor, a third capacitor, a fourth capacitor, a fifth capacitor, and a first resistor; The first terminal of the first capacitor is connected to the first terminal of the second capacitor, the first terminal of the first resistor, and pin 1 of the power chip, and is used to connect to the power supply. The second terminal of the first capacitor is connected to the second terminal of the second capacitor and pin 2 of the power chip. The second terminal of the first capacitor is also connected to the first terminal of the third capacitor, the first terminal of the fourth capacitor, and the first terminal of the fifth capacitor and grounded. The second terminal of the first resistor is connected to the second terminal of the third capacitor and pin 3 of the power chip. The second terminal of the fourth capacitor is connected to the second terminal of the fifth capacitor and pin 5 of the power chip and is connected to the power supply voltage. Pin 4 of the power chip serves as the NC control pin of the power chip.
8. The distributed indoor unit address allocation method for air conditioner indoor and outdoor unit bus as described in claim 7, characterized in that, The input circuit includes a second resistor, a third resistor, a fourth resistor, a fifth resistor, and a first transistor; The first end of the second resistor and the first end of the third resistor are respectively connected to the power supply voltage. The second end of the second resistor is connected to the collector of the first transistor and to the RX interface of the control chip. The second end of the third resistor is respectively connected to the base of the first transistor and the first end of the fourth resistor. The second end of the fourth resistor is respectively connected to the emitter of the first transistor and the first end of the fifth resistor. The second end of the fifth resistor is connected to the power supply.
9. The distributed indoor unit address allocation method for air conditioner indoor and outdoor unit buses as described in claim 7, characterized in that, The output circuit includes a sixth resistor, a seventh resistor, an eighth resistor, and a second transistor; The first end of the seventh resistor is connected to the power supply voltage, and the second end of the seventh resistor is connected to the first end of the sixth resistor and the base of the second transistor respectively; the second end of the sixth resistor is connected to the emitter of the second transistor and connected to the TX port of the control chip; the first end of the eighth resistor is connected to the power supply, and the second end of the eighth resistor is connected to the collector of the second transistor.
Citation Information
Patent Citations
Setting method for communication address of indoor unit in air conditioning system and air conditioning system
CN104101048A
Indoor unit address allocation method, switching apparatus and computer readable storage medium
CN107707684A