Random time slot generation method and device, medium and indoor unit unique communication address generation method

By using the AD conversion value of the temperature sensor in a multi-split air conditioner to generate uniformly distributed random time intervals, the problems of low address allocation efficiency and repetition are solved, improving the success rate of automatic allocation and user experience.

CN121967380APending Publication Date: 2026-05-01SICHUAN CHANGHONG AIR CONDITIONER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511920302.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-18
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Existing address allocation methods for multi-split air conditioners suffer from low efficiency, long processing times, and easy duplication of indoor unit addresses, which is particularly evident in large systems.

Method used

By reading the AD conversion values ​​of the indoor temperature sensor, inner panel temperature sensor, gas pipe temperature sensor, and liquid pipe temperature sensor, the least significant bit is extracted and combined into a four-bit binary number. Then, a discrete lookup table is used to convert it into a uniformly distributed random value to avoid repetition, which serves as a random time interval for communication between the indoor and outdoor units.

Benefits of technology

It improves the efficiency and success rate of address allocation, reduces installation and debugging time, enhances user experience, and avoids address allocation errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121967380A_ABST
    Figure CN121967380A_ABST
Patent Text Reader

Abstract

The invention provides a random time slot generation method and device, a medium and an indoor unit unique communication address generation method, and belongs to the technical field of communication. The method comprises the steps that AD conversion values of an indoor temperature sensor, an inner disc temperature sensor, an air pipe temperature sensor and a liquid pipe temperature sensor are read; extracting the least significant bits of the four AD conversion values, and combining the least significant bits into a four-bit binary number according to a preset sequence; the four-bit binary number is converted, so that final random values generated by all the indoor units are evenly distributed in adjacent numerical value intervals and are not repeated; and determining the final random value as a random time slot of communication with the outdoor unit when the indoor unit has no address. By means of the scheme, the address allocation efficiency is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure belongs to the field of communication technology, and specifically relates to a method, apparatus, medium for generating random time gaps and a method for generating a unique communication address for an internal machine. Background Technology

[0002] With accelerated urbanization and upgraded living environments, modern families' demands for air conditioning systems have shifted from simple temperature control to a comprehensive pursuit of comfort, energy efficiency, space utilization, and smart technology. Multi-split air conditioning systems, with their advantages in space utilization, have seen a significant increase in market share. In residences with larger floor plans or more rooms, issues such as limited installation space and the impact of too many outdoor units on the building's aesthetics arise. Especially for high-end residences such as duplexes, villas, or large apartments, users prefer a centralized, flexibly distributed air conditioning system that can meet the individual needs of different rooms while avoiding the energy consumption accumulation and management inconvenience of multiple outdoor units.

[0003] Most multi-split air conditioners currently use the outdoor unit as the main unit, controlling multiple indoor units to achieve zoned temperature and humidity control in different rooms. The main unit controls the multiple indoor units via bus communication. Each indoor unit needs to identify the control information from the outdoor unit, therefore requiring a unique communication address as its identifier. Address allocation for multi-split air conditioners can be done manually or automatically.

[0004] The automatic address allocation method for multi-split air conditioners mainly consists of the following steps: Broadcast Request: The outdoor unit sends a broadcast command, and all indoor units enter the initialization state, preparing for automatic address allocation; Random Time Slot: Indoor units without assigned addresses respond and enter a contention state. Each slave device receives the broadcast and then randomly delays for a period of time to avoid simultaneous responses and conflicts; Master Arbitration: The outdoor unit arbitrates the indoor unit information, selects an indoor unit based on the order in which it receives the communication from the indoor units, assigns it a unique address, and sends a command; Communication Establishment: Once the address allocation is complete, the master and slave devices can communicate based on the assigned addresses.

[0005] While the automatic address allocation method is simple and straightforward to use, the random delay described in it causes varying efficiencies in address allocation. Improving the efficiency of automatic address allocation, including timeliness and success rate, requires careful consideration of how random time slots are generated. This is especially important in large multi-split air conditioning systems with dozens of indoor units, where efficient address allocation becomes paramount.

[0006] At present, there are several common random time slot generation methods on the market: The first one is the Monte Carlo method: The Monte Carlo method, also known as the statistical simulation method and random sampling technique, is a random simulation method. It is a computational method based on probability and statistical theory methods and is a method that uses random numbers (or more commonly, pseudo-random numbers) to solve many computational problems. The problem to be solved is associated with a certain probability model, and statistical simulation or sampling is implemented using an electronic computer to obtain an approximate solution to the problem. The main steps in the problem-solving process of the Monte Carlo method: Establish a simple and easy-to-implement probability and statistical model for the actual problem, so that the quantity to be sought is exactly the probability distribution or digital feature of the model; establish a sampling method for the random variables of the model, conduct simulation tests on the computer, and extract a sufficient number of random numbers; conduct statistical analysis on the simulation experiment results and give an "estimate" of the solution to be sought; if necessary, improve the model to improve the estimation accuracy and reduce the experimental cost, and improve the simulation efficiency. The second one is the linear congruential method: A pseudo-random number generation algorithm based on a recurrence formula that generates a periodic sequence through modulo arithmetic (mod) and is widely used in the fields of computer simulation and statistics. Xn+1=(a Xn + c) mod, where Xn represents the current random number (seed value), a represents the multiplier, 0 < a < m, c represents the increment, 0 ≤ c < m, and m represents the modulus (cycle upper limit). The third one is the Mersenne Twister method. The Mersenne Twister algorithm (abbreviated as MT) is a widely used pseudo-random number generation algorithm, and its core is based on a linear feedback shift register (LFSR) and matrix linear recurrence. Its algorithm is divided into two stages: Initialization stage: Fill a 624 32-bit state array with the seed value, and use a non-linear transformation to ensure the diversity of the initial state; Twist stage: After generating 624 random numbers, update the state array through bit operations and exclusive OR operations to ensure periodicity and randomness.

[0007] The random time slots generated by the above methods have their own advantages and disadvantages: The Mersenne Twister method occupies a relatively large cache in the air conditioner control system based on a single-chip microcomputer, requiring 2.5 KiB. The algorithm is relatively complex, testing the system resources of the single-chip microcomputer, and the generation time is relatively long. However, its advantage is that the random numbers are more difficult to predict, the repetition rate is lower, and it is closer to true randomness.

[0008] The linear congruential method only requires addition, subtraction, multiplication, and division in terms of algorithm and can perform rapid operations. However, this method has uneven distribution in low dimensions and is state-reversible, and subsequent random numbers can be predicted. Summary of the Invention

[0009] The present disclosure proposes a method for generating random time intervals, a device, a medium, and a method for generating a unique communication address for an indoor unit, aiming to solve the problems of too long air conditioner address allocation time and easy repetition of indoor unit addresses.

[0010] According to a first aspect of this disclosure, a method for generating random time gaps is provided. The method includes: reading the AD conversion values ​​of an indoor temperature sensor, an inner panel temperature sensor, a gas pipe temperature sensor, and a liquid pipe temperature sensor; extracting the least significant bit of the four AD conversion values ​​and combining the least significant bits into a four-bit binary number according to a preset order; converting the four-bit binary number so that the final random values ​​generated by all indoor units are evenly distributed in adjacent numerical intervals and do not overlap with each other; and determining the final random value as the random time gap for communication between the indoor unit and the outdoor unit when the indoor unit has no address.

[0011] In some embodiments, converting the four-bit binary number to ensure that all final random values ​​generated by the internal machine are evenly distributed in adjacent numerical intervals and do not overlap with each other includes: determining the target probability distribution that the final random value should follow; calculating the cumulative distribution function based on the target probability distribution; solving the inverse function of the cumulative distribution function and constructing a discrete lookup table; obtaining the four-bit binary number; and traversing the discrete lookup table based on the four-bit binary number to obtain the final random value.

[0012] In some embodiments, constructing the discrete lookup table includes: normalizing 16 possible four-bit binary numbers to a probability interval; substituting the probability corresponding to each four-bit binary number into the inverse function to calculate the corresponding target output value; and constructing a discrete lookup table of size 16 based on the probability and the target output value.

[0013] According to a second aspect of this disclosure, a method for generating a unique communication address for an internal unit is provided. The method includes: receiving a communication data frame sent by an internal unit at each random time interval generated by the random time interval generation method according to any one of claims 1 to 3, and sending a reply data frame with a unique characteristic address to the current internal unit as a communication address; repeating the above steps until each internal unit obtains a unique communication address.

[0014] According to a third aspect of this disclosure, a random time gap generation device is provided, comprising: a reading module for reading the AD conversion values ​​of an indoor temperature sensor, an inner panel temperature sensor, an air pipe temperature sensor, and a liquid pipe temperature sensor; a combination module for extracting the least significant bit of the four AD conversion values ​​and combining the least significant bits into a four-bit binary number according to a preset order; a conversion module for converting the four-bit binary number so that the final random values ​​generated by all indoor units are evenly distributed in adjacent numerical ranges and do not overlap with each other; and a determination module for determining the final random value as the random time gap for communication between the indoor unit and the outdoor unit when the indoor unit has no address.

[0015] According to a fourth aspect of this disclosure, a random time gap generation apparatus is provided, comprising: a memory; and a processor coupled to the memory, the processor being configured to execute the random time gap generation method as described above based on instructions stored in the memory.

[0016] According to a fifth aspect of this disclosure, a computer-readable storage medium is provided that stores computer program instructions thereon, which, when executed by a processor, implement the random time gap generation method described above.

[0017] The advantages of this solution are: it effectively avoids the problems of excessively long air conditioner address allocation time and easy duplication of indoor unit addresses, improving the efficiency of address allocation through random time intervals. It also enhances the efficiency of after-sales installation, commissioning, after-sales service, and subsequent additions or reductions in the number of indoor units. The automatic allocation method avoids errors or omissions by installation and commissioning personnel, enhancing the user experience. Attached Figure Description

[0018] The accompanying drawings, which form part of this specification, illustrate embodiments of this disclosure and, together with the specification, serve to explain the principles of this disclosure.

[0019] This disclosure can be more clearly understood with reference to the accompanying drawings and the following detailed description.

[0020] Figure 1 This is a flowchart illustrating a method for generating random time gaps according to some embodiments of the present disclosure.

[0021] Figure 2 This is a block diagram illustrating a random time gap generation apparatus according to some embodiments of the present disclosure.

[0022] Figure 3 This is a block diagram illustrating a random time gap generation apparatus according to other embodiments of the present disclosure.

[0023] Figure 4 This is a block diagram illustrating a computer system for implementing some embodiments of the present disclosure. Detailed Implementation

[0024] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps set forth in these embodiments do not limit the scope of the present disclosure.

[0025] At the same time, it should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not drawn according to actual scale.

[0026] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this disclosure or its application or utility.

[0027] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.

[0028] In all the examples shown and discussed herein, any specific values ​​should be understood as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.

[0029] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.

[0030] This disclosure provides a method for generating random time intervals during the address allocation process of multi-split air conditioners, which is used to improve the efficiency and success rate of automatic allocation of indoor unit addresses, and to solve problems such as duplicate indoor unit addresses, no address, and slow address allocation that cause users to be unable to use the system or affect its use. When the machine powers on and triggers automatic address allocation, it enters normal operation. Each indoor unit must link with the outdoor unit to synchronize control and status information. The outdoor unit needs to use the unique address of each indoor unit to allocate system capacity, control status, refrigerant flow, etc., to the current indoor unit. This solves the problem of control information confusion caused by indoor units lacking addresses or having duplicate addresses.

[0031] This is designed to address the issues of manually setting the address when installing new machines, replacing damaged electrical controls after repairs, and manually setting the address for each indoor unit when adding more indoor units.

[0032] When automatic address allocation is required, issues such as excessively long address allocation time, easy address duplication, or unsuccessful address allocation may arise.

[0033] This disclosure provides a method for generating random time intervals in the automatic address allocation process of multi-split air conditioners, which can improve the efficiency of automatic address allocation in various scenarios, improve the efficiency of detection, experimentation, installation, debugging, and after-sales service, avoid errors or omissions by installation and debugging personnel, improve the success rate of installation and debugging, and enhance the user experience.

[0034] Suppose there is a residential multi-split air conditioning system, which includes one outdoor unit and four indoor units. The outdoor unit and each indoor unit are connected in series on a communication bus. The outdoor unit communicates with each indoor unit in turn, but the indoor units do not communicate with each other.

[0035] This is the first power-on of the new machine. By default, none of the internal machines know how many machines are in the system, and none of the internal machines have a unique address.

[0036] like Figure 1 As shown, a method for generating random time gaps includes: Step S110: Read the AD conversion values ​​of the indoor temperature sensor, inner plate temperature sensor, gas pipe temperature sensor, and liquid pipe temperature sensor.

[0037] Step S120: Extract the least significant bits of the four AD conversion values ​​and combine the least significant bits into a four-bit binary number according to a preset order.

[0038] For example, the system is configured with one outdoor unit and four indoor units, namely indoor unit A, indoor unit B, indoor unit C, and indoor unit D, connected via a serial bus. Each indoor unit has four temperature sensors, in a fixed order: indoor temperature sensor, inner panel temperature sensor, gas pipe temperature sensor, and liquid pipe temperature sensor.

[0039] The system powers on, all indoor units initialize, and begin collecting AD values ​​from the four sensors. The AD values ​​collected by the driver are as follows (randomly generated to simulate a real environment): Indoor Unit A: Indoor temperature sensor AD value: 1234 (binary 010011010010, LSB=0). Indoor panel temperature sensor AD value: 567 (binary 001000110111, LSB=1). Gas pipe temperature sensor AD value: 890 (binary 001101111010, LSB=0). Liquid pipe temperature sensor AD value: 321 (binary 000101000001, LSB=1).

[0040] Indoor Unit B: Indoor temperature sensor AD value: 2000 (binary 11111010000, LSB=0). Indoor panel temperature sensor AD value: 1500 (binary 10111011100, LSB=0). Gas pipe temperature sensor AD value: 100 (binary 000001100100, LSB=0). Liquid pipe temperature sensor AD value: 255 (binary 000011111111, LSB=1).

[0041] Indoor Unit C: Indoor temperature sensor AD value: 3000 (binary 101110111000, LSB=0). Indoor panel temperature sensor AD value: 400 (binary 000110010000, LSB=0). Gas pipe temperature sensor AD value: 789 (binary 001100010101, LSB=1). Liquid pipe temperature sensor AD value: 999 (binary 001111100111, LSB=1).

[0042] Indoor Unit D: Indoor temperature sensor AD value: 1111 (binary 010001010111, LSB=1). Indoor panel temperature sensor AD value: 2222 (binary 100010101110, LSB=0). Gas pipe temperature sensor AD value: 333 (binary 000101001101, LSB=1). Liquid pipe temperature sensor AD value: 444 (binary 000110111100, LSB=0).

[0043] Each indoor unit extracts the LSBs of four AD values ​​in a fixed order (indoor unit → inner panel → gas pipe → liquid pipe) and combines them into a 4-bit binary number.

[0044] Internal Unit A: LSB sequence = [0, 1, 0, 1] → binary number = 0101 (decimal 5).

[0045] Internal Unit B: LSB sequence = [0, 0, 0, 1] → binary number = 0001 (decimal 1).

[0046] Internal machine C: LSB sequence = [0, 0, 1, 1] → binary number = 0011 (decimal 3).

[0047] Internal D: LSB sequence = [1, 0, 1, 0] → binary number = 1010 (decimal 10).

[0048] Step S130: Convert the four-bit binary number so that all the final random values ​​generated by the internal machine are evenly distributed in adjacent numerical ranges and do not overlap with each other.

[0049] Specifically, this includes: determining the target probability distribution that the final random value must follow; calculating the cumulative distribution function based on the target probability distribution; solving for the inverse function of the cumulative distribution function and constructing a discrete lookup table; obtaining a four-bit binary number; and traversing the discrete lookup table based on the four-bit binary number to obtain the final random value.

[0050] Specifically, the construction of the discrete lookup table includes: normalizing 16 possible four-bit binary numbers to a probability interval; substituting the probability corresponding to each four-bit binary number into the inverse function to calculate the corresponding target output value; and constructing a discrete lookup table of size 16 based on the probability and the target output value.

[0051] Further explanation from the development and operation phases: Phase 1: Development and Design Phase This stage is completed during the development and design of the air conditioning system, and the results are solidified in the control program of each indoor or outdoor unit in the form of an algorithm or lookup table.

[0052] Define the target distribution: Determine the target probability distribution that the final random delay time R should follow. This distribution should make the value of R as uniformly distributed as possible in the interval [a, b] (e.g., [5, 20] milliseconds), and the values ​​should not overlap.

[0053] Calculate the target cumulative distribution function (CDF): Based on the defined target probability distribution, calculate its corresponding cumulative distribution function F(y). F(y) represents the probability that a random number R is less than or equal to a certain value y.

[0054] Find the inverse function and construct a discrete lookup table: Solve for the inverse function of the cumulative distribution function F(y). This function takes a probability p (range [0,1]) as input and outputs a corresponding random value y; since the input U generated by the indoor unit is a 4-bit binary number, it only has 16 (2^36) bits. 4 It has 15 possible values ​​(0-15), so there is no need to perform complex mathematical calculations at runtime.

[0055] Step S140: Determine the final random value as the random time interval for communication between the internal and external units when the internal unit has no address; discretize the continuous inverse transformation process: create a lookup table of size 16. Normalize the 16 possible input values ​​U (considered as integers uniformly distributed in [0, 15]) to the probability interval [0, 1], i.e., calculate p = U / 15; substitute each p value into the inverse function. The 16 target output values ​​R0, R1, ... were calculated. The results are then stored in a lookup table.

[0056] For example: U = 0->p = 0 / 15 = 0->R0= ; U = 1->p = 1 / 15≈0.0667->R1= ; ...; U = 15->p = 15 / 15 = 1-> = .

[0057] Phase Two: Operation Phase Obtain a uniformly distributed input U; read the sensor AD value and extract its least significant bit, and combine them to generate a 4-bit random number U (value range 0-15).

[0058] Lookup table mapping: Using the value of U as the index address, directly query the lookup table pre-set in the first stage. Output the corresponding target random value R in the table. That is, R = LookupTable[U]. This operation is hardware equivalent to performing R = However, complex real-time calculations are avoided by using a table lookup method.

[0059] Output and Application: Output the final random number R obtained from the table lookup, which will be used as the random time interval for communication between the indoor and outdoor units.

[0060] The core idea of ​​this process is to complete the complex, continuous mathematical calculations (finding the inverse function) during the development phase and simplify the result into an efficient, deterministic lookup table. During device operation, only a single simple table lookup operation is needed to convert the uniform distribution U to the target distribution R. This is highly suitable for embedded systems with limited computing resources (such as air conditioning systems), ensuring the algorithm's real-time performance and reliability.

[0061] In some embodiments, a general, well-known alternative is also provided, although it is less efficient and theoretically achievable. Details are as follows: The initial AD conversion values ​​collected by each indoor unit's sensor follow a normal distribution within the range [0, 40]. Let X ~ U(a, b), then its distribution function is... ; ; ,but Therefore, to generate a random number U from U(0,1), then... These are random numbers derived from U(a,b). To generate numbers that conform to... Let random numbers be generated. The range of values ​​is [a, b]. The sampling process is as follows: Given random distribution And the range of x is also [a, b], and it is required that... ; from random sampling Then by Uniformly distributed sampling ; Accept or discard sampled values ,if Discard the value; go back one step; otherwise accept.

[0062] constant Selection: It should be as small as possible because sampling efficiency is related to... Inversely proportional; generally taken Here A uniform distribution can be used, and thus, two uniform distributions can be used to obtain simulated samples of any other distribution.

[0063] This disclosure also provides a method for generating a unique communication address for an internal unit. The method includes: receiving a communication data frame sent by an internal unit at random time intervals generated by the random time interval generation method described above, and sending a reply data frame with a unique characteristic address to the current internal unit as a communication address; repeating the above steps until each internal unit obtains a unique communication address.

[0064] like Figure 2 As shown, the random time gap generation device 200 includes a reading module 210, a combination module 220, a conversion module 230, and a determination module 240.

[0065] The reading module 210 is used to read the AD conversion values ​​of the indoor temperature sensor, the inner plate temperature sensor, the gas pipe temperature sensor, and the liquid pipe temperature sensor. The combination module 220 is used to extract the least significant bits of the four AD conversion values ​​and combine the least significant bits into a four-bit binary number according to a preset order. The conversion module 230 is used to convert the four-bit binary number so that the final random values ​​generated by all internal machines are evenly distributed in adjacent numerical ranges and do not overlap with each other. The determination module 240 is used to determine the final random value as the random time interval for communication between the internal unit and the external unit when the internal unit has no address.

[0066] Figure 3 This is a block diagram illustrating a random time gap generation apparatus according to other embodiments of the present disclosure. Figure 3 As shown, the random time gap generation apparatus 300 includes a memory 310 and a processor 320 coupled to the memory 310. The memory 310 is used to store instructions for executing embodiments of the random time gap generation method. The processor 320 is configured to execute the random time gap generation method in any of the embodiments of this disclosure based on the instructions stored in the memory 310.

[0067] Figure 4 This is a block diagram illustrating a computer system for implementing some embodiments of the present disclosure. Figure 4 As shown, the computer system 400 can be represented in the form of a general computing device. The computer system 400 includes a memory 410, a processor 420, and a bus 430 connecting different system components.

[0068] The memory 410 may include, for example, system memory, non-volatile storage media, etc. The system memory may store, for example, an operating system, application programs, a boot loader, and other programs. The system memory may include volatile storage media, such as random access memory (RAM) and / or cache memory. The non-volatile storage media may store, for example, instructions for executing at least one of the random time-slot generation methods in corresponding embodiments. Non-volatile storage media include, but are not limited to, disk storage, optical storage, flash memory, etc.

[0069] The processor 420 can be implemented using a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete hardware components such as discrete gates or transistors. Accordingly, each module, such as the read module, the combiner module, the conversion module, and the determiner module, can be implemented by the central processing unit (CPU) running instructions in the memory to execute the corresponding steps, or by dedicated circuitry to execute the corresponding steps.

[0070] Bus 430 can use any of the various bus architectures. For example, bus architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, and Peripheral Component Interconnect (PCI) bus.

[0071] The computer system 400 may also include an input / output interface 440, a network interface 450, and a storage interface 460. These interfaces 440, 450, and 460, as well as the memory 410 and processor 420, can be connected via a bus 430. The input / output interface 440 provides a connection interface for input / output devices such as a monitor, mouse, and keyboard. The network interface 450 provides a connection interface for various networked devices. The storage interface 460 provides a connection interface for external storage devices such as floppy disks, USB flash drives, and SD cards.

[0072] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus, and computer program products according to embodiments of this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations thereof, can be implemented by computer-readable program instructions.

[0073] These computer-readable program instructions are provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable device to produce a machine, such that execution of the instructions by the processor produces means for implementing the functions specified in one or more boxes of the flowchart and / or block diagram.

[0074] These computer-readable program instructions may also be stored in a computer-readable storage medium. These instructions cause a computer to work in a particular manner to produce an article of manufacture, including instructions that implement the functions specified in one or more boxes in a flowchart and / or block diagram.

[0075] This disclosure may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects.

[0076] This disclosure analyzes business opportunities from multiple perspectives, ultimately achieving precise allocation of these opportunities and providing strong support for enterprises to seize market opportunities.

[0077] This concludes the detailed description of the random time interval generation method, apparatus, medium, and internal unique communication address generation method according to this disclosure. To avoid obscuring the concept of this disclosure, some details known in the art have not been described. Those skilled in the art can fully understand how to implement the technical solutions disclosed herein based on the above description.

[0078] While specific embodiments of this disclosure have been described in detail by way of example, those skilled in the art should understand that the examples are for illustrative purposes only and not intended to limit the scope of this disclosure. Those skilled in the art should understand that modifications can be made to the above embodiments without departing from the scope and spirit of this disclosure. The scope of this disclosure is defined by the appended claims.

Claims

1. A method for generating random time gaps, characterized in that, The method includes: Read the AD conversion values ​​of the indoor temperature sensor, inner panel temperature sensor, gas pipe temperature sensor, and liquid pipe temperature sensor; Extract the least significant bits of the four A / D conversion values ​​and combine them into a four-bit binary number according to a preset order; The four-bit binary number is converted so that the final random values ​​generated by all internal machines are evenly distributed in adjacent numerical ranges and do not overlap with each other; The final random value is determined as the random time interval for communication between the internal unit and the external unit when the internal unit has no address.

2. The method for generating random time gaps according to claim 1, characterized in that, The four-bit binary number is converted to ensure that all final random values ​​generated by the internal machine are evenly distributed across adjacent numerical ranges and do not overlap. This includes: Determine the target probability distribution that the final random value must follow; Based on the target probability distribution, the cumulative distribution function is calculated; Find the inverse function of the cumulative distribution function and construct a discrete lookup table; Get a four-bit binary number; The final random value is obtained by traversing the discrete lookup table using a four-bit binary number.

3. The method for generating random time gaps according to claim 2, characterized in that, The construction of the discrete lookup table includes: Normalize the 16 possible four-bit binary numbers to a probability range; Substitute the probability corresponding to each four-bit binary number into the inverse function to calculate the corresponding target output value; Based on the probability and the target output value, construct a discrete lookup table of size 16.

4. A method for generating a unique communication address for an internal computer, characterized in that, The method includes: The communication data frame sent by the internal unit is received at each random time interval generated by the random time interval generation method according to any one of claims 1 to 3; Send a reply data frame with a unique address to the current internal unit as the communication address; Repeat the above steps until each indoor unit obtains a unique communication address.

5. A random time gap generation device, characterized in that, include: The reading module is used to read the AD conversion values ​​of the indoor temperature sensor, the inner plate temperature sensor, the gas pipe temperature sensor, and the liquid pipe temperature sensor. The combination module is used to extract the least significant bit of the four A / D conversion values ​​and combine the least significant bits into a four-bit binary number according to a preset order. The conversion module is used to convert four-bit binary numbers so that the final random values ​​generated by all internal machines are evenly distributed in adjacent numerical ranges and do not overlap with each other. The determination module is used to determine the final random value as the random time interval for communication between the internal unit and the external unit when the internal unit has no address.

6. A random time gap generation device, characterized in that, include: Memory; And a processor coupled to the memory, the processor being configured to execute the random time gap generation method as described in any one of claims 1 to 3 based on instructions stored in the memory.

7. A computer-readable storage medium, characterized in that, It stores computer program instructions that, when executed by a processor, implement the random time gap generation method as described in any one of claims 1 to 3.