CN-121994304-A - Data acquisition method based on TCP communication and related equipment
Abstract
A data acquisition method and related equipment based on TCP communication relate to the field of intelligent transmission and acquisition of sensor data. And identifying sunny areas through solar azimuth angle information and future weather prediction, and endowing the equipment in the areas with dynamic illumination zone labels and environment mutation risk indexes. Differential scheduling is performed based on real-time lighting impact and future weather risk. The problem of low-value repeated polling of non-critical areas caused by fixed polling periods in the related technology is effectively solved, and the environment monitoring efficiency of the whole operation resources is improved.
Inventors
- Kang Shuitu
Assignees
- 漳州锐腾电器有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260224
Claims (10)
- 1. A data acquisition method based on TCP communication, applied to a synchronization device, the method comprising: When a preset scheduling strategy updating triggering condition is met, determining a sunward elevation from a plurality of preset building elevations of a target building based on solar azimuth information at the current moment, and obtaining a candidate monitoring area matched with the sunward elevation and equipment to be acquired associated with the candidate monitoring area; Determining an affiliated dynamic illumination partition label for the equipment to be acquired based on the sunny facade, wherein the dynamic illumination partition label is an illumination state of the current position of the equipment to be acquired; Calculating the change rate between adjacent data points of a predicted weather parameter sequence based on the predicted weather parameter sequence in a future preset time window associated with the target building, and generating an environment mutation risk index; determining a minimum connection interval threshold of the equipment to be acquired based on the environmental mutation risk index and the dynamic illumination partition label; According to the last connection time record in the connection record data associated with the equipment to be acquired, under the condition that the time interval between the current system time and the last connection time record is not smaller than the minimum connection interval threshold value, initiating a connection request to the equipment to be acquired through a TCP protocol, and acquiring a corresponding connection failure frequency accumulated value; Under the condition that the connection request is determined to be successful, obtaining target temperature and target humidity based on a received response message returned by the equipment to be acquired; Setting the data state identifier of the equipment to be acquired as an abnormal state under the condition that the target temperature exceeds a preset normal temperature threshold interval and/or the target humidity exceeds a preset normal humidity threshold interval; And forming a structured data record of the equipment to be acquired based on the response message and the data state identifier, and writing the structured data record into a local log file and a preset database according to a preset text format.
- 2. The method according to claim 1, wherein the step of determining a sunny facade from a plurality of preset building facades of a target building based on solar azimuth information at the current moment to obtain a candidate monitoring area matched with the sunny facade and equipment to be acquired associated with the candidate monitoring area specifically comprises the following steps: Determining a building elevation facing the current sun position from a plurality of preset building elevations of the target building as a candidate sunny elevation based on the sun azimuth information; Calculating the effective shielding proportion of the sun-shading device to the candidate sun-shading vertical surface based on the current working state parameters of the sun-shading device corresponding to the candidate sun-shading vertical surface; Determining the candidate sunny facing elevation as the sunny facing elevation under the condition that the effective shielding proportion is lower than a preset shielding threshold value; And determining a monitoring area with attribution elevation information matched with the sunny elevation from a preset building partition information base as the candidate monitoring area, and taking all equipment to be acquired in the candidate monitoring area as the equipment to be acquired.
- 3. The method of claim 1, wherein prior to the step of determining a sunny facade from a plurality of preset building facades of a target building based on the current time of day solar azimuth information, the method further comprises: determining the temperature change sensitivity of a plurality of preset building facades of the target building under the current season and time period according to the historical monitoring data, and generating a facade thermal response base line; determining an energy consumption component related to a heating ventilation air conditioning system based on real-time overall energy consumption data of the target building; and comparing the energy consumption component with the elevation thermodynamic response baseline, and determining that a preset building elevation with the heat load contribution degree exceeding a preset contribution threshold in the current energy consumption mode is a high-priority monitoring elevation.
- 4. A method according to claim 3, wherein the step of determining the sensitivity of the temperature variation of a plurality of preset building facades of the target building under the current season and period of time based on historical monitoring data, and generating a facade thermal response baseline, comprises: acquiring historical temperature monitoring sequences associated with the plurality of preset building facades, acquiring a temperature change rate sequence based on the historical temperature monitoring sequences after the external environment parameter sequences are in the same historical time period, and acquiring an irradiation change rate sequence based on the external environment parameter sequences, wherein the external environment parameter sequences at least comprise solar irradiation intensity and outdoor environment temperature; through carrying out cross-correlation analysis on the temperature change rate sequence and the irradiation change rate sequence, determining the thermodynamic sensitivity coefficients of all preset building facades under preset seasons and preset time period classification; and generating the facade thermal response base line based on the temperature change sensitivity of a plurality of preset building facades in the current season and time period.
- 5. A method according to claim 3, wherein after the step of comparing the energy consumption component with the facade thermal response baseline and determining that a preset building facade having a thermal load contribution exceeding a preset contribution threshold in the current energy consumption mode is a high priority monitoring facade, the method further comprises: Generating a historical attention index based on the accumulated selected times of the high-priority monitoring elevation in a preset historical time window; And sequencing the devices of different high-priority monitoring elevations based on the historical attention index to determine a data acquisition sequence.
- 6. The method according to claim 1, wherein the step of determining a minimum connection interval threshold for the device to be collected based on the environmental mutation risk index and the dynamic illumination partition label, in particular comprises: obtaining basic connection interval duration from a preset basic scheduling matrix according to the environmental mutation risk index and the dynamic illumination partition label; performing spectrum analysis on a historical temperature data sequence in a past preset time window from the historical structured data record of the equipment to be acquired, and determining that the energy exceeds a preset energy threshold value as unsteady fluctuation frequency based on energy distribution on different frequency components; the minimum connection interval threshold is determined based on the unsteady-state fluctuation frequency.
- 7. The method according to claim 1, wherein after the step of initiating a connection request to the device to be collected via a TCP protocol and obtaining a corresponding cumulative value of the number of connection failures, the method further comprises: under the condition that the request of the connection request fails, the connection failure frequency accumulated value is added with one and then is compared with a preset maximum reconnection frequency threshold; If the updated accumulated value is smaller than the maximum reconnection times threshold, re-executing the step of initiating a connection request to the equipment to be acquired through the TCP after delaying a preset reconnection waiting time, and acquiring a corresponding accumulated value of the connection failure times; And if the updated accumulated value is determined to be greater than or equal to the maximum reconnection time threshold, marking the equipment to be acquired as a communication offline state and generating a connection abnormal log.
- 8. A synchronization device comprising one or more processors and a memory coupled to the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors invoke to cause the synchronization device to perform the method of any of claims 1-7.
- 9. A computer program product comprising instructions which, when run on a synchronization device, cause the synchronization device to perform the method of any of claims 1-7.
- 10. A computer readable storage medium comprising instructions which, when run on a synchronization device, cause the synchronization device to perform the method of any of claims 1-7.
Description
Data acquisition method based on TCP communication and related equipment Technical Field The application relates to the field of intelligent transmission and collection of sensor data, in particular to a data collection method based on TCP communication and related equipment. Background In the fields of building and industrial automation and environmental monitoring, real-time acquisition and analysis of temperature and humidity data are the basis for realizing intelligent environmental control and energy-saving management. In the related technology, the system densely distributes temperature and humidity sensors in each key area in the building, and gathers the acquired data to a central controller in real time through a wired or wireless network. The central controller compares the real-time temperature readings from the occupied zones with preset comfort target values and executes zone control logic to dynamically adjust the cool/heat output of the air conditioning end units (e.g., fan coils or variable air boxes) in each zone in order to maintain the temperature of each zone within a set range. However, the temperature and humidity of different time periods are affected differently by the sun, and in order to capture the rapid temperature rise of the region subject to direct sunlight, the related art generally sets a relatively short global polling period. Low value repetitive polling may occur in areas not affected by solar radiation. And redundancy and waste of overall operation resources of the system are caused. Disclosure of Invention The application provides a data acquisition method based on TCP communication and related equipment, which are used for improving the environment monitoring efficiency of overall operation resources. In a first aspect, the application provides a data acquisition method based on TCP communication, which is applied to synchronous equipment, and comprises the steps of determining a sunward elevation from a plurality of preset building elevations of a target building based on solar azimuth information at the current moment when a preset scheduling strategy updating triggering condition is met, obtaining a candidate monitoring area matched with the sunward elevation and equipment to be acquired and associated with the candidate monitoring area, determining an affiliated dynamic illumination partition label for the equipment to be acquired based on the sunward elevation, wherein the dynamic illumination partition label is an illumination state of the current position of the equipment to be acquired, calculating a change rate between adjacent data points of the predicted weather parameter sequence based on a predicted weather parameter sequence in a future preset time window associated with the target building, generating an environment mutation risk index, determining a minimum connection interval threshold of the equipment to be acquired based on the environment mutation risk index and the dynamic illumination partition label, initiating a request to be acquired through the TCP when the last connection record time interval of connection record data associated with the equipment to be acquired is not smaller than the minimum connection interval threshold is determined, and obtaining a response time of the equipment to be acquired to the TCP request under the condition that the temperature exceeds a preset connection threshold, and the temperature exceeds a normal response time, and the humidity of the equipment to be acquired is required to be acquired under the condition that the temperature exceeds a normal time, and the temperature of the target is required to be successfully acquired under the conditions, and forming a structured data record of the equipment to be acquired based on the response message and the data state identification, and writing the structured data record into a local log file and a preset database according to a preset text format. By adopting the technical scheme, the sunny areas are identified through solar azimuth information and future weather prediction, and dynamic illumination partition labels and environment mutation risk indexes are given to the devices in the areas. Predictive differential scheduling is performed based on real-time lighting impact and future weather risk. The problem of low-value repeated polling of non-critical areas caused by fixed polling periods in the related technology is effectively solved, and the environment monitoring efficiency of the whole operation resources is improved. In combination with some embodiments of the first aspect, in some embodiments, the step of determining a sunward side from a plurality of preset building sides of a target building based on solar azimuth information at the current moment to obtain a candidate monitoring area matched with the sunward side and equipment to be collected associated with the candidate monitoring area specifically includes determining a building side facing the curr