A small weather station operation simulation method and system based on digital twinning

CN122839636APending Publication Date: 2026-09-29ZHUHAI JIDA HUAPU INSTR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610989576.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-03
Publication Date
2026-09-29

AI Technical Summary

Technical Problem

[0003]传统小型气象站运行仿真以采集数据写入状态数据库为主,控制程序按照预设连接关系和运行参数生成结果,实际运作中数据产生时刻与服务器接收时刻混同处理,供电波动,通信重传,采样间隔偏移常被压缩为静态状态,异常数据沿时间序列传播时缺少相位定位,滞留样本与停采片段容易被并入正常过程,导致仿真步长与真实运行节奏脱节,运行故障边界不清,状态追溯准确性不足

Benefits of technology

本发明中,通过围绕采样产生时刻与服务器接收时刻建立到达间隔,并结合供电阈值,采样间隔范围,历史到达分位值和重传次数阈值形成统一判定尺度,将供电中断,通信滞留和有效采样纳入同一运行状态链条,按照采样周期位置和传感器类别生成运行相位刻度序列,再把采样数值,滞留位置和中断标记映射至数字孪生状态表,使时间顺序,设备状态和数据可信度同步表达,读取阶段按供电状态,通信状态和传感器状态切换正常,滞留或停采步长,校正静态数据库造成的节奏偏差,清晰还原故障边界,提升运行追溯与仿真可信度。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122839636A_ABST
    Figure CN122839636A_ABST
Patent Text Reader

Abstract

This invention relates to the field of artificial intelligence technology, specifically to a method and system for simulating the operation of a small weather station based on digital twins. The method includes the following steps: acquiring sensor sampling values, sampling time, reception time, power supply voltage, sampling interval, and retransmission count; determining the power supply threshold, sampling interval range, maximum arrival interval, and retransmission threshold; determining power supply interruption, communication delay, or valid sampling; generating an operational phase scale sequence; writing it into a digital twin state table; and outputting the simulation step size according to the state. In this invention, by uniformly mapping sampling time, arrival time, power supply, and communication constraints to phase states, delayed sampling, stopped sampling segments, and normal sampling can be distinguished within the same time sequence, maintaining the correspondence between data reliability and simulation step size, reducing rhythm deviations caused by static state libraries, and improving fault boundary identification, state traceability, result continuity, and operational simulation reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of artificial intelligence technology, and in particular to a method and system for simulating the operation of a small weather station based on digital twins. Background Technology

[0002] The field of artificial intelligence technology involves the integration of information systems in the production sector, comprising control equipment, sensing equipment, computer systems, and operational models. Among these, the traditional digital twin-based simulation method for small weather stations involves computer equipment collecting operational data from temperature sensors, humidity sensors, wind speed sensors, rainfall sensors, and power supply units within the weather station. This data is then written into a state database on a simulation server, and a control program generates simulation results of the weather station's operation based on preset equipment connection relationships, operational state parameters, and environmental input data.

[0003] Traditional simulations of small weather stations primarily involve writing collected data into a state database. The control program generates results according to preset connection relationships and operating parameters. In actual operation, the data generation time and the server reception time are mixed up. Power supply fluctuations, communication retransmissions, and sampling interval offsets are often compressed into static states. Abnormal data lacks phase positioning when propagating along the time series. Stagnant samples and stopped sampling segments are easily incorporated into the normal process, resulting in a disconnect between the simulation step size and the actual operating rhythm, unclear operational fault boundaries, and insufficient accuracy in state tracing. Summary of the Invention

[0004] To achieve the above objectives, the present invention adopts the following technical solution: a method for simulating the operation of a small weather station based on digital twins, comprising the following steps: Acquire the sampled values, sampling time, server receiving time, power supply voltage, sampling interval, and communication retransmission count of temperature, humidity, wind speed, and rainfall sensors; The power supply threshold is determined based on the rated operating voltage; the standard sampling interval range is determined based on the statistical interval between adjacent sampling times; the maximum arrival interval is determined based on the arrival interval quantile; and the retransmission threshold is determined based on the upper limit of the number of times the communication module can send data. The arrival interval is determined based on the sampling time and the server receiving time. The power supply voltage, arrival interval, sampling interval, and communication retransmission count are compared with the minimum power supply threshold, maximum arrival interval, standard sampling interval range, and maximum retransmission count threshold, respectively, to determine the power interruption state, communication stagnation state, and sampling state. Based on the sampling time sequence, and taking into account the sampling period location, sensor type, operating status classification result, power supply voltage, arrival interval, and sampling value, an operating phase scale sequence is generated. Based on the running phase scale sequence, the sampled values, the lingering sampling positions, and the power interruption markers are written into the digital twin state table to generate a phase arrangement state table; The phase arrangement status table is read according to the sampling period position. The simulation step size for normal operation, communication stagnation and sampling stop is determined based on the power supply status, communication status and sensor operation status, and the simulation results are output.

[0005] As a further aspect of the present invention, the steps of obtaining the sampled values ​​of the temperature sensor, humidity sensor, wind speed sensor, and rainfall sensor, the sampling time, the server receiving time, the power supply voltage value, the sampling interval value, and the communication retransmission count value include: The sensor category identifier and sampling channel identifier are read through the meteorological station acquisition interface. A correspondence is established between the sensor category identifier and the sampling channel identifier, and the correspondence is written into the sampling source record to generate the source binding result. The sampling generation time is recorded by the local timing unit when each sensor outputs a sampled value, and the server receiving time is recorded by the server communication interface when the same sampled data frame is received. The sampling generation time and the server receiving time are written into the same sampling record to generate a time pairing record. Obtain the power supply voltage value, the sampling interval value, and the communication retransmission count value corresponding to the time pairing record, and classify each value into the corresponding sensor category according to the source binding result to generate a sampling operation record.

[0006] As a further aspect of the present invention, the process for determining the minimum power supply threshold, the standard sampling interval range, the maximum arrival interval, and the maximum retransmission count threshold includes: The rated operating voltage, adjacent sampling times, arrival interval records, and upper limit of the number of transmissions by the communication module are obtained. The rated operating voltage is reduced according to a preset voltage retention ratio to determine the minimum power supply threshold. The intervals of adjacent sampling times under the same sensor category are statistically analyzed. Interval records corresponding to power outage states are removed. Based on the retained statistical intervals, the lower and upper boundaries of the intervals are determined to generate the standard sampling interval range. The high-order arrival interval is read according to the temporal distribution of the arrival interval record, and the retransmission count obtained by subtracting the first transmission count from the upper limit of the number of transmissions of the communication module is determined as the maximum retransmission count threshold, and the threshold configuration result is generated.

[0007] As a further aspect of the present invention, the process for determining the power interruption state, the communication stagnation state, and the sampling state includes: Calculate the time difference between the server receiving time and the sampling generation time, and determine the time difference as the arrival interval. Read the threshold configuration result corresponding to the sampling generation time, and obtain the minimum power supply threshold, the maximum arrival interval, the standard sampling interval range, and the maximum retransmission number threshold to generate a comparison benchmark record. The power supply voltage value is compared with the minimum power supply threshold. When the power supply voltage value is less than the minimum power supply threshold, the corresponding sampling record is determined as the power supply interruption state, and a power supply classification result is generated. When the power supply voltage value is not less than the minimum power supply threshold, the arrival interval, the sampling interval value and the communication retransmission count value are compared with the comparison benchmark record respectively, and an operation status classification result is generated based on the comparison result.

[0008] As a further aspect of the present invention, the process of generating the operation status classification result includes: When the arrival interval is greater than the maximum arrival interval, or the communication retransmission count value is greater than the maximum retransmission number threshold, the corresponding sampling record is determined as the communication delay state, and the over-limit type is written into the delay reason field to generate a communication classification result. When the arrival interval is not greater than the maximum arrival interval, the communication retransmission count value is not greater than the maximum retransmission count threshold, and the sampling interval value falls within the standard sampling interval range, the corresponding sampling record is determined as the sampling state, and a classification result is generated.

[0009] As a further aspect of the present invention, the process of determining the arrival interval includes: Obtain the sampling generation time and the server receiving time from the same sampling record, compare the order of the server receiving time and the sampling generation time, and when the server receiving time is not earlier than the sampling generation time, calculate the time length between the two and write the time length into the arrival interval field. When the server receives a time earlier than the sampling time, it reads the time calibration record to correct the sampling time, and then recalculates the time length after correction to generate the arrival interval.

[0010] As a further aspect of the present invention, the process of generating the running phase scale sequence includes: The sampling records within the same simulation period are sorted in ascending order according to the sampling generation time, and the earliest sampling generation time is taken as the period starting point. The sampling period position of each sampling record relative to the period starting point is determined according to the sampling interval value, and a period positioning record is generated. The sensor category, operating status classification result, power supply voltage value, arrival interval, and sampling value are written into the phase scale field corresponding to the sampling period position, and the phase scale fields are concatenated in the order of the sampling time to generate the operating phase scale sequence.

[0011] As a further aspect of the present invention, the generation process of the phase arrangement state table includes: Read the sampling period position, sensor type, and operating status classification result from the running phase scale sequence, determine the sampling period position as the row index of the digital twin state table, determine the sensor type as the column index of the digital twin state table, and establish state writing coordinates based on the row index and column index; When the operation status classification result is a sampling status, the corresponding sampled value is written into the data field of the status writing coordinate. When the operation status classification result is a communication stagnation status, the corresponding sampling period position is written into the stagnation field of the status writing coordinate. When the operation status classification result is a power interruption status, the power interruption flag is written into the interruption field of the status writing coordinate, and a phase arrangement status table is generated.

[0012] As a further aspect of the present invention, the process for determining the normal operation simulation step size, the communication lag simulation step size, and the data collection stoppage simulation step size includes: Read the phase arrangement status table row by row according to the sampling period position, obtain the data field, stagnation field and interruption field corresponding to each sensor category under the same sampling period position, and map the data field, stagnation field and interruption field to power supply status, communication status and sensor operation status respectively, and generate a periodic status reading record; When there is no power interruption marker and no lingering sampling position in the periodic status reading record, the normal operation simulation step size is determined based on the standard sampling interval range. When there is a lingering sampling position and no power interruption marker in the periodic status reading record, the communication lingering simulation step size is determined based on the arrival interval. When there is a power interruption marker in the periodic status reading record, the stop sampling simulation step size is determined based on the number of consecutive power interruption markers. The simulation step size for normal operation, communication stagnation, or sampling stoppage is associated with the corresponding sampling period position, and the simulation results are output in the order of the sampling period positions.

[0013] A digital twin-based simulation system for the operation of a small weather station includes: The multi-source sensor sampling data acquisition module is used to: acquire the sampling values ​​of temperature, humidity, wind speed and rainfall sensors, the sampling time, the server receiving time, the power supply voltage, the sampling interval and the communication retransmission count; The adaptive determination module for the running judgment threshold is used to: determine the power supply threshold based on the rated operating voltage, determine the standard sampling interval range based on the statistical interval between adjacent sampling times, determine the maximum arrival interval based on the arrival interval quantile, and determine the retransmission threshold based on the upper limit of the number of times the communication module can send. The sampling transmission status identification module is used to: determine the arrival interval based on the sampling time and the server receiving time, and compare the power supply voltage, arrival interval, sampling interval and communication retransmission count with the minimum power supply threshold, maximum arrival interval, standard sampling interval range and maximum retransmission number threshold respectively to determine the power interruption status, communication stagnation status and sampling status. The phase scale sequence generation module is used to generate the operating phase scale sequence according to the sampling time sequence, based on the sampling period position, sensor type, operating status classification result, power supply voltage, arrival interval and sampling value. The digital twin phase state mapping module is used to: write the sampled values, lingering sampling positions, and power interruption markers into the digital twin state table based on the running phase scale sequence, and generate a phase arrangement state table; The operation status simulation output module is used to: read the phase arrangement status table according to the sampling period position, determine the simulation step size of normal operation, communication stagnation and sampling stop based on the power supply status, communication status and sensor operation status, and output the operation simulation results.

[0014] Compared with the prior art, the advantages and positive effects of the present invention are as follows: In this invention, by establishing an arrival interval around the sampling generation time and the server reception time, and combining it with power supply threshold, sampling interval range, historical arrival quantile value and retransmission number threshold to form a unified judgment scale, power outage, communication delay and effective sampling are incorporated into the same operating state chain. An operating phase scale sequence is generated according to the sampling cycle position and sensor type. Then, the sampling value, delay position and interruption mark are mapped to the digital twin state table, so that the time sequence, equipment status and data reliability are expressed synchronously. During the reading stage, the normal, delay or stop sampling step size is switched according to the power supply status, communication status and sensor status. The rhythm deviation caused by the static database is corrected, the fault boundary is clearly restored and the reliability of operation traceability and simulation is improved. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1This is the main flowchart of the small weather station operation simulation method of the present invention; Figure 2 This is a schematic diagram illustrating the data binding effect of the small weather station operation according to the present invention; Figure 3 This is a schematic diagram illustrating the separation and mapping effect of the operating state of the present invention; Figure 4 This is a schematic diagram illustrating the simulation step size switching effect of the present invention; Figure 5 This is a schematic diagram illustrating the collaborative effect of the system modules of the present invention. Detailed Implementation

[0017] The technical solution of the present invention will now be described with reference to the accompanying drawings.

[0018] To make the technical problems, technical solutions and advantages of the present invention clearer, a detailed description will be given below in conjunction with the accompanying drawings and specific embodiments.

[0019] Example Please see Figures 1 to 5 This embodiment provides a method and system for simulating the operation of a small weather station based on digital twins. In practical applications, for example, when a small weather station continuously collects temperature, humidity, wind speed, and rainfall and synchronizes the sampled data into the digital twin operation process, the sampling time, arrival process, power supply status, and communication retransmission status all affect the operation simulation results. It includes a method and system for simulating the operation of a small weather station based on digital twins.

[0020] Small weather stations experience power fluctuations, sampling cycle deviations, and communication delays during continuous operation. If the simulation process is based solely on sampled values, it is impossible to distinguish between actual weather changes, communication delays, and state gaps caused by data collection stoppages. This embodiment binds sampled values ​​with the sampling time, server reception time, power supply voltage, sampling interval, and communication retransmission count, and writes the operating status into a digital twin state table, enabling the simulation step size to switch between normal operation, communication delays, and data collection stoppage states.

[0021] Method Implementation Examples S1: Acquire the sampled values ​​of temperature, humidity, wind speed and rainfall sensors, the sampling time, the server receiving time, the power supply voltage, the sampling interval and the communication retransmission count.

[0022] Among them, the sampled values ​​refer to the raw observation results output by the temperature, humidity, wind speed, and rainfall sensors from their respective sampling channels; the sampling generation time refers to the time record corresponding to when the same sampled value is formed locally at the small weather station; the server reception time refers to the time record corresponding to when the same sampled data frame is received; the power supply voltage refers to the voltage record related to the power supply for weather station operation when the sampled data is formed; the sampling interval refers to the time interval record formed between adjacent sampling generation times of the same sensor type; and the communication retransmission count refers to the number of times the same sampled data frame is retransmitted during the transmission process. The above data are bound according to the same sampling record, enabling subsequent state identification to jointly determine power supply, transmission, and sampling cycle based on the same sampling event.

[0023] S101: Read the sensor category identifier and sampling channel identifier through the meteorological station acquisition interface, establish a correspondence between the sensor category identifier and the sampling channel identifier, write the correspondence into the sampling source record, and generate the source binding result.

[0024] The sensor category identifier is a category field used to distinguish between temperature, humidity, wind speed, and rainfall. The sampling channel identifier is a channel field used to distinguish between different sampling input sources. The sampling source record is a record object that carries the sensor category identifier, sampling channel identifier, and their binding relationship. During processing, the sensor category identifier is read first, followed by the sampling channel identifier that appears simultaneously with the category. Then, both are written to the same sampling source record. If the same sampling channel corresponds to the same sensor category in continuous sampling, the already formed source binding result is used. If the sampling channel and sensor category cannot be matched, the sampling record is marked as a source pending confirmation state, and this state is not included in the subsequent phase arrangement status table data field writing process.

[0025] S102: Based on the local timing unit, record the sampling time when each sensor outputs a sampled value, and based on the server communication interface, record the server receiving time when the same sampled data frame is received. Write the sampling time and the server receiving time into the same sampling record to generate a time pairing record.

[0026] In this context, a time-pairing record refers to a record object within the same sampled data frame that simultaneously carries both the sampling generation time and the server reception time. During processing, the source binding result in the sampled data frame is used as the association basis. The sampling generation time of the local record is written into this sampling record, and then the server reception time is written when the same sampled data frame is received. If the same sampled data frame is received repeatedly, the reception record that has completed source binding and corresponds to the sampling generation time is used as the time-pairing object. The duplicate arrival record is only retained for communication status traceability and does not replace the already paired sampling generation time.

[0027] S103: Obtain the power supply voltage value, sampling interval value, and communication retransmission count value corresponding to the time pairing record, and classify each value into the corresponding sensor category according to the source binding result to generate a sampling operation record.

[0028] The sampling operation record refers to a record object that simultaneously carries sensor type, sampling channel, sampled value, sampling time, server receiving time, power supply voltage, sampling interval, and communication retransmission count. During processing, sampling events are first identified by time-paired records. Then, the power supply voltage, sampling interval, and communication retransmission count corresponding to the same sampling event are read and categorized into the data sequence corresponding to temperature, humidity, wind speed, or rainfall according to the source binding result. If the power supply voltage, sampling interval, or communication retransmission count is missing, the missing field is marked as unconfirmed. This sampling operation record will only participate in the determination of existing fields during subsequent comparisons, and the unconfirmed field mark will be retained during status classification.

[0029] In this embodiment, the same sampling event is processed by source binding results and time pairing records, so that the sampling values, time data, power supply data and communication data can maintain a corresponding relationship in the sampling operation record, thereby providing a consistent data basis for distinguishing subsequent power outages, communication delays and sampling states.

[0030] S2: Determine the power supply threshold based on the rated operating voltage, determine the standard sampling interval range based on the statistical interval between adjacent sampling times, determine the maximum arrival interval based on the arrival interval quantile, and determine the retransmission threshold based on the upper limit of the number of times the communication module can send data.

[0031] Among them, the rated operating voltage refers to the configuration field corresponding to the small weather station under normal power supply conditions; the power supply threshold is the lowest power supply boundary used to determine whether the power supply has entered an interruption state; the standard sampling interval range is the interval boundary used to determine whether the sampling cycle meets the requirements for stable operation; the maximum arrival interval is the arrival time boundary used to determine whether the sampled data has communication delays; and the retransmission number threshold is the boundary used to determine whether the communication retransmissions have exceeded the allowed number of transmissions. All of the above thresholds are output as threshold configuration results and are read in the subsequent state identification steps.

[0032] S201: Obtain the rated operating voltage, the time of adjacent sampling, the arrival interval record, and the upper limit of the number of times the communication module sends data. Reduce the rated operating voltage according to the preset voltage retention ratio to determine the minimum power supply threshold.

[0033] The preset voltage retention ratio is a configurable field corresponding to the power supply determination rules of small weather stations. Its source is the weather station's operation configuration or maintenance calibration records. The minimum power supply threshold is the lowest acceptable power supply boundary formed after the rated operating voltage is processed by the power supply determination rules. During processing, the rated operating voltage field is read first, followed by the preset voltage retention ratio field. The retention rule corresponding to this ratio is applied to the rated operating voltage to obtain the minimum power supply threshold. This threshold is invoked when comparing the power supply status in each sampled operation record and maintains the same determination criterion until the configuration is updated.

[0034] S202: Perform interval statistics on adjacent sampling times under the same sensor category, remove interval records corresponding to power outage states, determine the lower and upper boundaries of the interval based on the retained statistical intervals, and generate a standard sampling interval range.

[0035] The lower and upper boundaries of the interval refer to the boundary fields used when determining the sampling cycle of the same sensor category. The interval record corresponding to the power outage state refers to the interval record formed due to insufficient power supply causing sampling gaps or stoppages. During processing, the adjacent sampling times are first read in groups according to sensor category. Then, intervals marked as interruption-related by the power supply determination rules are excluded. Subsequently, the acceptable sampling cycle boundary is determined based on the distribution of the reserved intervals. When the first sampling period or historical intervals are insufficient, the standard sampling interval range is provided by the sampling interval configuration field; when a reserved interval for the same sensor category has been formed that can be used for statistics, the boundary field based on the reserved interval is switched.

[0036] S203: Read the high-order arrival interval according to the time sequence distribution of the arrival interval record, and determine the retransmission count obtained by subtracting the first transmission count from the upper limit of the number of transmissions of the communication module as the maximum retransmission count threshold, and generate the threshold configuration result.

[0037] The arrival interval record refers to the arrival time record formed by the sampling time and the server reception time. The high quantile arrival interval refers to the field corresponding to the record position of the arrival interval record near the delay boundary in the time-series distribution. The upper limit of the number of transmissions by the communication module refers to the boundary of the number of transmissions allowed by the communication transmission rules. During processing, the arrival interval records are first read in chronological order, and then the maximum arrival interval is obtained according to the preset high quantile reading rules. Subsequently, the upper limit of the number of transmissions by the communication module is read, the number of transmissions used for the first transmission is deducted from the upper limit, and the remaining number of transmissions that can be used for retransmission is used as the maximum retransmission threshold. The threshold configuration results include the minimum power supply threshold, the standard sampling interval range, the maximum arrival interval, and the maximum retransmission threshold, and are called by the sampling transmission status identification process.

[0038] In this embodiment, the power supply, sampling cycle, arrival delay, and retransmission boundaries are formed by the rated operating voltage, the statistical interval of sampling generation time, the arrival interval quantile record, and the upper limit of communication transmission times, respectively. This ensures that the threshold configuration results correspond to the meteorological station's operating data source, thereby preventing subsequent state determinations from deviating from the actual operating conditions of the sampling records.

[0039] S3: Determine the arrival interval based on the sampling time and the server receiving time, and compare the power supply voltage, arrival interval, sampling interval, and communication retransmission count with the minimum power supply threshold, maximum arrival interval, standard sampling interval range, and maximum retransmission count threshold, respectively, to determine the power supply interruption state, communication stagnation state, and sampling state.

[0040] Among them, arrival interval refers to the arrival time field formed by the server receiving time relative to the sampling generation time; power interruption state refers to the state formed when the power supply voltage does not meet the boundary corresponding to the minimum power supply threshold; communication delay state refers to the state formed when the arrival interval or communication retransmission count exceeds the communication judgment boundary; and sampling state refers to the state formed when power supply, arrival, retransmission, and sampling interval all meet the corresponding judgment rules. State recognition is performed in the order of power supply priority, communication second, and sampling clock confirmation last, so that power interruption is not overwritten by communication delay or abnormal sampling clock.

[0041] S301: Obtain the sampling generation time and server reception time in the same sampling record, compare the order of the server reception time and the sampling generation time, and when the server reception time is not earlier than the sampling generation time, calculate the time length between the two and write the time length into the arrival interval field.

[0042] The arrival interval field is a field within the same sampling record used to carry the difference in arrival time. During processing, the sampling generation time is read first, followed by the server reception time. When the server reception time is after the sampling generation time or in the same reception sequence as the sampling generation time, the time length between the two is written as the arrival interval into the same sampling operation record. This field is then compared with the maximum arrival interval to identify communication delays.

[0043] S302: When the server receives the time earlier than the sampling time, read the time calibration record to correct the sampling time, and recalculate the time length after correction to generate the arrival interval.

[0044] The time calibration record is a record used to correct anomalies in the sequence between local timing and received records. It carries the calibration source, calibration status, and the sampling generation time after calibration. During processing, if the server's received time is detected to be earlier than the sampling generation time, a negative arrival interval is not directly generated. Instead, the time calibration record is read, the sampling generation time is corrected, and the arrival interval is re-determined. If the time calibration record is missing, the sample record is marked as pending time calibration. This record is not involved in the maximum arrival interval determination, but the power supply voltage and retransmission count fields are retained for subsequent status traceability.

[0045] S303: Calculate the time difference between the server receiving time and the sampling generation time, determine the time difference as the arrival interval, read the threshold configuration result corresponding to the sampling generation time, obtain the minimum power supply threshold, maximum arrival interval, standard sampling interval range and maximum retransmission number threshold, and generate a comparison benchmark record.

[0046] The comparison benchmark record refers to an intermediate record that centrally records the power supply, arrival, sampling interval, and retransmission decision boundaries required for a sampling operation. During processing, the arrival interval is first determined, and then the valid threshold configuration results within the same operating cycle are read according to the sampling time. The minimum power supply threshold, maximum arrival interval, standard sampling interval range, and maximum retransmission threshold are written to the comparison benchmark record. If the threshold configuration result has not yet been formed, the initialization configuration field is read as a temporary comparison benchmark; after a complete threshold configuration result is formed, subsequent sampling records switch to reading the threshold configuration result.

[0047] S304: Compare the power supply voltage value with the minimum power supply threshold. When the power supply voltage value is less than the minimum power supply threshold, determine the corresponding sampling record as a power supply interruption state and generate a power supply classification result.

[0048] The power supply classification result refers to the field that marks the power supply status of the sampled records. During processing, the power supply voltage value is read first, followed by the lowest power supply threshold in the comparison benchmark record. When the power supply voltage value falls below the lowest power supply boundary, the sampled record is written to the power supply interruption status, and a power supply interruption mark is written into the subsequent phase arrangement status table. Sampled records marked as power supply interruption status are no longer included in the communication delay priority determination, in order to maintain the priority driving relationship between power supply anomalies and the stop-sample simulation step size.

[0049] S305: When the power supply voltage value is not less than the minimum power supply threshold, the arrival interval, sampling interval value and communication retransmission count value are compared with the comparison benchmark record respectively, and the operation status classification result is generated based on the comparison result.

[0050] The operational status classification result refers to the status field formed by jointly determining communication arrival, communication retransmission, and sampling cycle time after the power supply meets the minimum power supply boundary. During processing, the arrival interval is first compared with the maximum arrival interval, then the communication retransmission count is compared with the maximum retransmission threshold, and finally, the sampling interval value is compared to see if it falls within the standard sampling interval range. If any of the aforementioned fields have unconfirmed states, the sampling record is marked as pending classification. This state is retained in the sampling operation record and the classification process is restarted after the fields are completed.

[0051] S306: When the arrival interval is greater than the maximum arrival interval, or the communication retransmission count value is greater than the maximum retransmission number threshold, the corresponding sampling record is determined as a communication delay state, and the over-limit type is written into the delay reason field to generate a communication classification result.

[0052] The "Delay Reason" field records the source of communication delays, carrying the cause type: arrival interval exceeding the limit, retransmission count exceeding the limit, or both. During processing, if the arrival interval exceeds the maximum arrival interval boundary, or the communication retransmission count exceeds the maximum retransmission threshold boundary, the sampled record is marked as a communication delay state, and the corresponding exceedance type is written to the "Delay Reason" field. This field is used in subsequent simulation output to distinguish between communication delay simulation steps driven by receive delay and delay markers driven by retransmission anomalies.

[0053] S307: When the arrival interval is not greater than the maximum arrival interval, the communication retransmission count value is not greater than the maximum retransmission number threshold, and the sampling interval value falls within the standard sampling interval range, the corresponding sampling record is determined as the sampling state, and a classification result is generated.

[0054] The sampling status refers to the normal sampling state formed after the sampling record meets the corresponding boundaries in the four categories of judgments: power supply, arrival, retransmission, and sampling interval. During processing, the sampled value is only used as a data field that can be written into the digital twin status table when the power supply is not interrupted, the arrival is not delayed, the retransmission is not exceeded, and the sampling interval is within the standard sampling interval range. If the sampling interval does not fall within the standard sampling interval range but neither the power supply nor the communication has triggered an anomaly, the sampling cycle offset mark is retained. This mark does not replace the power supply interruption state and the communication delay state.

[0055] In this embodiment, by processing the sampling operation record through power supply priority determination, time calibration, communication delay reason recording, and sampling cycle confirmation, the same sampling event can be classified into a certain operating state, thereby enabling the subsequent digital twin state table to distinguish the source of data gaps.

[0056] S4: Generate an operating phase scale sequence based on the sampling period position, sensor type, operating status classification result, power supply voltage, arrival interval, and sampling value, according to the sampling time sequence.

[0057] Among them, the sampling period position refers to the sequential position of a sampling record relative to the start of the period within the same simulation period, and the running phase scale sequence refers to the serialized record arranged in order of sampling time and carrying the sampling period position, sensor type, running status classification result, power supply voltage, arrival interval and sampling value.

[0058] S401: Sort the sampling records within the same simulation period in ascending order according to the sampling generation time, and take the earliest sampling generation time as the period start point. Determine the sampling period position of each sampling record relative to the period start point based on the sampling interval value, and generate a period positioning record.

[0059] The periodic positioning record refers to the record object that carries the correspondence between the period start point, sampling time, sampling interval value, and sampling period position. During processing, the sampling records that have completed state classification within the same simulation period are first sorted by sampling time. Then, the earliest sampling time is determined as the period start point. Subsequently, each sampling record is placed into its corresponding sampling period position according to the sampling interval value. If there are sampling records of multiple sensor types at the same sampling period position, they are retained separately according to sensor type, without merging the sampling values. If there are duplicate records of the same sensor type at the same sampling period position, records with complete source binding, complete time pairing, and completed state classification are prioritized for retention.

[0060] S402: Write the sensor type, operating status classification result, power supply voltage value, arrival interval and sampling value into the phase scale field corresponding to the sampling period position, and concatenate the phase scale fields in the order of sampling time to generate the operating phase scale sequence.

[0061] The phase scale field refers to a set of fields that carry sensor type, operating status, power supply status, arrival status, and sampled data at a specific sampling period position. During processing, the sampling period position in the periodic positioning record is first read, and then the sensor type, operating status classification result, power supply voltage value, arrival interval, and sampled value corresponding to the sampling record are written into the phase scale field. After writing is complete, the phase scale fields are concatenated according to the chronological order of sampling times to form an operating phase scale sequence, which is then passed to the digital twin status table writing process.

[0062] In this embodiment, the categorized sampling records are processed by periodic positioning records and phase scale fields, so that the operating states of different sensor categories can be aligned within the same sampling period position, thereby providing input for the phase arrangement status table to be expanded in chronological order.

[0063] S5: Based on the running phase scale sequence, the sampled values, the lingering sampling positions, and the power interruption markers are written into the digital twin state table to generate the phase arrangement state table.

[0064] Among them, the digital twin state table refers to a state record structure that uses the sampling period position as the row index, the sensor type as the column index, and carries data fields, lingering fields, and interruption fields. The phase arrangement state table refers to the digital twin state table after the sampling value, lingering sampling position, and power interruption flag have been written.

[0065] S501: Read the sampling period position, sensor type, and operating status classification results from the running phase scale sequence, determine the sampling period position as the row index of the digital twin state table, determine the sensor type as the column index of the digital twin state table, and establish state writing coordinates based on the row index and column index.

[0066] In this context, the state write coordinates refer to the data write position determined jointly by the sampling period position and the sensor category. During processing, the sampling period position in the running phase scale sequence is read first, followed by the sensor category. Then, the corresponding row and column indices are located in the digital twin state table. If there is no corresponding sensor category record at a certain sampling period position, the state is left empty. This empty state is not directly recognized as a power outage or communication delay during simulation output; it only participates in the step size determination of the corresponding state after the interruption or delay field is written.

[0067] S502: When the operation status classification result is sampling status, write the corresponding sampled value into the data field of the status writing coordinate. When the operation status classification result is communication stagnation status, write the corresponding sampling period position into the stagnation field of the status writing coordinate. When the operation status classification result is power interruption status, write the power interruption flag into the interruption field of the status writing coordinate, and generate a phase arrangement status table.

[0068] The data field carries normal sampled values, the stagnation field carries the sampling location of communication stagnation, and the interruption field carries the power interruption flag. During processing, if the operating status is classified as a sampling state, the sampled value is written to the data field; if the operating status is classified as a communication stagnation state, the sampled value is not written as normal data, but the sampling period position is written to the stagnation field; if the operating status is classified as a power interruption state, a power interruption flag is written. If the coordinates for the same state simultaneously receive writing information from both the interruption and stagnation fields, the power interruption flag is given priority, and the communication stagnation information is retained in the traceability field.

[0069] In this embodiment, the phase scale sequence is processed by row index, column index and status writing coordinates, so that the sampling status, communication stagnation status and power interruption status are written to different fields, thereby enabling the subsequent simulation reading process to directly identify the source of the status and avoid mixing different abnormal statuses.

[0070] S6: Read the phase arrangement status table according to the sampling period position, determine the simulation step size for normal operation, communication stagnation and sampling stop based on the power supply status, communication status and sensor operation status, and output the operation simulation results.

[0071] Among them, the power supply status refers to the status formed by whether there is a power supply interruption flag in the interruption field, the communication status refers to the status formed by whether there is a lingering sampling position in the lingering field, the sensor operation status refers to the sensor sampling operation result determined by the data field, lingering field and interruption field, and the operation simulation result refers to the result record output in the order of sampling period position and carrying the simulation step size and corresponding operation status.

[0072] S601: Read the phase arrangement status table row by row according to the sampling period position, obtain the data field, lag field and interrupt field corresponding to each sensor category under the same sampling period position, and map the data field, lag field and interrupt field to power supply status, communication status and sensor operation status respectively, and generate a periodic status reading record.

[0073] The periodic state read record refers to the intermediate record that carries the data fields, lingering fields, interruption fields, and their mapped states of each sensor category at the same sampling period position. During processing, the phase arrangement state table is read line by line. First, it checks whether there is a power interruption marker in the interruption field, then it checks whether there is a lingering sampling position in the lingering field, and finally it reads whether there is a sampled value in the data field. During mapping, the interruption field is prioritized to form the power supply state, the lingering field to form the communication state, and the data field to form the sensor operating state. All three types of states are entered into the simulation step size determination process.

[0074] S602: When there is no power interruption mark and no lingering sampling position in the periodic status reading record, the normal operation simulation step size is determined based on the standard sampling interval range. When there is a lingering sampling position and no power interruption mark in the periodic status reading record, the communication lingering simulation step size is determined based on the arrival interval. When there is a power interruption mark in the periodic status reading record, the stop sampling simulation step size is determined based on the number of consecutive power interruption marks.

[0075] The simulation step size for normal operation refers to the step size used to advance the simulation when the data field in the phase arrangement status table is in a normal sampling state. The simulation step size for communication lag refers to the step size used to indicate transmission lag when there is a lag sampling position but no power interruption marker appears. The simulation step size for stopping sampling refers to the step size used to advance the stopping sampling process when a continuous power interruption marker triggers the stopping sampling state. During processing, it is first determined whether a power interruption marker exists. If it exists, the simulation step size for stopping sampling is determined according to the continuity relationship of the continuous power interruption markers in adjacent sampling period positions. If there is no power interruption marker, it is then determined whether a lag sampling position exists. If it exists, the simulation step size for communication lag is determined according to the lag degree of the corresponding arrival interval. If neither exists, the simulation step size for normal operation is determined according to the standard sampling interval range. The above judgment order is fixed as power supply status first, communication status second, and normal operation status subsequently confirmed.

[0076] S603: Establish a correlation between the normal operation simulation step size, the communication stagnation simulation step size, or the stop sampling simulation step size and the corresponding sampling period position, and output the operation simulation results in the order of the sampling period positions.

[0077] During processing, the simulation step size is written to the corresponding sampling period position, and the power supply status, communication status, and sensor operating status at that sampling period position are retained. When outputting the simulation results, they are arranged in chronological order according to the sampling period positions, so that normal operation, communication stagnation, and sampling stoppage states are presented continuously in the simulation results. If there is a state to be completed and classified at a certain sampling period position, the state to be completed is retained in the simulation results and is not replaced by the normal operation state; after the missing fields are completed and reclassification is finished, the corresponding simulation step size is re-determined based on the updated phase arrangement state table.

[0078] In this embodiment, by reading the phase arrangement status table line by line and determining the simulation step size according to the power supply status, communication status and sensor operation status, the simulation results can present the changes in normal sampling, communication delay and sampling stoppage during the actual operation of the weather station along the sampling period position, so that the digital twin operation status is consistent with the sampling data source, transmission status and power supply status.

[0079] System Implementation Examples This embodiment also provides a small weather station operation simulation system based on digital twins. The system is used to implement the above-mentioned small weather station operation simulation method based on digital twins, including a multi-source sensor sampling data acquisition module, an operation judgment threshold adaptive determination module, a sampling transmission status identification module, an operation phase scale sequence generation module, a digital twin phase status mapping module, and an operation status simulation output module.

[0080] The multi-source sensor sampling data acquisition module receives sampling values, sampling time, server reception time, power supply voltage, sampling interval, and communication retransmission count from temperature, humidity, wind speed, and rainfall sensors, and generates a sampling operation record. The module's inputs are the sensor category identifier, sampling channel identifier, and the operation field corresponding to the same sampling data frame. The output is a sampling operation record with source binding results and time pairing records. This module only handles sampling data acquisition, source binding, and record pairing; it does not perform final classification of power outages, communication delays, or sampling status.

[0081] The adaptive threshold determination module determines the power supply threshold based on the rated operating voltage, the standard sampling interval range based on the statistical interval between adjacent sampling times, the maximum arrival interval based on the arrival interval quantile, and the retransmission threshold based on the upper limit of the communication module's transmission count. The module's inputs are the rated operating voltage, adjacent sampling times, arrival interval records, and the upper limit of the communication module's transmission count; the output is the threshold configuration result. This threshold configuration result includes the minimum power supply threshold, the standard sampling interval range, the maximum arrival interval, and the maximum retransmission threshold, and is invoked by the sampling transmission status identification module. When historical sampling records are insufficient, this module outputs the threshold configuration result corresponding to the initial configuration; after the retained statistical interval and arrival interval records are formed, it outputs the updated threshold configuration result.

[0082] The sampling transmission status identification module determines the arrival interval based on the sampling generation time and the server reception time. It compares the power supply voltage, arrival interval, sampling interval, and communication retransmission count with the minimum power supply threshold, maximum arrival interval, standard sampling interval range, and maximum retransmission count threshold, respectively, to determine the power outage status, communication delay status, and sampling status. The module's inputs are the sampling operation record and threshold configuration results, and its output is the operation status classification result. The module first verifies the chronological relationship between the server reception time and the sampling generation time. If an anomaly exists, it calls the time calibration record to generate a corrected arrival interval. Then, it generates the operation status classification result in the order of power supply status priority, communication status second, and sampling status subsequent, and writes the communication delay exceeding the limit type into the delay reason field.

[0083] The phase scale sequence generation module generates a running phase scale sequence based on the sampling period position, sensor type, operating state classification result, power supply voltage, arrival interval, and sampled value, according to the sampling generation time sequence. The module takes the sampling operation record with completed state classification as input and outputs the running phase scale sequence. This module first determines the starting point of the period within the same simulation period, then forms the sampling period position based on the sampling interval value, and writes the sensor type, operating state classification result, power supply voltage, arrival interval, and sampled value into the phase scale field. This module does not change the state classification result in the sampling operation record; it only converts it into the phase scale structure required for subsequent mapping according to the sampling generation time sequence.

[0084] The digital twin phase state mapping module is used to write sampled values, lingering sampling positions, and power interruption markers into a digital twin state table based on the running phase scale sequence, generating a phase arrangement state table. The module takes the running phase scale sequence as input and outputs the phase arrangement state table. It uses the sampling period position as the row index and the sensor category as the column index to form a state writing coordinate system. When the running state is classified as a sampling state, the sampled value is written to the data field; when the running state is classified as a communication lingering state, the sampling period position is written to the lingering field; and when the running state is classified as a power interruption state, the power interruption marker is written to the interruption field. This module maintains the boundaries between sampled values, lingering positions, and interruption markers through field separation, preventing different state sources from overlapping in the coordinate system for the same state.

[0085] The operational state simulation output module reads the phase arrangement status table according to the sampling period position, determines the simulation step size for normal operation, communication stagnation, and data stoppage based on the power supply status, communication status, and sensor operational status, and outputs the operational simulation results. The module's inputs are the phase arrangement status table and the standard sampling interval range, arrival interval record, and continuous power supply interruption flag from the threshold configuration results. The output is the operational simulation result associated with the sampling period position. This module reads the data field, stagnation field, and interruption field line by line, first identifying the power supply interruption flag, then identifying the stagnation sampling position, and finally identifying the normal sampling state corresponding to the data field, determining the corresponding simulation step size according to the identified state. For states requiring further completion and classification, this module retains the results and waits for the sampling transmission state identification module to complete the reclassification before updating the output.

[0086] In this embodiment, the multi-source sensor sampling data acquisition module binds the sampled values ​​and operating fields into a sampling operation record. The adaptive operation judgment threshold determination module writes the judgment boundaries corresponding to power supply, sampling interval, arrival interval, and retransmission count into the threshold configuration result. The sampling transmission status identification module converts the sampling operation record into an operation status classification result. The operation phase scale sequence generation module converts the classification result into a phase scale structure arranged according to the sampling generation time. The digital twin phase state mapping module writes the phase scale structure into a phase arrangement status table. The operation status simulation output module outputs the operation simulation result based on the phase arrangement status table. By transmitting data between the above modules in the order of sampling record, threshold configuration result, operation status classification result, operation phase scale sequence, phase arrangement status table, and operation simulation result, the operation simulation process of a small weather station can complete sampling source tracing, status identification, phase mapping, and simulation step size output within the same operational boundary.

[0087] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of protection of the technical solution.

Claims

1. A simulation method for the operation of a small weather station based on digital twins, characterized in that, Includes the following steps: Acquire the sampled values, sampling time, server receiving time, power supply voltage, sampling interval, and communication retransmission count of temperature, humidity, wind speed, and rainfall sensors; The power supply threshold is determined based on the rated operating voltage; the standard sampling interval range is determined based on the statistical interval between adjacent sampling times; the maximum arrival interval is determined based on the arrival interval quantile; and the retransmission threshold is determined based on the upper limit of the number of times the communication module can send data. The arrival interval is determined based on the sampling time and the server receiving time. The power supply voltage, arrival interval, sampling interval, and communication retransmission count are compared with the minimum power supply threshold, maximum arrival interval, standard sampling interval range, and maximum retransmission count threshold, respectively, to determine the power interruption state, communication stagnation state, and sampling state. Based on the sampling time sequence, and taking into account the sampling period location, sensor type, operating status classification result, power supply voltage, arrival interval, and sampling value, an operating phase scale sequence is generated. Based on the running phase scale sequence, the sampled values, the lingering sampling positions, and the power interruption markers are written into the digital twin state table to generate a phase arrangement state table; The phase arrangement status table is read according to the sampling period position. The simulation step size for normal operation, communication stagnation and sampling stop is determined based on the power supply status, communication status and sensor operation status, and the simulation results are output.

2. The method for simulating the operation of a small weather station based on digital twins according to claim 1, characterized in that, The steps for obtaining the sampled values, sampling time, server reception time, power supply voltage, sampling interval, and communication retransmission count values ​​from temperature, humidity, wind speed, and rainfall sensors include: The sensor category identifier and sampling channel identifier are read through the meteorological station acquisition interface. A correspondence is established between the sensor category identifier and the sampling channel identifier, and the correspondence is written into the sampling source record to generate the source binding result. The sampling generation time is recorded by the local timing unit when each sensor outputs a sampled value, and the server receiving time is recorded by the server communication interface when the same sampled data frame is received. The sampling generation time and the server receiving time are written into the same sampling record to generate a time pairing record. Obtain the power supply voltage value, the sampling interval value, and the communication retransmission count value corresponding to the time pairing record, and classify the values ​​into the corresponding sensor category according to the source binding result to generate a sampling operation record.

3. The method for simulating the operation of a small weather station based on digital twins according to claim 1, characterized in that, The process of determining the minimum power supply threshold, the standard sampling interval range, the maximum arrival interval, and the maximum retransmission number threshold includes: The rated operating voltage, adjacent sampling times, arrival interval records, and upper limit of the number of transmissions by the communication module are obtained. The rated operating voltage is reduced according to a preset voltage retention ratio to determine the minimum power supply threshold. The intervals of adjacent sampling times under the same sensor category are statistically analyzed, and the interval records corresponding to power outage states are removed. Based on the retained statistical intervals, the lower and upper boundaries of the intervals are determined to generate the standard sampling interval range. The high-order arrival interval is read according to the temporal distribution of the arrival interval record, and the retransmission count obtained by subtracting the first transmission count from the upper limit of the number of transmissions of the communication module is determined as the maximum retransmission count threshold, and the threshold configuration result is generated.

4. The method for simulating the operation of a small weather station based on digital twins according to claim 1, characterized in that, The process of determining the power outage state, the communication stagnation state, and the sampling state includes: Calculate the time difference between the server receiving time and the sampling generation time, and determine the time difference as the arrival interval. Read the threshold configuration result corresponding to the sampling generation time, and obtain the minimum power supply threshold, the maximum arrival interval, the standard sampling interval range, and the maximum retransmission number threshold to generate a comparison benchmark record. The power supply voltage value is compared with the minimum power supply threshold. When the power supply voltage value is less than the minimum power supply threshold, the corresponding sampling record is determined as the power supply interruption state, and a power supply classification result is generated. When the power supply voltage value is not less than the minimum power supply threshold, the arrival interval, the sampling interval value and the communication retransmission count value are compared with the comparison benchmark record respectively, and an operation status classification result is generated based on the comparison result.

5. The method for simulating the operation of a small weather station based on digital twins according to claim 4, characterized in that, The process of generating the operational status classification results includes: When the arrival interval is greater than the maximum arrival interval, or the communication retransmission count value is greater than the maximum retransmission number threshold, the corresponding sampling record is determined as the communication delay state, and the over-limit type is written into the delay reason field to generate a communication classification result. When the arrival interval is not greater than the maximum arrival interval, the communication retransmission count value is not greater than the maximum retransmission count threshold, and the sampling interval value falls within the standard sampling interval range, the corresponding sampling record is determined as the sampling state, and a classification result is generated.

6. The method for simulating the operation of a small weather station based on digital twins according to claim 4, characterized in that, The process of determining the arrival interval includes: Obtain the sampling generation time and the server receiving time from the same sampling record, compare the order of the server receiving time and the sampling generation time, and when the server receiving time is not earlier than the sampling generation time, calculate the time length between the two and write the time length into the arrival interval field. When the server receives a time earlier than the sampling time, it reads the time calibration record to correct the sampling time, and then recalculates the time length after correction to generate the arrival interval.

7. The method for simulating the operation of a small weather station based on digital twins according to claim 1, characterized in that, The process of generating the running phase scale sequence includes: The sampling records within the same simulation period are sorted in ascending order according to the sampling generation time, and the earliest sampling generation time is taken as the period starting point. The sampling period position of each sampling record relative to the period starting point is determined according to the sampling interval value, and a period positioning record is generated. The sensor category, operating status classification result, power supply voltage value, arrival interval, and sampling value are written into the phase scale field corresponding to the sampling period position, and the phase scale fields are concatenated in the order of the sampling time to generate the operating phase scale sequence.

8. The method for simulating the operation of a small weather station based on digital twins according to claim 1, characterized in that, The generation process of the phase arrangement state table includes: Read the sampling period position, sensor type, and operating status classification result from the running phase scale sequence, determine the sampling period position as the row index of the digital twin state table, determine the sensor type as the column index of the digital twin state table, and establish state writing coordinates based on the row index and column index; When the operation status classification result is a sampling status, the corresponding sampled value is written into the data field of the status writing coordinate. When the operation status classification result is a communication stagnation status, the corresponding sampling period position is written into the stagnation field of the status writing coordinate. When the operation status classification result is a power interruption status, the power interruption flag is written into the interruption field of the status writing coordinate, and a phase arrangement status table is generated.

9. The method for simulating the operation of a small weather station based on digital twins according to claim 1, characterized in that, The process of determining the normal operation simulation step size, the communication lag simulation step size, and the stop-mining simulation step size includes: Read the phase arrangement status table row by row according to the sampling period position, obtain the data field, stagnation field and interruption field corresponding to each sensor category under the same sampling period position, and map the data field, stagnation field and interruption field to power supply status, communication status and sensor operation status respectively, and generate a periodic status reading record; When there is no power interruption marker and no lingering sampling position in the periodic status reading record, the normal operation simulation step size is determined based on the standard sampling interval range. When there is a lingering sampling position and no power interruption marker in the periodic status reading record, the communication lingering simulation step size is determined based on the arrival interval. When there is a power interruption marker in the periodic status reading record, the stop sampling simulation step size is determined based on the number of consecutive power interruption markers. The simulation step size for normal operation, communication stagnation, or sampling stoppage is associated with the corresponding sampling period position, and the simulation results are output in the order of the sampling period positions.

10. A simulation system for the operation of a small weather station based on digital twins, characterized in that, The system is used to implement the digital twin-based simulation method for operating a small weather station as described in any one of claims 1-9, comprising: The multi-source sensor sampling data acquisition module is used to: acquire the sampling values ​​of temperature, humidity, wind speed and rainfall sensors, the sampling time, the server receiving time, the power supply voltage, the sampling interval and the communication retransmission count; The adaptive determination module for the running judgment threshold is used to: determine the power supply threshold based on the rated operating voltage, determine the standard sampling interval range based on the statistical interval between adjacent sampling times, determine the maximum arrival interval based on the arrival interval quantile, and determine the retransmission threshold based on the upper limit of the number of times the communication module can send. The sampling transmission status identification module is used to: determine the arrival interval based on the sampling time and the server receiving time, and compare the power supply voltage, arrival interval, sampling interval and communication retransmission count with the minimum power supply threshold, maximum arrival interval, standard sampling interval range and maximum retransmission number threshold respectively to determine the power interruption status, communication stagnation status and sampling status. The phase scale sequence generation module is used to generate the operating phase scale sequence according to the sampling time sequence, based on the sampling period position, sensor type, operating status classification result, power supply voltage, arrival interval and sampling value. The digital twin phase state mapping module is used to: write the sampled values, lingering sampling positions, and power interruption markers into the digital twin state table based on the running phase scale sequence, and generate a phase arrangement state table; The operation status simulation output module is used to: read the phase arrangement status table according to the sampling period position, determine the simulation step size of normal operation, communication stagnation and sampling stop based on the power supply status, communication status and sensor operation status, and output the operation simulation results.