Bus distributed indoor unit address allocation method for indoor unit and outdoor unit of air conditioner
Through the PowerBus bus, the IP address allocation of multiple online internal units is solved, and the problems of low address allocation efficiency, poor success rate and poor power supply stability in the prior art are solved, and efficient and reliable IP address allocation and dynamic internal unit access are achieved.
Patent Information
- Application Number
- CN202411812379.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-12-10
AI Technical Summary
The existing distributed internal unit address allocation method for air conditioning internal and external buses has problems such as low address allocation efficiency, poor success rate, and poor power supply stability.
Multiple online internal IP addresses are allocated through the PowerBus bus. The specific steps include broadcasting and sending virtual addresses for the air conditioner external unit, receiving and generating a random timer or countdown timer, and confirming the IP address after successfully applying for the IP address to ensure the accurate allocation of the IP address.
It realizes algorithm reliability, short IP address allocation time, high allocation success rate, low bus cost, and can still allocate internal IP addresses normally under poor power supply stability, supporting dynamic internal access.
Smart Images

Figure CN119697157A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of air conditioners, and in particular to a method for allocating addresses of indoor and outdoor units of an air conditioner via a distributed bus. Background Art
[0002] A multi-split system is a central air conditioning system in which an external unit is connected to multiple internal units. Therefore, it is necessary to build a system with a centralized control host (air conditioner external unit) and multiple slave units (air conditioner internal units). Therefore, in the same refrigeration system, the host needs to assign a unique valid address to the connected internal unit. Since the central air conditioner is installed on-site, the internal units are installed randomly. Therefore, during the system initialization process, the host needs to automatically assign addresses to the slave internal units after the on-site engineering installation is completed.
[0003] In the prior art, the indoor and outdoor units use RS485 bus or CAN bus. The CAN bus indoor unit address allocation technology mainly uses a unique MAC address for the indoor unit, and the indoor unit applies for an IP address from the outdoor unit (the outdoor unit air conditioner is the host) through the preemption mechanism of the CAN bus. The RS485 bus is a half-duplex communication mode, and the indoor unit uses random number allocation, that is, the outdoor unit (the outdoor unit start bar is the host) sends a random number generation command to the indoor unit after power-on, the indoor unit obtains the outdoor unit command, and executes the random number address generation. The outdoor unit delays and waits for the indoor unit to complete the random number address generation, and then allocates the indoor unit IP address according to the random number address.
[0004] However, the use of CAN bus requires the addition of a hardware address MAC chip, and the bus control circuit is complex and costly. If a power failure occurs during the address allocation process, the indoor unit address allocation cannot be completed. The drawback of using the RS485 bus is that during the address allocation process, since the bus does not support the bus preemption mechanism, only a random number allocation method can be used. Therefore, there is a certain probability that the address cannot be allocated to the indoor unit, and it takes a long time. At the same time, if the power is lost during the address allocation process, the address allocation fails; at the same time, after the indoor unit address is allocated, the new indoor unit is connected without power failure, and the indoor unit cannot dynamically allocate an IP address. The new indoor unit IP address can only be allocated by re-triggering the address allocation; if a power failure occurs during the address allocation process, the indoor unit address allocation cannot be completed. Summary of the invention
[0005] The present invention provides a method for allocating addresses of indoor units in a distributed manner on an indoor and outdoor unit bus of an air conditioner, aiming to solve the problems of low address allocation efficiency, poor success rate and poor power supply stability in the existing method for allocating addresses of indoor units in a distributed manner on an indoor and outdoor unit bus of an air conditioner.
[0006] An embodiment of the present invention provides a method for allocating addresses of indoor and outdoor units of an air conditioner in a distributed manner. The method comprises the following steps:
[0007] Step S1, start, the air conditioner outdoor unit sends a broadcast command through the power supply bus, one second after power-on, the air conditioner outdoor unit broadcasts and sends it three times at a first preset time interval and generates a virtual address, and sends the virtual address to all air conditioner indoor units;
[0008] Step S2, determining whether the air conditioner indoor unit has received the assigned IP address; if so, the air conditioner indoor unit generates a random timer; if not, the air conditioner indoor unit receives the broadcast command of the air conditioner outdoor unit, generates a random number countdown timer with a clock reference of a second preset time, and the countdown timer starts after receiving the last broadcast command packet of the air conditioner outdoor unit;
[0009] Step S3, when the countdown time is up, the air conditioner indoor unit starts the bus to send a request command for applying for an IP address to the air conditioner outdoor unit; wherein sending the request command is to apply for a random timing value of the air conditioner indoor unit;
[0010] Step S4, judging whether the preemption of the air conditioner indoor unit is successful in sending the request command; if so, executing step S5; if not, re-timing the third preset time and then preempt and send again, and the content sent is to apply for the random count value of the air conditioner indoor unit for iteration; and judging whether the delay time is greater than or equal to 90ms; if so, executing step S5; if not, cyclically preempt and send;
[0011] Step S5, the air conditioner outdoor unit receives the IP request of the air conditioner indoor unit and buffers the IP address sequence number applied for by the air conditioner indoor unit;
[0012] Step S6, when the air conditioner outdoor unit determines that the air conditioner indoor unit has no more applied IP address, the air conditioner outdoor unit sends a roll call command according to the applied IP address of the air conditioner indoor unit; wherein the roll call command includes the real IP address assigned by the air conditioner outdoor unit to the corresponding air conditioner indoor unit;
[0013] Step S7, determining whether the roll call command received by the air conditioner indoor unit from the air conditioner outdoor unit is consistent with the random count value applied by the air conditioner indoor unit; if so, the air conditioner indoor unit replies to the roll call command of the air conditioner outdoor unit and completes the memory of its own IP address; if not, continue to wait for the roll call command sent by the air conditioner outdoor unit, and cyclically determine the roll call command of the air conditioner outdoor unit and the random count value applied by the air conditioner indoor unit;
[0014] Step S8, the air-conditioning outdoor unit receives the roll call command replied by the air-conditioning indoor unit, completes the IP address allocation of the air-conditioning indoor unit of the roll call command, and writes it into the offline memory; when the air-conditioning outdoor unit completes the roll call of all the air-conditioning indoor units that have applied for IP, the IP address allocation of the air-conditioning indoor unit is completed.
[0015] Preferably, the step S1 specifically includes:
[0016] The air conditioner outdoor unit sends a broadcast command through the PowerBus power supply bus. One second after power-on, the air conditioner outdoor unit broadcasts and sends it three times at an interval of 20ms and generates a virtual address, and sends the virtual address to all air conditioner indoor units.
[0017] Preferably, in step S2, the second preset time is 100 ms, and the random count value of the random number countdown timer is 100 ms to 1600 ms.
[0018] Preferably, the following steps are further included between step S5 and step S6:
[0019] The air conditioner outdoor unit determines whether the number of applied IP addresses + the number of allocated IP addresses is greater than or equal to the maximum number of IP addresses; if so, the air conditioner outdoor unit applies for a bus idle time greater than or equal to 100ms, and executes step S6; if not, the air conditioner outdoor unit applies for a bus idle time less than 100ms, and loops step S5.
[0020] Preferably, the method further comprises step S9, wherein step S9 specifically comprises the following steps:
[0021] Step S91, the bus status data and control data of the air conditioner indoor unit and the air conditioner outdoor unit are sent and received according to the address;
[0022] Step S92, determine whether there is a new air conditioner indoor unit without an address connected; if yes, execute step S93; if no, execute step S91;
[0023] Step S93, the new air conditioner indoor unit starts bus preemption to send an IP application command, and the new air conditioner indoor unit generates a random number with a random count value of 100ms to 1600ms;
[0024] Step S94, when the bus of the new air conditioner indoor unit is successfully seized, the air conditioner outdoor unit receives the request of the new air conditioner indoor unit to apply for an IP command and buffers the sequence number of the new air conditioner indoor unit's application for an IP address;
[0025] Step S95, the air conditioner outdoor unit sends a new roll call command according to the air conditioner indoor unit's application for IP address, the new roll call command includes the real IP address assigned by the air conditioner outdoor unit to the corresponding new air conditioner indoor unit, and the sending target address is the random number count value applied for by the new air conditioner indoor unit;
[0026] Step S96, determine whether the roll call command received by the new air-conditioner indoor unit from the air-conditioner outdoor unit is consistent with the random count value applied for by the new air-conditioner indoor unit; if so, the air-conditioner indoor unit replies to the roll call command of the air-conditioner outdoor unit and completes the memory of its own IP address; the air-conditioner outdoor unit receives the roll call command replied by the new air-conditioner indoor unit, completes the IP address allocation of the new air-conditioner indoor unit of the roll call command, and writes it into the memory, and the IP address allocation of the new air-conditioner indoor unit is completed during operation; if not, the reapplication is more than 10 times, and the address allocation of the new air-conditioner indoor unit is abnormal.
[0027] Preferably, the specific circuit of the power supply bus includes a control chip, a power supply circuit, an input circuit and an output circuit; the input end of the control chip is connected to the input circuit, the output end of the control chip is connected to the output circuit, the power supply circuit is electrically connected to the input circuit and the output circuit respectively, so as to power the control chip, and the control chip is used to control the power supply of the air conditioner indoor unit and the air conditioner outdoor unit respectively.
[0028] Preferably, the power supply circuit includes a power supply chip, a first capacitor, a second capacitor, a third capacitor, a fourth capacitor, a fifth capacitor and a first resistor;
[0029] The first end of the first capacitor is respectively connected to the first end of the second capacitor, the first end of the first resistor and pin 1 of the power chip and is used to connect to the power supply; the second end of the first capacitor is respectively connected to the second end of the second capacitor and pin 2 of the power chip; the second end of the first capacitor is also respectively connected to the first end of the third capacitor, the first end of the fourth capacitor and the first end of the fifth capacitor and grounded; the second end of the first resistor is respectively connected to the second end of the third capacitor and pin 3 of the power chip; the second end of the fourth capacitor is respectively connected to the second end of the fifth capacitor and pin 5 of the power chip and are jointly 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, and the second end of the second resistor is connected to the collector of the first transistor and connected 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, and the second end of the fifth resistor is connected to the power supply.
[0032] Preferably, the output circuit comprises 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 respectively connected to the first end of the sixth resistor and the base of the second transistor; 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 the prior art, the present invention has the following beneficial effects: through the above steps S1 to S8, the present invention uses the PowerBus bus to allocate IP addresses to the multi-connected internal machines, which brings the following beneficial effects: reliable algorithm, short IP address allocation time, high allocation success rate; low bus cost; bus power supply, the internal machine IP address can still be allocated normally when the internal machine is powered off. The internal machine IP address is dynamically allocated, and a new internal machine can be dynamically connected during system operation, which is convenient for on-site installation and debugging of the multi-connected system. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The present invention will be described in detail below in conjunction with the accompanying drawings. The above and other aspects of the present invention will become clearer and easier to understand through the detailed description made in conjunction with the following drawings. In the accompanying drawings:
[0036] Figure 1 It is a flow chart of a method for allocating addresses of indoor and outdoor units of an air conditioner in a distributed manner on an indoor and outdoor unit bus according to an embodiment of the present invention;
[0037] Figure 2 is a circuit diagram of a power supply bus provided by an embodiment of the present invention;
[0038] Figure 3 is a circuit diagram of a PowerBus bus provided by an embodiment of the present invention;
[0039] Figure 4 4 is a circuit diagram of a control chip provided in an embodiment of the present invention.
[0040] In the figure, 1. control chip, 2. power supply circuit, 3. input circuit, 4. output circuit. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0042] Combined with Figure 1As shown, an embodiment of the present invention provides a method for allocating addresses of indoor and outdoor units of an air conditioner via a distributed bus, the method comprising the following steps:
[0043] Step S1, start, the air conditioner outdoor unit sends a broadcast command through the power supply bus, one second after power-on, the air conditioner outdoor unit broadcasts and sends it three times at intervals of a first preset time and generates a virtual address, and sends the virtual address to all air conditioner indoor units.
[0044] Step S2, determine whether the air-conditioning indoor unit has received the assigned IP address; if so, the air-conditioning indoor unit generates a random timer; if not, the air-conditioning indoor unit receives the broadcast command of the air-conditioning outdoor unit, generates a random number countdown timer with a clock reference of a second preset time, and the timer starts counting down after receiving the last packet of broadcast command from the air-conditioning outdoor unit.
[0045] Step S3, when the countdown time is up, the air conditioner indoor unit starts the bus to send a request command for applying for an IP address to the air conditioner outdoor unit; wherein sending the request command is to apply for a random timing value of the air conditioner indoor unit.
[0046] Specifically, the countdown timer for the internal machine to apply for the address starts after receiving the last A1 broadcast command from the external machine. The countdown is T = (x) ms, and the timing unit is 1 ms. After the countdown is completed, the internal machine starts the bus preemption and sends the IP request command A2. The content of the request command A2 is to apply for the random timing value (10-160) of the internal machine.
[0047] Step S4, determine whether the preemption of the air conditioner indoor unit is successful in sending the request command; if so, execute step S5; if not, re-time the third preset time and preempt and send, and resend after the preemption fails, and the content sent is to apply for the random count value of the air conditioner indoor unit for iteration; and determine whether the delay time is greater than or equal to 90ms; if so, execute step S5; if not, preempt and send in a loop.
[0048] Specifically, if the indoor unit bus preemption is successful, the request command A2 is sent, and the timing is re-set to 10ms before the preemption is sent. If the preemption fails, it is resent. The content of sending A2 is to apply for the random timing value of the indoor unit + 1. It is determined whether the delay time is greater than or equal to 90ms; if so, the air conditioner outdoor unit receives the IP request of the air conditioner indoor unit and buffers the IP address sequence number applied by the air conditioner indoor unit.
[0049] Step S5: the air conditioner outdoor unit receives the IP request of the air conditioner indoor unit and buffers the IP address serial number requested by the air conditioner indoor unit.
[0050] Step S6, when the air conditioner outdoor unit determines that the air conditioner indoor unit no longer has an applied IP address, the air conditioner outdoor unit sends a roll call command according to the applied IP address of the air conditioner indoor unit; wherein the roll call command includes the real IP address assigned by the air conditioner outdoor unit to the corresponding air conditioner indoor unit.
[0051] Step S7, determine whether the roll call command received by the air-conditioning indoor unit from the air-conditioning outdoor unit is consistent with the random count value applied for by the air-conditioning indoor unit; if so, the air-conditioning indoor unit replies to the roll call command of the air-conditioning outdoor unit and completes the memory of its own IP address; if not, continue to wait for the roll call command sent by the air-conditioning outdoor unit, and cyclically determine the roll call command of the air-conditioning outdoor unit and the random count value applied for by the air-conditioning indoor unit.
[0052] Step S8, the air-conditioning outdoor unit receives the roll call command replied by the air-conditioning indoor unit, completes the IP address allocation of the air-conditioning indoor unit of the roll call command, and writes it into the offline memory; when the air-conditioning outdoor unit completes the roll call of all the air-conditioning indoor units that have applied for IP, the IP address allocation of the air-conditioning indoor unit is completed.
[0053] Specifically, through the above steps S1 to S8, the present invention uses the PowerBus bus to allocate IP addresses to multiple internal machines, which brings the following beneficial effects: reliable algorithm, short IP address allocation time, high allocation success rate; low bus cost; bus power supply, the internal machine IP address can still be allocated normally when the internal machine is powered off. The internal machine IP address is dynamically allocated, and a new internal machine can be dynamically connected during system operation, which is convenient for on-site installation and debugging of the multi-connection system.
[0054] Specifically, multi-connected address allocation mainly adopts automatic address allocation technology, the core principle of which is to send a communication command through the outdoor unit, and all indoor units to be allocated addresses will finally determine the successful address allocation through the process of application, outdoor unit authorization, and communication confirmation. Once the indoor unit obtains the address, it will no longer apply for the address from the outdoor unit, and the remaining indoor units in the system that have not been allocated addresses will apply again, and this cycle will continue until all indoor unit addresses are allocated. This technology has clear principles, efficient algorithms, and strong portability, and is suitable for occasions where efficient and accurate address setting is required on site.
[0055] In a multi-connection system, the implementation of address allocation involves a series of control instructions and data formats. For example, control instructions include address reset control instructions, address retrieval control instructions, address application control instructions, address allocation control instructions, address confirmation control instructions, etc. These instructions and data formats are designed to implement the core principle of automatic address allocation and ensure the reliability of communication and the accuracy of address allocation.
[0056] In addition, the address allocation of the multi-split system also involves specific engineering applications. For example, in the example of 4 indoor units, the process of automatic address allocation is explained in detail, including the steps of the outdoor unit sending an address reset control command, all indoor units responding, the indoor unit sending an address request to the outdoor unit, the outdoor unit allocating the address after receiving the request, and the indoor unit confirming the address.
[0057] In summary, multi-split address allocation technology is implemented through automatic address allocation technology, using specific control instructions and data formats to ensure that each indoor unit obtains a unique and correct address, thereby achieving the effective operation of the multi-split system.
[0058] In this embodiment, the step S1 specifically includes: the air conditioner outdoor unit sends a broadcast command through the PowerBus power supply bus, and the air conditioner outdoor unit broadcasts and sends it 3 times at an interval of 20ms one second after power-on and generates a virtual address, and sends the virtual address to all air conditioner indoor units. Specifically, the air conditioner outdoor unit sends an A1 broadcast command through the power supply bus, and the air conditioner outdoor unit broadcasts and sends 0xA1 3 times at an interval of 20ms one second after power-on and generates a virtual address, and sends the virtual address to all air conditioner indoor units, without reply, and the air conditioner indoor unit executes the countdown timer for generating a random number. At the first power-on of the project configuration, after the air conditioner outdoor unit re-assigns the IP address, the air conditioner outdoor unit and the indoor unit save the IP address when the power is off, the air conditioner indoor unit saves its own IP address, and the air conditioner outdoor unit saves the IP address of the air conditioner indoor unit and the indoor unit online IP address table. The user can query, clear and reset the IP address of the air conditioner indoor unit through the air conditioner outdoor unit button or in the factory setting mode of the online controller.
[0059] In this embodiment, in step S2, the second preset time is 100 ms, and the random count value of the random number countdown timer is 100 ms to 1600 ms.
[0060] Specifically, after receiving the A1 broadcast command from the air conditioner outdoor unit, the air conditioner indoor unit that has not been assigned an IP address generates a random number countdown timer with a clock reference of 100ms, and the random count value is 1 to 16, that is, 100ms to 1600ms. The countdown timer starts after receiving the last broadcast command from the air conditioner outdoor unit.
[0061] In this embodiment, the following steps are also included between step S5 and step S6: the air-conditioning outdoor unit determines whether the number of applied IP addresses + the number of allocated IP addresses is greater than or equal to the maximum number of IP addresses; if so, the air-conditioning outdoor unit applies for a bus idle time greater than or equal to 100ms, and executes step S6; if not, the air-conditioning outdoor unit applies for a bus idle time less than 100ms, and loops step S5.
[0062] In this embodiment, the method further includes step S9, and step S9 specifically includes the following steps:
[0063] Step S91, the bus status data and control data of the air conditioner indoor unit and the air conditioner outdoor unit are sent and received according to the address;
[0064] Step S92, determine whether there is a new air conditioner indoor unit without an address connected; if yes, execute step S93; if no, execute step S91;
[0065] Step S93, the new air conditioner indoor unit starts bus preemption to send an IP application command, and the new air conditioner indoor unit generates a random number with a random count value of 100ms to 1600ms;
[0066] Step S94, when the bus of the new air conditioner indoor unit is successfully seized, the air conditioner outdoor unit receives the request of the new air conditioner indoor unit to apply for an IP command and buffers the sequence number of the new air conditioner indoor unit's application for an IP address;
[0067] Step S95, the air conditioner outdoor unit sends a new roll call command according to the air conditioner indoor unit's application for IP address, the new roll call command includes the real IP address assigned by the air conditioner outdoor unit to the corresponding new air conditioner indoor unit, and the sending target address is the random number count value applied for by the new air conditioner indoor unit;
[0068] Step S96, determine whether the roll call command received by the new air-conditioner indoor unit from the air-conditioner outdoor unit is consistent with the random count value applied for by the new air-conditioner indoor unit; if so, the air-conditioner indoor unit replies to the roll call command of the air-conditioner outdoor unit and completes the memory of its own IP address; the air-conditioner outdoor unit receives the roll call command replied by the new air-conditioner indoor unit, completes the IP address allocation of the new air-conditioner indoor unit of the roll call command, and writes it into the memory, and the IP address allocation of the new air-conditioner indoor unit is completed during operation; if not, the reapplication is more than 10 times, and the address allocation of the new air-conditioner indoor unit is abnormal.
[0069] In this embodiment, Figure 2-Figure 4 As shown, the specific circuit of the power supply bus includes a control chip 1, a power supply circuit 2, an input circuit 3 and an output circuit 4; the input end of the control chip 1 is connected to the input circuit 3, the output end 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, so as to supply power to the control chip 1, and 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 supply 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 end of the first capacitor C1 is respectively connected to the first end of the second capacitor C2, the first end of the first resistor R1 and the pin 1 of the power supply chip IC7 and is used to connect the power supply (+5V); the second end of the first capacitor C1 is respectively connected to the second end of the second capacitor C2 and the pin 2 of the power supply chip IC7; the second end of the first capacitor C1 is also respectively connected to the first end of the third capacitor C3, the first end of the fourth capacitor C4 and the first end of the fifth capacitor C5 and grounded; the second end of the first resistor R1 is respectively connected to the second end of the third capacitor C3 and the pin 3 of the power supply chip IC7; the second end of the fourth capacitor C4 is respectively connected to the second end of the fifth capacitor C5 and the pin 5 of the power supply chip IC7 and is commonly connected to the power supply voltage (3V3); the pin 4 of the power supply chip IC7 serves as the NC control pin of the power supply 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, and the second end of the second resistor R2 is connected to the collector of the first transistor Q1 and connected to the RX interface of the control chip 1; the second end of the third resistor R3 is respectively 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 respectively connected to the emitter of the first transistor Q1 and the first end of the fifth resistor R5, and 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 first thermal 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 respectively connected to the first end of the sixth resistor R6 and the base of the first thermal transistor Q2; the second end of the sixth resistor R6 is connected to the emitter of the first thermal transistor Q2 and is 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 first thermal transistor Q2.
[0075] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, article or device. In the absence of more restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, article or device including the element.
[0076] The embodiments of the present invention are described above in conjunction with the accompanying drawings. What is disclosed is only the preferred embodiment of the present invention. However, the present invention is not limited to the above-mentioned specific implementation manner. The above-mentioned specific implementation manner is only illustrative rather than restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms and equivalent changes without departing from the scope of protection of the purpose of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A method for allocating addresses of indoor and outdoor units of an air conditioner via a distributed bus, characterized in that: The method comprises the following steps: Step S1, start, the air conditioner outdoor unit sends a broadcast command through the power supply bus, one second after power-on, the air conditioner outdoor unit broadcasts and sends it three times at a first preset time interval and generates a virtual address, and sends the virtual address to all air conditioner indoor units; Step S2, determining whether the air conditioner indoor unit has received the assigned IP address; if so, the air conditioner indoor unit generates a random timer; if not, the air conditioner indoor unit receives the broadcast command of the air conditioner outdoor unit, generates a random number countdown timer with a clock reference of a second preset time, and the countdown timer starts after receiving the last broadcast command packet of the air conditioner outdoor unit; Step S3, when the countdown time is up, the air conditioner indoor unit starts the bus to send a request command for applying for an IP address to the air conditioner outdoor unit; wherein sending the request command is to apply for a random timing value of the air conditioner indoor unit; Step S4, judging whether the preemption of the air conditioner indoor unit is successful in sending the request command; if so, executing step S5; if not, re-timing the third preset time and then preempt and send again, and the content sent is to apply for the random count value of the air conditioner indoor unit for iteration; and judging whether the delay time is greater than or equal to 90ms; if so, executing step S5; if not, cyclically preempt and send; Step S5, the air conditioner outdoor unit receives the IP request of the air conditioner indoor unit and buffers the IP address sequence number applied for by the air conditioner indoor unit; Step S6, when the air conditioner outdoor unit determines that the air conditioner indoor unit has no more applied IP address, the air conditioner outdoor unit sends a roll call command according to the applied IP address of the air conditioner indoor unit; wherein the roll call command includes the real IP address assigned by the air conditioner outdoor unit to the corresponding air conditioner indoor unit; Step S7, determining whether the roll call command received by the air conditioner indoor unit from the air conditioner outdoor unit is consistent with the random count value applied by the air conditioner indoor unit; if so, the air conditioner indoor unit replies to the roll call command of the air conditioner outdoor unit and completes the memory of its own IP address; if not, continue to wait for the roll call command sent by the air conditioner outdoor unit, and cyclically determine the roll call command of the air conditioner outdoor unit and the random count value applied by the air conditioner indoor unit; Step S8, the air-conditioning outdoor unit receives the roll call command replied by the air-conditioning indoor unit, completes the IP address allocation of the air-conditioning indoor unit of the roll call command, and writes it into the offline memory; when the air-conditioning outdoor unit completes the roll call of all the air-conditioning indoor units that have applied for IP, the IP address allocation of the air-conditioning indoor unit is completed.
2. The method for allocating addresses of indoor and outdoor units of an air conditioner according to claim 1, characterized in that: The step S1 specifically includes: The air conditioner outdoor unit sends a broadcast command through the PowerBus power supply bus. One second after power-on, the air conditioner outdoor unit broadcasts and sends it three times at an interval of 20ms and generates a virtual address, and sends the virtual address to all air conditioner indoor units.
3. The method for allocating addresses of indoor and outdoor units of an air conditioner according to claim 1, characterized in that: In the step S2, the second preset time is 100 ms, and the random count value of the random number countdown timer is 100 ms to 1600 ms.
4. The method for allocating addresses of indoor and outdoor units of an air conditioner according to claim 1, characterized in that: The following steps are also included between step S5 and step S6: The air conditioner outdoor unit determines whether the number of applied IP addresses + the number of allocated IP addresses is greater than or equal to the maximum number of IP addresses; if so, the air conditioner outdoor unit applies for a bus idle time greater than or equal to 100ms, and executes step S6; if not, the air conditioner outdoor unit applies for a bus idle time less than 100ms, and loops step S5.
5. The method for allocating addresses of indoor and outdoor units of an air conditioner according to claim 1, characterized in that: The method further comprises step S9, wherein step S9 specifically comprises the following steps: Step S91, the bus status data and control data of the air conditioner indoor unit and the air conditioner outdoor unit are sent and received according to the address; Step S92, determine whether there is a new air conditioner indoor unit without an address connected; if yes, execute step S93; if no, execute step S91; Step S93, the new air conditioner indoor unit starts bus preemption to send an IP application command, and the new air conditioner indoor unit generates a random number with a random count value of 100ms to 1600ms; Step S94, when the bus of the new air conditioner indoor unit is successfully seized, the air conditioner outdoor unit receives the request of the new air conditioner indoor unit to apply for an IP command and buffers the sequence number of the new air conditioner indoor unit's application for an IP address; Step S95, the air conditioner outdoor unit sends a new roll call command according to the air conditioner indoor unit's application for IP address, the new roll call command includes the real IP address assigned by the air conditioner outdoor unit to the corresponding new air conditioner indoor unit, and the sending target address is the random number count value applied for by the new air conditioner indoor unit; Step S96, determine whether the roll call command received by the new air-conditioner indoor unit from the air-conditioner outdoor unit is consistent with the random count value applied for by the new air-conditioner indoor unit; if so, the air-conditioner indoor unit replies to the roll call command of the air-conditioner outdoor unit and completes the memory of its own IP address; the air-conditioner outdoor unit receives the roll call command replied by the new air-conditioner indoor unit, completes the IP address allocation of the new air-conditioner indoor unit of the roll call command, and writes it into the memory, and the IP address allocation of the new air-conditioner indoor unit is completed during operation; if not, the reapplication is more than 10 times, and the address allocation of the new air-conditioner indoor unit is abnormal.
6. The method for allocating addresses of indoor and outdoor units of an air conditioner according to claim 1, characterized in that: The specific circuit of the power supply bus includes a control chip, a power supply circuit, an input circuit and an output circuit; the input end of the control chip is connected to the input circuit, the output end of the control chip is connected to the output circuit, the power supply circuit is electrically connected to the input circuit and the output circuit respectively, so as to supply power to the control chip, and the control chip is used to control the power supply of the indoor unit and the outdoor unit of the air conditioner respectively.
7. The method for allocating addresses of indoor and outdoor units of an air conditioner according to claim 6, characterized in that: The power supply circuit includes a power supply chip, a first capacitor, a second capacitor, a third capacitor, a fourth capacitor, a fifth capacitor and a first resistor; The first end of the first capacitor is respectively connected to the first end of the second capacitor, the first end of the first resistor and pin 1 of the power chip and is used to connect to the power supply; the second end of the first capacitor is respectively connected to the second end of the second capacitor and pin 2 of the power chip; the second end of the first capacitor is also respectively connected to the first end of the third capacitor, the first end of the fourth capacitor and the first end of the fifth capacitor and grounded; the second end of the first resistor is respectively connected to the second end of the third capacitor and pin 3 of the power chip; the second end of the fourth capacitor is respectively connected to the second end of the fifth capacitor and pin 5 of the power chip and are jointly connected to the power supply voltage; pin 4 of the power chip serves as the NC control pin of the power chip.
8. The method for allocating addresses of indoor and outdoor units of an air conditioner according to 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, and the second end of the second resistor is connected to the collector of the first transistor and connected 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, and the second end of the fifth resistor is connected to the power supply.
9. The method for allocating addresses of indoor and outdoor units of an air conditioner according to claim 7, characterized in that: The output circuit includes a sixth resistor, a seventh resistor, an eighth resistor and a second triode; The first end of the seventh resistor is connected to the power supply voltage, and the second end of the seventh resistor is respectively connected to the first end of the sixth resistor and the base of the second transistor; 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
Address configuration method of outdoor unit, address configuration method of indoor unit and air conditioner
CN110798547A
Method, device and system for automatically allocating address
CN114238189A
Cited By
Indoor unit address allocation method of multi-split air conditioner
CN120074980A