Air conditioning system and temperature data transmission method
By using a data dictionary in the air-conditioning system to convert floating-point temperature values into integers and then converting them back at the receiving end, the problems of wasted bus point resources and insufficient accuracy in traditional air-conditioning systems are solved, and efficient and accurate temperature data transmission is achieved.
Patent Information
- Application Number
- CN202511072078.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-31
- Publication Date
- 2025-10-17
AI Technical Summary
In air-conditioning systems, traditional temperature data transmission methods cannot balance the savings in bus point resources and data transmission accuracy. In particular, the transmission of decimal temperature values leads to reduced temperature control accuracy.
A data dictionary is used to convert temperature values, converting floating-point actual temperature values into integer transmission temperature values, and transmitting them through a single communication channel. The receiving end then reversely converts the integer temperature values into floating-point actual temperature values and maps them using preset conversion rules and conversion coefficients.
It achieves the balance between data transmission accuracy and bus point resource saving under a single communication channel, ensuring the accuracy and reliability of temperature data transmission.
Smart Images

Figure CN120812093A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of air conditioners, and more particularly to an air conditioning system and a temperature data transmission method. BACKGROUND
[0002] In an air conditioning system, the line controller, indoor unit, central controller and host computer need to frequently transmit temperature data through data points in the bus communication protocol.
[0003] In the traditional transmission mode, the temperature value with a decimal (such as 25.5℃) needs to be split into an integer (such as 25℃) and a decimal (such as 0.5℃), and the transmission is performed by increasing the point in the bus communication protocol or simplifying the temperature precision (such as rounding). However, the first way wastes the point resources of the bus communication protocol, and the second way reduces the accuracy of temperature control due to the reduction in the accuracy of the transmitted temperature data. SUMMARY
[0004] The purpose of the embodiments of the present application is to provide an air conditioning system and a temperature data transmission method, aiming to solve the technical problem that the direct transmission of temperature values with decimals in related art air conditioning equipment cannot balance the saving of bus point resources and the accuracy of data transmission.
[0005] To achieve the above-mentioned purpose, according to a first aspect of the present application, an air conditioning system is provided, applied to an air conditioning device, comprising:
[0006] a sending end and a receiving end in communication connection with the sending end;
[0007] The sending end is configured to, when an actual temperature value to be transmitted to the receiving end is obtained, if the numerical type of the actual temperature value is a floating point type, convert the actual temperature value into a corresponding integer type transmission temperature value according to a preset data dictionary, and send the transmission temperature value to the receiving end through a single communication channel, wherein the data dictionary contains a mapping relationship between a plurality of actual temperature values and corresponding transmission temperature values established based on a predetermined conversion rule;
[0008] The receiving end is configured to, when receiving the integer type transmission temperature value from the sending end, reversely convert the transmission temperature value into the corresponding actual temperature value according to the data dictionary.
[0009] In a possible implementation manner, the receiving end is further configured to determine the temperature unit of the actual temperature value according to the preset temperature range of the air conditioning device in the air conditioning system.
[0010] In a possible implementation manner, the receiving end is configured to determine the unit of the actual temperature value obtained by reverse conversion according to the preset temperature range of the air conditioning device.
[0011] determining a Celsius temperature range of the air conditioning device, and a Fahrenheit temperature range corresponding to the Celsius temperature range;
[0012] taking an intermediate value between an upper limit value of the Celsius temperature range and a lower limit value of the Fahrenheit temperature range as a judgment threshold value;
[0013] if the actual temperature value obtained by the reverse conversion is greater than the judgment threshold value, determining that the temperature unit of the actual temperature value is Fahrenheit;
[0014] if the actual temperature value obtained by the reverse conversion is less than or equal to the judgment threshold value, determining that the temperature unit of the actual temperature value is Celsius.
[0015] In a possible implementation, the receiving end is further configured to: in a case where it is detected that a region where the air conditioning system is located meets a preset region condition, determine that the temperature unit of the actual temperature value is a default temperature unit of the region, the default temperature unit being Fahrenheit or Celsius.
[0016] In a possible implementation, the predetermined conversion rule of the data dictionary is that the actual temperature value is equal to the transmission temperature value divided by a preset conversion coefficient.
[0017] In a possible implementation, the preset conversion coefficient is the reciprocal of a minimum temperature adjustment step of an air conditioning device in the air conditioning system.
[0018] In a possible implementation, the sending end includes a drive-by-wire controller of an air conditioning system, and the receiving end includes a host computer of the air conditioning system, and the system further includes: an intermediate forwarding node in communication connection with the sending end and the receiving end respectively, and configured to: after receiving the transmission temperature value, directly forwarding the transmission temperature value to the receiving end through the single communication channel; the intermediate forwarding node includes at least one of an indoor unit, an outdoor unit and a central controller of the air conditioning system.
[0019] According to a second aspect of the present application, a temperature data transmission method is provided, applied to an air conditioning system, and the method includes:
[0020] when an actual temperature value to be transmitted to a receiving end is obtained, determining a numerical type of the actual temperature value;
[0021] if the numerical type of the actual temperature value is a floating-point type, converting the actual temperature value into a corresponding integer-type transmission temperature value according to a preset data dictionary;
[0022] The transmission temperature value is sent to a receiving end through a single communication channel, wherein the data dictionary contains a mapping relationship between a plurality of actual temperature values and corresponding transmission temperature values established based on a predetermined conversion rule; and when the receiving end receives the transmission temperature value, the transmission temperature value is reversely converted into the corresponding actual temperature value according to the data dictionary.
[0023] According to a third aspect of the present application, a temperature data transmission method applied to an air conditioning system is provided, and the method comprises:
[0024] When receiving a transmission temperature value sent by a sending end through a single communication channel, the numerical type of the transmission temperature value is determined;
[0025] If the numerical type of the transmission temperature value is an integer type, the transmission temperature value is reversely converted into a corresponding actual temperature value of a floating-point type according to a preset data dictionary, wherein the data dictionary contains a mapping relationship between a plurality of actual temperature values and corresponding transmission temperature values established based on a predetermined conversion rule; and when the sending end obtains the actual temperature value of the floating-point type, the actual temperature value is converted into a corresponding transmission temperature value of an integer type according to the data dictionary.
[0026] In a possible implementation manner, after the transmission temperature value is reversely converted into the corresponding actual temperature value of the floating-point type according to the preset data dictionary, the method further comprises:
[0027] According to a preset temperature range of an air conditioning device in the air conditioning system, the temperature unit of the actual temperature value reversely converted is determined.
[0028] According to a fourth aspect of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to enable the electronic device to implement the method according to any one of the aspects.
[0029] According to a fifth aspect of the present application, a computer readable storage medium is provided, which stores a computer program executable by a processor to implement the method according to any one of the aspects.
[0030] According to a sixth aspect of the present application, a computer program product is provided, which, when executed on an electronic device, enables the electronic device to execute the method according to any one of the first aspect.
[0031] It can be understood that the beneficial effects of the second aspect to the sixth aspect can be referred to the related description of the first aspect, and will not be repeated here.
[0032] The application embodiment has the beneficial effects compared with the prior art:
[0033] The air conditioning system provided by the application embodiment can convert the actual temperature value into the transmission temperature value of the integer type when the sending end obtains the actual temperature value to be transmitted to the receiving end, and then transmit the transmission temperature value to the receiving end through a single communication channel. The data dictionary includes the mapping relationship between the actual temperature value and the corresponding transmission temperature value based on the predetermined conversion rule. The receiving end can convert the transmission temperature value into the corresponding actual temperature value based on the data dictionary.
[0034] The application embodiment can convert the actual temperature value of the floating point type into the transmission temperature value of the integer type at the sending end, and then convert the transmission temperature value into the corresponding actual temperature value at the receiving end. The data transmission accuracy requirement is met, and the transmission temperature value of the integer type is transmitted to the receiving end through a single communication channel, thereby saving the bit resource of the bus communication protocol. The application embodiment can save the bus bit resource and the data transmission accuracy. BRIEF DESCRIPTION OF DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the application embodiments, the drawings needed in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor.
[0036] Figure 1 is a structural schematic diagram of an air conditioning system provided by the application embodiment;
[0037] Figure 2 is a structural schematic diagram of an optional air conditioning system provided by the application embodiment;
[0038] Figure 3 is an interaction flow schematic diagram of each node of an optional air conditioning system provided by the application embodiment;
[0039] Figure 4 is a flow schematic diagram of a temperature data transmission method provided by the application embodiment;
[0040] Figure 5 is a flow schematic diagram of another temperature data transmission method provided by the application embodiment;
[0041] Figure 6 is a structural schematic diagram of an electronic device provided by the application embodiment. DETAILED DESCRIPTION
[0042] In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular architectures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known methods, devices, circuits, and
[0043] It should be understood that the term "comprising" when used in this specification and the appended claims, means that the features, integers, steps, operations, elements, and / or components so described can be present and / or added to other features, integers, steps, operations, elements, components, and / or groups thereof without
[0044] It should also be understood that, in the description of the present application, unless otherwise specified, the use of "or" means "and / or", for example, A or B means A or B or both A and B. In addition, the use of "and / or" in the description of the present application means that three relationships can exist, for example, A and / or B means that A alone, A and B together, and B alone can exist, where A and B can be singular or plural. In addition, in the description of the present application, unless otherwise specified, "multiple" means two or more. "At least one of the following" or the like means any combination of the items, including a single item or a combination of multiple items. For example, at least one of a, b, or c means a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be singular or plural.
[0045] In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, "first", "second", etc. are used to distinguish the same or similar items with basically the same function and role. Those skilled in the art can understand that "first", "second", etc. do not limit the number and execution order, and are only used for description, and "first", "second", etc. do not necessarily mean different, and cannot be understood as indicating or implying relative importance.
[0046] As used in the specification and in the claims, the term “if’ can be interpreted as meaning “when” or “upon” or “in response to a determination” or “in response to a detection” depending on the context. Similarly, the phrase “if it is determined” or “if [the described condition or event] is detected” can be interpreted as meaning “upon a determination” or “in response to a determination” or “upon a detection of [the described condition or event]” or “in response to a detection of [the described condition or event]” depending on the context.
[0047] Reference in the specification to “one embodiment” or “some embodiments” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. The appearances of the phrase “in one embodiment” or “in some embodiments” in various places in the specification are not necessarily all referring to the same embodiment, although it can. The terms “including,” “containing,” “having,” and variations thereof are meant to encompass the terms “including but not limited to.”
[0048] In an air conditioning system, the temperature data needs to be frequently transmitted by the data point in the bus communication protocol between the line controller, indoor unit, central controller and host computer.
[0049] In the traditional transmission mode, the temperature value with decimal (such as 25.5℃) needs to be split into integer (such as 25℃) and decimal (such as 0.5℃), and the temperature precision is simplified (such as rounding) or the point in the bus communication protocol is increased for transmission. However, the first way wastes the point resource of the bus communication protocol, and the second way leads to the reduction of temperature control accuracy.
[0050] In addition, if the temperature data also needs to transmit the corresponding temperature unit (Celsius / Fahrenheit), an additional point identification needs to be additionally attached, further consuming the point resource of the bus communication protocol, and restricting the system function expansion.
[0051] The present application provides an example of an air conditioning system, please refer to Figure 1 The structure of the air conditioning system provided by the present application is shown, and the air conditioning system comprises: Figure 1 The structure of the air conditioning system provided by the present application is shown, and the air conditioning system comprises:
[0052] The sending end 100 and the receiving end 200 in communication connection with the sending end 100.
[0053] The sending end 100 is configured to, when an actual temperature value to be transmitted to the receiving end is acquired, if the numerical type of the actual temperature value is a floating-point type, convert the actual temperature value into a corresponding transmission temperature value of an integer type according to a preset data dictionary, and transmit the transmission temperature value to the receiving end 200 through a single communication channel.
[0054] The receiving end 200 is configured to, when the transmission temperature value of the integer type from the sending end is received, reversely convert the transmission temperature value into a corresponding actual temperature value according to the data dictionary.
[0055] The data dictionary contains a mapping relationship between a plurality of actual temperature values and corresponding transmission temperature values established based on a predetermined conversion rule.
[0056] In the embodiment of the application, the air conditioning system adopts the simplified architecture of the sending end and the receiving end. When an actual temperature value to be transmitted to the receiving end is acquired, if the numerical type of the actual temperature value is a floating-point type, the actual temperature value is converted into a corresponding transmission temperature value of an integer type according to a preset data dictionary, and the transmission temperature value is transmitted to the receiving end through a single communication channel. The predetermined conversion rule of the data dictionary retains the precision information of the actual temperature value of the floating-point type, and the transmission temperature value data of the integer type is used to adapt to the transmission characteristics of the single communication channel (such as a single point of the Modbus, Hlink, and other bus communication protocols). This not only solves the technical problem that the single communication channel in the bus communication protocol cannot directly transmit the actual temperature value of the floating-point type, but also ensures the consistency of the actual temperature value of the floating-point type before and after transmission, thereby providing reliable data support for air conditioning control, state monitoring, and other functions.
[0057] In actual application scenarios, the sending end can be a wire controller, an indoor unit main control board, or other elements with temperature collection and communication functions of an air conditioning system (such as a central air conditioning system). For example, the wire controller of a household air conditioner serves as the sending end. After collecting the actual temperature value of the floating-point type set by the user, the wire controller converts the actual temperature value into a transmission temperature value of an integer type based on the predetermined conversion rule in the data dictionary, and transmits the transmission temperature value to the indoor unit through a single communication channel. The area controller of a commercial air conditioner serves as the sending end. After collecting the running temperature values (actual temperature values) of a plurality of indoor units of the floating-point type, the area controller converts the actual temperature values into corresponding transmission temperature values of an integer type based on the predetermined conversion rule in the data dictionary, and then transmits the transmission temperature values to the centralized control system.
[0058] In actual application scenarios, the receiving end can be an indoor unit master control unit, a central controller, an upper computer or a cloud platform of an air conditioning system. For example, the indoor unit of a household air conditioner as a receiving end, after receiving an integer type transmission temperature value, reversely converts the transmission temperature value to a floating point type actual temperature value based on the predetermined conversion rule in the data dictionary, and uses it for temperature control adjustment; the central controller of a commercial building as a receiving end, after receiving an integer type transmission temperature value, reversely converts the transmission temperature value to a floating point type actual temperature value based on the predetermined conversion rule in the data dictionary, and uploads the actual temperature value to the monitoring platform.
[0059] An optional embodiment is provided as follows, which is described in detail for an air conditioning system, and the structure, function and cooperative working mechanism of each component of the air conditioning system are described, and how the sending end and the receiving end convert, transmit and reversely convert the floating point type temperature value based on the data dictionary through a single communication channel is emphasized, so as to clearly present the interaction logic of sending and receiving temperature data under a single communication channel.
[0060] In some embodiments, the sending end is integrated with a temperature sensor (such as collecting indoor environment temperature and return air inlet temperature) for collecting an actual temperature value, or receiving a user input (such as a target temperature set by a user on a wire controller) actual temperature value, and converting the actual temperature value to an integer type transmission temperature value based on the predetermined conversion rule in the data dictionary and sending it to the receiving end.
[0061] It should be understood that the number of decimal places of the floating point type actual temperature value is determined by the temperature control accuracy of the air conditioning system, that is, the minimum temperature adjustment step (such as 0.5℃ accuracy corresponding to one decimal place, 0.25℃ accuracy corresponding to two decimal places), and the embodiments of the present application do not specifically limit this.
[0062] In the embodiments of the present application, the single communication channel is a transmission path connecting the sending end and the receiving end, which is usually a data transmission channel (or called "point") predefined in the bus communication protocol of the air conditioning system, used for transmitting the integer type temperature value.
[0063] In some embodiments, the sending end converts the floating point type actual temperature value to the corresponding integer type transmission temperature value by calling the built-in preset data dictionary based on the mapping relationship between the plurality of actual temperature values and the corresponding transmission temperature values established based on the predetermined conversion rule in the data dictionary, so that each floating point type actual temperature value can be mapped to a unique integer type transmission temperature value.
[0064] In some embodiments, the predetermined conversion rule can be a multiple conversion coefficient (e.g., multiplying a preset conversion coefficient with the actual temperature value), a function mapping expression, or other reversible operation logic. For example, taking the multiple conversion coefficient as the conversion rule, when the conversion rule is "multiply by 2", the sending end converts the actual temperature value of 23.5°C into the transmission temperature value of 47 (23.5 x 2 = 47); when the conversion rule is "multiply by 4", the sending end converts the actual temperature value of 26.25°C into the transmission temperature value of 105 (26.25 x 4 = 105).
[0065] In some embodiments, after the sending end converts the actual temperature value into the integer transmission temperature value, the sending end directly sends the integer transmission temperature value to the receiving end through a single communication channel (e.g., a data point in the protocol) of a plurality of bus communication protocols (e.g., Modbus, HBS, etc.) supported by the air conditioning system. In addition, before sending the transmission temperature value through the single communication channel, the transmission temperature value is encoded (e.g., converted into a specified byte format) according to the protocol specification of the bus communication protocol used, and the data is sent through the single communication channel (e.g., a data point in the bus communication protocol).
[0066] It should be understood that the single communication channel has the properties of singularity and speciality. The singularity means that the sending end and the receiving end only transmit an integer actual temperature value through the single communication channel, i.e., a data point, without the need to allocate multiple communication channels for the integer part, the decimal part, or the unit information of the floating-point actual temperature value, thereby significantly saving the resources of the bus communication protocol. The speciality means that the single communication channel is only used for transmitting the integer transmission temperature value obtained by converting the floating-point actual temperature value, thereby avoiding confusion and mis-transmission with other control instructions (e.g., mode switching, wind speed adjustment, etc.), and reducing the risk of data conflict.
[0067] In addition, in the embodiments of the present application, the transmission rate and data format (e.g., 16-bit integer, 32-bit integer) of the single communication channel are set according to the needs of the air conditioning system, so as to ensure that the integer transmission temperature value obtained by conversion can be completely transmitted. For example, for an actual temperature value with a precision of 0.5°C in the range of 0-60°C, the range of the integer transmission temperature value obtained by conversion is 0-120, and the 16-bit integer format can meet the transmission requirements.
[0068] In some embodiments, the receiving end receives the integer transmission temperature value from the sending end through the single communication channel, e.g., by analyzing the encoded data transmitted in the single communication channel, reversely converting the integer transmission temperature value from the sending end (e.g., reading from the Modbus register), and reversely converting the transmission temperature value into the floating-point actual temperature value.
[0069] In some embodiments, the receiving end has a preset data dictionary identical to that of the sending end, and the receiving end reversely converts the integer transmission temperature value into the actual temperature value of the floating point type by calling the predetermined conversion rule in the preset data dictionary. The reverse conversion can be understood as the inverse operation of the conversion process of the sending end. If the sending end adopts the operation rule of "actual temperature value x conversion coefficient = transmission temperature value", the receiving end performs the inverse operation rule of "transmission temperature value ÷ conversion coefficient = actual temperature value". For example, when the receiving end receives the transmission temperature value of 47 and the conversion coefficient is 2, the actual temperature value obtained by reverse conversion is 23.5 (47 ÷ 2 = 23.5); for another example, when the receiving end receives the transmission temperature value of 105 and the conversion coefficient is 4, the actual temperature value obtained by reverse conversion is 26.25℃ (105 ÷ 4 = 26.25).
[0070] Since the receiving end calls the data dictionary (including conversion rule, conversion coefficient, mapping range, etc.) identical to that used by the sending end in the conversion process, the actual temperature value obtained by reverse conversion of the receiving end is identical to the actual temperature value initially obtained by the sending end.
[0071] Finally, the receiving end applies the actual temperature value obtained by reverse conversion to the execution device of the air conditioning system, for example, in the temperature control logic, the actual temperature value is compared with the target value to drive the air conditioner to perform cooling, heating or shutdown operation; in human-computer interaction, the actual temperature value (such as 23.5℃) is displayed on the monitoring interface or the screen of the line controller; in data analysis, the running efficiency and energy consumption trend of the air conditioning system are counted based on the actual temperature value obtained by reverse conversion.
[0072] In addition, in the actual application process, the receiving end can also add temperature unit identification (℃ or ℉) to the actual temperature value obtained by reverse conversion in combination with the temperature unit determination logic (such as preset temperature range, regional parameters), to ensure the accuracy of temperature data application.
[0073] The air conditioning system embodiment provided by the embodiment of the application can convert the actual temperature value of the floating point type into the transmission temperature value of the integer type in the sending end, and then reversely convert the transmission temperature value into the corresponding actual temperature value in the receiving end, to meet the requirement of data transmission accuracy, and the integer transmission temperature value is transmitted to the receiving end through a single communication channel, to save the bit resources of the bus communication protocol, and then the embodiment of the application can save the bus bit resources and data transmission accuracy.
[0074] In a possible implementation manner, the receiving end is further configured to determine the temperature unit of the actual temperature value according to the preset temperature range of the air conditioning device in the air conditioning system.
[0075] In the actual application scenario of the air conditioning system, after the received transmission temperature value is reversely converted into the actual temperature value of the floating point type originally obtained by the sending end at the receiving end, the temperature unit of the actual temperature value needs to be determined to ensure that the temperature data is accurately applied in the air conditioning system (such as control logic execution, man-machine interaction display, data analysis and statistics, etc.).
[0076] In some embodiments, the receiving end determines the preset temperature range of the air conditioning device in advance, for example, a reasonable temperature interval in different temperature units such as Celsius (℃) and Fahrenheit (℉), for example, in the refrigeration and heating scenarios, the commonly used temperature range of the air conditioning system can be set to 16-30℃ in Celsius; and the corresponding Fahrenheit is 60.8-86℉. The specific preset temperature range can be adapted and adjusted according to the air conditioning model, application scenario (such as commercial office, home living, etc.), etc., and the embodiments of the present application do not specifically limit this.
[0077] In some embodiments, after the receiving end reversely converts the transmission temperature value into the corresponding actual temperature value according to the data dictionary, the Celsius temperature range of the air conditioning device and the Fahrenheit temperature range corresponding to the Celsius temperature range are determined; the intermediate value between the upper limit value of the Celsius temperature range and the lower limit value of the Fahrenheit temperature range is taken as a judgment threshold; if the actual temperature value obtained by reversely converting is greater than the judgment threshold, it is determined that the temperature unit of the actual temperature value is Fahrenheit; if the actual temperature value obtained by reversely converting is less than or equal to the judgment threshold, it is determined that the temperature unit of the actual temperature value is Celsius.
[0078] Through the above embodiments, the receiving end can accurately identify the temperature unit of the actual temperature value, so that the actual temperature value obtained by reversely converting is more complete, and meets the needs of subsequent functions such as temperature regulation, man-machine interaction interface, etc. on temperature data.
[0079] In a possible implementation manner, the receiving end determines the unit of the actual temperature value obtained by reversely converting according to the preset temperature range of the air conditioning device, and is configured to perform:
[0080] Determine the Celsius temperature range of the air conditioning device and the Fahrenheit temperature range corresponding to the Celsius temperature range.
[0081] Take the intermediate value between the upper limit value of the Celsius temperature range and the lower limit value of the Fahrenheit temperature range as a judgment threshold.
[0082] If the actual temperature value obtained by reversely converting is greater than the judgment threshold, it is determined that the temperature unit of the actual temperature value is Fahrenheit.
[0083] If the actual temperature value obtained by the reverse conversion is less than or equal to the judgment threshold, it is determined that the temperature unit of the actual temperature value is Celsius.
[0084] In some embodiments, the air conditioning system is pre-configured with a commonly used temperature range in different temperature units, i.e., a Celsius temperature range and a corresponding Fahrenheit temperature range. It can be understood that the above-mentioned temperature range is not a fixed value, but can be adapted and adjusted according to the model of the air conditioning system (such as commercial large, household small), the application scenario (such as office environment refrigeration, family winter heating). For example, in the refrigeration scenario of a certain commercial air conditioning system, the Celsius temperature range can be set to 18-28℃, and the corresponding Fahrenheit temperature range is converted (Fahrenheit = Celsius x 1.8 + 32) to 64.4-82.4℉. On this basis, the receiving end calculates the intermediate value between the upper limit value of the Celsius temperature range and the lower limit value of the Fahrenheit temperature range as the judgment threshold.
[0085] Still taking the above-mentioned commercial air conditioner as an example, the upper limit of Celsius is 28℃, which corresponds to about 82.4℉ in Fahrenheit, and the lower limit of Fahrenheit is 64.4℉, and the intermediate value is calculated as (82.4+64.4)÷2=73.4℉ (the specific calculation needs to be accurately calculated in combination with the actual set temperature range), and the judgment threshold can be dynamically updated with the adjustment of the preset temperature range to adapt to the temperature control characteristics of different air conditioning systems.
[0086] In some embodiments, the receiving end compares the actual temperature value obtained by the reverse conversion with the above-mentioned judgment threshold. If it is determined that the actual temperature value is greater than the judgment threshold (such as the reverse conversion value is 75℉, which is greater than 73.4℉), it is determined that the temperature unit of the actual temperature value is Fahrenheit; if it is determined that the actual temperature value is less than or equal to the judgment threshold (such as the reverse conversion value is 70℉, which is less than 73.4℉), it is determined that the temperature unit of the actual temperature value is Celsius. By using the above-mentioned determination logic, the receiving end can accurately identify the temperature unit of the actual temperature value obtained by the reverse conversion.
[0087] In a possible implementation manner, the receiving end is further configured to: in a case where it is detected that the region where the air conditioning system is located meets a preset regional condition, determine that the temperature unit of the actual temperature value is the default temperature unit of the region, and the default temperature unit is Fahrenheit or Celsius.
[0088] In some embodiments, the receiving end is configured with a preset environment parameter, specifically covering the region where the air conditioning equipment in the air conditioning system is located, and the preset regional condition is set for different regions (such as China region is associated with Celsius by default, and some regions in Europe and America are associated with Fahrenheit by default). At the same time, the default temperature unit (Fahrenheit or Celsius) is defined for each region as a priority determination basis.
[0089] In some embodiments, the receiving end detects the region where the air conditioning system is located before (or in addition to the supplementary logic) determining the temperature unit based on the temperature range of the air conditioning equipment. If it is detected that the region where the air conditioning system is located meets the preset regional condition (for example, it is detected that the air conditioning system is deployed in China), it is directly determined that the unit of the actual temperature value is the default temperature unit of the region (for example, China defaults to Celsius, and the United States defaults to Fahrenheit); if the region where the air conditioning system is located does not correspond to the preset regional condition, the determination logic of determining the temperature unit based on the temperature range of the air conditioning system is executed again.
[0090] In some embodiments, the region where the air conditioning system is located is associated with the conventional use of the temperature unit (for example, Celsius is commonly used in China, and Fahrenheit is commonly used in some European and American countries), which improves the accuracy of temperature unit determination and adapts to the application scenarios of air conditioning equipment deployed globally, and can automatically adapt the temperature unit determination rule according to the deployment region.
[0091] The air conditioning system provided by the embodiments of the present application can realize efficient and accurate transmission of floating-point temperature values and intelligent identification of temperature units in a single communication channel bus environment, and can cover the application requirements of different models (such as commercial multi-split air conditioners and household hanging air conditioners) and different deployment regions (domestic and overseas).
[0092] In some embodiments, the preset data dictionary is pre-stored in the storage unit of the sending end and the receiving end. The storage unit can be a built-in memory (such as Flash, EEPROM) of a master control chip, or an external storage chip, which has non-volatility (data is not lost after power failure), so that the data dictionary can remain complete after the air conditioning system is restarted or powered off. Then the data dictionary can be directly called by the sending end and the receiving end, without the need to generate a mapping relationship in real time, which not only reduces the computing power consumption of the air conditioning system during operation, but also adapts to the real-time requirements of the air conditioning system.
[0093] In a possible implementation manner, the predetermined conversion rule of the data dictionary is that the actual temperature value is equal to the transmission temperature value divided by the preset conversion coefficient.
[0094] In some embodiments, the sending end multiplies the actual temperature value by the preset conversion coefficient to convert the actual temperature value into the corresponding transmission temperature value; and the receiving end divides the received transmission temperature value by the preset conversion coefficient to reversely convert the transmission temperature value into the actual temperature value.
[0095] It should be understood that the preset conversion coefficient is related to the minimum temperature regulation step (temperature control granularity, minimum regulation unit) of the air conditioning system, so as to eliminate the decimal part of the actual temperature value while retaining the accurate information of the actual temperature value. For example, when the temperature control granularity of the air conditioning system is 0.5°C (i.e., the minimum regulation unit is 0.5°C), the preset conversion coefficient can be set to 2, so that the actual temperature value in floating-point type with one decimal place is converted into the transmission temperature value in integer type; if the temperature control granularity of the air conditioning system is 0.25°C (a higher precision scenario), the preset conversion coefficient can be set to 4, so that the actual temperature value in floating-point type with two decimal places is converted into the transmission temperature value in integer type.
[0096] For example, when the receiving end receives the transmission temperature value in integer type as 47, if the data dictionary is called to determine that the preset conversion coefficient is 2, 47 is divided by 2 to obtain the corresponding actual temperature value in floating-point type as 23.5, which is completely consistent with the actual temperature value collected by the sending end; if the receiving end receives the transmission temperature value as 93 and the data dictionary is called to determine that the preset conversion coefficient is 4, 93 is divided by 4 to obtain the corresponding actual temperature value in floating-point type as 23.25, which is still completely consistent with the actual temperature value collected by the sending end.
[0097] In some embodiments, the mapping relationship stored in the data dictionary is essentially that a plurality of actual temperature values are respectively multiplied by the preset conversion coefficient to obtain a set of corresponding transmission temperature values. For example, when the conversion coefficient is 2, the data dictionary contains mapping pairs such as “23.5°C→47” and “26.0°C→52”; for another example, when the conversion coefficient is 4, the data dictionary contains mapping pairs such as “23.25°C→93” and “26.5°C→106”.
[0098] Since the conversion processing at the sending end and the reverse conversion process at the receiving end are both based on the same preset conversion coefficient, and the actual temperature value is equal to the transmission temperature value divided by the preset conversion coefficient. The specific preset conversion coefficient is the inverse of the minimum temperature regulation step of the air conditioning equipment in the air conditioning system, which eliminates the decimal part of the actual temperature value in floating-point type through mathematical operation, converts the actual temperature value into the transmission temperature value in integer type, so that the actual temperature value after reverse conversion can retain the accuracy information of the original data, and meet the needs of temperature data regulation, monitoring and display of the air conditioning system.
[0099] The following describes the determination logic of the preset conversion coefficient in the data dictionary for the air conditioning system through an optional implementation manner:
[0100] In the air conditioning system example provided in the embodiments of the present application, the core of the temperature information transmission between the sending end and the receiving end through a single communication channel lies in the predetermined conversion rule of the data dictionary, and the preset conversion coefficient in the predetermined conversion rule is not a fixed value, but has a strict corresponding relationship with the minimum temperature adjustment step (temperature control granularity) of the air conditioning equipment, so as to ensure the data accuracy when the actual temperature value of the floating point type is converted into the transmission temperature value of the integer type for single point transmission, and to adapt to the characteristics of the single communication channel for transmitting integer type data.
[0101] It should be understood that the minimum temperature adjustment step is a preset minimum temperature change unit according to the application scene requirement of the air conditioning system, determines the decimal places of the actual temperature value, and represents the minimum temperature difference that can be recognized and adjusted by the air conditioning system, i.e., the temperature control accuracy. For example, the temperature control granularity of a certain household air conditioning equipment is 0.5℃, and the temperature is adjusted with 0.5℃ as the minimum temperature adjustment step, such as from 24℃ to 24.5℃, 25℃, etc.; for another example, the temperature control granularity of a certain commercial precision air conditioning equipment is 0.25℃, and the temperature is adjusted with 0.25℃ as the minimum temperature adjustment step, such as from 23℃ to 23.25℃, 23.5℃, etc.
[0102] In some embodiments, when the minimum temperature adjustment step is ΔT (i.e., the preset minimum temperature change unit), the preset conversion coefficient K is K = 1 / ΔT. For example, if the minimum temperature adjustment step ΔT = 0.5℃ (i.e., the minimum adjustment unit is 0.5℃), then the preset conversion coefficient K = 1 / 0.5 = 2. At this time, the sending end multiplies the actual temperature value of the floating point type by 2, and can convert the actual temperature value with one decimal place into the corresponding actual temperature value of the integer type, such as 23.5℃×2 = 47, 26.0℃×2 = 52, etc.; for another example, if the minimum temperature adjustment step ΔT = 0.25℃ (higher precision scene), then the preset conversion coefficient K = 1 / 0.25 = 4. The sending end multiplies the actual temperature value of the floating point type by 4, and can convert the actual temperature value with two decimal places into the corresponding actual temperature value of the integer type, such as 23.25℃×4 = 93, 26.5℃×4 = 106, etc. For another example, if the minimum temperature adjustment step ΔT = 1℃ (lower precision scene), then the preset conversion coefficient K = 1 / 1 = 1. At this time, the actual temperature value of the floating point type is an integer value (such as 24℃), and after being multiplied by the preset conversion coefficient 1, it is still an integer value (24×1 = 24), so it can be directly transmitted without additional processing.
[0103] By using the above embodiments, the minimum temperature adjustment step can be accurately matched based on the preset conversion coefficient, the actual temperature value of the floating point type is converted into the transmission temperature value of the integer type for transmission, the characteristics of the single communication channel are adapted, the point occupation of the bus communication protocol is reduced, and the error probability of data transmission is also reduced.
[0104] In the embodiments of the present application, the preset conversion coefficient is not a fixed parameter, but also a variable that can be dynamically adjusted according to the use scenario, so that the air conditioning system can flexibly adapt to the differentiated needs of temperature control in different seasons and different regions. Through the update of the preset conversion coefficient and the synchronous optimization of the data dictionary, it is ensured that the transmission of temperature data in a single communication channel always remains efficient and accurate.
[0105] In some embodiments, the dynamic update of the preset conversion coefficient is mainly triggered by changes in the use scenario, including three types of scenarios: seasonal replacement, regional differences, and special application needs.
[0106] In the seasonal replacement scenario, the temperature control range and precision requirements of the air conditioning equipment will change with the seasons. For example, in the summer cooling scenario, the commonly used temperature range of the air conditioner is usually 24-28°C, and users have high precision requirements for temperature adjustment (such as 0.5°C granularity); while in the winter heating scenario, the commonly used temperature range may be 18-22°C, and some regional users prefer a 1°C granularity adjustment method.
[0107] In the regional difference scenario, there are differences in climate characteristics and user sensitivity to temperature in different regions. For example, in tropical regions, the air conditioner is operated in cooling mode for a long time, and the temperature control precision requirement is high (such as 0.25°C granularity, corresponding to a conversion coefficient of 4); while in temperate regions, the temperature control granularity can be dynamically switched (such as 0.5°C in spring and autumn, and 1°C in winter and summer).
[0108] In the special application scenario, such as commercial office space, medical clean room, etc., the temperature control requirement changes with the use function. For example, the hospital operating room requires constant temperature (precision 0.1°C, corresponding to a conversion coefficient of 10), while the ordinary office area can use a 0.5°C granularity (conversion coefficient 2). Support triggering the conversion coefficient update through external instructions (such as administrator remote configuration) to meet the high-precision needs of special scenarios.
[0109] Through the dynamic update of the preset conversion coefficient and the synchronous optimization of the data dictionary, the air conditioning system can flexibly adapt to the temperature control requirements of different seasons, regions, and special scenarios, significantly improving the scene adaptation capability of air conditioning equipment communication.
[0110] In one possible implementation, please refer to Figure 2 As shown in the figure, Figure 2 The structure of an air conditioning system provided by the present application is shown, which further comprises: an intermediate forwarding node 300, which is in communication connection with the sending end and the receiving end respectively, and is configured to: after receiving the transmission temperature value, directly forwarding the transmission temperature value to the receiving end through a single communication channel; the intermediate forwarding node includes at least one of the indoor unit, the outdoor unit and the central controller of the air conditioning system.
[0111] In some embodiments, in the air-conditioning system provided in the embodiments of the present application, taking the wire controller of the air-conditioning system as an example, the wire controller serves as a terminal device for the user to interact with the air-conditioning system, and is used to collect the temperature value set by the user or the operating temperature value of the air-conditioning equipment (such as the real-time indoor temperature of 25.5°C), and convert the floating-point actual temperature value into an integer transmission temperature value based on a preset data dictionary. The wire controller usually integrates a temperature sensor and a touch button. After the user sets the temperature value by operating the wire controller, the air-conditioning system detects that the set temperature value is a floating-point actual temperature value, and automatically triggers the temperature value conversion process to generate an integer transmission temperature value corresponding to the actual temperature value (such as 25.5°C converted to 51), and sends the transmission temperature value to the receiving end through a single communication channel through an intermediate forwarding node.
[0112] In some embodiments, taking the receiving end as the host computer of the air-conditioning system, such as the monitoring host of the building automatic control system, the cloud platform server, etc., after receiving the transmitted temperature value forwarded from the sending end via the intermediate forwarding node, the transmitted temperature value is reversely converted into the corresponding floating-point actual temperature value based on the data dictionary consistent with the sending end, and combined with the temperature unit judgment logic (such as the preset temperature range, regional parameters, etc.) to generate complete temperature information (such as "25.5℃"), which is finally used for temperature control strategy execution, data statistics or interface display.
[0113] In some embodiments, intermediate forwarding nodes may include air conditioning equipment (e.g., indoor units and outdoor units) and / or centralized controllers (e.g., gateway devices that centrally control multiple air conditioners within a building). Unlike the sending and receiving ends, intermediate forwarding nodes do not participate in the conversion or reverse conversion of temperature values. Upon receiving the transmitted temperature value from the sending end, they do not perform any parsing or processing and simply forward the transmitted temperature value directly to the receiving end via a single communication channel.
[0114] An optional embodiment is provided below. Figure 3 The diagram shows an optional interaction process flow diagram of each node of an air conditioning system. The sending end includes the air conditioning system's wired controller 110, the receiving end includes the air conditioning system's host computer 210, and the intermediate forwarding nodes include air conditioning equipment 310 and a centralized controller 320. Taking the actual temperature value set by the user through the wired controller as 25.5°C and the actual temperature value transmitted to the host computer as an example, the interaction process, i.e., the communication process, of each node of the air conditioning system is explained as follows:
[0115] For example, when the sending end is wired controller 110, after detecting the user-set actual temperature value of 25.5°C (a floating-point value), wired controller 110 calls a preset data dictionary and, based on the preset conversion rule of "actual temperature value × conversion coefficient → transmitted temperature value" (e.g., when the conversion coefficient is 2, 25.5 × 2 = 51), determines the corresponding integer transmitted temperature value of 51. The wired controller then sends the transmitted temperature value of 51 to the receiving end or the first intermediate forwarding node via a single communication channel (e.g., a data point in the Modbus protocol).
[0116] Taking the example of intermediate forwarding nodes consisting of air conditioners (such as indoor and outdoor units) and a centralized controller, after receiving the transmitted temperature value, air conditioner 310 does not perform any parsing, verification, unit determination, or conversion processing. Instead, it simply forwards the transmitted temperature value directly to the next intermediate forwarding node, such as centralized controller 410, via the same single communication channel. Centralized controller 410, as the next forwarding node, also does not perform any processing on the transmitted temperature value and continues to forward it to the receiving end via the single communication channel, ensuring lightweight and efficient data transmission.
[0117] Taking the receiving end as host computer 210, after receiving the transmitted temperature value 51 forwarded from centralized controller 410, host computer 210 calls the data dictionary consistent with that of wired controller 110 and performs reverse conversion processing (51 ÷ 2 = 25.5°C) according to the preset conversion rule of "actual temperature value × conversion coefficient → transmitted temperature value" in the data dictionary, obtaining the corresponding floating-point actual temperature value. Subsequently, the temperature unit of the actual temperature value is determined in combination with the preset temperature range or regional parameters, generating the complete temperature information "25.5°C" for display on the monitoring interface or adjustment of the temperature control strategy (such as triggering a cooling command when the temperature is higher than the set value).
[0118] The node architecture of the air-conditioning system provided in the embodiment of the present application is adaptable to various types of air-conditioning equipment, especially to central air-conditioning scenarios with multiple devices working together, such as commercial buildings, large venues, etc. It reduces system complexity by simplifying the functions of intermediate nodes, eliminates conversion errors, and adapts to single-channel resource constraints to save points, ultimately meeting the requirements of different scenarios (commercial and home) for real-time and accuracy of temperature data.
[0119] This application example provides an example of a temperature data transmission method, please refer to Figure 4 As shown, Figure 4 The following is a schematic flow chart of a temperature data transmission method provided by the present application. As an example and not a limitation, the method can be applied to or run in an air conditioning system. The method includes:
[0120] S401 : When an actual temperature value to be transmitted to a receiving end is obtained, a numerical type of the actual temperature value is determined.
[0121] S402, if the actual temperature value is of a floating-point type, converting the actual temperature value into a corresponding integer type transmission temperature value according to a preset data dictionary.
[0122] S402, sending the transmission temperature value to the receiving end through a single communication channel.
[0123] The data dictionary includes a mapping relationship between a plurality of actual temperature values and corresponding transmission temperature values established based on a predetermined conversion rule; when the receiving end receives the transmission temperature value, the transmission temperature value is reversely converted into a corresponding actual temperature value according to the data dictionary.
[0124] In the embodiments of the present application, when the sending end obtains an actual temperature value to be transmitted to the receiving end, if the actual temperature value is of a floating-point type, the actual temperature value is converted into a corresponding integer type transmission temperature value according to a preset data dictionary, and the transmission temperature value is sent to the receiving end through a single communication channel. The predetermined conversion rule of the data dictionary retains the precision information of the floating-point type actual temperature value, and the integer type transmission temperature value data is used to adapt to the transmission characteristics of the single communication channel (such as a single point of Modbus, Hlink, etc. bus communication protocol), which not only solves the technical problem that the single communication channel in the bus communication protocol cannot directly transmit the floating-point type actual temperature value, but also ensures the consistency of the floating-point type actual temperature value before and after transmission, and provides reliable data support for air conditioning control, state monitoring and other functions.
[0125] In actual application scenarios, the sending end can be a wire controller, an indoor unit main control board or other elements with temperature collection and communication functions of an air conditioning system (such as a central air conditioning system). For example, the wire controller of a household air conditioner as a sending end collects a floating-point type actual temperature value set by a user, converts the actual temperature value into an integer type transmission temperature value based on the predetermined conversion rule in the data dictionary, and sends it to the indoor unit through a single communication channel. The area controller of a commercial air conditioner as a sending end collects floating-point type operating temperature values (actual temperature values) of a plurality of indoor units, converts the actual temperature values into corresponding integer type transmission temperature values based on the predetermined conversion rule in the data dictionary, and sends them to the centralized control system.
[0126] In actual application scenarios, the receiving end can be an indoor unit master control unit, a central controller, an upper computer or a cloud platform of an air conditioning system. For example, the indoor unit of a household air conditioner as a receiving end, after receiving an integer type transmission temperature value, reversely converts the transmission temperature value to a floating point type actual temperature value based on the predetermined conversion rule in the data dictionary, and uses it for temperature control adjustment; the central controller of a commercial building as a receiving end, after receiving an integer type transmission temperature value, reversely converts the transmission temperature value to a floating point type actual temperature value based on the predetermined conversion rule in the data dictionary, and uploads the actual temperature value to the monitoring platform.
[0127] In some embodiments, the sending end is integrated with a temperature sensor (such as collecting indoor environment temperature, return air inlet temperature) for collecting actual temperature values, or receiving user input (such as target temperature set by the user on the line controller) actual temperature values, and converting the actual temperature values to integer type transmission temperature values based on the predetermined conversion rule in the data dictionary and sending them to the receiving end.
[0128] It should be understood that the number of decimal places of the floating point type actual temperature value is determined by the temperature control accuracy of the air conditioning system, i.e. the minimum temperature adjustment step (such as 0.5℃ accuracy corresponding to one decimal place, 0.25℃ accuracy corresponding to two decimal places), which is not specifically limited in the embodiments of the present application.
[0129] In the embodiments of the present application, a single communication channel is a transmission path connecting the sending end and the receiving end, which is usually a data transmission channel (or "point") predefined in the bus communication protocol of the air conditioning system, used for transmitting integer type temperature values.
[0130] In some embodiments, the sending end converts the floating point type actual temperature value to the corresponding integer type transmission temperature value by calling the built-in preset data dictionary based on the mapping relationship between the multiple actual temperature values and the corresponding transmission temperature values established based on the predetermined conversion rule in the data dictionary, so that each floating point type actual temperature value can be mapped to a unique integer type transmission temperature value.
[0131] In some embodiments, the predetermined conversion rule can be a multiple conversion coefficient (such as multiplying the actual temperature value by a preset conversion coefficient), a function mapping expression or other reversible operation logic. For example, taking the conversion rule as a multiple conversion coefficient as an example, when the conversion rule is "multiply by 2", the sending end converts the actual temperature value 23.5℃ to the transmission temperature value 47 (23.5×2=47); when the conversion rule is "multiply by 4", the sending end converts the actual temperature value 26.25℃ to the transmission temperature value 105 (26.25×4=105).
[0132] In some embodiments, after converting the actual temperature value into an integer type transmission temperature value at the sending end, the integer type transmission temperature value is directly sent to the receiving end through a single communication channel (such as a certain data point in the protocol) of a plurality of bus communication protocols (such as Modbus, HBS, etc.) supported by the air conditioning system. In addition, before sending the transmission temperature value through the single communication channel, the transmission temperature value is first encoded (such as converted into a specified byte format) according to the protocol specification of the bus communication protocol used, and the data is sent through the single communication channel (such as a certain data point in the bus communication protocol).
[0133] It should be understood that the single communication channel has the characteristics of singularity and speciality. The singularity means that only one integer type actual temperature value is transmitted between the sending end and the receiving end through the single communication channel, i.e., one data point, without the need to allocate multiple communication channels for the integer part, the decimal part or the unit information of the floating point type actual temperature value, thereby significantly saving the resources of the bus communication protocol. The speciality means that the single communication channel is only used for transmitting the integer type transmission temperature value obtained by converting the floating point type actual temperature value, thereby avoiding confusion and mis-transmission with other control instructions (such as mode switching, wind speed adjustment, etc.), and reducing the risk of data conflict.
[0134] In addition, in the embodiments of the present application, the transmission rate and data format (such as 16-bit integer, 32-bit integer) of the single communication channel are set according to the needs of the air conditioning system, so as to ensure that the integer type transmission temperature value obtained by conversion can be completely transmitted. For example, for an actual temperature value with a precision of 0.5℃ in the range of 0-60℃, the range of the integer type transmission temperature value obtained by conversion is 0-120, and the 16-bit integer format can meet the transmission requirements.
[0135] In some embodiments, the receiving end receives the integer type transmission temperature value from the sending end through the single communication channel, for example, by analyzing the encoded data transmitted in the single communication channel, reversely converting the integer type transmission temperature value from the sending end (such as reading from the Modbus register), and reversely converting the transmission temperature value into the floating point type actual temperature value.
[0136] In some embodiments, the receiving end has a preset data dictionary identical to that of the sending end, and the receiving end reversely converts the integer transmission temperature value into the actual temperature value of the floating point type by calling the predetermined conversion rule in the preset data dictionary. The reverse conversion can be understood as the inverse operation of the conversion process of the sending end. If the sending end uses the operation rule of "actual temperature value x conversion coefficient = transmission temperature value", the receiving end performs the inverse operation rule of "transmission temperature value ÷ conversion coefficient = actual temperature value". For example, when the receiving end receives the transmission temperature value of 47 and the conversion coefficient is 2, the actual temperature value obtained by reverse conversion is 23.5 (47 ÷ 2 = 23.5); for another example, when the receiving end receives the transmission temperature value of 105 and the conversion coefficient is 4, the actual temperature value obtained by reverse conversion is 26.25℃ (105 ÷ 4 = 26.25).
[0137] Since the receiving end calls the data dictionary (including conversion rule, conversion coefficient, mapping range, etc.) identical to that used by the sending end in the conversion process, it is ensured that the actual temperature value obtained by reverse conversion of the receiving end is identical to the actual temperature value initially obtained by the sending end.
[0138] Finally, the receiving end applies the actual temperature value obtained by reverse conversion to the execution equipment of the air conditioning system, for example, in the temperature control logic, the actual temperature value is compared with the target value to drive the air conditioner to perform cooling, heating or shutdown operation; in human-computer interaction, the actual temperature value (such as 23.5℃) is displayed on the monitoring interface or the screen of the line controller; in data analysis, the running efficiency and energy consumption trend of the air conditioning system are counted based on the actual temperature value obtained by reverse conversion.
[0139] The temperature data transmission method embodiment provided by the embodiment of the application can realize reverse conversion of the transmission temperature value into the corresponding actual temperature value in the receiving end after the sending end converts the actual temperature value of the floating point type into the transmission temperature value of the integer type for transmission, meets the requirement of data transmission accuracy, and transmits the transmission temperature value of the integer type to the receiving end through a single communication channel, saves the point resource of the bus communication protocol, and further, the embodiment of the application can balance the saving of the bus point resource and the data transmission accuracy.
[0140] The application provides an example of a temperature data transmission method, please refer to Figure 5 , Figure 5 is another flowchart of a temperature data transmission method provided by the embodiment of the application, which is an example and is not limited to the application. The method can be applied to or run in an air conditioning system. The method comprises:
[0141] S501, when receiving the transmission temperature value sent by the sending end through the single communication channel, determining the numerical type of the transmission temperature value.
[0142] S502, if the type of the transmission temperature value is an integer type, the transmission temperature value is inversely converted into a corresponding actual temperature value of a floating point type according to a preset data dictionary.
[0143] The data dictionary includes a mapping relationship between a plurality of actual temperature values and corresponding transmission temperature values established based on a predetermined conversion rule. When the sending end obtains an actual temperature value of a floating point type, the actual temperature value is converted into a corresponding transmission temperature value of an integer type according to the data dictionary.
[0144] In some embodiments, the sending end converts an actual temperature value of a floating point type into a corresponding transmission temperature value of an integer type by calling a built-in preset data dictionary, based on a mapping relationship between a plurality of actual temperature values and corresponding transmission temperature values included in the data dictionary and established based on a predetermined conversion rule, so that each actual temperature value of a floating point type can be mapped to a unique transmission temperature value of an integer type.
[0145] In some embodiments, the predetermined conversion rule can be a multiple conversion coefficient (such as multiplying a preset conversion coefficient), a function mapping expression, or other reversible operation logic. For example, taking the conversion rule as a multiple conversion coefficient as an example, when the conversion rule is "multiply by 2", the sending end converts an actual temperature value of 23.5°C into a transmission temperature value of 47 (23.5 x 2 = 47); when the conversion rule is "multiply by 4", the sending end converts an actual temperature value of 26.25°C into a transmission temperature value of 105 (26.25 x 4 = 105).
[0146] In some embodiments, after the sending end converts an actual temperature value to obtain a transmission temperature value of an integer type, the sending end sends the transmission temperature value of an integer type to the receiving end through a single communication channel (such as a certain data point in the protocol) of a plurality of bus communication protocols (such as Modbus, HBS, etc.) supported by the air conditioning system. In addition, before sending the transmission temperature value through the single communication channel, the transmission temperature value is encoded (such as converted into a specified byte format) according to the protocol specification of the bus communication protocol used, and data transmission is completed through the single communication channel (such as a certain data point in the bus communication protocol).
[0147] It should be understood that the single communication channel has the properties of singularity and speciality. The singularity means that the sending end and the receiving end only transmit an actual temperature value of an integer type through a single communication channel, i.e. a data point, without the need to allocate multiple communication channels for the integer part, the decimal part, or the unit information of an actual temperature value of a floating point type, thereby significantly saving the resources of the bus communication protocol. The speciality means that the single communication channel is only used for transmitting a transmission temperature value of an integer type obtained by converting an actual temperature value of a floating point type, thereby avoiding confusion and miscommunication with other control instructions (such as mode switching, wind speed adjustment, etc.), and reducing the risk of data conflict.
[0148] In addition, in the embodiments of the present application, the transmission rate and data format (such as 16-bit integer, 32-bit integer) of the single communication channel are set according to the requirements of the air conditioning system, ensuring that the integer type transmission temperature value obtained by conversion can be completely transmitted. For example, for an actual temperature value with a precision of 0.5℃ in a temperature range of 0-60℃, the range of the integer type transmission temperature value obtained by conversion is 0-120, and the transmission requirement can be met by using a 16-bit integer format.
[0149] In some embodiments, the receiving end receives the integer type transmission temperature value from the sending end through the single communication channel, for example, by parsing the encoded data transmitted in the single communication channel, reversely converting the integer type transmission temperature value from the sending end (such as reading from the Modbus register), and reversely converting the transmission temperature value into the floating point type actual temperature value.
[0150] In some embodiments, the receiving end has a preset data dictionary identical to the sending end, and the receiving end reversely converts the integer type transmission temperature value into the floating point type actual temperature value by calling the predetermined conversion rule in the preset data dictionary. The reverse conversion can be understood as the inverse operation of the conversion process of the sending end: if the sending end uses the operation rule of "actual temperature value x conversion coefficient = transmission temperature value", the receiving end performs the inverse operation rule of "transmission temperature value ÷ conversion coefficient = actual temperature value". For example, when the receiving end receives a transmission temperature value of 47 and the conversion coefficient is 2, the actual temperature value obtained by reverse conversion is 23.5 (47 ÷ 2 = 23.5); for another example, when the receiving end receives a transmission temperature value of 105 and the conversion coefficient is 4, the actual temperature value obtained by reverse conversion is 26.25℃ (105 ÷ 4 = 26.25).
[0151] Since the receiving end calls the data dictionary (including conversion rule, conversion coefficient, mapping range, etc.) identical to that used by the sending end in the conversion process, it is ensured that the actual temperature value obtained by reverse conversion of the receiving end is identical to the actual temperature value initially obtained by the sending end.
[0152] Finally, the receiving end applies the actual temperature value obtained by reverse conversion to the execution equipment of the air conditioning system, for example: in the temperature control logic, the actual temperature value is compared with the target value to drive the air conditioner to perform cooling, heating or shutdown operation; in human-computer interaction, the actual temperature value (such as 23.5℃) is displayed on the monitoring interface or the screen of the line controller; in data analysis, the running efficiency and energy consumption trend of the air conditioning system are counted based on the actual temperature value obtained by reverse conversion.
[0153] The temperature data transmission method provided in the embodiments of the present application can convert the actual temperature value in floating point type into a transmission temperature value in integer type for transmission at the sending end, and then reversely convert the transmission temperature value into the corresponding actual temperature value in floating point type at the receiving end, so as to meet the requirement of data transmission accuracy. Moreover, the transmission temperature value in integer type is transmitted to the receiving end through a single communication channel, so that the point resource of the bus communication protocol is saved, and the embodiments of the present application can balance the saving of the bus point resource and the data transmission accuracy.
[0154] In some embodiments, after reversely converting the transmission temperature value into the corresponding actual temperature value in floating point type according to the preset data dictionary, the method further includes:
[0155] According to the preset temperature range of the air conditioning equipment in the air conditioning system, the temperature unit of the actual temperature value reversely converted is determined.
[0156] In some embodiments, after reversely converting the transmission temperature value into the corresponding actual temperature value at the receiving end according to the data dictionary, the Celsius temperature range of the air conditioning equipment and the Fahrenheit temperature range corresponding to the Celsius temperature range are determined, the intermediate value between the upper limit value of the Celsius temperature range and the lower limit value of the Fahrenheit temperature range is taken as a judgment threshold, if the actual temperature value reversely converted is greater than the judgment threshold, it is determined that the temperature unit of the actual temperature value is Fahrenheit, and if the actual temperature value reversely converted is less than or equal to the judgment threshold, it is determined that the temperature unit of the actual temperature value is Celsius.
[0157] Through the above embodiments, the receiving end can accurately identify the temperature unit of the actual temperature value, so that the actual temperature value reversely converted is more complete, and the requirement of temperature data for subsequent functions such as performing the corresponding control strategy according to the correct temperature unit when temperature regulation (for example, the receiving end needs to identify the unit as ℃ to drive the air conditioning system to accurately adjust) and accurately displaying the temperature unit on the man-machine interface (so that the user can clearly know whether the current temperature is “25℃” or “77℉”) is met.
[0158] It should be understood that the size of the serial number of each step in the above embodiments does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0159] The embodiments of the present application also provide an electronic device, which includes one or more processors and a memory;
[0160] The memory is coupled with the one or more processors, and the memory is used to store computer program code including computer instructions, and the one or more processors invoke the computer instructions to enable the electronic device to execute the temperature data transmission method shown in the foregoing.
[0161] Figure 6 A structural schematic diagram of an electronic device is provided in the embodiments of the present application. The electronic device 600 can be a mobile phone, a smart screen, a tablet computer, a wearable electronic device, a vehicle-mounted electronic device, an augmented reality (AR) device, a virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a projector, or a server, a memory, a base station, or a communication device, or a smart car. The embodiments of the present application do not limit the specific type of the electronic device.
[0162] The memory 601 can be used to store computer program 602 and modules, and the processor 603 executes various function applications and data processing of the electronic device by running the software programs and modules stored in the memory 601. The memory 601 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), etc.; the data storage area can store data created according to the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the memory 601 can include a high-speed random access memory, and can also include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device.
[0163] The processor 603 can include one or more of a central processor, an application processor (AP), a baseband processor, etc. The processor can be the nerve center and command center of the wireless router. The processor 603 can generate operation control signals according to instruction operation codes and timing signals, complete the control of fetching instructions and executing instructions. The memory 601 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 603 executes various function applications and data processing of the network device by running the instructions stored in the memory. The memory 601 can include a program storage area and a data storage area, such as data of a sound signal to be played, etc. For example, the memory can be a double data rate synchronous dynamic random access memory (DDR) or a flash memory (Flash), etc.
[0164] The embodiments of the present application also provide a computer readable storage medium, the computer readable storage medium stores computer instructions; when the computer readable storage medium runs on the electronic device, the electronic device executes the temperature data transmission method shown in the foregoing.
[0165] The computer instructions can be stored in or transferred from one computer-readable medium to another computer-readable medium, such as from one website, computer, server, or data center to another website, computer, server, or data center, through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable medium can be any available medium accessible by a computer or data storage device, such as one or more servers, data centers, etc., integrated with the medium. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium, or a semiconductor medium (such as a solid state disk (SSD)), etc.
[0166] The embodiments of the present application also provide a computer program product containing computer instructions, which, when executed on an electronic device, enable the electronic device to perform the temperature data transmission method described above.
[0167] The computer storage medium and the computer program product provided by the embodiments of the present application are used to execute the method provided above, and thus the beneficial effects that can be achieved thereby can refer to the beneficial effects of the method provided above, which will not be described herein again.
[0168] In the embodiments described above, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general purpose computer, a special purpose computer, a computer network or other programmable apparatus. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, such as from a website site, computer, server or data center to another website site, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server, data center, etc. integrated with one or more available media. The storage medium can be a magnetic disk, an optical disk, a read-only memory (Rom), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid state drive (SSD), etc. The storage medium can also include a combination of the above types of memory.
[0169] In the above embodiments, the description of each embodiment has its own focus, and the parts not described or recorded in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0170] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments applied herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are executed in hardware or software 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 the present application.
[0171] In the embodiments provided by the present application, it should be understood that the disclosed apparatus / network device and method can be implemented in other manners. For example, the embodiments of the apparatus / network device described above are merely illustrative. For example, the division of the modules or units is merely logical function division, and there can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between the units can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or in other forms.
[0172] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.
[0173] The above-described embodiments are merely used to illustrate the technical solutions of the present application, but not limit the present application; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: the technical solutions recorded in the foregoing embodiments can still be modified, or some technical features can be replaced by equivalent replacements; and these modifications or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. An air conditioning system, characterized in that: include: A sending end, and a receiving end communicatively connected to the sending end; The transmitting end is configured to: upon obtaining an actual temperature value to be transmitted to the receiving end, if the numerical type of the actual temperature value is a floating point type, convert the actual temperature value into a corresponding integer transmission temperature value according to a preset data dictionary, and transmit the transmission temperature value to the receiving end through a single communication channel, wherein the data dictionary contains mapping relationships between multiple actual temperature values and corresponding transmission temperature values established based on predetermined conversion rules; The receiving end is configured to: when receiving the integer transmission temperature value from the sending end, reversely convert the transmission temperature value into the corresponding actual temperature value according to the data dictionary.
2. The system according to claim 1, wherein: The receiving end is further configured to determine a temperature unit of the actual temperature value according to a preset temperature range of the air-conditioning equipment in the air-conditioning system.
3. The system according to claim 2, characterized in that The receiving end determines the unit of the actual temperature value obtained by reverse conversion according to the preset temperature range of the air-conditioning equipment in the system, and is configured as follows: Determining a Celsius temperature range of the air conditioning equipment and a Fahrenheit temperature range corresponding to the Celsius temperature range; using the middle value between the upper limit of the Celsius temperature range and the lower limit of the Fahrenheit temperature range as a judgment threshold; If the actual temperature value obtained by reverse conversion is greater than the judgment threshold, determining that the temperature unit of the actual temperature value is Fahrenheit; If the actual temperature value obtained by reverse conversion is less than or equal to the judgment threshold, it is determined that the temperature unit of the actual temperature value is Celsius.
4. The system according to claim 1, wherein: The receiving end is further configured to: when it is detected that the area where the air-conditioning system is located meets the preset area conditions, determine that the temperature unit of the actual temperature value is the default temperature unit of the area, and the default temperature unit is Fahrenheit or Celsius.
5. The system according to any one of claims 1 to 4, characterized in that The predetermined conversion rule of the data dictionary is: the actual temperature value is equal to the transmitted temperature value divided by the preset conversion coefficient.
6. The system according to claim 5, characterized in that The preset conversion coefficient is the reciprocal of the minimum temperature adjustment step of the air-conditioning equipment in the air-conditioning system.
7. The system according to any one of claims 1 to 4, characterized in that The transmitting end includes a wire controller of the air conditioning system, the receiving end includes a host computer of the air conditioning system, and the system further includes: An intermediate forwarding node is respectively connected to the sending end and the receiving end, and is configured to: after receiving the transmission temperature value, directly forward the transmission temperature value to the receiving end through the single communication channel; the intermediate forwarding node includes at least one of an air-conditioning device and a centralized controller.
8. A temperature data transmission method, characterized in that: Applied to an air conditioning system, the method comprises: When an actual temperature value to be transmitted to the receiving end is obtained, determining a numerical type of the actual temperature value; If the numerical type of the actual temperature value is a floating point type, converting the actual temperature value into a corresponding integer transmission temperature value according to a preset data dictionary; The transmitted temperature value is sent to a receiving end through a single communication channel, wherein the data dictionary contains a mapping relationship between multiple actual temperature values and corresponding transmitted temperature values established based on predetermined conversion rules; when the receiving end receives the transmitted temperature value, the transmitted temperature value is reversely converted into the corresponding actual temperature value according to the data dictionary.
9. A temperature data transmission method, characterized in that: Applied to an air conditioning system, the method comprises: When receiving a transmission temperature value sent by a transmitting end through a single communication channel, determining a numerical type of the transmission temperature value; If the numerical type of the transmitted temperature value is an integer, the transmitted temperature value is reversely converted into a corresponding floating-point actual temperature value according to a preset data dictionary. When the sending end obtains a floating-point actual temperature value, the actual temperature value is converted into a corresponding integer transmitted temperature value according to the data dictionary. The data dictionary contains a mapping relationship between multiple actual temperature values and corresponding transmitted temperature values established based on predetermined conversion rules.
10. The method according to claim 9, characterized in that After reversely converting the transmitted temperature value into a corresponding floating-point actual temperature value according to a preset data dictionary, the method further includes: The temperature unit of the actual temperature value obtained by reverse conversion is determined according to a preset temperature range of the air-conditioning equipment in the air-conditioning system.