Monitoring data synchronization method and device of air conditioner and air conditioner
By generating a feature queue and synchronously sending the air conditioner's operating feature information to the terminal devices according to a preset strategy, the problem of inconsistent operating status among various air conditioner terminals is solved, realizing the synchronization and accurate display of the air conditioner's operating status, reducing communication costs, and improving communication efficiency.
Patent Information
- Application Number
- CN202311344368.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-17
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2043-10-17
AI Technical Summary
In existing technologies, the consistency of the operating status obtained by various terminals from the air conditioner is poor. This leads to inconsistent understanding of the air conditioner's operating status among different levels of personnel, such as engineers, after-sales service personnel, and users. This affects data judgment and problem localization, and increases communication costs and time costs for problem solving.
By acquiring monitoring request information, a feature queue is generated, and the air conditioner's operating feature information, including operating parameter features and parameter accuracy features, is synchronously sent to all subscribed terminal devices according to a preset sending strategy. This ensures the consistency of data received by each terminal device and implements a retransmission mechanism to ensure data synchronization in case of reception failure.
This achieved data consistency on the air conditioner's operating status across all terminal devices, reduced communication costs, improved communication efficiency, and ensured the synchronization and accuracy of the air conditioner's operating status across different demand sides.
Smart Images

Figure CN119844861B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of home appliance technology, and in particular to a method, apparatus and air conditioner for synchronizing monitoring data of an air conditioner. Background Technology
[0002] Currently, most terminals transmit data to air conditioners through pass-through. When terminals capture and display air conditioner data, the different times at which they read the data, as well as variations in communication intervals and frequencies, lead to discrepancies in the final images displayed by each terminal. This causes deviations in reference points during solution verification and problem finding, severely impacting the consistency of understanding of the air conditioner's operating status among engineers, after-sales service personnel, and users. This increases communication costs, affects data judgment and problem localization, degrades the user experience, and increases the difficulty of problem analysis and the time cost of problem solving. Summary of the Invention
[0003] This invention provides a method, apparatus, and air conditioner for synchronizing monitoring data, which solves the problem in the prior art where the consistency of the operating status obtained by various terminals from the air conditioner is poor, seriously affecting efficiency.
[0004] According to a first aspect of the present invention, a method for synchronizing monitoring data of an air conditioner includes:
[0005] Obtain monitoring request information, and obtain the operating characteristic information of the air conditioner based on the monitoring request information, wherein the operating characteristic information includes at least the operating parameter characteristics of the air conditioner and the parameter precision characteristics of the operating parameter characteristics;
[0006] Obtain all terminal devices that have subscribed to the operating characteristic information of the air conditioner, and send the operating characteristic information to all subscribed terminal devices.
[0007] According to one embodiment of the present invention, the step of obtaining the operating characteristic information of the air conditioner based on the monitoring request information specifically includes:
[0008] The target parameter features included in the monitoring request information are obtained, and the target parameter features identify the operating parameter features and the parameter accuracy features of the air conditioner;
[0009] Based on the target parameter characteristics, the operating parameter characteristics and the parameter accuracy characteristics are obtained within N consecutive acquisition time periods, where N is a positive integer greater than or equal to 1;
[0010] N sets of feature queues are generated in a one-to-one correspondence based on the N operating parameter features and the N parameter precision features, and the operating feature information is generated based on the feature queues.
[0011] Specifically, this embodiment provides an implementation method for obtaining the operating characteristic information of the air conditioner based on the monitoring request information.
[0012] According to one embodiment of the present invention, the step of sending the operating characteristic information to all subscribed terminal devices specifically includes:
[0013] Based on the feature queue, the running feature information is sent to all subscribed terminal devices according to a preset sending strategy. The preset sending strategy includes at least the generation sequence of the running parameter feature and the parameter precision feature in the feature queue, and sending the running parameter feature and the parameter precision feature to all subscribed terminal devices according to a preset number of frames or a preset data capacity.
[0014] Specifically, this embodiment provides an implementation method for sending the operational feature information to all subscribed terminal devices.
[0015] According to one embodiment of the present invention, the step of sending the operational feature information to all subscribed terminal devices according to a preset sending strategy further includes:
[0016] Based on the preset sending strategy, receipt information is obtained after each set of the running feature information is sent. The receipt information includes information indicating that the running feature information sent by each terminal device has been received.
[0017] Once it is confirmed that the receipt information sent by all the terminal devices has been received, the next set of the operation feature information is sent to all the subscribed terminal devices according to the preset sending strategy;
[0018] If at least one of the terminal devices fails to send the receipt information, the operational feature information of this group is resent according to a preset sending strategy.
[0019] Specifically, this embodiment provides an implementation method for sending the operational feature information to all subscribed terminal devices according to a preset sending strategy.
[0020] According to one embodiment of the present invention, the step of determining that at least one of the terminal devices has not sent the receipt information and retransmitting the operational feature information of this group according to a preset sending strategy specifically includes:
[0021] According to the preset sending strategy, the operating feature information of this group is resent to all the subscribed terminal devices, or the operating feature information of this group is resent to the terminal devices that have not sent the receipt information;
[0022] If, after a preset receipt reception period, no receipt information is received, the terminal device that did not send the receipt information will be marked and removed from the subscription list.
[0023] Specifically, this embodiment provides an implementation method for retransmitting the operational feature information described in this group according to a preset transmission strategy.
[0024] According to one embodiment of the present invention, the step of obtaining the operating characteristic information of the air conditioner based on the monitoring request information specifically includes:
[0025] The number of operating parameter features of the air conditioner included in the operating feature information is greater than or equal to M, where M is a positive integer greater than or equal to 2;
[0026] Based on the number of the aforementioned operating parameter features, a one-to-one corresponding monitoring queue is established. Each monitoring queue is an independent sending queue, and each independent sending queue can send data structures independently when a new monitoring request information state is reached.
[0027] Specifically, this embodiment provides an implementation method for obtaining the operating characteristic information of the air conditioner based on the monitoring request information.
[0028] According to one embodiment of the present invention, the operating parameter features include at least the energy consumption parameters of the air conditioner, fan speed, indoor temperature, and indoor humidity.
[0029] Specifically, this embodiment provides an implementation method for operating parameter features.
[0030] According to one embodiment of the present invention, after the step of sending the operating characteristic information to all subscribed terminal devices, the method further includes:
[0031] A subscription list is generated based on all subscriptions from the terminal devices;
[0032] If a change in the subscription status of the terminal device is detected, the subscription list is updated according to the terminal device whose subscription status has changed.
[0033] Upon obtaining information about newly subscribed terminal devices, the subscription list is updated based on the newly subscribed terminal devices.
[0034] Specifically, this embodiment provides an implementation method for sending the operational feature information to all subscribed terminal devices.
[0035] According to one embodiment of the present invention, the step of obtaining monitoring request information further includes:
[0036] When the monitoring request information comes from at least two terminal devices, the target parameter features and target parameter precision of the monitoring request information identifier sent by each terminal device are obtained;
[0037] The target parameter features that are commonly identified by all the monitoring request information are determined, and the operating feature information of the air conditioner is obtained based on the commonly identified target parameter features and the corresponding target parameter precision.
[0038] Determine the data depth of the precision of all the target parameters that are commonly identified, and output the operational feature information corresponding to the maximum data depth. The data depth identifies the precision of the target parameter corresponding to the target parameter feature.
[0039] Specifically, this embodiment provides an implementation method for obtaining monitoring request information.
[0040] According to a second aspect of the present invention, an air conditioner monitoring data synchronization device includes:
[0041] An information acquisition module is used to acquire monitoring request information and acquire the operating characteristic information of the air conditioner based on the monitoring request information. The operating characteristic information includes at least the operating parameter characteristics of the air conditioner and the parameter precision characteristics of the operating parameter characteristics.
[0042] An information sending module is used to acquire all terminal devices that have subscribed to the operating characteristic information of the air conditioner, and to send the operating characteristic information to all subscribed terminal devices.
[0043] An air conditioner according to a third aspect of the present invention includes: a memory and a processor;
[0044] The memory and the processor communicate with each other via a bus;
[0045] The memory stores computer instructions that can be executed on the processor;
[0046] When the processor invokes the computer instructions, it can execute the aforementioned method for synchronizing monitoring data of the air conditioner.
[0047] The above-mentioned one or more technical solutions of the present invention have at least one of the following technical effects: The monitoring data synchronization method, device and air conditioner provided by the present invention, by acquiring information such as the operating status of the air conditioner, synchronously sends it to all subscribed terminal devices, ensuring that the relevant information read by each terminal device is accurate and consistent, improving the synchronization of the air conditioner's operating status for different demand ends such as engineers, after-sales personnel and users, reducing communication costs and improving communication efficiency. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0049] Figure 1 This is one of the flowcharts illustrating the air conditioner monitoring data synchronization method provided by the present invention;
[0050] Figure 2 This is the second flowchart illustrating the air conditioner monitoring data synchronization method provided by the present invention;
[0051] Figure 3 This is a schematic diagram of the structure of the air conditioner monitoring data synchronization device provided by the present invention;
[0052] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention.
[0053] Figure label:
[0054] 10. Information acquisition module; 20. Information sending module;
[0055] 810, Processor; 820, Communication interface; 830, Memory; 840, Communication bus. Detailed Implementation
[0056] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0057] The present invention will now be described in detail with reference to the accompanying drawings. The specific operation methods in the method embodiments can also be applied to the device embodiments or system embodiments. In the description of the present invention, unless otherwise stated, "at least one" includes one or more. "Multiple" refers to two or more. For example, at least one of A, B, and C includes: A existing alone, B existing alone, A and B existing simultaneously, A and C existing simultaneously, B and C existing simultaneously, and A, B, and C existing simultaneously. In the present invention, " / " means "or". For example, A / B can mean A or B. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone.
[0058] The present invention will now be described in detail with reference to specific embodiments.
[0059] In some specific embodiments of the present invention, such as Figure 1 and Figure 2 As shown, this solution provides a method for synchronizing monitoring data of an air conditioner, including:
[0060] Obtain monitoring request information, and obtain the air conditioner's operating characteristic information based on the monitoring request information. The operating characteristic information includes at least the air conditioner's operating parameter characteristics and the parameter precision characteristics of the operating parameter characteristics.
[0061] Obtain all terminal devices that have subscribed to the air conditioner's operating characteristic information, and send the operating characteristic information to all subscribed terminal devices.
[0062] It should be noted that the current method of reading indoor unit data by the terminal is a pure pass-through method. The terminal device can capture and draw the data of the air conditioner by clicking "Start Reading". However, due to the different times when different terminal devices click "Start Reading" and the different rates at which they read the indoor unit data, the final data graphics displayed by each terminal will have deviations.
[0063] To address the shortcomings of the existing technology, this invention subscribes to the operating characteristic information of the air conditioner through multiple terminal devices and synchronously receives the operating characteristic information sent by the air conditioner. This enables users, engineers, maintenance personnel, and sales personnel to obtain the operating characteristic information sent by the air conditioner according to the monitoring request information in a timely manner through each self-owned terminal device. Furthermore, the data received by each terminal device is consistent, meaning that the data displayed on each terminal device, as well as the analysis graphs, maps, and other display formats formed based on the data, are all based on the same set of data.
[0064] Understandably, there are many terminal devices connected to the air conditioner and subscribing to air conditioner-related data. The air conditioner-related data is obtained according to the retrieval needs of different terminal devices. However, if at least the terminal devices subscribe to the same data, the transmitted data may have discrepancies when it is finally displayed on the terminal devices due to network problems and collection timing issues. Therefore, this invention sends synchronized data to terminal devices that subscribe to the same air conditioner data.
[0065] In some embodiments of the present invention, the step of obtaining the operating characteristic information of the air conditioner based on the monitoring request information specifically includes:
[0066] The target parameter features obtained from the monitoring request information include the target parameter features, which identify the air conditioner's operating parameter features and parameter accuracy features.
[0067] Based on the target parameter characteristics, the operating parameter characteristics and parameter accuracy characteristics are obtained within N consecutive acquisition time periods, where N is a positive integer greater than or equal to 1;
[0068] N characteristic queues are generated based on N operational parameter features and N parameter precision features, and operational feature information is generated based on the characteristic queues.
[0069] Specifically, this embodiment provides an implementation method for obtaining the operating characteristic information of an air conditioner based on monitoring request information. By obtaining the target parameter characteristics of the monitoring request information, the monitoring items that the terminal device needs to obtain are determined, and then the operating parameter characteristics and parameter accuracy characteristics of the air conditioner are determined based on the target parameter characteristics.
[0070] It should be noted here that the target parameter features include the corresponding monitoring features sent by the terminal device and the specific monitoring accuracy of the monitoring features. The monitoring items are determined based on the monitoring features and the monitoring accuracy.
[0071] Furthermore, at least one set of operating parameter features and parameter precision features are obtained based on the target parameter features, and a feature queue is generated and sent to the terminal device according to the feature queue.
[0072] Understandably, when a terminal device needs to obtain multi-dimensional data from an air conditioner, such as the fan speed characteristics over a continuous or specific period, it may need to obtain one or more operating parameter features, as well as the parameter precision features corresponding to the operating parameter features. Then, a feature queue is generated based on the specific number of features obtained. The existence of the feature queue ensures that when the air conditioner obtains operating parameter features and parameter precision features based on the target parameter features, it can achieve "first-in, first-out," that is, form a sorting according to certain rules. This facilitates subsequent data interaction with the terminal device, enabling the data to be sent and displayed according to the actual needs of the terminal device.
[0073] In some embodiments of the present invention, the step of sending operational feature information to all subscribed terminal devices specifically includes:
[0074] Based on the feature queue, running feature information is sent to all subscribed terminal devices according to a preset sending strategy. The preset sending strategy includes at least the generation sequence of running parameter features and parameter precision features in the feature queue, and sending running parameter features and parameter precision features to all subscribed terminal devices according to a preset number of frames or a preset data capacity.
[0075] Specifically, this embodiment provides an implementation method for sending operational feature information to all subscribed terminal devices. The air conditioner obtains the corresponding data based on the target parameter features in the monitoring request information sent by the terminal devices and establishes a feature queue based on the data. At this time, based on the feature queue, the corresponding operational feature information is sent to all subscribed terminal devices according to a preset sending strategy, thereby enabling all subscribed terminal devices to receive data synchronously and thus displaying consistent data on the terminal devices.
[0076] It should be noted that the preset sending strategy includes rules for sending runtime characteristic information according to the characteristic queue, such as sending data in groups according to data size, in groups according to frame number, and according to the corresponding data classification defined by the terminal device, according to the temporal order of the generated queue.
[0077] Understandably, all subscribed terminal devices refer to terminal devices that send the same monitoring request information to the air conditioner, that is, send the same data monitoring request to the air conditioner within the collection period. Therefore, the air conditioner can collect data based on the same data monitoring request and send it uniformly to all subscribed terminal devices, thereby ensuring that the data received by each terminal device is consistent and synchronized.
[0078] In one possible implementation, the air conditioner sends data in the form of generated icons to the subscribed terminal devices. This means that the system can run again once the terminal devices no longer need to receive data, thus reducing the computing power requirements on the terminal devices. The air conditioner directly provides the corresponding data display format based on the subscription needs of the terminal devices.
[0079] In a possible implementation, all the subscribed terminal devices may have a variety of different display requirements, such as displaying the power change of the air conditioner compressor over a certain period of time as a chart, displaying the power change of the air conditioner compressor over a certain period of time as a curve, or displaying the power change of the air conditioner compressor over a certain period of time according to the size of the peak area. In this case, the air conditioner sends corresponding data to each subscribed terminal device according to the different requirements of the terminal devices to meet the different data display requirements of different terminal devices.
[0080] In some embodiments of the present invention, the step of sending operational feature information to all subscribed terminal devices according to a preset sending strategy further includes:
[0081] Based on a preset sending strategy, the receipt information after each set of running feature information is obtained. The receipt information includes information indicating that the running feature information sent by each terminal device has been received.
[0082] Once the receipt information from all terminal devices is received, the next set of operational feature information is sent to all subscribed terminal devices according to the preset sending strategy.
[0083] If at least one terminal device fails to send a receipt, resend the group's operational characteristic information according to a preset sending strategy.
[0084] Specifically, this embodiment provides an implementation method for sending operating feature information to all subscribed terminal devices according to a preset sending strategy. After the air conditioner sends data to all subscribed terminal devices, it cannot guarantee that the terminal devices will receive and read it successfully. Therefore, after the air conditioner sends the data about operating feature information, it waits for the acknowledgment information from each subscribed terminal device. After receiving the acknowledgment information from all terminal devices, it indicates that all terminal devices have received the operating feature information sent this time. At this time, the next set of data can be sent again to ensure that the data received by all terminal devices can be consistent and synchronized. However, if the acknowledgment information sent by all terminal devices is not received, it indicates that some terminal devices may have missed receiving the data or lost connection. At this time, it is necessary to resend the operating feature information of this set to the terminal devices according to the preset sending strategy.
[0085] In some embodiments of the present invention, the step of determining that at least one terminal device has not sent receipt information and retransmitting the current group of operational feature information according to a preset sending strategy specifically includes:
[0086] The system retransmits the group's operational characteristics information to all subscribed terminal devices according to a preset sending strategy, or retransmits the group's operational characteristics information to terminal devices that have not received a receipt.
[0087] If a preset receipt reception period has elapsed and no receipt information has been received, the terminal device that did not send a receipt information will be marked and removed from the subscription list.
[0088] Specifically, this embodiment provides an implementation method for resending the operational feature information of the group according to a preset sending strategy. When there are terminal devices that have not received the receipt information, data is sent synchronously to all subscribed terminal devices, that is, the data in the group is updated to ensure that the data received by each terminal device is consistent.
[0089] It should be noted that, in the absence of a receipt, the operating characteristic information of this group can be sent individually to the terminal device that did not send a receipt, or it can be sent to all terminal devices. However, in order to ensure the accuracy of data transmission, this invention chooses to send the air conditioner's operating characteristic information to all terminal devices again, thereby determining the receiving capability of each terminal device. In order to avoid wasting computing power, when a terminal device that has already received a receipt sends a receipt again, that is, the content of the received receipt is consistent, only the receipt information needs to be verified, rather than reading the entire content of the receipt information.
[0090] In a possible implementation, if no receipt information is received, the air conditioner sends the operating characteristic information to all terminal devices again. When it receives a receipt information sent again by a terminal device that has previously sent receipt information, it can choose to verify only the signal of the receipt information without reading the entire content of the receipt information. Understandably, the receipt information includes the identifier of the read information, the encoding of the terminal device, the communication protocol, etc. At this time, the air conditioner only identifies the identifier of the read information, which improves the reading efficiency and reduces the ineffective consumption of computing power.
[0091] It should be noted that after the air conditioner sends the corresponding operating feature information to all subscribed terminal devices, if there are any terminal devices that have not sent a receipt, a retransmission mechanism will be triggered to resend the same data to ensure that all subscribed terminal devices can receive the set of operating feature information. However, the retransmission mechanism is set with limits on the number of times and duration to avoid delays in the entire data transmission caused by terminal devices that have not sent receipt information. If there are still terminal devices that have not received receipt information after the preset retransmission threshold is reached, then that terminal device will be removed.
[0092] In some embodiments of the present invention, the step of obtaining the operating characteristic information of the air conditioner based on the monitoring request information specifically includes:
[0093] The number of operating parameter features of the air conditioner included in the determined operating feature information is greater than or equal to M, where M is a positive integer greater than or equal to 2;
[0094] Based on the number of operating parameter features, a one-to-one corresponding monitoring queue is established. Each monitoring queue is an independent sending queue, and each independent sending queue can send data structures independently when a new monitoring request information is received.
[0095] Specifically, this embodiment provides an implementation method for obtaining the operating characteristic information of an air conditioner based on monitoring request information. When the monitoring request information received by the air conditioner from the terminal device includes at least two target parameter features, that is, when the terminal device needs to obtain at least two operating parameter features from the air conditioner, an independent, one-to-one corresponding monitoring queue is established according to the specific number of operating parameter features. This setting ensures that the terminal device subscribing to the operating characteristic information can receive data smoothly. On the other hand, setting the monitoring queue to be independent also allows the air conditioner to directly call the data of the monitoring queue when it receives new subscription information from other terminal devices, and the new subscription information has an overlap with the previous subscription information, i.e., a partial independent monitoring queue.
[0096] Understandably, when multiple terminal devices subscribe to the same content, and multiple operating parameter features are subscribed to in advance, an independent monitoring queue is established for each operating parameter feature. This ensures that when the subscription information of a terminal device that subscribes later is received, and the later subscription information subscribes to a certain operating parameter feature that was subscribed to earlier, there is synchronization in the timing. At this time, the operating parameter feature and the corresponding parameter precision feature can be directly called and sent directly to the terminal device that subscribes later.
[0097] In some embodiments of the present invention, the operating parameter characteristics include at least the energy consumption parameters of the air conditioner, the fan speed, the indoor temperature, and the indoor humidity.
[0098] Specifically, this embodiment provides an implementation method for operating parameter characteristics, which include at least energy consumption parameters, fan speed, indoor temperature, and indoor humidity.
[0099] Furthermore, the parameter accuracy characteristics include the accuracy of each of the above parts, such as the energy consumption level of energy consumption parameters in terms of time units, the fan speed in terms of magnitude in terms of unit time, and the temperature change range, accuracy, and magnitude of indoor temperature in a certain time period.
[0100] It should be noted that the parameter accuracy characteristics include the accuracy levels of the operating parameter characteristics according to time, space and user-defined references, which are used to characterize the changes of the operating parameter characteristics within a certain range.
[0101] In some embodiments of the present invention, after the step of sending runtime characteristic information to all subscribed terminal devices, the method further includes:
[0102] Generate a subscription list based on all subscribed terminal devices;
[0103] If the subscription status of a terminal device changes, update the subscription list according to the terminal device whose subscription status has changed;
[0104] If newly subscribed terminal devices are obtained, the subscription list is updated according to the newly subscribed terminal devices.
[0105] Specifically, this embodiment provides an implementation method for sending operational characteristic information to all subscribed terminal devices. During data transmission, terminal devices may experience network outages, loss of connection, or cancellation of reception. This invention first generates a subscription list based on all subscribed terminal devices. When it is found that one or more terminal devices have experienced network outages, loss of connection, or cancellation of reception, the subscription list is updated and the terminal device is removed.
[0106] Furthermore, there are cases where new terminal devices have subscribed to the data. When it is discovered that a new terminal device has also subscribed to the same data, the new terminal device will be added to the subscription list and sent synchronously to that terminal device when the next set of data is sent.
[0107] In some embodiments of the present invention, the step of obtaining monitoring request information further includes:
[0108] When the monitoring request information comes from at least two terminal devices, obtain the target parameter characteristics and target parameter precision of the monitoring request information sent by each terminal device;
[0109] Determine the target parameter features that are commonly identified by all monitoring request information, and obtain the operating characteristic information of the air conditioner based on the commonly identified target parameter features and the corresponding target parameter precision;
[0110] Determine the data depth of the precision of all target parameters that are commonly identified, and output the operational feature information corresponding to the maximum data depth. The data depth identifies the precision of the target parameter corresponding to the target parameter feature.
[0111] Specifically, this embodiment provides an implementation method for obtaining monitoring request information. The terminal devices subscribing to the air conditioner have the same target parameter characteristics, but the accuracy of the target parameters for each target parameter characteristic may differ between the terminal devices. Therefore, when the air conditioner receives monitoring request information from multiple terminal devices, the terminal devices are classified according to the target parameter characteristics. Terminal devices with the same target parameter characteristics are grouped into the same subscription list. Then, the accuracy of the target parameters for each target parameter characteristic in the same subscription list is confirmed, and the operating feature information corresponding to the target parameter accuracy with the highest data depth is sent to all terminal devices in the same subscription list.
[0112] In one application scenario, multiple terminal devices are connected to the indoor unit of an air conditioner. A monitoring data queue is added between the indoor unit and the terminal devices for transparent transmission. When the monitoring data queue meets the transmission requirements, the subscribing terminal device for the data is first identified, and then the data in the monitoring data queue is transmitted to the subscribing terminal device simultaneously in a first-in-first-out manner. If the subscribing terminal does not reply that it has successfully received the data during the transmission process, a retransmission mechanism is implemented. The next monitoring data queue transmission is carried out after all terminal devices have confirmed receipt.
[0113] In one application scenario, multiple terminal devices are connected to the indoor unit of an air conditioner. A monitoring data queue is added between the indoor unit and the terminal devices for transparent transmission. When the monitoring data queue meets the transmission requirements, the subscription terminal device for the data is first determined. The monitoring data queue still follows the first-in-first-out method. First, a frame of data in the monitoring data queue is read, and then the frame of data is sent to the subscription terminal in sequence. After all the subscription terminal devices confirm that they have received the frame of data, they read the next frame of data in the monitoring data queue, and so on in a loop.
[0114] In an application scenario, such as Figure 2 As shown, multiple terminal devices are connected to the indoor unit of the air conditioner.
[0115] S1, the terminal device requests a monitoring data queue from the indoor unit. Any terminal device requests a monitoring data queue from the indoor unit according to three pieces of information: monitoring data name, queue depth, and whether it has subscribed.
[0116] S2: The indoor unit opens a monitoring data queue according to the interrupt request information.
[0117] It should be noted that since different terminal devices have different requirements for queue depth, the queue depth opened by the internal unit shall be based on the minimum depth requested, so as to ensure that the terminal devices obtain monitoring data in a consistent manner.
[0118] S3: Internal monitoring data queue transmits data. When the monitoring data queue meets the queue depth requirement, it sends monitoring data to the terminals subscribed to under that monitoring data queue. If a subscribed terminal does not reply with a successful reception response when sending monitoring data to each subscribed terminal, a data retransmission mechanism is initiated to ensure that all subscribed terminals successfully receive the monitoring data.
[0119] It should be noted that the monitoring data retransmission mechanism does not retransmit data continuously; the specific number of retransmissions depends on the project requirements.
[0120] In some specific embodiments of the present invention, such as Figure 3 As shown, this solution provides a monitoring data synchronization device for an air conditioner, including:
[0121] The information acquisition module 10 is used to acquire monitoring request information and acquire the operating characteristic information of the air conditioner based on the monitoring request information. The operating characteristic information includes at least the operating parameter characteristics of the air conditioner and the parameter precision characteristics of the operating parameter characteristics.
[0122] The information sending module 20 is used to acquire all terminal devices that have subscribed to the air conditioner's operating characteristic information and send the operating characteristic information to all subscribed terminal devices.
[0123] The steps for obtaining the air conditioner's operating characteristic information based on the monitoring request information may specifically include:
[0124] The target parameter features obtained from the monitoring request information include the target parameter features, which identify the air conditioner's operating parameter features and parameter accuracy features.
[0125] Based on the target parameter characteristics, the operating parameter characteristics and parameter accuracy characteristics are obtained within N consecutive acquisition time periods, where N is a positive integer greater than or equal to 1;
[0126] N characteristic queues are generated based on N operational parameter features and N parameter precision features, and operational feature information is generated based on the characteristic queues.
[0127] Specifically, this embodiment provides an implementation method for obtaining the operating characteristic information of an air conditioner based on monitoring request information.
[0128] The steps of sending runtime characteristic information to all subscribed terminal devices may include:
[0129] Based on the feature queue, running feature information is sent to all subscribed terminal devices according to a preset sending strategy. The preset sending strategy includes at least the generation sequence of running parameter features and parameter precision features in the feature queue, and sending running parameter features and parameter precision features to all subscribed terminal devices according to a preset number of frames or a preset data capacity.
[0130] Specifically, this embodiment provides an implementation method for sending runtime characteristic information to all subscribed terminal devices.
[0131] The step of sending operational characteristic information to all subscribed terminal devices according to a preset sending strategy may also include:
[0132] Based on a preset sending strategy, the receipt information after each set of running feature information is obtained. The receipt information includes information indicating that the running feature information sent by each terminal device has been received.
[0133] Once the receipt information from all terminal devices is received, the next set of operational feature information is sent to all subscribed terminal devices according to the preset sending strategy.
[0134] If at least one terminal device fails to send a receipt, resend the group's operational characteristic information according to a preset sending strategy.
[0135] Specifically, this embodiment provides an implementation method for sending operational feature information to all subscribed terminal devices according to a preset sending strategy.
[0136] If it is determined that at least one terminal device has not sent a receipt message, the step of retransmitting the operational characteristic information of this group according to a preset sending strategy specifically includes:
[0137] The system retransmits the group's operational characteristics information to all subscribed terminal devices according to a preset sending strategy, or retransmits the group's operational characteristics information to terminal devices that have not received a receipt.
[0138] If a preset receipt reception period has elapsed and no receipt information has been received, the terminal device that did not send a receipt information will be marked and removed from the subscription list.
[0139] Specifically, this embodiment provides an implementation method for retransmitting the current group's operational characteristic information according to a preset transmission strategy.
[0140] The steps for obtaining the air conditioner's operating characteristic information based on the monitoring request information may specifically include:
[0141] The number of operating parameter features of the air conditioner included in the determined operating feature information is greater than or equal to M, where M is a positive integer greater than or equal to 2;
[0142] Based on the number of operating parameter features, a one-to-one corresponding monitoring queue is established. Each monitoring queue is an independent sending queue, and each independent sending queue can send data structures independently when a new monitoring request information is received.
[0143] Specifically, this embodiment provides an implementation method for obtaining the operating characteristic information of an air conditioner based on monitoring request information.
[0144] The operating parameters likely include at least the air conditioner's energy consumption parameters, fan speed, indoor temperature, and indoor humidity.
[0145] Specifically, this embodiment provides an implementation method for operating parameter features.
[0146] Possibly, after the step of sending operational characteristic information to all subscribed terminal devices, the process may also include:
[0147] Generate a subscription list based on all subscribed terminal devices;
[0148] If the subscription status of a terminal device changes, update the subscription list according to the terminal device whose subscription status has changed;
[0149] If newly subscribed terminal devices are obtained, the subscription list is updated according to the newly subscribed terminal devices.
[0150] Specifically, this embodiment provides an implementation method for sending runtime characteristic information to all subscribed terminal devices.
[0151] The steps to obtain monitoring request information may also include:
[0152] When the monitoring request information comes from at least two terminal devices, obtain the target parameter characteristics and target parameter precision of the monitoring request information sent by each terminal device;
[0153] Determine the target parameter features that are commonly identified by all monitoring request information, and obtain the operating characteristic information of the air conditioner based on the commonly identified target parameter features and the corresponding target parameter precision;
[0154] Determine the data depth of the precision of all target parameters that are commonly identified, and output the operational feature information corresponding to the maximum data depth. The data depth identifies the precision of the target parameter corresponding to the target parameter feature.
[0155] In some specific embodiments of the present invention, this solution provides an air conditioner, including: a memory and a processor; the memory and the processor communicate with each other via a bus; the memory stores computer instructions that can be executed on the processor; when the processor calls the computer instructions, it can execute the above-described air conditioner monitoring data synchronization method.
[0156] Figure 4 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 4 As shown, the electronic device may include a processor 810, a communications interface 820, a memory 830, and a communication bus 840. The processor 810, communications interface 820, and memory 830 communicate with each other via the communication bus 840. The processor 810 can call logical instructions from the memory 830 to execute a method for synchronizing monitoring data of the air conditioner.
[0157] It should be noted that the electronic device in this embodiment can be a server, a PC, or other devices, as long as its structure includes the following: Figure 4The processor 810, communication interface 820, memory 830, and communication bus 840 shown are interconnected via the communication bus 840. The processor 810 can call logical instructions stored in the memory 830 to execute the aforementioned method. This embodiment does not limit the specific implementation of the electronic device.
[0158] The server can be a single server or a group of servers. The server group can be centralized or distributed (for example, the servers can be a distributed system).
[0159] In possible implementations, the server can be local or remote relative to the terminal. For example, the server can access information stored in the user terminal, a database, or any combination thereof via a network.
[0160] As another example, the server can directly connect to at least one of the user terminal and the database to access the information and / or data stored therein.
[0161] In possible implementations, the server can be implemented on a cloud platform; by way of example only, the cloud platform may include private cloud, public cloud, hybrid cloud, community cloud, distributed cloud, inter-cloud, multi-cloud, or any combination thereof.
[0162] In a possible implementation, the server and user terminal may be implemented on an electronic device having one or more of the components described in the embodiments of the present invention.
[0163] Furthermore, networks can be used for the exchange of information and / or data.
[0164] In a possible implementation, one or more components in the interactive scenario (e.g., a server, a user terminal, and a database) can send information and / or data to other components.
[0165] In possible implementations, the network can be any type of wired or wireless network, or a combination thereof. By way of example only, the network may include wired networks, wireless networks, fiber optic networks, telecommunications networks, intranets, the Internet, local area networks (LANs), wide area networks (WANs), wireless local area networks (WLANs), metropolitan area networks (MANs), public switched telephone networks (PSTNs), Bluetooth networks, ZigBee networks, or near field communication (NFC) networks, or any combination thereof.
[0166] In possible implementations, the network may include one or more network access points. For example, the network may include wired or wireless network access points, such as base stations and / or network switching nodes, through which one or more components of the interaction scenario can connect to the network to exchange data and / or information.
[0167] Furthermore, the logic instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.
[0168] Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0169] In a possible implementation, embodiments of the present invention also provide a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the air conditioner monitoring data synchronization method provided in the above embodiments.
[0170] In a possible implementation, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions, and when the program instructions are executed by a computer, the computer is able to perform the methods provided in the above-described method embodiments.
[0171] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0172] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of embodiments.
[0173] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for synchronizing monitoring data of an air conditioner, characterized in that, The method comprises the following steps: acquiring monitoring request information and acquiring operation characteristic information of the air conditioner according to the monitoring request information, wherein the operation characteristic information at least comprises operation parameter characteristics of the air conditioner and parameter accuracy characteristics of the operation parameter characteristics; acquiring all terminal devices subscribing to the operation characteristic information of the air conditioner and sending the operation characteristic information to all subscribing terminal devices; the step of acquiring monitoring request information further comprises the following steps: in the case that the monitoring request information comes from at least two terminal devices, acquiring target parameter characteristics and target parameter accuracy indicated by the monitoring request information sent by each terminal device; determining the target parameter characteristics commonly indicated by all monitoring request information and acquiring operation characteristic information of the air conditioner based on the commonly indicated target parameter characteristics and corresponding target parameter accuracy; determining data depth of all commonly indicated target parameter accuracy and outputting the operation characteristic information corresponding to the maximum data depth, wherein the data depth indicates the accuracy of the target parameter accuracy corresponding to the target parameter characteristics.
2. The monitoring data synchronization method of an air conditioner according to claim 1, wherein, the step of acquiring operation characteristic information of the air conditioner according to the monitoring request information comprises the following steps: acquiring target parameter characteristics included in the monitoring request information, wherein the target parameter characteristics indicate the operation parameter characteristics and the parameter accuracy characteristics of the air conditioner; based on the target parameter characteristics, acquiring the operation parameter characteristics and the parameter accuracy characteristics within N continuous acquisition time periods, wherein N is a positive integer greater than or equal to 1; generating one-to-one corresponding N groups of characteristic queues according to N operation parameter characteristics and N parameter accuracy characteristics, and generating the operation characteristic information according to the characteristic queues.
3. The method of claim 2, wherein the monitoring data is synchronized with the air conditioner. the step of sending the operation characteristic information to all subscribing terminal devices comprises the following steps: based on the characteristic queues, sending the operation characteristic information to all subscribing terminal devices according to a preset sending strategy, wherein the preset sending strategy at least comprises generation time sequence of the operation parameter characteristics and the parameter accuracy characteristics in the characteristic queues, and sending the operation parameter characteristics and the parameter accuracy characteristics to all subscribing terminal devices according to a preset frame number or a preset data capacity.
4. The monitoring data synchronization method of an air conditioner according to claim 3, wherein, the step of sending the operation characteristic information to all subscribing terminal devices according to a preset sending strategy further comprises the following steps: based on the preset sending strategy, acquiring receipt information after sending each group of operation characteristic information, wherein the receipt information comprises information sent by each terminal device and indicating that the operation characteristic information is received; determining that the receipt information sent by all terminal devices is received, and sending the next group of operation characteristic information to all subscribing terminal devices according to the preset sending strategy; determining that the receipt information is not sent by at least one terminal device, and resending the current group of operation characteristic information according to the preset sending strategy.
5. The method of claim 4, wherein the monitoring data synchronization method of the air conditioner is characterized by, the step of determining that the receipt information is not sent by at least one terminal device and resending the current group of operation characteristic information according to the preset sending strategy comprises the following steps: retransmit the running feature information to all subscribed terminal devices according to a preset sending strategy, or retransmit the running feature information to the terminal device that has not sent the receipt information; In the case where the receipt information is not received within a preset receipt receiving duration, mark the terminal device that has not sent the receipt information and remove it from the subscription list.
6. The method of claim 1, wherein the monitoring data synchronization method of the air conditioner is characterized by, The step of obtaining the running feature information of the air conditioner according to the monitoring request information specifically comprises: determining that the number of running parameter features of the air conditioner included in the running feature information is greater than or equal to M, M being a positive integer greater than or equal to 2; based on the number of running parameter features, establishing one-to-one monitoring queues, each monitoring queue being an independent sending queue, and the independent sending queue being capable of sending data structures independently in a new monitoring request information state.
7. The method of claim 1, wherein the monitoring data is synchronized with the air conditioner. The running parameter features at least include energy consumption parameters, fan rotating speeds, indoor temperatures, and indoor humidities of the air conditioner.
8. The method of claim 1 to 7, wherein, After the step of sending the running feature information to all subscribed terminal devices, the method further comprises: generating a subscription list based on all subscribed terminal devices; updating the subscription list according to the terminal device whose subscription state has changed when the subscription state of the terminal device is obtained to have changed; updating the subscription list according to the newly subscribed terminal device when the newly subscribed terminal device is obtained.
9. A monitoring data synchronization apparatus of an air conditioner, characterized by comprising: The monitoring data synchronization method applied to the air conditioner of any one of claims 1 to 8 comprises: an information obtaining module (10) configured to obtain monitoring request information and obtain running feature information of the air conditioner according to the monitoring request information, wherein the running feature information at least includes running parameter features of the air conditioner and parameter accuracy features of the running parameter features; an information sending module (20) configured to obtain all terminal devices that subscribe to the running feature information of the air conditioner and send the running feature information to all subscribed terminal devices.
10. An air conditioner characterized by comprising: comprise: a memory (830) and a processor (810); the memory (830) and the processor (810) communicate with each other through a bus; the memory (830) stores computer instructions capable of running on the processor (810); when the processor (810) invokes the computer instructions, the air conditioner monitoring data synchronization method of any one of claims 1 to 8 can be executed.
Citation Information
Patent Citations
Method for synchronously controlling device status and household appliance
CN103558836A
Air conditioning unit fault positioning method and device and air conditioning unit
CN116878101A