CN120351622B - A method for dynamically allocating communication time slots between indoor and outdoor units of an air conditioner. - Google Patents

A method for dynamically allocating communication time slots between indoor and outdoor units of an air conditioner.

Info

Publication number
CN120351622B
CN120351622B CN202510508647.3A CN202510508647A CN120351622B CN 120351622 B CN120351622 B CN 120351622B CN 202510508647 A CN202510508647 A CN 202510508647A CN 120351622 B CN120351622 B CN 120351622B
Authority
CN
China
Prior art keywords
internal
time slot
time
sub
time slots
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202510508647.3A
Other languages
Chinese (zh)
Other versions
CN120351622A (en
Inventor
李强
欧阳高勋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Sanhua Vanadium Technology Co ltd
Original Assignee
Guangdong Sanhua Vanadium Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Sanhua Vanadium Technology Co ltd filed Critical Guangdong Sanhua Vanadium Technology Co ltd
Priority to CN202510508647.3A priority Critical patent/CN120351622B/en
Publication of CN120351622A publication Critical patent/CN120351622A/en
Application granted granted Critical
Publication of CN120351622B publication Critical patent/CN120351622B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/30Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
    • F24F11/32Responding to malfunctions or emergencies
    • F24F11/38Failure diagnosis
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/52Indication arrangements, e.g. displays
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/61Control or safety arrangements characterised by user interfaces or communication using timers
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/88Electrical aspects, e.g. circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a communication time period dynamic allocation method of an air conditioner internal unit and an external unit, which relates to the field of air conditioner multiplexing communication, and comprises the steps of sharing the same communication channel by the external unit and a plurality of internal units, dividing the communication time of the communication channel into a plurality of time frames with fixed lengths, dividing each time frame into an uplink time slot and a downlink time slot, and dividing the uplink time slot into a plurality of sub-time slots with fixed lengths; the method comprises the steps of firstly, allocating sub-time slots with corresponding numbers to each internal machine and generating a time slot allocation table, respectively transmitting data to the external machines according to the sub-time slots with corresponding numbers by each internal machine in sequence, transmitting data to the internal machines by the external machines through downlink time slots, and regenerating a new time slot allocation table by the external machines in other communication periods of subsequent frames, wherein the internal machines execute data transmission operation according to the new time slot allocation table. The invention dynamically allocates the communication time period between the multiple internal machines and the single external machine of the air conditioner group control system, and solves the problem of communication conflict caused by simultaneous data transmission of the multiple internal machines, and instruction loss or delay is caused.

Description

Communication time period dynamic allocation method for air conditioner internal unit and external unit
Technical Field
The invention belongs to the technical field of multiplexing communication of air conditioners, and particularly relates to a communication time period dynamic allocation method of an air conditioner internal unit and an air conditioner external unit.
Background
In an air conditioner group control system, for example, a multi-connected air conditioner system, an outdoor unit serving as a single host is usually connected with a plurality of indoor units, the indoor units and the outdoor unit serving as the single host need to exchange data frequently, for example, the indoor units upload user settings and real-time states (such as temperature requests and compressor states) to the outdoor units, the outdoor units allocate resources according to global information, such as dynamically adjusting output power, matching the total load of all the indoor units, avoiding frequent start-stop or overload, improving the comprehensive energy efficiency ratio, and triggering a protection mechanism (such as shutdown and frequency reduction) to prevent fault diffusion, for example, the indoor units and the outdoor units report faults in real time.
The data communication between the external machine and the internal machine is generally divided into wired and wireless, the wired communication includes an RS485 or CAN bus supporting master-slave communication between multiple nodes (internal machines) and a single host machine (external machines), but when the number of the internal machines is relatively large and the communication distance is relatively long, the communication quality is affected by the installation environment, the cost is relatively high, the installation is complex, and the quality level, the distance and the technical capability of an installer of the communication line are all affected. And the wireless connection does not need to use a communication line, and the wireless module is used between the internal machine and the external machine to keep communication, so that the installation is simple and the cost is low.
However, the following problems exist in the wireless communication method:
a. signal collision, namely, a plurality of internal machines simultaneously send data to cause communication collision, and instruction loss or delay is caused;
b. The external machine needs to respond to a plurality of internal machine requests, and if the external machine is improperly scheduled, the response priority is disordered;
c. The energy consumption is increased, namely the system power consumption is increased by frequently retransmitting data, and the energy efficiency is reduced;
therefore, how to solve the above problems is an important research and development problem for the communication between the indoor unit and the outdoor unit of the air conditioner.
Disclosure of Invention
Aiming at the problems of the background technology, the invention provides a method for dynamically distributing communication time periods of an air conditioner internal unit and an air conditioner external unit.
To achieve the purpose, the invention adopts the following technical scheme:
The method for dynamically distributing communication time periods of an air conditioner internal unit and an external unit comprises the steps of using the same wireless frequency band by the external unit and a plurality of internal units in an air conditioner group control system to share the same communication channel, dividing communication time of the communication channel into a plurality of time frames with fixed length, dividing each time frame into an uplink time slot and a downlink time slot, dividing the uplink time slot into a plurality of sub-time slots with fixed length, wherein the uplink time slot is used for the plurality of internal units to send data to the external unit, and the downlink time slot is used for the external unit to send data to the plurality of internal units, and comprises the following steps:
Step A, when an uplink time slot is divided into sub time slots, the number of the sub time slots is larger than or equal to the number of internal units;
Step B, initially, the external machine sequentially numbers each sub-time slot, allocates the sub-time slot with the corresponding number to each internal machine according to the SN code of each internal machine and generates a time slot allocation table, and broadcasts the time slot allocation table to all the internal machines through downlink time slots;
In the communication period of the current frame, each internal machine respectively transmits data to the external machine in sequence according to the sub-time slots of the corresponding numbers, and the external machine transmits data to all internal machines in a broadcasting mode according to all internal machine addresses through the downlink time slots or transmits data to the corresponding internal machines in a unicast mode according to the target internal machine addresses;
step D, in other communication periods of the subsequent frames, the external machine reallocates sub-slots of all internal machines according to the communication data quantity or the communication priority of all internal machines and generates a new time slot allocation table to broadcast to all internal machines, and all internal machines execute data transmission operation according to the new time slot allocation table;
And E, when the air conditioner group control system is connected with a new internal machine, the steps A to D are re-executed.
Preferably, the online running condition of all the internal machines is acquired to determine the communication state of all the sub-time slots of the current frame, the sub-time slots corresponding to the online running internal machines are marked as static time slots in a busy state, and the sub-time slots corresponding to the internal machines which are not online running are marked as dynamic time slots in an idle state.
Preferably, at least one sub-time slot is divided in the uplink time slot as a shared contention time slot, and the shared contention time slot is used for an internal machine to initiate an additional request of a next frame communication requirement to the external machine in the current frame through preempting the shared contention time slot or for the internal machine to send additional data again;
dividing the at least one shared contention slot includes:
the uplink time slot is divided into a number of sub-time slots needed by the internal machine and at least one sub-time slot as a shared competition time slot, wherein the number of the shared competition time slot is arranged to the last;
Or second, if the current frame has the dynamic time slot in the idle state, taking the dynamic time slot in the idle state as the sharing competition time slot on the basis of the first operation.
Preferably, the additional data is emergency early warning data or fault data;
After the external machine receives the additional request or the additional data, the external machine reallocates the sub-slots of all the internal machines according to the additional request or the additional data, generates a new time slot allocation table for the communication period of the subsequent frame, sends the new time slot allocation table to all the internal machines through the downlink time slot of the current frame, and all the internal machines execute the data sending operation according to the new time slot allocation table in the communication period of the subsequent frame.
Preferably, when all the internal machines are in online operation, each internal machine sends data to the external machine according to the corresponding static time slot;
When the internal machine does not operate online, if the current internal machine needs to transmit the data, the data does not comprise additional data or additional requests, judging whether N dynamic time slots exist before the static time slots corresponding to the current internal machine when other static time slots do not exist, wherein N is greater than a, a represents the number of sub-time slots reserved for other internal machines to rob, if so, the nth dynamic time slot is allocated to the current internal machine to transmit the data, a+1 is less than or equal to N, meanwhile, the static time slots corresponding to the current internal machine are reserved, and if not, the current internal machine transmits the data according to the corresponding static time slots;
or judging whether N dynamic time slots exist between the static time slot corresponding to the current internal machine and the other static time slot in front of the current internal machine, wherein N is larger than a, a represents the number of sub-time slots reserved for other internal machines to occupy, if so, the nth dynamic time slot between the two static time slots is allocated to the current internal machine to transmit data, a+1 is smaller than or equal to N and is smaller than or equal to N, meanwhile, the static time slot corresponding to the current internal machine is reserved, and if not, the current internal machine transmits data according to the corresponding static time slot.
Preferably, when the nth dynamic time slot allocated to the current internal machine to transmit data is preempted by other internal machines to transmit additional request or additional data for the shared contention time slot, the (n+1) th dynamic time slot is allocated to the current internal machine, and if the (n+1) th dynamic time slot is also preempted by other internal machines to transmit additional request or additional data for the shared contention time slot, the (n+2) th dynamic time slot is allocated to the current internal machine, and so on.
Preferably, all sub-time slots divided by the uplink time slot are embedded with protection time, and the interval length of the protection time corresponding to each sub-time slot is consistent;
the calculation formula of the protection time is as follows:
T=Tmpd+Tce+Tpre;
Where T denotes a guard time, T mpd denotes a maximum propagation delay, T ce denotes a clock error, T pre denotes a pre-allocation time, and the total length of the pre-allocation time of all internal units is the length of one sub-slot.
Preferably, when the external machine receives data transmitted from all the internal machines and receives additional data or additional requests transmitted from different internal machines in a communication period of continuous multiframes, the external machine shortens the guard time of each sub-time slot, combines the pre-allocation time in the original guard time to be used for dividing into more than one new sub-time slot, takes the new sub-time slot as a shared competition time slot, and reforms a new time slot allocation table and broadcasts the new time slot allocation table to all the internal machines through downlink time slots;
the calculation formula of the shortened protection time is as follows:
T=Tmpd+Tce
Preferably, the external device sending data to the internal device through the downlink timeslot further includes:
Dividing the downlink time slot into sub-time slots with the same number as the internal machines, and distributing the corresponding internal machines to each sub-time slot so that the external machine can send the specified data aiming at different internal machines in different sub-time slots.
Preferably, when the external machine sends data to the internal machine through the downlink time slot in the current frame, a start identifier is attached to the start of the frame, and all the internal machines align clocks by taking the start identifier as a synchronizing signal.
Compared with the prior art, the invention has the beneficial effects that:
the invention dynamically allocates the communication time period between the multiple internal machines and the single external machine in the air-conditioning group control system, which comprises dynamically adjusting the time frame structure according to the actual demand, taking the idle time slot as a shared competition time slot for other internal machines to compete and preempt, so as to avoid the problem that the idle time slot is dynamically scheduled to avoid the waste of time slot resources caused by the principle of sharing the competition time slot, and meanwhile, the pre-allocation time is increased for the protection time of each time slot, and the length of one time slot can be formed by the pre-allocation time to increase the time slot, thereby effectively solving the problems that the multiple internal machines simultaneously send data to cause communication conflict and cause instruction loss or delay, solving the problem that the external machine needs to respond to the requests of the multiple internal machines, and solving the problem that the internal machines frequently retransmit the data to aggravate the system power consumption and reduce the energy efficiency if the scheduling is improper.
Drawings
FIG. 1 is a flow chart of a method for dynamically allocating communication time periods between an indoor unit and an outdoor unit of an air conditioner according to the present invention;
FIG. 2 is a schematic diagram of communication of a plurality of time frames (downlink time slots are not divided into a plurality of sub-time slots) according to one embodiment of the present invention;
FIG. 3 is a schematic diagram of communication of a current time frame (downlink time slot divided into a plurality of sub-slots) according to one embodiment of the present invention;
FIG. 4 is a diagram illustrating a communication for partitioning at least one shared contention slot according to one embodiment of the present invention;
fig. 5 is a schematic diagram of communication regarding other internal machines scheduling use of other idle sub-slots in accordance with an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further described below by the specific embodiments with reference to the accompanying drawings.
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or article that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or article.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In an air conditioner group control system, such as a multi-connected air conditioner system, a plurality of indoor units (inner units) and outdoor units (outer units) need to exchange data frequently, the communication essence of the air conditioner group control system is that the air conditioner group control system is distributed according to needs and optimized globally, the inner units upload information such as 'requirements' and 'states', and the outer units serve as 'similar central processing units' to coordinate information such as refrigerant flow, power output and fault processing, and finally efficient, stable and intelligent operation is achieved. For example, the data and control logic sent by the interaction of the internal machine and the external machine includes:
1. the internal machine sends user setting data
Basic instructions include on-off, mode (cooling/heating/dehumidifying/air supplying), set temperature (18 ℃ for example), wind speed (low/medium/high/automatic), wind sweeping angle, special functions including sleep mode (automatic temperature regulation), energy saving mode (limiting maximum load) and self-cleaning request.
The external machine responds to:
the running direction of the compressor (the four-way valve for heating) is switched according to the mode, the target superheat degree/supercooling degree is calculated according to the set temperature, the opening degree of the electronic expansion valve is adjusted, the wind speed influences the wind quantity of the indoor unit, and the outdoor unit synchronously adjusts the rotating speed of the fan (such as increasing the heat dissipation of the condenser when the wind speed is high).
2. The internal machine sends real-time state class data
Indoor environment, current room temperature (collected by a thermocouple/infrared sensor), humidity (used for judging a dehumidification mode), and equipment state, namely fan rotating speed of an internal machine, opening of an electronic expansion valve and filter screen filth blocking signals (estimated by a sensor or running time).
The external machine responds to:
calculating the load of a single internal machine (such as room temperature and set temperature difference multiplied by air quantity), adding up all the internal machine loads, then adjusting the frequency of the compressor (such as low-frequency operation if the total load is low), and when the filter screen is dirty and blocked, the external machine can reduce the flow of the refrigerant or prompt the user to clean, thereby avoiding the efficiency reduction caused by insufficient air quantity.
3. Internal machine sending fault and protection data
Fault codes, including internal machine sensor fault (such as short circuit of room temperature sensor), motor abnormality and communication interruption. And the protection signal is overheat protection (the temperature of the heat exchanger of the internal machine is too high) and anti-freezing protection (the temperature of the evaporator is less than or equal to 0 ℃).
The external machine responds to:
after receiving the fault code, triggering local or global protection, i.e. closing the internal machine valve when a single internal machine fails, and continuing the operation of other internal machines, and if the external machine detects high-pressure protection (such as refrigerant leakage), stopping all the internal machines.
While there may be a problem of signal collision when the plurality of internal units transmit data to the external unit, there may be a problem of improper scheduling response to an erroneous priority request when the external unit transmits data or instructions to the plurality of internal units, in practical development, a communication technique of TDMA (time division multiple access) is found, which allows a plurality of devices to communicate using the same frequency in different time slots, i.e., the communication time is divided into a plurality of time frames of a fixed length, each time frame including a plurality of time slots. Each device is allocated with one or more time slots for transmitting and receiving data in the time slots, so that transmission of different devices can be isolated in time, mutual interference among the devices is reduced, resource allocation can be flexibly adjusted according to device requirements through time slot allocation, communication requirements of different devices are met, and how to optimize a TDMA technology according to actual requirements of an air conditioner group control system to adapt to frequent data interaction of a plurality of internal machines and single external machine is one direction of current air conditioner communication research and development. Based on the method, the application provides a communication time period dynamic allocation method for the air conditioner internal unit and the air conditioner external unit;
As shown in fig. 1 and 2, an external machine and a plurality of internal machines in an air conditioner group control system use the same radio frequency band to share the same communication channel, the communication time of the communication channel is divided into a plurality of time frames with fixed length, each time frame is divided into an uplink time slot and a downlink time slot, the uplink time slot is divided into a plurality of sub-time slots with fixed length, the uplink time slot is used for the plurality of internal machines to transmit data to the external machine, and the downlink time slot is used for the external machine to transmit data to the plurality of internal machines;
The external machine and the internal machines need to access the same radio frequency band, so that the external machine and the internal machines can share the same communication channel, the communication time period is dynamically allocated, each device is ensured to monopolize the channel in a designated time window, and collision is avoided. In this embodiment, the time frame is a complete communication period including all time slots, the length of the time frame needs to balance instantaneity and efficiency, the problem that the time slots are insufficient due to too short time frame and delay caused by too long time frame is avoided, the length of a specific time frame needs to be set according to the actual use requirement of an air conditioner, such as the number of internal units, the interactive data quantity of the internal units and the external units, the on-line running condition of the internal units, the communication rate and the like, for example, in the air conditioner use light season, the sub-time slots of 4 internal units are respectively allocated for 50ms (milliseconds), the downlink time slot of the external unit is allocated for 40ms, then the period of one frame is 200ms of the uplink time slot, 40ms of the downlink time slot is reserved for 240ms, the period of the whole time slot is optimized for 250ms, and the period length of one frame is optimized for each 250ms, and for the air conditioner use light season, for example, in summer, the uplink data packet to be transmitted by 10 internal units is at least 50 bytes, the downlink command of the external unit is at least 50 bytes, if the communication rate is 9600 s of each 8 bytes, the uplink time slot of one frame is 10 bpx 8×00ms, namely, and the downlink time slot is allocated for each sub-time slot of the time slot is about 50ms (i.e.e. 50ms of the uplink time slot is allocated for the uplink time slot of 1-900 ms), and the time slot is not optimized for the time slot is allocated for the uplink time slot of the time slot is 900 ms;
Further, the sub-slot is a fixed time period allocated to a single device for exclusively transmitting data, and if the period is 100ms, each of the 5 internal units is allocated with a 20ms slot, each internal unit only transmits data in the dedicated slot, for example, 0-20ms is a first internal unit transmission period, and 20-40ms is a second internal unit transmission period.
The method is implemented as follows:
Step A, when an uplink time slot is divided into sub time slots, the number of the sub time slots is larger than or equal to the number of internal units;
If the number of the sub-slots is greater than or equal to the number of the internal units, if the current number of the internal units of the air conditioning group control system is 10, the number of the sub-slots divided by the uplink time slot is at least 10, in general, we will increase a plurality of 2 sub-slots, namely 12 sub-slots, so that the new internal units can be allocated to the new internal units when the new internal units are accessed into the air conditioning group control system later, but the number of the increased sub-slots cannot be too large, and the period length of the frame can be too large or the length of each sub-slot can be shortened, so that the number of the sub-slots needs to be designed according to actual requirements when the number of the sub-slots is increased.
Step B, initially, the external machine sequentially numbers each sub-time slot, allocates the sub-time slot with the corresponding number to each internal machine according to the SN code of each internal machine and generates a time slot allocation table, and broadcasts the time slot allocation table to all the internal machines through downlink time slots;
in this embodiment, each internal machine sends data to the external machine through which sub-time slot or in which time period, the external machine performs the allocation, initially, the external machine sequentially numbers each sub-time slot, for example, 0-9 sub-time slots, and allocates sub-time slots with corresponding numbers to each internal machine according to the SN code of each internal machine to form a time slot allocation table.
In the communication period of the current frame, each internal machine respectively transmits data to the external machine in sequence according to the sub-time slots of the corresponding numbers, and the external machine transmits data to all internal machines in a broadcasting mode according to all internal machine addresses through the downlink time slots or transmits data to the corresponding internal machines in a unicast mode according to the target internal machine addresses;
For example, in a communication period of one frame, an inner machine a is allocated to a sub-slot 0, an inner machine B is allocated to a sub-slot 1, an inner machine C is allocated to a sub-slot 2, the length of each sub-slot is 20ms, the inner machine a transmits data in a time period of 0-20ms, the inner machine B transmits data in a time period of 20-40ms, the inner machine C transmits data in a time period of 40-60ms, the inner machine B needs to wait for the inner machine a to transmit own data after the data is transmitted, if the inner machine a does not transmit data, the inner machine B still needs to wait for a time period of 0-20ms to run away, the inner machine B can transmit own data in a time period of 20-40ms, and the rule is defined as a setting of TDMA technology itself, so as to ensure that each inner machine can not interfere with each other, but the setting also causes the inner machine needing to transmit data to wait for the previous slot, the situation causes the waste of time period, and the application can also improve the problem of time period;
Further, after the external machine receives the data of the internal machine, a targeted instruction or a regulation command is made, and the data is sent to all internal machines in a broadcast mode or in a unicast mode through the downlink time slot to the corresponding internal machine. When data is transmitted to all internal machines in a broadcast form, the transmitted data is generally a global instruction, such as start-stop of a compressor, temperature setting, mode switching, and the like, and when data is transmitted to a specific internal machine in a unicast form, the transmitted data is generally a specific internal machine control instruction, such as opening of an electronic expansion valve by an internal machine a. Both broadcast and unicast are transmitted through the address field of the internal machine, so the internal machine needs to store the address field of the internal machine in the initial stage. Of course, the unicast effect can be achieved through a broadcasting mode, for example, the opening degree of the electronic expansion valve is opened by the internal machine A is sent to all external machines, all the internal machines receive and analyze the instruction, only the opening degree of the electronic expansion valve is opened by the internal machine A after analysis, other internal machines do not need to execute, and the internal machines are required to have the function of analyzing the instruction under the condition.
Step D, in other communication periods of the subsequent frames, the external machine reallocates sub-slots of all internal machines according to the communication data quantity or the communication priority of all internal machines and generates a new time slot allocation table to broadcast to all internal machines, and all internal machines execute data transmission operation according to the new time slot allocation table;
in this embodiment, instead of using the slot allocation table set by the external machine in the initial stage, the slot allocation table needs to be set according to the actual communication situation, for example, after the external machine runs for a period of time, the external machine counts the communication data amounts and the communication priorities of all the internal machines in the communication period of a period of time, and finds that the communication data amount of the internal machine a is particularly large, and the data priority of each transmission of the internal machine B is far higher than that of other internal machines, so that the external machine may allocate one more sub-slot to the internal machine a and the internal machine B, so that the internal machine a and the internal machine B can transmit data to the external machine twice in the communication period of the current frame. When the new slot allocation table is formed, all the internal machines are executed according to the new slot allocation table, and when attention is needed, the external machine of the current frame is executed in the next frame after the new slot allocation table is formed.
And E, when the air conditioner group control system is connected with a new internal machine, the steps A to D are re-executed.
Preferably, the online running condition of all the internal machines is acquired to determine the communication state of all the sub-time slots of the current frame, the sub-time slots corresponding to the online running internal machines are marked as static time slots in a busy state, and the sub-time slots corresponding to the internal machines which are not online running are marked as dynamic time slots in an idle state.
As mentioned above, the present solution allocates corresponding sub-slots to all the internal machines, after each internal machine is online, data can be sent to the external machine through the corresponding sub-slot, but not all the internal machines are online, so that the communication state of the sub-slots corresponding to the internal machines which are not online is in an idle state, for example, the internal machine a corresponds to the number 0 sub-slot, the internal machine B corresponds to the number 1 sub-slot, the internal machine C corresponds to the number 2 sub-slot, and if the internal machines a and B are not online, the internal machine C needs to wait for the two time slots of the number 0 and the number 1 sub-slots to go, and then the data can be sent by the number 2 sub-slot, which wastes the two time slots of the number 0 and the number 1 sub-slots. The application determines the communication state of all sub-time slots of the current frame through the online operation condition of all the internal machines, marks the sub-time slots corresponding to the online operation internal machines as static time slots in busy state, marks the sub-time slots corresponding to the non-online operation internal machines as dynamic time slots in idle state, and the dynamic time slots mean that the dynamic time slots can be used for scheduling other online internal machines for use in the communication period of the current frame, and only when the external mechanism is needed to time slot allocation tables, the dynamic time slot logic is synchronously set to allow the other internal machines to use, after the internal machines receive the time slot allocation tables, the permission logic operation is executed, and the dynamic time slots can be shared competition time slots as follows or the dynamic time slots of the following numbered internal machines to be adjusted to the previous numbered internal machines for sending.
Preferably, at least one sub-time slot is divided in the uplink time slot as a shared contention time slot, and the shared contention time slot is used for an internal machine to initiate an additional request of a next frame communication requirement to the external machine in the current frame through preempting the shared contention time slot or for the internal machine to send additional data again;
During a communication period of a current frame, each internal unit is allocated a corresponding sub-slot for the internal unit to transmit data, but there still exist some problems, for example, the following situations:
When an internal machine has sent data to an external machine in a corresponding sub-time slot, the sub-time slot of the internal machine is used up, but the internal machine suddenly detects fault data or emergency early warning data, the internal machine needs to send the data to the external machine in a current frame, and other sub-time slots with subsequent numbers have other internal machines to send data, so that no additional sub-time slot is available for the internal machine to send additional data to the external machine;
aiming at the first case, an internal machine may not know that additional data needs to be sent to an external machine;
In the third case, the length of the sub-time slot allocated to an internal machine is insufficient to support the data amount to be transmitted by the current frame of the internal machine, in this case, the internal machine can only transmit part of the data to the external machine, and after receiving the data, the external machine does not know that the data is incomplete, or the internal machine transmits an additional request in the sub-time slot of the internal machine, and the data to be transmitted is left to the next frame to be transmitted, in either case, an additional sub-time slot is needed to enable the internal machine to initiate an additional request of the next frame communication requirement to the external machine in the current frame, namely, the external machine is informed of the need of occupying more sub-time slots to transmit the data in the next frame in the current frame, so that the internal machine reports the requirement to the external machine, and the external machine can rearrange the time slot allocation table;
Therefore, in either case, at least one shared contention slot is reserved in the uplink slot, so that the internal machine can initiate an additional request for the next frame of communication requirement to the external machine or send additional data again in the current frame, and the shared contention slot needs multiple internal machines to take the form of contention preemption, in short, which internal machine preempts to be used.
As shown in fig. 4, dividing at least one shared contention slot includes:
the uplink time slot is divided into a number of sub-time slots needed by the internal machine and at least one sub-time slot as a shared competition time slot, wherein the number of the shared competition time slot is arranged to the last;
Or second, if the current frame has the dynamic time slot in the idle state, taking the dynamic time slot in the idle state as the sharing competition time slot on the basis of the first operation.
In this embodiment, two operations of dividing the shared contention slot are provided, one is to allocate one sub-slot to each internal machine or allocate multiple sub-slots to a certain internal machine, for example, on the basis of the number of sub-slots required by all internal machines, at least one sub-slot is added as the shared contention slot, the added shared contention slot is arranged to the last number by default, and other internal machines can not be affected to transmit, for example, in the first frame of fig. 4, slot 3 is the added shared contention slot, and all internal machines a, B and C can preempt slot 3.
Furthermore, operation two is set on the basis of operation one, and we mention that not all the internal machines are on-line, for the internal machines without on-line operation, their sub-slots are in idle state, we mark them as dynamic slots, which would still run out of their time period if not used, so we can use these dynamic slots as shared contention slots, so that the number of shared contention slots is increased to meet the requirement of multiple internal machines that need to send additional requests or additional data, for example, in the second frame of fig. 4, slot 1 of internal machine B is in idle state, which is taken as shared contention slot, and both internal machine a and internal machine C can preempt slot 1. If all the internal machines are online, it means that the current frame has no dynamic time slot, and then the internal machines can only send additional requests and additional data by operating a divided shared contention slot.
Preferably, the additional data is emergency early warning data or fault data;
After the external machine receives the additional request or the additional data, the external machine reallocates the sub-slots of all the internal machines according to the additional request or the additional data, generates a new time slot allocation table for the communication period of the subsequent frame, sends the new time slot allocation table to all the internal machines through the downlink time slot of the current frame, and all the internal machines execute the data sending operation according to the new time slot allocation table in the communication period of the subsequent frame.
In this embodiment, after the external device receives the additional request, more sub-slots are allocated to the internal device that sends the additional request in the next frame. Similarly, when the external machine receives the extra data, the internal machine which defaults to send the extra data needs to send the fault data besides the daily data (such as temperature and other running state data), so that more sub-time slots are allocated to the internal machine which sends the extra data. When the frame length cannot be adjusted, more sub-slots can be formed by shortening the lengths of all sub-slots to allocate to the required internal machines.
Preferably, when all the internal machines are in online operation, each internal machine sends data to the external machine according to the corresponding static time slot;
When the internal machine does not operate online, if the current internal machine needs to transmit the data, the data does not comprise additional data or additional requests, judging whether N dynamic time slots exist before the static time slots corresponding to the current internal machine when other static time slots do not exist, wherein N is greater than a, a represents the number of sub-time slots reserved for other internal machines to rob, if so, the nth dynamic time slot is allocated to the current internal machine to transmit the data, a+1 is less than or equal to N, meanwhile, the static time slots corresponding to the current internal machine are reserved, and if not, the current internal machine transmits the data according to the corresponding static time slots;
or judging whether N dynamic time slots exist between the static time slot corresponding to the current internal machine and the other static time slot in front of the current internal machine, wherein N is larger than a, a represents the number of sub-time slots reserved for other internal machines to occupy, if so, the nth dynamic time slot between the two static time slots is allocated to the current internal machine to transmit data, a+1 is smaller than or equal to N and is smaller than or equal to N, meanwhile, the static time slot corresponding to the current internal machine is reserved, and if not, the current internal machine transmits data according to the corresponding static time slot.
In this embodiment, when there is a situation that an internal machine is not in online operation, it means that some sub-slots are in idle state, and we need to use these dynamic time slots to avoid wasting time period resources, so for an internal machine with a need to send data, scheduling can be performed by judging dynamic time slots, as shown in fig. 5, there are 8 internal machines in the air conditioner group control system, which are A, B, C, D, E, F, G, H respectively and correspond to 0-7 numbered sub-slots respectively, when a=1, a represents the number of sub-slots reserved for other internal machines to occupy, and if only internal machine C, internal machine D and internal machine H are in online operation:
in the example 1, the number 2 sub-time slots corresponding to the internal machine C are static time slots, the front of the internal machine C has 2 dynamic time slots in total, and the front of the number 2 static time slots has no other static time slots, wherein n=2 and is larger than a, so that the internal machine C can use the N-th dynamic time slot, namely a+1=2 is less than or equal to N and less than or equal to n=2, so that n=2, namely the internal machine C can use the 2-th dynamic time slot, namely the number 1 dynamic time slot;
In example 2, the inner machine H corresponds to the number 7 sub-time slot as a static time slot, and the front is the number 3 static time slot of the inner machine D, so that the inner machine H and the inner machine D have the number 4, the number 5 and the number 6 and have 3 dynamic time slots altogether, namely n=3 and is larger than a, and the inner machine H can use the N-th static time slot, namely a+1=2 is smaller than or equal to n=3, so that n=2 or 3, so that the inner machine H can use the 2 nd or 3-th dynamic time slots of the number 4, the number 5 and the number 6, namely the number 5 and the number 6 dynamic time slots;
In example 3, the sub-slot 3 corresponding to the internal machine D is a static slot, the 2 # static slot of the internal machine C is arranged in front of the static slot, and no other dynamic slot exists between the two slots, so that the internal machine D can only transmit data by using the 3 # static slot corresponding to itself, and cannot be scheduled to other dynamic slots.
It should be noted that a indicates the number of sub-slots reserved for other internal units to occupy, for example, in example 1, a=1, that is, indicates that the number of sub-slots reserved for other internal units to occupy is 1, that is, there are 2 dynamic slots, i.e., number 0 and number 1, in front of the internal unit C, but the dynamic slot No. 0 is used as a shared contention slot for other internal units to occupy, so that the internal unit C can only schedule the dynamic slot No. 1. In example 2, there are 3 dynamic time slots, i.e., no. 4, no. 5, and No. 6, between the internal unit H and the internal unit D, and a=1, which indicates that the dynamic time slot No. 4 is used as a shared contention time slot for preempting other internal units, so that the internal unit H can only schedule two dynamic time slots, i.e., no. 5 and No. 6. Because the priority of the preempting sharing competition time slot is higher than the priority of other dynamic time slots which are scheduled to be used, N is required to be larger than a, a dynamic time slots are reserved as sharing competition time slots so that other internal machines can preempt to use, and the size of a is set according to actual conditions.
Preferably, when the nth dynamic time slot allocated to the current internal machine to transmit data is preempted by other internal machines to transmit additional request or additional data for the shared contention time slot, the (n+1) th dynamic time slot is allocated to the current internal machine, and if the (n+1) th dynamic time slot is also preempted by other internal machines to transmit additional request or additional data for the shared contention time slot, the (n+2) th dynamic time slot is allocated to the current internal machine, and so on.
In this embodiment, since the priority of the use of the dynamic time slot as the shared contention time slot by other internal machines needs to be higher than that of the use of other dynamic time slots for scheduling by the internal machines, the scheduling must follow the avoidance principle, as in example 2 above, there are 3 dynamic time slots, i.e. number 4, number 5 and number 6, between the internal machine H and the internal machine D, the number 4 dynamic slot is reserved as the shared contention time slot at the beginning, the internal machine H can only schedule to the 2 nd dynamic time slot, i.e. number 5 or the 3 rd dynamic time slot, i.e. number 6, at this time, the internal machine H can only use the 2 nd dynamic time slot, i.e. number 5, and if the 5 th dynamic time slot is also preempted by other internal machines as the shared contention time slot, the internal machine H needs to be back-off to the 3 rd dynamic time slot, i.e. number 6, and if the 6 dynamic time slot is also preempted by other internal machines as the shared contention time slot, no other dynamic time slots can schedule the internal machine H, and the internal machine H can only use its own corresponding number 7 static time slot.
Furthermore, when the internal machine C and the internal machine H can use other dynamic time slots to schedule and send data in advance, the static time slots corresponding to the internal machine C and the internal machine H can be reserved for themselves, and one is that even if the dynamic time slots can be scheduled, the dynamic time slots can be preempted as shared competition time slots at any time, so that the static time slots corresponding to the dynamic time slots need to be reserved, and the situation that no sub-time slots can send messages due to the preempted scheduling is prevented. For the internal machine which is successfully scheduled, the static time slot corresponding to the internal machine which is successfully scheduled allows the internal machine which is successfully scheduled to repeatedly send the same data or send other real-time data.
Preferably, all sub-time slots divided by the uplink time slot are embedded with protection time, and the interval length of the protection time corresponding to each sub-time slot is consistent;
the calculation formula of the protection time is as follows:
T=Tmpd+Tce+Tpre;
Where T denotes a guard time, T mpd denotes a maximum propagation delay, T ce denotes a clock error, T pre denotes a pre-allocation time, and the total length of the pre-allocation time of all internal units is the length of one sub-slot.
Preferably, when the external machine receives data transmitted from all the internal machines and receives additional data or additional requests transmitted from different internal machines in a communication period of continuous multiframes, the external machine shortens the guard time of each sub-time slot, combines the pre-allocation time in the original guard time to be used for dividing into more than one new sub-time slot, takes the new sub-time slot as a shared competition time slot, and reforms a new time slot allocation table and broadcasts the new time slot allocation table to all the internal machines through downlink time slots;
the calculation formula of the shortened protection time is as follows:
T=Tmpd+Tce
In the present embodiment, the guard time is used as the buffer time between time slots, in order to prevent signal overlapping caused by clock drift or transmission delay, so that guard time needs to be embedded in each sub-time slot, in the existing TDMA technology, the guard time is generally obtained by adding clock error to the maximum propagation delay, the total length of the pre-allocation time of all sub-time slots is the length of one sub-time slot, so that the pre-allocation time can be removed later to add a new sub-time slot as a shared contention time slot, and the problem of insufficient shared contention time slot is solved;
For example, when an air conditioner uses a slack season, sub-time slots of 5 internal machines are respectively distributed for 12ms, the 12ms contains the protection time of 4ms, each sub-time slot is actually available for 8ms, the maximum propagation delay of the sub-time slots is 1.5ms, the clock error is 0.5ms, the pre-distribution time is 2ms, namely, in the atomic time slots, the actual available length is 8ms plus the protection time is 4ms (the maximum propagation delay is 1.5ms, the clock error is 0.5ms, the clock error is 2 ms), the total length of the uplink time slots is 5x12 ms=60 ms, the pre-distribution time is 2ms, the protection time of the base is reserved, one sub-time slot is newly added, namely, the total length of 6 sub-time slots is 6, among the 6 sub-time slots, the maximum propagation delay is 1.5ms, the clock error is 0.5ms, the total length of the actual available length is 10ms, the total length of the sub-time slots is 10ms, the total length of the pre-time slots is not overlapped, and the transmission time slots are not required to be changed, and the total length of the base time slots is not changed.
Preferably, as shown in fig. 3, the external device sending data to the internal device through the downlink timeslot further includes:
Dividing the downlink time slot into sub-time slots with the same number as the internal machines, and distributing the corresponding internal machines to each sub-time slot so that the external machine can send the specified data aiming at different internal machines in different sub-time slots.
In this embodiment, the external machine may send data to all internal machines or specific internal machines through a broadcast or unicast mode through an exclusive downlink time slot, and may divide the downlink time slot into sub-time slots with the same number as that of the internal machines according to an uplink time slot dividing mode, so that the external machine sends instructions for different internal machines in different sub-time slots, for example, the external machine needs to control the internal machine a (set temperature), the internal machine B (adjust wind speed), and the internal machine C (switch mode) simultaneously, and may divide the downlink time slot into 3 sub-time slots and send corresponding instructions respectively, thereby improving instruction transmission efficiency and avoiding broadcasting redundant data.
Preferably, when the external machine sends data to the internal machine through the downlink time slot in the current frame, a start identifier is attached to the start of the frame, and all the internal machines align clocks by taking the start identifier as a synchronizing signal.
In this embodiment, it is necessary to ensure clock alignment of all the internal units and the external units, and the sub-slot sides can be switched and scheduled accurately, so that in the communication period of each frame, the external units can send the start identifier to the internal units through the downlink slot, so that all the internal units can align clocks with the start identifier as a synchronization signal.
The technical principle of the present invention is described above in connection with the specific embodiments. The description is made for the purpose of illustrating the general principles of the invention and should not be taken in any way as limiting the scope of the invention. Other embodiments of the invention will be apparent to those skilled in the art from consideration of this specification without undue burden.

Claims (7)

1.一种空调内机和外机的通讯时段动态分配方法,包括将空调群控系统中的外机和多个内机使用同一无线频段以共享同一通信信道,将通信信道的通信时间划分为多个固定长度的时间帧,将每个时间帧划分为上行时隙和下行时隙,将上行时隙划分为多个固定长度的子时隙,上行时隙用于多个内机向外机发送数据,下行时隙用于外机向多个内机发送数据,其特征在于:1. A method for dynamically allocating communication time slots between indoor and outdoor units of an air conditioner, comprising using the same wireless frequency band to share the same communication channel for the outdoor unit and multiple indoor units in an air conditioning group control system, dividing the communication time of the communication channel into multiple time frames of fixed length, dividing each time frame into uplink time slots and downlink time slots, dividing the uplink time slots into multiple sub-time slots of fixed length, wherein the uplink time slots are used for multiple indoor units to send data to the outdoor unit, and the downlink time slots are used for the outdoor unit to send data to multiple indoor units, characterized in that: 步骤A:将上行时隙划分为子时隙时,所述子时隙的数量大于或等于内机数量;Step A: When dividing the uplink time slot into sub-time slots, the number of sub-time slots is greater than or equal to the number of internal units; 步骤B:初始时,外机对每个子时隙进行顺序编号,根据每个内机的SN码给每个内机分配对应编号的子时隙并生成时隙分配表,外机将时隙分配表通过下行时隙广播至所有内机;Step B: Initially, the external unit sequentially numbers each sub-time slot, assigns a corresponding numbered sub-time slot to each internal unit according to the SN code of each internal unit, and generates a time slot allocation table. The external unit then broadcasts the time slot allocation table to all internal units via downlink time slots. 步骤C:在当前帧的通信周期内,每个内机按照对应编号的子时隙,各自按顺序向外机发送数据,外机通过下行时隙以广播的形式按照所有内机地址向所有内机发送数据或以单播的形式按照目标内机地址发送数据至对应内机;Step C: During the communication period of the current frame, each internal unit sends data to the external unit in sequence according to the corresponding numbered sub-time slot. The external unit sends data to all internal units in the form of broadcast according to all internal unit addresses or sends data to the corresponding internal unit in the form of unicast according to the target internal unit address through the downlink time slot. 步骤D:在后续帧的其他通信周期内,外机根据所有内机的通讯数据量或通讯优先级重新分配所有内机的子时隙并生成新时隙分配表广播至所有内机,所有内机按照新时隙分配表执行数据发送操作;Step D: In other communication cycles of subsequent frames, the external unit reallocates the sub-time slots of all internal units according to the communication data volume or communication priority of all internal units and generates a new time slot allocation table, which is then broadcast to all internal units. All internal units perform data transmission operations according to the new time slot allocation table. 步骤E:当空调群控系统接入新的内机时,重新执行步骤A至步骤D;Step E: When a new indoor unit is connected to the air conditioning group control system, repeat steps A through D. 还包括获取所有内机的上线运行情况以确定当前帧所有子时隙的通讯状态,将已上线运行的内机所对应的子时隙标记为处于忙碌状态的静态时隙,将未上线运行的内机所对应的子时隙标记为处于空闲状态的动态时隙;It also includes obtaining the online operation status of all indoor units to determine the communication status of all sub-time slots in the current frame, marking the sub-time slots corresponding to the online indoor units as static time slots in a busy state, and marking the sub-time slots corresponding to the offline indoor units as dynamic time slots in an idle state. 在上行时隙中划分至少一个子时隙作为共享竞争时隙,所述共享竞争时隙用于内机通过抢占共享竞争时隙在当前帧向外机发起下一帧通信需求的额外请求或内机再次发送额外数据;At least one sub-slot is divided in the uplink time slot as a shared contention time slot. The shared contention time slot is used by the internal unit to initiate an additional request for communication needs of the next frame to the external unit in the current frame by preempting the shared contention time slot, or by the internal unit to send additional data again. 划分至少一个共享竞争时隙包括:Allocating at least one shared contention time slot includes: 操作一:上行时隙除了划分出内机所需数量的子时隙外,还需划分出至少一个子时隙作为共享竞争时隙,所述共享竞争时隙的编号排列至最后;Operation 1: In addition to allocating the required number of sub-time slots for the indoor unit, at least one sub-time slot also needs to be allocated as a shared contention time slot. The numbers of the shared contention time slots are arranged to the end. 或操作二:若当前帧存在处于空闲状态的动态时隙,在操作一的基础上,将处于空闲状态的动态时隙作为共享竞争时隙;Alternatively, Operation 2: If there is an idle dynamic time slot in the current frame, based on Operation 1, the idle dynamic time slot will be used as a shared contention time slot. 其中,额外数据为紧急预警数据或故障数据;The additional data includes emergency warning data or fault data; 外机在当前帧收到额外请求或额外数据后,根据额外请求或额外数据重新分配所有内机的子时隙,并生成用于后续帧的通信周期的新时隙分配表,将新的时隙分配表通过当前帧的下行时隙发送给所有内机,所有内机在后续帧的通讯周期按照新时隙分配表执行数据发送操作。After receiving an additional request or additional data in the current frame, the outdoor unit reallocates the sub-time slots of all indoor units according to the additional request or additional data, and generates a new time slot allocation table for the communication cycle of subsequent frames. The new time slot allocation table is sent to all indoor units through the downlink time slot of the current frame. All indoor units perform data transmission operations according to the new time slot allocation table in the communication cycle of subsequent frames. 2.根据权利要求1所述一种空调内机和外机的通讯时段动态分配方法,其特征在于:2. The method for dynamically allocating communication time slots between an indoor and outdoor unit of an air conditioner according to claim 1, characterized in that: 当所有内机全部上线运行时,每个内机按照对应的静态时隙向外机发送数据;When all internal units are online and running, each internal unit sends data to the external unit according to the corresponding static time slot. 当存在内机没有上线运行时,若当前内机本身需要发送本次数据,本次数据不包括额外数据或额外请求,则判断当前内机所对应的静态时隙前面没有其他静态时隙时,是否存在N个动态时隙,,a表示预留给其他内机抢占用的子时隙数量,若是,则将第n个动态时隙分配给当前内机发送数据,,同时保留当前内机所对应的静态时隙,若否,则当前内机按照所对应的静态时隙发送数据;When an internal machine is not online, if the current internal machine itself needs to send this data (excluding any additional data or requests), then it is determined whether there are N dynamic time slots if there are no other static time slots preceding the current internal machine's corresponding static time slot. 'a' represents the number of sub-time slots reserved for other internal units to preempt. If 'a' is the number of sub-time slots reserved for other internal units to preempt, then the nth dynamic time slot will be allocated to the current internal unit to send data. At the same time, the static timeslot corresponding to the current internal unit is retained; otherwise, the current internal unit sends data according to the corresponding static timeslot. 或判断当前内机所对应的静态时隙与其前面另一个静态时隙之间是否存在N个动态时隙,,a表示预留给其他内机抢占用的子时隙数量,若是,则将两个静态时隙之间的第n个动态时隙分配给当前内机发送数据,,同时保留当前内机所对应的静态时隙,若否,则当前内机按照所对应的静态时隙发送数据。Alternatively, determine whether there are N dynamic time slots between the current static time slot of the internal unit and the previous static time slot. 'a' represents the number of sub-time slots reserved for other internal units to preempt. If 'a' is true, then the nth dynamic time slot between two static time slots will be allocated to the current internal unit for data transmission. At the same time, the static timeslot corresponding to the current internal unit is retained; otherwise, the current internal unit sends data according to the corresponding static timeslot. 3.根据权利要求2所述一种空调内机和外机的通讯时段动态分配方法,其特征在于:3. The method for dynamically allocating communication time slots between an indoor and outdoor unit of an air conditioner according to claim 2, characterized in that: 当分配给当前内机发送数据的第n个动态时隙被其他内机抢占为共享竞争时隙发送额外请求或额外数据时,将第n+1个动态时隙分配给当前内机,若第n+1个动态时隙同样被其他内机抢占为共享竞争时隙发送额外请求或额外数据时,将第n+2个动态时隙分配给当前内机,以此类推……直至没有动态时隙可分配给当前内机发送本次数据时,当前内机按照所对应的静态时隙发送数据。When the nth dynamic time slot allocated to the current internal machine for sending data is preempted by another internal machine to send additional requests or data via a shared contention time slot, the (n+1)th dynamic time slot is allocated to the current internal machine. If the (n+1)th dynamic time slot is also preempted by another internal machine to send additional requests or data via a shared contention time slot, the (n+2)th dynamic time slot is allocated to the current internal machine, and so on... until no dynamic time slot is available for the current internal machine to send the current data. At that point, the current internal machine sends the data according to the corresponding static time slot. 4.根据权利要求1所述一种空调内机和外机的通讯时段动态分配方法,其特征在于:4. The method for dynamically allocating communication time slots between an indoor and outdoor unit of an air conditioner according to claim 1, characterized in that: 所述上行时隙所划分的所有子时隙均内嵌有保护时间,每个子时隙所对应的保护时间的间隔长度一致;All sub-time slots divided by the uplink time slot are embedded with a protection time, and the interval length of the protection time corresponding to each sub-time slot is the same; 所述保护时间的计算公式为:The formula for calculating the protection time is: ; 其中,T表示保护时间,表示最大传播延迟,表示时钟误差,表示预分配时间,所有内机的预分配时间的总长度为一个子时隙的长度。Where T represents the protection time. Indicates the maximum propagation delay. Indicates clock error. This indicates the pre-allocated time; the total length of the pre-allocated time for all internal units is the length of one sub-time slot. 5.根据权利要求4所述一种空调内机和外机的通讯时段动态分配方法,其特征在于:5. The method for dynamically allocating communication time slots between an indoor and outdoor unit of an air conditioner according to claim 4, characterized in that: 当在连续多帧的通信周期内,外机均收到来自所有内机发送的数据且收到来自不同内机发送的额外数据或额外请求时,外机缩短每个子时隙的保护时间,将原保护时间中的预分配时间进行合并以用于划分出多一个新的子时隙,将新的子时隙作为共享竞争时隙,外机重新制定新时隙分配表并通过下行时隙广播至所有内机;When the external unit receives data from all internal units and receives additional data or requests from different internal units within a communication cycle of multiple consecutive frames, the external unit shortens the protection time of each sub-time slot, merges the pre-allocated time in the original protection time to divide up a new sub-time slot, uses the new sub-time slot as a shared contention time slot, and the external unit re-formulates the new time slot allocation table and broadcasts it to all internal units through the downlink time slot. 缩短后的保护时间的计算公式为:The formula for calculating the shortened protection time is: . 6.根据权利要求1所述一种空调内机和外机的通讯时段动态分配方法,其特征在于:6. The method for dynamically allocating communication time slots between an indoor and outdoor unit of an air conditioner according to claim 1, characterized in that: 外机通过下行时隙发送数据给内机还包括:The outdoor unit also sends data to the indoor unit via downlink time slots, including: 将下行时隙划分成与内机数量相同的子时隙,将每个子时隙分配对应的内机,以使所述外机在不同的子时隙发送针对不同内机的指定数据。The downlink time slot is divided into sub-time slots equal to the number of internal units, and each sub-time slot is assigned to a corresponding internal unit, so that the external unit can send specified data for different internal units in different sub-time slots. 7.根据权利要求1所述一种空调内机和外机的通讯时段动态分配方法,其特征在于:7. The method for dynamically allocating communication time slots between an indoor and outdoor unit of an air conditioner according to claim 1, characterized in that: 所述外机在当前帧通过下行时隙发送数据给内机时,会在帧起点附带起始标识,所有内机以起始标识作为同步信号对齐时钟。When the external unit sends data to the internal unit through the downlink time slot in the current frame, it will attach a start identifier at the beginning of the frame. All internal units will use the start identifier as a synchronization signal to align their clocks.
CN202510508647.3A 2025-04-22 2025-04-22 A method for dynamically allocating communication time slots between indoor and outdoor units of an air conditioner. Active CN120351622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510508647.3A CN120351622B (en) 2025-04-22 2025-04-22 A method for dynamically allocating communication time slots between indoor and outdoor units of an air conditioner.

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510508647.3A CN120351622B (en) 2025-04-22 2025-04-22 A method for dynamically allocating communication time slots between indoor and outdoor units of an air conditioner.

Publications (2)

Publication Number Publication Date
CN120351622A CN120351622A (en) 2025-07-22
CN120351622B true CN120351622B (en) 2026-03-24

Family

ID=96409387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510508647.3A Active CN120351622B (en) 2025-04-22 2025-04-22 A method for dynamically allocating communication time slots between indoor and outdoor units of an air conditioner.

Country Status (1)

Country Link
CN (1) CN120351622B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006140820A (en) * 2004-11-12 2006-06-01 Yamatake Corp Wireless communication system
CN103493577A (en) * 2011-02-22 2014-01-01 松下电器产业株式会社 Wireless communication system and wireless slave unit and wireless master unit used in the wireless communication system
CN117490194A (en) * 2023-11-09 2024-02-02 南京新联电子股份有限公司 Low-latency wireless communication system and method for building air conditioning thermostat based on Internet of Things

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3426877B2 (en) * 1996-10-18 2003-07-14 三洋電機株式会社 Air conditioning system
EP1320230B1 (en) * 2001-12-17 2004-09-29 Lucent Technologies Inc. Method and apparatus for bandwidth reservation
US8942219B2 (en) * 2007-04-13 2015-01-27 Hart Communication Foundation Support for network management and device communications in a wireless network
US8356431B2 (en) * 2007-04-13 2013-01-22 Hart Communication Foundation Scheduling communication frames in a wireless network
US8325627B2 (en) * 2007-04-13 2012-12-04 Hart Communication Foundation Adaptive scheduling in a wireless network
US8787266B2 (en) * 2008-06-13 2014-07-22 Infineon Technologies Ag Medium access control in industrial and automotive wireless with combined wired and wireless sensor networks
CN103036754B (en) * 2012-11-22 2015-11-04 青岛海尔空调电子有限公司 A multi-connected air conditioner communication system and communication method
JP2017009234A (en) * 2015-06-25 2017-01-12 三菱電機株式会社 Monitoring device, air conditioning system, and data collection method
CN106453019A (en) * 2016-09-12 2017-02-22 青岛海尔空调电子有限公司 Communication method of multiple online internal and external machines
CN110637312B (en) * 2017-05-26 2023-04-07 三菱电机株式会社 Air conditioner data communication device, air conditioner data communication method, and recording medium
CN113483462B (en) * 2021-04-30 2022-12-16 佛山市顺德区美的电子科技有限公司 Air conditioner and data transmission method and storage medium thereof based on power line communication

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006140820A (en) * 2004-11-12 2006-06-01 Yamatake Corp Wireless communication system
CN103493577A (en) * 2011-02-22 2014-01-01 松下电器产业株式会社 Wireless communication system and wireless slave unit and wireless master unit used in the wireless communication system
CN117490194A (en) * 2023-11-09 2024-02-02 南京新联电子股份有限公司 Low-latency wireless communication system and method for building air conditioning thermostat based on Internet of Things

Also Published As

Publication number Publication date
CN120351622A (en) 2025-07-22

Similar Documents

Publication Publication Date Title
US20230254936A1 (en) Bandwidth part adaptation in downlink communications
CN101852472B (en) Automatic addressing method for air conditioning system and air conditioning controller
CN103036754B (en) A multi-connected air conditioner communication system and communication method
US8972514B2 (en) Data transmitting and receiving method, data transmitting and receiving system, master device, and slave device
CN107040952B (en) Uplink transmission method and device
CN103313380A (en) Uplink scheduling method and equipment
KR102479422B1 (en) Air conditioner and communication method of thereof
CN111836370A (en) Resource reservation method and equipment based on competition
CN100579040C (en) Communication control system
KR20070018270A (en) Flow control method in wireless USS communication and wireless USS device and wireless USS host using same
CN120351622B (en) A method for dynamically allocating communication time slots between indoor and outdoor units of an air conditioner.
CN112327732A (en) Smart building interior micro-edge service control method and system and electronic equipment
CA3031391A1 (en) Auto addressing for hvac units
WO2019137261A1 (en) Cell resource scheduling method, master control station device, slave station device and system
CN109526005B (en) Wireless network system and communication method
WO2009119477A1 (en) Communication system, base station device, and mobile station device
CN112769661B (en) Time slot distribution and control method for high-speed time division multiplexing communication bus
CN101523770B (en) Method and apparatus for allocating time-slot in time division duplex system
CN107026919B (en) Method for determining network address of node equipment, node equipment and control system
CN113758073B (en) Method for heat pump unit group coordination and synchronization defrosting
CN116015584B (en) BWP switching method, device and system based on DCI signaling
JPWO2002056542A1 (en) Wireless transmission system
CN111211919B (en) Internet of things intelligent gateway configuration method special for data center machine room
CN109282461B (en) Control method of air-conditioning unit, air-conditioning switch, and air-conditioning unit
JPH09145134A (en) Control method and control device for air conditioning system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant