Split type air conditioner tail end gateway control method based on target state table and gateway
By adopting a gateway control method based on the target status table in the split air conditioner system, real-time management and control of the end status of the air conditioner is achieved, and the problem of refined management of air conditioners in large public spaces is solved, which reduces the management workload and improves the energy-saving efficiency of the system.
Patent Information
- Application Number
- CN202411939225.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-02-28
AI Technical Summary
The existing split air conditioning system is difficult to achieve refined management in large public spaces, resulting in large management workloads, poor control effects, and no archive records, so the air conditioning location cannot be accurately managed.
The split air conditioner terminal gateway control method and gateway based on the target state table are adopted to read the air conditioner terminal state value in real time, and fine control and management of the air conditioner is realized through the comparison and update of the actual state table and the target state table.
It has reduced the workload of air conditioning managers, improved the refined management capabilities of air conditioning systems, saved energy and reduced emissions, and provided support for enterprises and institutions to reduce costs and increase efficiency.
Smart Images

Figure CN119532942A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of air conditioning control, and more specifically, to a split air conditioning terminal gateway control method and gateway based on a target state table. Background Art
[0002] At present, the design, installation and construction of split-type air conditioners rarely consider the management needs of the air-conditioning terminals. Most of them only set up a single control panel near the air-conditioning terminal, which is actually impossible to manage due to the huge management workload; a small number of them add air-conditioning display screens in the fire control room for centralized control, but the control effect is poor due to long lines and poor signals, and there is no file corresponding to the position relationship, which cannot be accurately managed. Summary of the invention
[0003] The purpose of the present invention is to provide a split-type air-conditioning terminal gateway control method and gateway based on a target state table, which meets customer needs that are not met by the existing technology, solves the problem of refined management of air-conditioning in large public spaces such as shopping malls, schools, and factories, reduces the workload of relevant managers, and provides support for energy conservation and emission reduction of air-conditioning systems and cost reduction and efficiency improvement of enterprises and institutions.
[0004] A first aspect of the present invention provides a split-type air conditioner terminal gateway control method based on a target state table, comprising the following steps:
[0005] Read the terminal status value of the air conditioner in real time, reduce the terminal status value to the agreed value and store it in the actual status table;
[0006] Reporting relevant data in the actual status table, wherein the reporting method includes periodic reporting and / or change reporting;
[0007] Receive the command sent by the platform, parse the message type according to the command to update the target status table and reply to the platform with the parsing result;
[0008] Traverse the scheduled tasks every minute, and if the time point is reached, update the target status table according to the scheduled tasks;
[0009] Traverse and compare the general status contents of the actual status table and the target status table at intervals of two seconds, and achieve the target status by splicing control messages and putting them into the queue;
[0010] Traverse and compare the restricted state contents in the actual state table and the target state table at intervals of two seconds, and correct the user's operation exceeding the limit by splicing control messages and putting them into the queue;
[0011] Traverse the control message sequence and use the preset serial communication protocol control message to send it to the corresponding communication channel.
[0012] In this solution, the real-time reading of the air conditioner terminal state value, reducing the terminal state value to the agreed value and storing it in the actual state table specifically includes:
[0013] Traverse the air conditioning terminal collection configuration table;
[0014] Read the air conditioner terminal status value in real time according to the configured communication channel, address and type, wherein the communication channel includes a MODBUS communication channel;
[0015] The terminal status values read are reduced to agreed values and stored in the actual status table. The meanings of the terminal reading values of air conditioners of different brands are inconsistent.
[0016] In this solution, the command sent by the receiving platform is parsed according to the command message type to update the target state table and reply to the platform parsing result, which specifically includes:
[0017] Monitor the communication channel between the platform and the gateway to receive commands sent by the platform;
[0018] Parse the message type according to the command, wherein the parsing results include general control, restriction control and timing control;
[0019] Based on different analysis results, the target status table is updated and the corresponding analysis results of the platform are replied. Among them, general control corresponds to updating the general control flag to 10, restriction control corresponds to updating the target status of related devices, and timing control corresponds to updating the timing task of the gateway.
[0020] In this solution, the target state table is updated based on different parsing results, specifically including:
[0021] When the analysis result is general control, read the actual state and target state of the current device to determine whether the current switch limit mark position is the switch limit value.
[0022] If not, determine whether the air conditioner is turned off. If the air conditioner is turned off, update the switch target state to turn off control and end the process. Otherwise, update the switch target state to turn on the air conditioner, and then update the mode target state and wind speed target state.
[0023] If yes, determine whether the temperature limit mark position is the limited temperature value. If yes, determine whether the target temperature value exceeds the temperature limit interval. If yes, update the target temperature value to the temperature within the limit interval closest to the target temperature. Otherwise, update the temperature target value.
[0024] When the parsing result is limit control, read the actual state and target state of the current device, where:
[0025] If the switch restriction is to be updated, determine whether the switch restriction is to be cancelled, wherein if the switch restriction is to be cancelled, the switch restriction flag is set to zero, otherwise the switch restriction flag is set to one, and the switch target is updated to execute the subsequent process;
[0026] If the temperature limit is updated, determine whether the temperature limit is cancelled. If the temperature limit is cancelled, set the temperature limit flag to zero; otherwise, update the temperature limit interval together with the temperature limit flag position and end the current process.
[0027] In this solution, the two-second interval traverses and compares the general state content of the actual state table and the target state table, and achieves the target state by splicing control messages and putting them into the queue, specifically including:
[0028] Read the actual status and target status of the current device;
[0029] Determine whether the current general control flag is greater than zero, where:
[0030] If not, add one to the number of traversed devices;
[0031] If yes, determine whether the current actual switch state is consistent with the target switch state, if yes, execute the subsequent process, otherwise send the queue to add a command to switch to the target switch state, and add one to the number of traversed devices after decrementing the general control flag of the current device; and
[0032] If yes, determine whether the actual state of the current mode is consistent with the target mode, if they are consistent, execute the subsequent process, otherwise send the queue to add a command to switch to the target mode state, and add one to the number of traversed devices after decrementing the general control flag of the current device; and
[0033] If yes, determine whether the current actual wind speed state is consistent with the target wind speed, if they are consistent, execute the subsequent process, otherwise send the queue to add a command to switch to the target wind speed state, and add one to the number of traversed devices after subtracting one from the general control flag of the current device; and
[0034] If so, determine whether the current actual temperature state is consistent with the target temperature. If they are consistent, set the general control flag of the current device to zero and add one to the number of traversed devices. Otherwise, send the queue to add a command to set the target temperature, and subtract one from the general control flag of the current device and add one to the number of traversed devices.
[0035] In this solution, the two-second interval traverses and compares the restricted state contents in the actual state table and the target state table, and corrects the user's operation exceeding the limit by splicing control messages and putting them into the queue, specifically including:
[0036] Read the actual status and target status of the current device;
[0037] Determine whether the switch limit mark position is the set switch value, where:
[0038] If yes, determine whether the current actual switch state is consistent with the target state. If they are consistent, execute the subsequent process. If they are inconsistent, send a queue to add a command to switch to the target switch state.
[0039] If not, determine whether the temperature limit mark position is the set temperature value, where:
[0040] If so, determine whether the current actual temperature value is within the restricted range. If it is within the restricted range, execute the subsequent process. If not, send the queue to add a command to update the target temperature value to the temperature within the restricted range closest to the target temperature.
[0041] If not, the process ends.
[0042] The second aspect of the present invention further provides a split air conditioner terminal gateway control system based on a target state table, comprising a memory and a processor, wherein the memory comprises a split air conditioner terminal gateway control method program based on the target state table, and the split air conditioner terminal gateway control method program based on the target state table implements the following steps when executed by the processor:
[0043] Read the terminal status value of the air conditioner in real time, reduce the terminal status value to the agreed value and store it in the actual status table;
[0044] Reporting relevant data in the actual status table, wherein the reporting method includes periodic reporting and / or change reporting;
[0045] Receive the command sent by the platform, parse the message type according to the command to update the target status table and reply to the platform with the parsing result;
[0046] Traverse the scheduled tasks every minute, and if the time point is reached, update the target status table according to the scheduled tasks;
[0047] Traverse and compare the general status contents of the actual status table and the target status table at intervals of two seconds, and achieve the target status by splicing control messages and putting them into the queue;
[0048] Traverse and compare the restricted state contents in the actual state table and the target state table at intervals of two seconds, and correct the user's operation exceeding the limit by splicing control messages and putting them into the queue;
[0049] Traverse the control message sequence and use the preset serial communication protocol control message to send it to the corresponding communication channel.
[0050] In this solution, the real-time reading of the air conditioner terminal state value, reducing the terminal state value to the agreed value and storing it in the actual state table specifically includes:
[0051] Traverse the air conditioning terminal collection configuration table;
[0052] Read the air conditioner terminal status value in real time according to the configured communication channel, address and type, wherein the communication channel includes a MODBUS communication channel;
[0053] The terminal status values read are reduced to agreed values and stored in the actual status table. The meanings of the terminal reading values of air conditioners of different brands are inconsistent.
[0054] In this solution, the command sent by the receiving platform is parsed according to the command message type to update the target state table and reply to the platform parsing result, which specifically includes:
[0055] Monitor the communication channel between the platform and the gateway to receive commands sent by the platform;
[0056] Parse the message type according to the command, wherein the parsing results include general control, restriction control and timing control;
[0057] Based on different analysis results, the target status table is updated and the corresponding analysis results of the platform are replied. Among them, general control corresponds to updating the general control flag to 10, restriction control corresponds to updating the target status of related devices, and timing control corresponds to updating the timing task of the gateway.
[0058] In this solution, the target state table is updated based on different parsing results, specifically including:
[0059] When the analysis result is general control, read the actual state and target state of the current device to determine whether the current switch limit mark position is the switch limit value.
[0060] If not, determine whether the air conditioner is turned off. If the air conditioner is turned off, update the switch target state to turn off control and end the process. Otherwise, update the switch target state to turn on the air conditioner, and then update the mode target state and wind speed target state.
[0061] If yes, determine whether the temperature limit mark position is the limited temperature value. If yes, determine whether the target temperature value exceeds the temperature limit interval. If yes, update the target temperature value to the temperature within the limit interval closest to the target temperature. Otherwise, update the temperature target value.
[0062] When the parsing result is limit control, read the actual state and target state of the current device, where:
[0063] If the switch restriction is to be updated, determine whether the switch restriction is to be cancelled, wherein if the switch restriction is to be cancelled, the switch restriction flag is set to zero, otherwise the switch restriction flag is set to one, and the switch target is updated to execute the subsequent process;
[0064] If the temperature limit is updated, determine whether the temperature limit is cancelled. If the temperature limit is cancelled, set the temperature limit flag to zero; otherwise, update the temperature limit interval together with the temperature limit flag position and end the current process.
[0065] In this solution, the two-second interval traverses and compares the general state content of the actual state table and the target state table, and achieves the target state by splicing control messages and putting them into the queue, specifically including:
[0066] Read the actual status and target status of the current device;
[0067] Determine whether the current general control flag is greater than zero, where:
[0068] If not, add one to the number of traversed devices;
[0069] If yes, determine whether the current actual switch state is consistent with the target switch state, if yes, execute the subsequent process, otherwise send the queue to add a command to switch to the target switch state, and add one to the number of traversed devices after decrementing the general control flag of the current device; and
[0070] If yes, determine whether the actual state of the current mode is consistent with the target mode, if they are consistent, execute the subsequent process, otherwise send the queue to add a command to switch to the target mode state, and add one to the number of traversed devices after decrementing the general control flag of the current device; and
[0071] If yes, determine whether the current actual wind speed state is consistent with the target wind speed, if they are consistent, execute the subsequent process, otherwise send the queue to add a command to switch to the target wind speed state, and add one to the number of traversed devices after subtracting one from the general control flag of the current device; and
[0072] If so, determine whether the current actual temperature state is consistent with the target temperature. If they are consistent, set the general control flag of the current device to zero and add one to the number of traversed devices. Otherwise, send the queue to add a command to set the target temperature, and subtract one from the general control flag of the current device and add one to the number of traversed devices.
[0073] In this solution, the two-second interval traverses and compares the restricted state contents in the actual state table and the target state table, and corrects the user's operation exceeding the limit by splicing control messages and putting them into the queue, specifically including:
[0074] Read the actual status and target status of the current device;
[0075] Determine whether the switch limit mark position is the set switch value, where:
[0076] If yes, determine whether the current actual switch state is consistent with the target state. If they are consistent, execute the subsequent process. If they are inconsistent, send a queue to add a command to switch to the target switch state.
[0077] If not, determine whether the temperature limit mark position is the set temperature value, where:
[0078] If so, determine whether the current actual temperature value is within the restricted range. If it is within the restricted range, execute the subsequent process. If not, send the queue to add a command to update the target temperature value to the temperature within the restricted range closest to the target temperature.
[0079] If not, the process ends.
[0080] A third aspect of the present invention provides a split-type air-conditioning terminal control gateway based on a target state table, specifically including a computer-readable storage medium, wherein the computer-readable storage medium includes a split-type air-conditioning terminal gateway control method program based on a target state table of a machine, and when the split-type air-conditioning terminal gateway control method program based on a target state table is executed by a processor, the steps of a split-type air-conditioning terminal gateway control method based on a target state table as described in any one of the above items are implemented.
[0081] The present invention discloses a split-type air-conditioning terminal gateway control method and gateway based on a target state table, which meet customer needs that are not met by the prior art, solve the problem of refined management of air-conditioning in large public spaces such as shopping malls, schools, and factories, reduce the workload of relevant managers, and provide support for energy conservation and emission reduction of air-conditioning systems and cost reduction and efficiency improvement of enterprises and institutions. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] Figure 1 A schematic diagram showing the steps of a split air conditioner terminal gateway control method based on a target state table of the present invention is shown;
[0083] Figure 2 A schematic flow chart of a split air conditioner terminal gateway control method based on a target state table of the present invention is shown;
[0084] Figure 3 A schematic flow chart of a split air conditioner terminal gateway control method based on a target state table of the present invention is shown;
[0085] Figure 4 A schematic flow chart of a split air conditioner terminal gateway control method based on a target state table of the present invention is shown;
[0086] Figure 5 A schematic flow chart of a split air conditioner terminal gateway control method based on a target state table of the present invention is shown;
[0087] Figure 6 A schematic flow chart of a split air conditioner terminal gateway control method based on a target state table of the present invention is shown;
[0088] Figure 7 A schematic flow chart of a split air conditioner terminal gateway control method based on a target state table of the present invention is shown;
[0089] Figure 8 A block diagram of a split-type air-conditioning terminal gateway control system based on a target state table of the present invention is shown. DETAILED DESCRIPTION
[0090] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0091] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0092] In order to solve the problem of convenient management of air-conditioning terminals, the previously scattered air-conditioning units need to be centralized. Therefore, it is necessary to design an air-conditioning terminal control gateway to provide real-time acquisition, periodic upload, change upload of air-conditioning terminal status, command reception, processing and response, general control (adjustment of switches, modes, temperature, wind speed), limit control (switch limit, temperature limit), and timing control functions to meet the needs of air-conditioning management in public spaces such as shopping malls, schools, and industrial parks. Among them, the key point of this application is the maintenance of the actual status table and the target status table of the air-conditioning terminal. Real-time acquisition is responsible for reading the air-conditioning terminal register using the MODBUS protocol and reducing the read data to the agreed value (the meaning of the read values of air-conditioning terminals of different brands are inconsistent), and storing it in the actual status table; periodic reporting and change reporting are to report the relevant data of the actual status table; and command reception and processing, updating the target status table according to the different commands received, and finally general control and management control control the air-conditioning terminal according to the target status table and the actual status table.
[0093] Figure 1 A flow chart of a split-type air-conditioning terminal gateway control method based on a target state table of the present application is shown.
[0094] like Figure 1 As shown, the present application discloses a split air conditioner terminal gateway control method based on a target state table, comprising the following steps:
[0095] S102, reading the terminal state value of the air conditioner in real time, reducing the terminal state value to an agreed value and storing it in an actual state table;
[0096] S104, reporting relevant data in the actual status table, wherein the reporting method includes periodic reporting and / or change reporting;
[0097] S106, receiving a command sent by the platform, parsing the message type according to the command to update the target state table and replying the parsing result to the platform;
[0098] S108, traverse the scheduled tasks every minute, and if the time point is reached, update the target state table according to the scheduled tasks;
[0099] S110, traverse and compare the general state contents of the actual state table and the target state table at intervals of two seconds, and achieve the target state by splicing control messages and putting them into a queue;
[0100] S112, traversing and comparing the restricted state contents in the actual state table and the target state table at intervals of two seconds, and correcting the user's operation exceeding the limit by splicing control messages and putting them into a queue;
[0101] S114, traverse the control message sequence, and use the preset serial communication protocol control message to send it to the corresponding communication channel.
[0102] It should be noted that, in this embodiment, when the gateway is actually controlled, it specifically includes real-time collection of the air-conditioning terminal status, specifically, real-time reading of the air-conditioning terminal status value, reducing the terminal status value to an agreed value and storing it in the actual status table, and periodic reporting and change reporting of the air-conditioning terminal status, specifically, reporting the relevant data in the actual status table, wherein the reporting method includes periodic reporting, specifically reporting the latest actual status table data at intervals of 5 minutes, and / or change reporting, that is, reporting the current changed data if a value change is found, and general control of the air-conditioning terminal status and management control of the air-conditioning terminal status, specifically, based on the actual status table and the target status table, seven threads are used to complete the required functions, including: real-time collection and change reporting thread, periodic reporting thread, and command execution response thread, specifically, the receiving platform sends command, parses the message type according to the command to update the target state table and replies to the platform with the parsing result; and a scheduled task execution thread, specifically, traverses the scheduled tasks every minute, and if the time point is reached, updates the target state table according to the scheduled tasks; and a general command message maintenance thread, specifically, traverses and compares the general state content in the actual state table and the target state table at intervals of two seconds, and reaches the target state by splicing control messages and putting them in a queue; and a restriction command message maintenance thread, specifically, traverses and compares the restriction state content in the actual state table and the target state table at intervals of two seconds, and corrects the user's operation that exceeds the limit by splicing control messages and putting them in a queue; and a MODBUS control message sending thread, specifically, traverses the control message sequence, and uses a preset serial communication protocol control message to send it to the corresponding communication channel.
[0103] According to an embodiment of the present invention, the real-time reading of the air conditioner terminal state value, reducing the terminal state value to an agreed value and storing it in the actual state table specifically includes:
[0104] Traverse the air conditioning terminal collection configuration table;
[0105] Read the air conditioner terminal status value in real time according to the configured communication channel, address and type, wherein the communication channel includes a MODBUS communication channel;
[0106] The terminal status values read are reduced to agreed values and stored in the actual status table. The meanings of the terminal reading values of air conditioners of different brands are inconsistent.
[0107] It should be noted that, in this embodiment, the collection configuration table of the air-conditioning terminal is traversed, and the air-conditioning terminal status value is read according to the configured communication channel (MODBUS communication channel, where MODBUS is a serial communication protocol), address, type, etc., and the read value is reduced to the agreed value. The reason for the reduction is that the meaning of the read values of air-conditioning terminals of different brands are inconsistent, and they are stored in the actual status table.
[0108] According to an embodiment of the present invention, the receiving platform sends a command, parses the message type according to the command to update the target state table and replies to the platform parsing result, specifically including:
[0109] Monitor the communication channel between the platform and the gateway to receive commands sent by the platform;
[0110] Parse the message type according to the command, wherein the parsing results include general control, restriction control and timing control;
[0111] Based on different analysis results, the target status table is updated and the corresponding analysis results of the platform are replied. Among them, general control corresponds to updating the general control flag to 10, restriction control corresponds to updating the target status of related devices, and timing control corresponds to updating the timing task of the gateway.
[0112] It should be noted that, in this embodiment, Figure 2 As shown, the gateway receives the command sent by the platform, updates the target status table according to the command details, and replies to the platform with the parsing result. The specific process is as follows: monitor the communication channel between the platform and the gateway to receive the command sent by the platform, and parse the message type according to the command after receiving the command message, wherein the parsing result includes general control, restriction control and timing control, wherein the target status table is updated based on different parsing results and the corresponding parsing result is replied to the platform. If it corresponds to general control, the target status of the relevant equipment is updated, and the general control flag is updated to "10"; if it is restriction control, the target status of the relevant equipment is updated accordingly; if it is timing control, the timing task of the gateway is updated, and finally a reply message is sent to the platform.
[0113] According to an embodiment of the present invention, updating the target state table based on different parsing results specifically includes:
[0114] When the analysis result is general control, read the actual state and target state of the current device to determine whether the current switch limit mark position is the switch limit value.
[0115] If not, determine whether the air conditioner is turned off. If the air conditioner is turned off, update the switch target state to turn off control and end the process. Otherwise, update the switch target state to turn on the air conditioner, and then update the mode target state and wind speed target state.
[0116] If yes, determine whether the temperature limit mark position is the limited temperature value. If yes, determine whether the target temperature value exceeds the temperature limit interval. If yes, update the target temperature value to the temperature within the limit interval closest to the target temperature. Otherwise, update the temperature target value.
[0117] When the parsing result is limit control, read the actual state and target state of the current device, where:
[0118] If the switch restriction is to be updated, determine whether the switch restriction is to be cancelled, wherein if the switch restriction is to be cancelled, the switch restriction flag is set to zero, otherwise the switch restriction flag is set to one, and the switch target is updated to execute the subsequent process;
[0119] If the temperature limit is updated, determine whether the temperature limit is cancelled. If the temperature limit is cancelled, set the temperature limit flag to zero; otherwise, update the temperature limit interval together with the temperature limit flag position and end the current process.
[0120] It should be noted that, in this embodiment, Figure 2 The above embodiments illustrate that in general control, it is necessary to update the target state of the relevant device and update the general control flag, specifically, Figure 3 As shown, when the analysis result is general control, the actual state and target state of the current device are read to determine whether the current switch limit mark position is the switch limit value, if not, determine whether the air conditioner is turned off, if so, update the switch target state to turn off the control and end the process, otherwise update the switch target state to turn on the air conditioner, and then update the mode target state and wind speed target state, if so, determine whether the temperature limit mark position is the limited temperature value, if so, determine whether the target temperature value exceeds the temperature limit interval, if it exceeds the limit, update the target temperature value to the temperature within the limit interval closest to the target temperature, otherwise update the temperature target value.
[0121] Furthermore, combined with Figure 2 The above embodiments illustrate that when limiting control, it is necessary to update the target state of the relevant device, specifically, Figure 4 As shown, the actual state and target state of the current device are read, wherein, if the switch limit is updated, it is determined whether the switch limit is to be cancelled, wherein if the switch limit is to be cancelled, the switch limit flag position is set to zero, otherwise the switch limit flag position is set to one, and the switch target is updated to execute subsequent processes; if the temperature limit is updated, it is determined whether the temperature limit is to be cancelled, wherein if the temperature limit is to be cancelled, the temperature limit flag position is set to zero, otherwise, the temperature limit flag position is set to one and the temperature limit interval is updated, and the current process ends.
[0122] Further, it should be noted that the above embodiment describes the scheduled task execution thread, wherein, Figure 5 As shown, specifically, the scheduled tasks are traversed every minute, and if the time point is reached, the target state table is updated according to the scheduled tasks.
[0123] According to an embodiment of the present invention, the two-second interval traversal and comparison of the general state content in the actual state table and the target state table, and the target state is achieved by splicing control messages and putting them into a queue, specifically including:
[0124] Read the actual status and target status of the current device;
[0125] Determine whether the current general control flag is greater than zero, where:
[0126] If not, add one to the number of traversed devices;
[0127] If yes, determine whether the current actual switch state is consistent with the target switch state, if yes, execute the subsequent process, otherwise send the queue to add a command to switch to the target switch state, and add one to the number of traversed devices after decrementing the general control flag of the current device; and
[0128] If yes, determine whether the actual state of the current mode is consistent with the target mode, if they are consistent, execute the subsequent process, otherwise send the queue to add a command to switch to the target mode state, and add one to the number of traversed devices after decrementing the general control flag of the current device; and
[0129] If yes, determine whether the current actual wind speed state is consistent with the target wind speed, if they are consistent, execute the subsequent process, otherwise send the queue to add a command to switch to the target wind speed state, and add one to the number of traversed devices after subtracting one from the general control flag of the current device; and
[0130] If so, determine whether the current actual temperature state is consistent with the target temperature. If they are consistent, set the general control flag of the current device to zero and add one to the number of traversed devices. Otherwise, send the queue to add a command to set the target temperature, and subtract one from the general control flag of the current device and add one to the number of traversed devices.
[0131] It should be noted that in this embodiment, the general state parts in the actual state table and the target state table are traversed and compared at intervals of "2" seconds, and the target state is achieved by splicing control messages and putting them into the queue. The specific process includes the following steps:
[0132] Step (1), reading the actual state and target state of the current device;
[0133] Step (2), determine whether the current general control flag is greater than 0, if it is less than or equal to 0, jump to step (8), otherwise continue to step (3);
[0134] Step (3), determine whether the current actual switch state is consistent with the target state, if they are consistent, skip, otherwise add a command to switch to the target switch state to the command sending queue and jump to step (8);
[0135] Step (4), determine whether the actual state of the current mode is consistent with the target state, if they are consistent, skip, otherwise add a command to switch to the target switch state to the command sending queue and jump to step (8);
[0136] Step (5), determine whether the current wind speed actual state is consistent with the target state, if they are consistent, skip, otherwise add a command to switch to the target switch state to the command sending queue and jump to step (8);
[0137] Step (6), determine whether the current temperature actual state is consistent with the target temperature, if they are consistent, skip, otherwise add a command to set the target temperature to the command sending queue and jump to step (8);
[0138] Step (7), set the general control flag of the current device to 0 and jump to step (9);
[0139] Step (8), the general control flag of the current device is reduced by 1 and the process goes to step (9);
[0140] Step (9): the current processing process of the device ends.
[0141] According to an embodiment of the present invention, the two-second interval traversal and comparison of the restricted state contents in the actual state table and the target state table, and correction of the user's operation exceeding the restriction by splicing control messages and placing them in a queue specifically include:
[0142] Read the actual status and target status of the current device;
[0143] Determine whether the switch limit mark position is the set switch value, where:
[0144] If yes, determine whether the current actual switch state is consistent with the target state. If they are consistent, execute the subsequent process. If they are inconsistent, send a queue to add a command to switch to the target switch state.
[0145] If not, determine whether the temperature limit mark position is the set temperature value, where:
[0146] If so, determine whether the current actual temperature value is within the restricted range. If it is within the restricted range, execute the subsequent process. If not, send the queue to add a command to update the target temperature value to the temperature within the restricted range closest to the target temperature.
[0147] If not, the process ends.
[0148] It should be noted that, in this embodiment, the restricted state parts in the actual state table and the target state table are traversed and compared at intervals of 2 seconds, and the user's operation exceeding the limit is corrected by splicing control messages and putting them into the queue. The specific process includes the following steps:
[0149] Step (1), reading the actual state and target state of the current device;
[0150] Step (2), determine whether the switch limit flag position is 1, if it is 1, execute the next step, otherwise jump to step (4);
[0151] Step (3), determine whether the current actual switch state is consistent with the target state, if they are consistent, execute the next step, otherwise add a command to switch to the target switch state to the command sending queue;
[0152] Step (4), determine whether the temperature limit mark position is 1, if it is 1, execute the next step, otherwise jump to step (6);
[0153] Step (5), determining whether the current actual temperature value is within the restricted range, if so, proceeding to the next step, otherwise adding a command to the command sending queue to update the target temperature value to the temperature within the restricted range closest to the target temperature;
[0154] Step (6): the current processing process of the device ends.
[0155] Figure 8 A block diagram of a split-type air-conditioning terminal gateway control system based on a target state table of the present invention is shown.
[0156] like Figure 8 As shown, the present invention discloses a split air conditioner terminal gateway control system based on a target state table, including a memory and a processor, wherein the memory includes a split air conditioner terminal gateway control method program based on the target state table, and the split air conditioner terminal gateway control method program based on the target state table implements the following steps when executed by the processor:
[0157] Read the terminal status value of the air conditioner in real time, reduce the terminal status value to the agreed value and store it in the actual status table;
[0158] Reporting relevant data in the actual status table, wherein the reporting method includes periodic reporting and / or change reporting;
[0159] Receive the command sent by the platform, parse the message type according to the command to update the target status table and reply to the platform with the parsing result;
[0160] Traverse the scheduled tasks every minute, and if the time point is reached, update the target status table according to the scheduled tasks;
[0161] Traverse and compare the general status contents of the actual status table and the target status table at intervals of two seconds, and achieve the target status by splicing control messages and putting them into the queue;
[0162] Traverse and compare the restricted state contents in the actual state table and the target state table at intervals of two seconds, and correct the user's operation exceeding the limit by splicing control messages and putting them into the queue;
[0163] Traverse the control message sequence and use the preset serial communication protocol control message to send it to the corresponding communication channel.
[0164] It should be noted that since the specific implementation method of this embodiment corresponds to the aforementioned method embodiment, the same details will not be repeated here. Those skilled in the art should also understand that the division corresponding to the various execution steps in the embodiment is only a division of logical functions. In actual implementation, it can be fully or partially integrated into one or more physical entities, and these execution steps can all be implemented in the form of software calling through processing elements, or all in the form of hardware, and some execution steps can be implemented in the form of processing elements calling software, and some execution steps can be implemented in the form of hardware.
[0165] A third aspect of the present invention provides a split-type air-conditioning terminal control gateway based on a target state table, specifically including a computer-readable storage medium, wherein the computer-readable storage medium includes a split-type air-conditioning terminal gateway control method program based on a target state table. When the split-type air-conditioning terminal gateway control method program based on a target state table is executed by a processor, the steps of a split-type air-conditioning terminal gateway control method based on a target state table as described in any one of the above items are implemented.
[0166] The present invention discloses a split-type air-conditioning terminal gateway control method and gateway based on a target state table, which meet customer needs that are not met by the prior art, solve the problem of refined management of air-conditioning in large public spaces such as shopping malls, schools, and factories, reduce the workload of relevant managers, and provide support for energy conservation and emission reduction of air-conditioning systems and cost reduction and efficiency improvement of enterprises and institutions.
[0167] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0168] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0169] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0170] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks or optical disks, and other media that can store program codes.
[0171] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
Claims
1. A split air conditioner terminal gateway control method based on a target state table, characterized in that: The following steps are involved: Read the terminal status value of the air conditioner in real time, reduce the terminal status value to the agreed value and store it in the actual status table; Reporting relevant data in the actual status table, wherein the reporting method includes periodic reporting and / or change reporting; Receive the command sent by the platform, parse the message type according to the command to update the target status table and reply to the platform with the parsing result; Traverse the scheduled tasks every minute, and if the time point is reached, update the target status table according to the scheduled tasks; Traverse and compare the general status contents of the actual status table and the target status table at intervals of two seconds, and achieve the target status by splicing control messages and putting them into the queue; Traverse and compare the restricted state contents in the actual state table and the target state table at intervals of two seconds, and correct the user's operation exceeding the limit by splicing control messages and putting them into the queue; Traverse the control message sequence and use the preset serial communication protocol control message to send it to the corresponding communication channel.
2. A split air conditioner terminal gateway control method based on a target state table according to claim 1, characterized in that: The real-time reading of the air conditioner terminal state value, reducing the terminal state value to an agreed value and storing it in the actual state table specifically includes: Traverse the air conditioning terminal collection configuration table; Read the air conditioner terminal status value in real time according to the configured communication channel, address and type, wherein the communication channel includes a MODBUS communication channel; The terminal status values read are reduced to agreed values and stored in the actual status table. The meanings of the terminal reading values of air conditioners of different brands are inconsistent.
3. A split air conditioner terminal gateway control method based on a target state table according to claim 2, characterized in that: The receiving platform sends a command, parses the message type according to the command to update the target state table and replies to the platform with the parsing result, specifically including: Monitor the communication channel between the platform and the gateway to receive commands sent by the platform; Parse the message type according to the command, wherein the parsing results include general control, restriction control and timing control; Based on different analysis results, the target status table is updated and the corresponding analysis results of the platform are replied. Among them, general control corresponds to updating the general control flag to 10, restriction control corresponds to updating the target status of related devices, and timing control corresponds to updating the timing task of the gateway.
4. A split air conditioner terminal gateway control method based on a target state table according to claim 3, characterized in that: The updating of the target state table based on different parsing results specifically includes: When the analysis result is general control, read the actual state and target state of the current device to determine whether the current switch limit mark position is the switch limit value. If not, determine whether the air conditioner is turned off. If the air conditioner is turned off, update the switch target state to turn off control and end the process. Otherwise, update the switch target state to turn on the air conditioner, and then update the mode target state and wind speed target state. If yes, determine whether the temperature limit mark position is the limited temperature value. If yes, determine whether the target temperature value exceeds the temperature limit interval. If yes, update the target temperature value to the temperature within the limit interval closest to the target temperature. Otherwise, update the temperature target value. When the parsing result is limit control, read the actual state and target state of the current device, where: If the switch restriction is to be updated, determine whether the switch restriction is to be cancelled, wherein if the switch restriction is to be cancelled, the switch restriction flag is set to zero, otherwise the switch restriction flag is set to one, and the switch target is updated to execute the subsequent process; If the temperature limit is updated, determine whether the temperature limit is cancelled. If the temperature limit is cancelled, set the temperature limit flag to zero; otherwise, update the temperature limit interval together with the temperature limit flag position and end the current process.
5. The split air conditioner terminal gateway control method based on the target state table according to claim 1 is characterized in that: The two-second interval traverses and compares the general state content of the actual state table and the target state table, and achieves the target state by splicing control messages and putting them into the queue, specifically including: Read the actual status and target status of the current device; Determine whether the current general control flag is greater than zero, where: If not, add one to the number of traversed devices; If yes, determine whether the current actual switch state is consistent with the target switch state, if yes, execute the subsequent process, otherwise send the queue to add a command to switch to the target switch state, and add one to the number of traversed devices after decrementing the general control flag of the current device; and If yes, determine whether the actual state of the current mode is consistent with the target mode, if they are consistent, execute the subsequent process, otherwise send the queue to add a command to switch to the target mode state, and add one to the number of traversed devices after decrementing the general control flag of the current device; and If yes, determine whether the current actual wind speed state is consistent with the target wind speed, if they are consistent, execute the subsequent process, otherwise send the queue to add a command to switch to the target wind speed state, and add one to the number of traversed devices after subtracting one from the general control flag of the current device; and If so, determine whether the current actual temperature state is consistent with the target temperature. If they are consistent, set the general control flag of the current device to zero and add one to the number of traversed devices. Otherwise, send the queue to add a command to set the target temperature, and subtract one from the general control flag of the current device and add one to the number of traversed devices.
6. A split air conditioner terminal gateway control method based on a target state table according to claim 1, characterized in that: The two-second interval traversal and comparison of the restricted state contents in the actual state table and the target state table, and correction of the user's operation exceeding the restriction by splicing control messages and putting them into a queue, specifically includes: Read the actual status and target status of the current device; Determine whether the switch limit mark position is the set switch value, where: If yes, then determine whether the current actual switch state is consistent with the target state. If yes, execute the subsequent process. If no, send the queue to add a command to switch to the target switch state. If no, then determine whether the temperature limit mark position is the set temperature value. If so, determine whether the current actual temperature value is within the restricted range. If it is within the restricted range, execute the subsequent process. If not, send the queue to add a command to update the target temperature value to the temperature within the restricted range closest to the target temperature. If not, the process ends.
7. A split air conditioner terminal gateway control system based on a target state table, characterized in that: The invention comprises a memory and a processor, wherein the memory comprises a split air conditioner terminal gateway control method program based on a target state table, and the split air conditioner terminal gateway control method program based on the target state table is executed by the processor to implement the following steps: Read the terminal status value of the air conditioner in real time, reduce the terminal status value to the agreed value and store it in the actual status table; Reporting relevant data in the actual status table, wherein the reporting method includes periodic reporting and / or change reporting; Receive the command sent by the platform, parse the message type according to the command to update the target status table and reply to the platform with the parsing result; Traverse the scheduled tasks every minute, and if the time point is reached, update the target status table according to the scheduled tasks; Traverse and compare the general status contents of the actual status table and the target status table at intervals of two seconds, and achieve the target status by splicing control messages and putting them into the queue; Traverse and compare the restricted state contents in the actual state table and the target state table at intervals of two seconds, and correct the user's operation exceeding the limit by splicing control messages and putting them into the queue; Traverse the control message sequence and use the preset serial communication protocol control message to send it to the corresponding communication channel.
8. A split-type air-conditioning terminal gateway control system based on a target state table according to claim 7, characterized in that: The real-time reading of the air conditioner terminal state value, reducing the terminal state value to an agreed value and storing it in the actual state table specifically includes: Traverse the air conditioning terminal collection configuration table; Read the air conditioner terminal status value in real time according to the configured communication channel, address and type, wherein the communication channel includes a MODBUS communication channel; The terminal status values read are reduced to agreed values and stored in the actual status table. The meanings of the terminal reading values of air conditioners of different brands are inconsistent.
9. A split-type air-conditioning terminal gateway control system based on a target state table according to claim 8, characterized in that: The receiving platform sends a command, parses the message type according to the command to update the target state table and replies to the platform with the parsing result, specifically including: Monitor the communication channel between the platform and the gateway to receive commands sent by the platform; Parse the message type according to the command, wherein the parsing results include general control, restriction control and timing control; Based on different analysis results, the target status table is updated and the corresponding analysis results of the platform are replied. Among them, general control corresponds to updating the general control flag to 10, restriction control corresponds to updating the target status of related devices, and timing control corresponds to updating the timing task of the gateway.
10. A split air conditioner terminal control gateway based on a target state table, characterized in that: Specifically, it includes a computer-readable storage medium, which includes a split-type air-conditioning terminal gateway control method program based on a target state table. When the split-type air-conditioning terminal gateway control method program based on a target state table is executed by a processor, the steps of a split-type air-conditioning terminal gateway control method based on a target state table as described in any one of claims 1 to 6 are implemented.