Air conditioning system and data processing method thereof
By setting a preset time interval to detect the writing of data to other registers in the air conditioning system, the problem of HomeBus bus data conflict in multi-split air conditioning systems is resolved, ensuring communication quality and effectiveness.
Patent Information
- Application Number
- CN202211486119.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-24
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2042-11-24
AI Technical Summary
In multi-split air conditioning systems, data conflicts can occur on the HomeBus bus due to devices sending data at similar times, affecting communication quality.
By setting a preset time in the air conditioning system, it can detect whether other registers are being written to. If so, the target data transmission is canceled to avoid data conflicts.
This effectively avoids data conflicts caused by register data delays, ensuring communication quality and effectiveness.
Smart Images

Figure CN115751627B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of air conditioning communication technology, and in particular to air conditioning systems and their data processing methods. Background Technology
[0002] A multi-split air conditioning system includes multiple indoor units, outdoor units, and wired controllers. All these devices communicate with each other via a HomeBus bus. To ensure independent and conflict-free data transmission on the HomeBus bus—meaning only one data transmission occurs at a time—when any device sends data to the HomeBus, it first checks if the bus is occupied by another device. Only if the bus is confirmed to be unoccupied does the device send its data.
[0003] However, the aforementioned data transmission method still suffers from data collisions on the bus when two or more devices transmit data very close together. Therefore, reducing data collisions on the bus has become a pressing issue. Summary of the Invention
[0004] This application provides an air conditioning system and its data processing method to at least solve the problem in the related art that data conflicts still occur on the bus when the data transmission times of two or more devices are very close.
[0005] In a first aspect, an air conditioning system is provided, comprising multiple communication devices, multiple devices, and a HomeBus bus; one communication device is connected to one device; each communication device is connected to the HomeBus bus; each communication device is provided with a register for transmitting data; a target communication device is configured such that: the target communication device is any one of the multiple communication devices; when no pulse interrupt signal is generated on the HomeBus bus, in response to a data transmission request sent by the target device, a first target time is determined for writing first target data into a first target register, the data transmission request being used to request the target communication device to send the first target data to any one of the other devices; if, within a preset time period, second target data is written into a second target register, the data transmission request is rejected to cancel the transmission of the first target data; the preset time period is greater than or equal to the delay time for sending data to the first target register; the second target register is a register corresponding to any one or more of the other communication devices; the preset time period begins at the first target time.
[0006] The aforementioned second target data is the data written into any one or more other registers within a preset time period.
[0007] The beneficial effects achieved by the embodiments of this application are as follows: The air conditioning system provided by this application takes into account the characteristic that there is a certain delay in the transmission of data from registers in the air conditioning system. Based on the delay duration of the transmission of data from the first target register, a preset duration is set. When the target communication device is about to transmit the first target data, it is first determined whether there is any second target data written in other registers of other communication devices within the preset duration. If the second target data exists, it means that the second target data transmitted by the device corresponding to the second target register will occupy the HomeBus bus simultaneously with the first target data transmitted by the target device. Therefore, the target device data is canceled to ensure that the first target data and the second target data can be transmitted independently on the HomeBus without conflict, thereby avoiding the data conflict problem caused by the delay duration of the register transmission.
[0008] Based on this, the air conditioning system detects whether other registers have been written with data within a preset time period to determine the appropriate time for the target communication device to control the transmission of target data. This ensures that the target register does not conflict with the data transmitted by other registers when it transmits data, thereby guaranteeing the communication quality and effect of the target device establishing communication with other devices.
[0009] In some embodiments, when the target communication device executes a second target data being written to the second target register within a preset duration, it is specifically configured to: obtain multiple data write times of other registers; the other registers are registers corresponding to other communication devices; when the multiple data write times include the second target time, the data whose data write time is the second target time is determined as the second target data; wherein the time difference between the second target time and the first target time is greater than 0 and less than or equal to the preset duration.
[0010] Based on this, by obtaining the data write times of other registers and determining whether the data write times include the second target time, the second target data within the preset time period can be determined. This determination method is logically simple, easy to operate, and ensures the efficiency of determining the second target data.
[0011] In some embodiments, the target communication device is further configured to: determine that no second target data has been detected for a preset duration when none of the multiple data write times include the second target time; and accept a data transmission request to transmit the first target data.
[0012] Based on this, the target communication device sends the first target data only when it determines that there is no second target data within a preset time period. This is to determine a reasonable time to send the first target data, so as to ensure that when the first target register sends the first target data, no data written to other registers will conflict with the first target data. This avoids data conflict problems caused by the delay time of register data transmission, and thus ensures the communication quality and communication effect of the target device establishing communication with other devices.
[0013] In some embodiments, the target communication device is further configured to: reject a data transmission request when it receives third target data within a preset time period; the third target data is data sent to the target device by any one or more other devices.
[0014] In this embodiment, based on the self-transmission and self-reception characteristics of the communication device in the air conditioning system, if the third target data is received within a preset time period, it indicates that other devices are transmitting data within the preset time period. In order to avoid the data transmitted by the device transmitting the third target data and the first target data occupying the HomeBus bus at the same time, the transmission of the first target data is canceled, thereby reducing the probability of data conflict on the HomeBus.
[0015] In some embodiments, the target communication device is further configured to reject a data transmission request when a pulse interrupt signal is generated on the HomeBus bus.
[0016] Based on this, the HomeBus generates a pulse interrupt signal, indicating that the HomeBus has been occupied by other data, and to avoid data conflicts, it does not send the first target data to the bus.
[0017] Secondly, a data processing method for an air conditioning system is provided. The method includes: when no pulse interrupt signal is generated on the HomeBus bus, in response to a data transmission request sent by a target device, determining a first target time for writing first target data into a first target register; the data transmission request is used to request the transmission of the first target data to a second target device via a target communication device; if, within a preset time period, second target data is written into a second target register, rejecting the data transmission request to cancel the transmission of the first target data; the preset time period is greater than or equal to the delay time for data transmission from the first target register; the second target register is a register corresponding to any one or more other communication devices; the preset time period is the start time of the first target time; wherein, one communication device corresponds to one device; and each communication device is equipped with a register for transmitting data.
[0018] In some embodiments, within a preset duration, there is a second target data being written to a second target register, specifically including: obtaining multiple data write times of other registers; the other registers are registers corresponding to other communication devices; when the multiple data write times include the second target time, the data whose data write time is the second target time is determined as the second target data; wherein, the time difference between the second target time and the first target time is greater than 0 and less than or equal to the preset duration.
[0019] In some embodiments, the method further includes: determining that no second target data has been detected for a preset duration when none of the multiple data write times include the second target time; and accepting a data transmission request to transmit the first target data.
[0020] In some embodiments, the method further includes: upon receiving third target data within a preset time period, rejecting the data transmission request to stop the transmission of the first target data; the third target data is data transmitted by a third target device to a target device; the third target device is any one of the other devices. In some embodiments, the method further includes: rejecting the data transmission request when a pulse interrupt signal is generated on the HomeBus bus.
[0021] Thirdly, a communication device is provided for use in an air conditioning system, wherein each communication device corresponds to one device, and the air conditioning system includes multiple devices and multiple communication devices; the communication device is capable of performing a data processing method as described in any of the first or second aspects.
[0022] Fourthly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed on any of the aforementioned devices, cause the devices to perform any of the aforementioned data processing methods.
[0023] Fifthly, embodiments of this application provide a chip, including: a processor and a memory; the memory is used to store computer execution instructions, the processor is connected to the memory, and when the chip is running, the processor executes the computer execution instructions stored in the memory to cause the chip to perform any of the above-described data processing methods.
[0024] Sixthly, embodiments of this application provide a computer program product containing instructions that, when run on any of the aforementioned devices, cause the device to execute any of the aforementioned data processing methods.
[0025] In the embodiments of this application, the names of the components of the above-mentioned device do not limit the device itself. In actual implementation, these components may appear under other names. As long as the function of each component is similar to that of the embodiments of this application, it falls within the scope of the claims of this application and its equivalents.
[0026] Furthermore, the technical effects of any of the design methods in aspects two through six can be found in the technical effects of the different design methods in aspect one above, and will not be repeated here. Attached Figure Description
[0027] The accompanying drawings are provided to further understand the technical solutions of the present invention and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of the present invention and do not constitute a limitation on the technical solutions of the present invention.
[0028] Figure 1 This is a schematic diagram of the architecture of an air conditioning system provided in an embodiment of this application;
[0029] Figure 2 A circuit system architecture diagram of an air conditioning system provided in this application embodiment;
[0030] Figure 3 A flowchart illustrating a data processing method for an air conditioning system provided in this application embodiment;
[0031] Figure 4 A waveform diagram of a data processing procedure provided in an embodiment of this application;
[0032] Figure 5 A waveform diagram of another data processing procedure provided in an embodiment of this application;
[0033] Figure 6 A flowchart illustrating another data processing method for an air conditioning system provided in this application embodiment;
[0034] Figure 7 A flowchart illustrating another data processing method for an air conditioning system provided in this application embodiment;
[0035] Figure 8 A flowchart illustrating another data processing method for an air conditioning system provided in this application embodiment;
[0036] Figure 9 This is a schematic diagram of the hardware structure of a controller provided in an embodiment of this application. Detailed Implementation
[0037] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0038] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0039] In the description of this application, it should be noted that, unless otherwise explicitly specified and limited, the terms "connected" and "linked" should be interpreted broadly, for example, they can refer to a fixed connection, a detachable connection, or an integral connection. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances. Furthermore, when describing pipelines, the terms "connected" and "linked" as used in this application have the meaning of establishing electrical connection. The specific meaning needs to be understood in conjunction with the context.
[0040] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0041] A multi-split air conditioning system includes multiple indoor units, outdoor units, and wired controllers. All these devices communicate with each other via a HomeBus bus. To ensure independent and conflict-free data transmission on the HomeBus bus—meaning only one data transmission occurs at a time—when any device sends data to the HomeBus, it first checks if the bus is occupied by another device. Only if the bus is confirmed to be unoccupied does the device send its data.
[0042] However, the aforementioned data transmission method still suffers from data collisions on the bus when two or more devices transmit data very close together. Therefore, reducing data collisions on the bus has become a pressing issue.
[0043] In view of this, this application provides an air conditioning system. Based on the impact of data conflict caused by a certain delay in data transmission from registers in the air conditioning system, a preset duration is first set in the air conditioning system according to the delay duration of data transmission from the first target register. When the target communication device is about to send the first target data, it is first determined whether second target data exists in other registers of other communication devices within the preset duration. If second target data exists, it indicates that the second target data sent by the device corresponding to the second target register will simultaneously occupy the HomeBus bus with the first target data sent by the target device. Therefore, the target device data is cancelled to ensure that the first and second target data can be transmitted independently on the HomeBus bus without conflict, thereby avoiding data conflict caused by the delay duration of register data transmission.
[0044] Based on this, the air conditioning system detects whether other registers have been written with data within a preset time period to determine the appropriate time for the target communication device to control the transmission of target data. This ensures that the target register does not conflict with the data transmitted by other registers when it transmits data, thereby guaranteeing the communication quality and effect of the target device establishing communication with other devices.
[0045] In this embodiment of the application, the air conditioning system includes air conditioning equipment, and the communication device is applied to the air conditioning equipment. The air conditioning equipment can be a multi-split air conditioning unit or a single-unit air conditioning unit, etc. The multi-split air conditioning unit includes one outdoor unit and multiple indoor units, while the single-unit air conditioning unit includes one outdoor unit and one corresponding indoor unit.
[0046] To further facilitate the description of the solution in this application, the air conditioning system of this application will be described in detail below using a multi-split air conditioning unit as an example.
[0047] refer to Figure 1 and Figure 2 As shown, the air conditioning system 100 may include one or more of the following: an indoor unit 101, an outdoor unit 102, a controller 103, a register 104, a communication device 105, and a terminal device 106. The register 104 is used to transmit data. There may be multiple indoor units 101 and multiple communication devices 105.
[0048] Among them, multiple indoor units 101 and outdoor units 102 belong to multiple peripheral devices of the air conditioning system 100, and these multiple peripheral devices are hereinafter referred to as multiple devices.
[0049] Specifically, in the air conditioning system 100, multiple communication devices, multiple equipment, and the HomeBus bus are connected sequentially. One equipment corresponds to one communication device, and one communication device connects to one equipment; each communication device is connected to the HomeBus bus. Each communication device is equipped with a register.
[0050] In some embodiments, the air conditioning system 100 further includes a wired controller (not shown), and each indoor unit 101 is communicatively connected to the wired controller and the outdoor unit 102 via a communication device 105.
[0051] For example, after the air conditioning system 100 is powered on, the wired controller can obtain the data of each indoor unit 101; and generate and display the corresponding indoor unit 101 control interface according to the indoor unit 101 attribute information fed back by each indoor unit 101, so as to receive the control information of the corresponding indoor unit 101 through each indoor unit 101 control interface.
[0052] In some embodiments, the terminal device 106 is equipped with an air conditioning system application. The user performs relevant operating parameter settings on the air conditioning system application of the terminal device and generates corresponding instructions which are sent to the controller 103. The controller 103 then sends the corresponding instructions to various devices of the air conditioning system via the communication device 105. These various devices of the air conditioning system are also referred to as peripheral devices.
[0053] For example, the peripheral device can be an indoor unit 101, an outdoor unit 102, or a wired controller.
[0054] In some embodiments, the air conditioning system further includes a cloud server (not shown) that receives device activation requests from terminal devices and sends device activation commands to the air conditioning system. The device activation commands instruct the air conditioning system to perform corresponding functional operations according to preset control information.
[0055] In some embodiments, controller 103 refers to a device that can generate operation control signals based on instruction opcodes and timing signals to instruct the air conditioning system to execute control commands.
[0056] For example, the controller 103 may be a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), a programmable logic device (PLD), a microprocessor, a microcontroller 103, or any combination thereof. The controller 103 may also be other devices with processing functions, such as circuits, devices, or software modules, and the embodiments of this application do not impose any limitations on this.
[0057] For example, the controller 103 can control the air conditioning system to operate in various operating modes according to operating parameters. These operating modes include cooling mode, heating mode, sterilization mode, and dehumidification mode. The switching between cooling and heating modes is achieved by changing the flow direction of the refrigerant in the pipes between the indoor unit 101 and the outdoor unit 102 of the air conditioning system.
[0058] In another example, controller 103 receives data sent from the HomeBus bus and controls various devices to execute relevant operating modes, start / stop commands, and other operations based on the data. Data transmission between devices is accomplished using their respective communication devices and the HomeBus bus as the data transport carrier.
[0059] Specifically, when one device sends data to another device, the device first sends the data to the corresponding communication device. After receiving the data, the communication device determines whether the HomeBus bus is in an idle state. If it is in an idle state, it writes the data into register 104. After a certain delay, register 104 sends the data to the HomeBus bus. The HomeBus bus then sends the data to another communication device corresponding to the other device, thus sending the data to the other device.
[0060] Furthermore, Figure 2 An exemplary circuit system architecture diagram of an air conditioning system 100 is shown.
[0061] The air conditioning system may also include: a display 107, an alarm 108, a human-machine interface device 109, and a power supply 110.
[0062] Register 104, display 107, warning device 108, human-computer interaction device 109, and power supply are all connected to controller 103.
[0063] In some embodiments, the display 107 can be used to display the operating status of the air conditioning system in various operating modes and the corresponding information of the operating modes.
[0064] In some embodiments, the display 107 may be a liquid crystal display or an organic light-emitting diode (OLED) display. The specific type, size, and resolution of the display are not limited, but those skilled in the art will understand that the display 107 can be modified in terms of performance and configuration as needed.
[0065] In some embodiments, the warning device 108 is used to send corresponding prompt information when the program is started to inform the user of the stage in the running process.
[0066] In some embodiments, the communication device 105 is a component for communicating with external devices or external servers according to various communication protocol types. For example, the communication device 105 may include at least one of the following: a Wi-Fi chip, a Bluetooth communication protocol chip, a wired Ethernet communication protocol chip, or other network communication protocol chips or near-field communication protocol chips, and an infrared receiver.
[0067] In some embodiments, the air conditioning system 100 can transmit control signals and data signals with user-used terminal devices (e.g., mobile phones, tablets, wearable mobile devices, etc.), other home appliances (e.g., air conditioners, monitoring equipment, etc.) and servers via the communication device 105.
[0068] For example, a user issues an instruction to activate the mode via a mobile phone. The air conditioning system 100 receives the instruction via the communication device 105. In response to the user's instruction to activate the device, the controller 103 of the air conditioning system is activated.
[0069] In some embodiments, the human-computer interaction device 109 is used to enable interaction between the user and the air conditioning system. The human-computer interaction device 109 may include one or more of physical buttons, a touch display panel, or a voice recognition device. For example, the user can start the air conditioning system and set the corresponding operating mode of the air conditioning system through the human-computer interaction device.
[0070] In some embodiments, the power supply 110, under the control of the controller 103, provides power supply support to the air conditioning system 100 by using power input from an external power source.
[0071] Based on the above air conditioning system, such as Figure 3 As shown in the figure, this application provides a data processing method, which includes the following steps:
[0072] Step S301: In the absence of a pulse interrupt signal generated by the HomeBus bus, in response to the data transmission request sent by the target device, determine the first target time for writing the first target data into the first target register.
[0073] Understandably, when the target communication device sends the first target data of the target device to the HomeBus bus, it needs to first determine whether there is a pulse interrupt signal on the HomeBus bus. If there is a pulse interrupt signal, it waits for the pulse interrupt signal to stop or end before entering the sending process of sending the first target data; if there is no pulse interrupt signal, it begins the process of preparing to send the first target data to the HomeBus bus.
[0074] The specific process of data transmission in the air conditioning system is as follows: When the communication device is ready to send data, it first writes the data into the corresponding register; after waiting for a certain delay in the register, the register sends the data to the HomeBus bus, and the HomeBus bus transmits the data to the communication devices of other devices.
[0075] The above method of determining that no other device data exists on the HomeBus by not generating a pulse interrupt signal on the HomeBus, that is, the HomeBus is not occupied, so as to ensure that the HomeBus is in an idle state when sending the first target data.
[0076] The aforementioned data transmission request is used to request the target communication device to send the first target data to the second target device. The second target device is any one of the multiple devices in the air conditioning system, excluding the target device itself.
[0077] When the target communication device determines that the HomeBus bus is idle, it will write the first target data to the first target register corresponding to the target communication device.
[0078] Step S302: Starting from the first target time, if second target data is written to the second target register within a preset time period, the data transmission request is rejected to cancel the transmission of the first target data.
[0079] This step defines the conditions for canceling the transmission of the first target data.
[0080] The aforementioned second target data is other data written into other registers within a preset time period.
[0081] It is understood that the second target data can be data to be sent by any one or more other devices; and the writing time of the data to be sent is within a preset duration.
[0082] The first target register will send data after a certain delay. Therefore, in order to more accurately determine the situation of other data to be sent within the delay period, the detection period of the second target data (i.e., the preset period) is usually set to be equal to or greater than the delay period of the first target register sending data.
[0083] In some implementations with a preset duration, the preset duration is the sum of the delay time for sending data from the first target register and a time constant. This time constant is a constant greater than or equal to zero. Users can set this time constant according to their needs. Alternatively, this time constant can be a time parameter configured by those skilled in the art based on experience and register delay characteristics during the factory settings of the air conditioning system. This application does not specifically limit its application in this regard.
[0084] The aforementioned second target register can be any one or more registers corresponding to other communication devices. That is, the number of registers corresponding to the second target register can be one or more. Therefore, in the embodiments of this application, during the detection of data to be transmitted from other devices within a preset time period, whether data from one device is detected being written to the corresponding register, or data from multiple devices is detected being written to the corresponding register, it is considered that there is second target data within the preset time period, and the number of detected second target data is not specifically limited.
[0085] When the HomeBus bus is idle, the communication device writes the first target data to the first target register and checks whether the second target data exists in other registers within a preset time period, starting from the first target time. When the second target data is detected, the transmission of the first target data is canceled to avoid data conflict caused by the first target data and the second target data occupying the HomeBus bus at the same time.
[0086] The following combination Figure 4 and Figure 5 The following explanation addresses situations where data conflicts occur.
[0087] Figure 4 The diagram shows the data transmission timing waveforms generated at different stages of data transmission when a device (e.g., device 1) is not affected by other devices. The waveforms include the following three types: the first pulse waveform generated during data processing on the HomeBus bus, the second pulse waveform generated during the data transmission process of transmitting device 1, and the third pulse waveform generated when device 1 writes data to the register.
[0088] Specifically, when device 1 is about to send the first target data, the communication device of device 1 first checks whether there is an interrupt pulse signal on the HomeBus. If there is, after the interrupt pulse signal stops (i.e., the stopping time is recorded as the pulse interrupt stop time), after waiting for an idle time T1, the first target data is written into the first target register. The first target register will generate a data write pulse, such as... Figure 4 The third pulse waveform. After the first target data is written, a time interval T2 (i.e., delay duration T2) is elapsed before it is sent from the first target register to the HomeBus bus. The HomeBus bus then begins processing the first target data and generates data transmission pulses, such as... Figure 4The second pulse waveform transmits data including the first target data D0, D1, D2...D8 and PF, where ST represents the start of data transmission and SP represents the stop of data transmission. During this transmission process, the HomeBus continuously generates interrupt pulse signals, such as... Figure 4 The first pulse waveform.
[0089] T1 is a random time that can be set to a specific time, such as 10ms to 20ms; while T2 is a fixed time that is determined by the characteristics of the registers of the communication device, usually 100us.
[0090] In some embodiments, the register is TDX.
[0091] Figure 5 The diagram illustrates the data transmission timing waveforms generated at different stages of data transmission when a device (e.g., device 1) is affected by another device (e.g., device 2). The waveforms include the following four types: the second pulse waveform generated during the data transmission process of device 1, the third pulse waveform generated during the data writing process of device 1 to the register, the fourth pulse waveform generated during the data writing process of device 2 to the register, and the fifth pulse waveform generated during the data transmission process of device 2.
[0092] Should Figure 5 Based on the scenario where device 1 sends data, a scenario where device 2 sends second target data is added within the delay period for sending the first target data to the first target register.
[0093] While device 1 is sending the first target data to other devices, the communication device of device 2 first detects the interrupt pulse signal stopping, waits for an idle time T3, and then writes the second target data into the second target register. The second target register will generate a data write pulse, such as... Figure 5 The fourth pulse waveform. After the second target data is written, a delay of T4 (i.e., delay duration T4) is elapsed before it is sent from the second target register to the HomeBus bus. The HomeBus bus then begins processing the second target data and generates data transmission pulses, such as... Figure 5 The fifth pulse waveform transmits data including the second target data D0, D1, D2...D8 and PF, where ST represents the start of data transmission and SP represents the stop of data transmission. During this transmission process, the HomeBus bus will also continuously generate signals such as... Figure 4 The interrupt pulse signal.
[0094] Among them, T3 is a random time, which can be specifically set to a specific time, such as 10 ms to 20 ms; while T4 is a fixed time, which is determined by the characteristics of the register of the communication device and is usually 100 us. The first target data is sent to the HomeBus bus after T5 time when the second target data is sent to the HomeBus bus.
[0095] Combined with Figure 4 and Figure 5 it can be seen that the first target data and the second target data of devices 1 and 2 overlap in the data transmission processing time, that is, in the same time period, the two devices send data through the HomeBus bus, which will inevitably lead to the problem of data conflict between the first target data and the second target data.
[0096] Exemplarily, taking the delay duration T2 of the first target register and the delay duration T4 of the second target register to be the same, and the basic timing to be 33.33 us as an example, the data conflict probability caused by the delay duration is described as follows.
[0097] Figure 4 In this scenario, the number of selection types of the two devices is N, N = (20 ms - 10 ms) / 33.33 us = 300, and data conflict occurs only when the T1 of the two devices is the same. In this way, the probability of data conflict between the two device nodes is 0.33%.
[0098] Figure 5 In this scenario, the conflict time is T5, then T5 = (T1 + T₂) - (T3 + T4). When T2 and T4 are the same, T5 = (T1 + T2) - (T3 + T4) = T1 - T3. The total number of selections for the timing of the two devices is still N; N = (20 ms - 10 ms) / 33.33 us = 300. If a conflict occurs when -100 us < T5 < 100 us, in this way, the probability of data conflict between the two devices is approximately 2%. In this way, compared with Figure 4 the conflict probability of this scenario, Figure 5 in this scenario, the data conflict probability increases by 6 times. Moreover, as the number of devices connected to the HomeBus bus increases, the conflict will also increase greatly.
[0099] Figure 3 The technical solution shown brings at least the following beneficial effects: The air-conditioning system detects whether other registers write data within the preset duration to determine a reasonable timing for the target communication device to control and send the target data, so as to ensure that the data sent by the target register does not conflict with the data sent by other registers, thereby avoiding the data conflict problem caused by the delay duration of the register sending data, and further ensuring the communication quality and communication effect of the target device establishing communication with other devices.
[0100] As one implementation method, combined with Figure 3 ,like Figure 6 As shown, step S302 can be specifically implemented through the following steps to determine the second target data within a preset time period.
[0101] Step S302A: Obtain the data write times of other registers.
[0102] Among them, the other registers are the registers corresponding to other communication devices besides the target communication device.
[0103] Step S302B: When multiple data write times include the second target time, the data whose data write time is the second target time is determined as the second target data.
[0104] It should be noted that, unlike the first target time, which is a single moment, the second target time is not a single moment but rather a series of moments within a certain time range. Given a fixed preset duration and a fixed first target time, the time range to which the second target time belongs is fixed. This time range is the interval between the first target time and the second target time, where the time difference is greater than 0 and less than or equal to the preset duration. The second target time can be any moment within this time range.
[0105] In this implementation, the second target data is determined by acquiring the data write time of other registers and determining whether the data write time includes the second target time. This method ensures the efficiency of determining the second target data.
[0106] As one implementation method, combined with Figure 3 ,like Figure 7 As shown, after performing the above step S301, the target communication device can also perform the following steps to determine the timing for sending the first target data.
[0107] Step S701: When none of the multiple data write times include the second target time, determine that the second target data has not been detected within the preset duration.
[0108] Based on this, by obtaining the data write time of other registers and determining whether the data write time includes the second target time, it is determined that there is no second target data within the preset duration.
[0109] Step S702: Accept a data transmission request to transmit the first target data.
[0110] In this embodiment, the target communication device sends the first target data only when it determines that there is no second target data within a preset time period. This is to determine a reasonable time to send the first target data, so as to ensure that when the first target register sends the first target data, no data written to other registers will conflict with the first target data. This avoids data conflict problems caused by the delay time of data transmission from the register, thereby ensuring the communication quality and communication effect of the target device establishing communication with other devices.
[0111] As one implementation method, combined with Figure 3 After performing step S301, the target communication device may also perform the following steps to cancel the transmission of the first target data by the first target register.
[0112] The specific steps are as follows: when the third target data is received within a preset time period, the data transmission request is rejected so that the first target register cancels the transmission of the first target data.
[0113] The third target data is the data sent from the third target device to the target device; the third target device is any one or more of the other devices.
[0114] The communication devices in an air conditioning system are self-transmitting and self-receiving. This means that when a communication device sends data to other communication devices, it can not only send the data to those other communication devices, but also receive the data at the same time.
[0115] Furthermore, the bus connects to multiple devices, but only data from one device can be transmitted. For example, when device A sends data to the bus, other devices (like device B) should not send data to the bus to avoid data conflicts. In this embodiment, based on the self-transmitting and self-receiving characteristics of the communication device in the air conditioning system, if third target data is received within a preset time period, it indicates that other devices are sending data to the target device within that preset time period. To avoid a conflict between the target communication device receiving the third target data and receiving the first target data, the transmission of the first target data is cancelled, thereby reducing the probability of data conflicts on the HomeBus bus. In some embodiments, before executing step S301, the target communication device first determines whether the HomeBus bus generates a pulse interrupt signal. If no pulse interrupt signal is detected, the above embodiment is executed. When the HomeBus bus generates a pulse interrupt signal, it indicates that the HomeBus bus is occupied, and the data transmission request is directly rejected.
[0116] In another practical scenario, if a pulse interrupt signal is detected on the HomeBus within a preset time period, the data transmission request will be rejected directly, without having to consider other factors that may cause data conflicts, such as the second target data.
[0117] As one specific implementation method, such as Figure 8 As shown, taking an air conditioning system comprising two devices (i.e., a first device and a second device, whose corresponding registers are the first register and the second register, respectively) as an example, the data processing process of the communication device is explained as follows:
[0118] Step S801: After determining that the HomeBus bus is in an idle state, determine whether to write the first data to the first register. If yes, proceed to step S802; otherwise, proceed to the end data processing flow.
[0119] This step is based on the scenario where the first device sends the first data to the second device.
[0120] Step S802: Obtain the data write time of the second register.
[0121] Step S803: Determine whether the data writing time is less than or equal to the delay time for sending data from the first register. If yes, proceed to step S804; otherwise, proceed to step S805.
[0122] Step S804: Cancel sending the first data.
[0123] Step S805: Determine to send the first data.
[0124] As can be seen, the above mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, the embodiments of this application provide corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention.
[0125] This application embodiment can divide the controller into functional modules according to the above method example. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0126] This application also provides a schematic diagram of the hardware structure of a controller. For example... Figure 9As shown, the controller 103 includes a processor 301, and optionally, a memory 302 and a communication interface 303 connected to the processor 301. The processor 301, memory 302, and communication interface 303 are connected via a bus 304.
[0127] Processor 301 may be a central processing unit (CPU), a general-purpose processor, a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. Processor 301 may also be any other device with processing capabilities, such as a circuit, device, or software module. Processor 301 may also include multiple CPUs, and processor 301 may be a single-core processor or a multi-core processor. Here, "processor" may refer to one or more devices, circuits, or processing cores used to process data (e.g., computer program instructions).
[0128] The memory 302 can be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions. It can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer. This application embodiment does not impose any limitations on this. The memory 302 can exist independently or be integrated with the processor 301. The memory 302 may contain computer program code. The processor 301 executes the computer program code stored in the memory 302 to implement the data processing method of the air conditioning system provided in this application embodiment.
[0129] The communication interface 303 can be used to communicate with other devices or communication networks (such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.). The communication interface 303 can be a module, circuit, transceiver, or any device capable of communication.
[0130] Bus 304 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Bus 304 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 9 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0131] This application also provides a computer-readable storage medium including computer-executable instructions that, when run on a computer, cause the computer to execute any of the data processing methods for an air conditioning system provided in the above embodiments.
[0132] This application also provides a computer program product containing computer execution instructions, which, when run on a computer, causes the computer to execute any of the data processing methods for an air conditioning system provided in the above embodiments.
[0133] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software programs, implementation can be, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer-executable instructions. When these computer-executable instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer-executable instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer-executable instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device containing one or more servers, data centers, etc., that can be integrated with the medium. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state disks, SSDs).
[0134] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, the disclosure, and the appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple instances. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
[0135] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.
[0136] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An air conditioning system, characterized in that, The air conditioning system includes multiple communication devices, multiple devices, and a HomeBus bus; one communication device is connected to one device; each communication device is connected to the HomeBus bus; each communication device is equipped with a register for transmitting data. The target communication device is configured such that it is any one of the plurality of communication devices; In the absence of a pulse interrupt signal generated on the HomeBus bus, in response to a data transmission request sent by the target device, a first target time is determined for writing the first target data into the first target register. The data transmission request is used to request the target communication device to send the first target data to any one of the other devices. If, within a preset time period, second target data is written to a second target register, the data transmission request is rejected to cancel the transmission of the first target data; the preset time period is greater than or equal to the delay time for sending data to the first target register. The second target register is the register corresponding to any one or more other communication devices; the preset duration is based on the first target time. If the third target data is received within the preset time period, the data transmission request is rejected; the third target data is data sent to the target device by one or more other devices.
2. The air conditioning system according to claim 1, characterized in that, When the target communication device executes the statement that, within a preset time period, second target data is written to the second target register, it is specifically configured as follows: Obtain multiple data write times of other registers; the other registers are the registers corresponding to the other communication devices; When the plurality of data write times include the second target time, the data whose data write time is the second target time is determined as the second target data; Wherein, the time difference between the second target time and the first target time is greater than 0 and less than or equal to the preset duration.
3. The air conditioning system according to claim 2, characterized in that, The target communication device is further configured to: When none of the multiple data write times include the second target time, it is determined that the second target data was not detected during the preset duration; Accept the data transmission request to send the first target data.
4. The air conditioning system according to any one of claims 1 to 3, characterized in that, The target communication device is further configured to: When the HomeBus generates a pulse interrupt signal, the data transmission request is rejected.
5. A data processing method for an air conditioning system, applied to an air conditioning system, characterized in that, The air conditioning system includes multiple communication devices, multiple devices, and a HomeBus bus; one communication device is connected to one of the devices. Each communication device is connected to the HomeBus bus; each communication device is equipped with a register for transmitting data; the method includes: In the absence of a pulse interrupt signal generated by the HomeBus bus, in response to a data transmission request sent by the target device, a first target time is determined for writing the first target data into the first target register. The data transmission request is used to request the first target data to be sent to the second target device through the target communication device, and the target communication device is any one of the plurality of communication devices. If, within a preset time period, second target data is written to a second target register, the data transmission request is rejected to cancel the transmission of the first target data; the preset time period is greater than or equal to the delay time for the first target register to transmit data; the second target register is a register corresponding to any one or more other communication devices; the preset time period is based on the first target time; wherein, one communication device corresponds to one device; If the third target data is received within the preset time period, the data transmission request is rejected; the third target data is data sent to the target device by any one or more other devices.
6. The data processing method according to claim 5, characterized in that, The statement that within a preset time period, second target data is written to the second target register specifically includes: Obtain multiple data write times of other registers; the other registers are the registers corresponding to the other communication devices; When the plurality of data write times include the second target time, the data whose data write time is the second target time is determined as the second target data; Wherein, the time difference between the second target time and the first target time is greater than 0 and less than or equal to the preset duration.
7. The data processing method according to claim 6, characterized in that, The method further includes: When none of the multiple data write times include the second target time, it is determined that the second target data was not detected during the preset duration; Accept the data transmission request to send the first target data.
8. The data processing method according to any one of claims 5 to 7, characterized in that, The method further includes: When the HomeBus generates a pulse interrupt signal, the data transmission request is rejected.
Citation Information
Patent Citations
Anti-collision controller for RS485 bus
CN202041950U
Communication circuit and air conditioner
CN216281977U
Data transfer controller and electronic device
JP2005258575A