Intelligent power supply data collaborative processing method and system
Patent Information
- Application Number
- CN202611487162.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-23
- Publication Date
- 2026-10-27
Smart Images

Figure CN122994352A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of cloud-edge collaboration technology, and in particular to a smart power data collaborative processing method and system. Background Technology
[0002] The field of cloud-edge collaboration technology involves the scheduling of computing resources, task allocation, and data interaction processing among cloud servers, edge nodes, and terminal devices. Among these, the smart power data collaborative processing method refers to the power terminal collecting operating parameters and generating data records, which are then transmitted to the server via a communication interface. The server establishes storage records according to data type, source device, and collection time. The management terminal accesses the server to read the corresponding power data and generates a data display page.
[0003] Current power data acquisition typically uses the terminal's local time or the server's receiving time as the basis for archiving. Communication link round-trip delay and terminal clock offset are mixed into the acquisition time. Data across terminals is difficult to align on the timeline. The sampling sequence of the same terminal is only stored in the database in the order of arrival. Packet loss breakpoints are not easily exposed. Duplicate data rely on subsequent manual verification or overwriting. The boundary between abnormal records and real records is blurred. Query results are prone to problems such as time sequence misalignment, failure to indicate missing measurements, and the mixing of duplicate values, which affect the accuracy of judging power operation trends and tracing faults. Summary of the Invention
[0004] This invention aims to provide a smart power supply data collaborative processing method and system, which is used to correct the time base, identify the continuity of the sampling order, determine the valid records with duplicate numbers, and archive the power supply operation records when the power supply terminal sampling clock, communication transmission delay and server receiving timing coexist. This enables the operating parameters such as voltage, current, power and temperature from the power supply terminal to be collaboratively processed according to a unified time base and sampling order.
[0005] To achieve the above objectives, the present invention provides a smart power data collaborative processing method, comprising the following steps: Acquire power supply operation records, which include source power terminal identifier, sampling sequence number, terminal local sampling time, terminal communication transmission time, server reception time, voltage value, current value, power value, and temperature value.
[0006] Obtain communication receipt records, which include the server receipt sending time and the terminal receipt arrival time. Calculate uplink transmission compensation duration based on the terminal communication sending time, the server receiving time, the server receipt sending time, and the terminal receipt arrival time.
[0007] Based on the uplink transmission compensation duration, the terminal local sampling time is converted into the corrected acquisition attribution time of the server time base.
[0008] For each power supply operation record with the same source power terminal identifier, they are arranged according to the sampling order number, and a gap mark record is generated based on the number increment unit between adjacent sampling order numbers.
[0009] For each power supply operation record that has the same sampling sequence number, the valid operation record is determined by combining the communication verification result and the server receiving time, and an archive record is generated based on the corrected acquisition time, the source power supply terminal identifier and the operation parameter type.
[0010] Further, the process of obtaining the power supply operation record includes: obtaining the operation data packet encapsulated by the source power terminal after completing a single local sampling; parsing the terminal identity field, sampling sequence number field, local sampling time field, sending time field, and operation parameter field in the operation data packet; and writing the server's local clock reading when the server receives the operation data packet into the receiving time field; determining the terminal identity field as the source power terminal identifier, the sampling sequence number field as the sampling sequence number, the local sampling time field as the terminal's local sampling time, the sending time field as the terminal's communication sending time, and the receiving time field as the server's receiving time, thereby obtaining the power supply operation record.
[0011] Further, the calculation process of the uplink transmission compensation duration includes: acquiring communication receipt data packets associated with the same source power terminal identifier and the same sampling sequence number; parsing the server receipt time field and the terminal receipt time field in the communication receipt data packets; determining the server receipt time field as the server receipt sending time and the terminal receipt time field as the terminal receipt arrival time, generating a receipt time pair; calculating the uplink arrival interval of the server receiving time relative to the terminal communication sending time; calculating the receipt return interval of the terminal receipt arrival time relative to the server receipt sending time; and determining the uplink transmission compensation duration based on the deviation between the uplink arrival interval and the receipt return interval.
[0012] Further, the process of determining the deviation state includes: comparing the absolute value of the interval difference between the uplink arrival interval and the acknowledgment return interval; when the absolute value of the interval difference is not greater than a preset transmission symmetry tolerance threshold, averaging the uplink arrival interval and the acknowledgment return interval to generate a symmetric link compensation candidate duration; when the absolute value of the interval difference is greater than the preset transmission symmetry tolerance threshold, selecting the uplink arrival interval as an asymmetric link compensation candidate duration; and determining the symmetric link compensation duration or the asymmetric link compensation duration as the uplink transmission compensation duration.
[0013] Further, the conversion process for correcting the acquisition attribution time includes: calculating the terminal-side temporary storage interval of the terminal communication transmission time relative to the terminal local sampling time; determining the server reference transmission attribution time based on the server reception time and the uplink transmission compensation duration; and using the terminal-side temporary storage interval as the duration between sampling and transmission; backing up the terminal-side temporary storage interval according to the server reference transmission attribution time to obtain the sampling attribution candidate time under the server time reference; and associating the sampling attribution candidate time with the source power terminal identifier and the sampling sequence number to generate the corrected acquisition attribution time.
[0014] Further, the generation process of the gap mark record includes: obtaining each power supply operation record corresponding to the same source power terminal identifier; establishing a terminal sampling sequence according to the sampling order number from smallest to largest; and sequentially selecting two adjacent power supply operation records in the terminal sampling sequence to form adjacent record pairs; calculating the number increment unit of the sampling order number of the latter power supply operation record relative to the sampling order number of the former power supply operation record in the adjacent record pair; when the number increment unit is greater than a preset continuous increment unit, determining the number interval between the former power supply operation record and the latter power supply operation record as the missing number interval, and generating the gap mark record; otherwise, the gap mark record does not exist.
[0015] Preferably, the process of determining the missing number interval includes: reading the sampling sequence number step size configuration value corresponding to the same source power terminal identifier, determining the sampling sequence number step size configuration value as the preset continuous increment unit, and comparing the difference between the number increment unit and the sampling sequence number step size configuration value; when the number increment unit is a continuous integer multiple of the sampling sequence number step size configuration value, estimating the missing sampling sequence number item by item based on the sampling sequence number and the sampling sequence number step size configuration value of the previous power operation record; when the number increment unit does not conform to the continuous integer multiple relationship, writing the adjacent record pair into the abnormal increment queue, generating missing number details, and statistically obtaining the missing number interval.
[0016] Further, the process of determining the valid operation record includes: acquiring each of the power supply operation records with the same sampling sequence number under the same source power terminal identifier, writing each of the power supply operation records into a duplicate number candidate group, and reading the communication verification result corresponding to each of the power supply operation records; when there is a candidate operation record in the duplicate number candidate group with a communication verification result of "pass", selecting the candidate operation record with the earliest server reception time from the candidate operation records corresponding to the "pass" status, and determining it as the valid operation record.
[0017] Furthermore, the process of generating the archived record includes: obtaining the voltage, current, power, and temperature values from the valid operation record; determining the operation parameter type corresponding to the voltage, current, power, and temperature values according to a preset operation parameter type mapping table; writing the corrected acquisition time, the source power terminal identifier, and the parameter archived item into the same archived storage record; and sorting the sampling sequence number to generate the archived record.
[0018] This invention also provides a smart power data collaborative processing system. The system, used to implement the above-mentioned method, includes a data acquisition module, a calculation module, a correction module, a gap marking module, and an archiving module. The data acquisition module acquires power operation records, which include a source power terminal identifier, sampling sequence number, terminal local sampling time, terminal communication transmission time, server reception time, voltage value, current value, power value, and temperature value. The calculation module, connected to the data acquisition module, acquires communication receipt records, which include the server receipt transmission time and the terminal receipt arrival time. Based on the terminal communication transmission transmission time, the server reception time, the server receipt transmission time, and the terminal receipt arrival time, the uplink transmission compensation duration is calculated. The correction module, connected to the calculation module, is used to calculate the uplink transmission compensation duration based on the uplink transmission compensation... The duration is calculated by converting the local sampling time of the terminal into a corrected acquisition attribution time based on the server time reference. The gap marking module is connected to the correction module and is used to arrange the power supply operation records with the same source power terminal identifier according to the sampling order number, and generate gap marking records based on the number increment unit between adjacent sampling order numbers. The archiving module is connected to the gap marking module and is used to determine the valid operation record for each power supply operation record with the same sampling order number by combining the communication verification result and the server receiving time, and generate archive records based on the corrected acquisition attribution time, the source power terminal identifier, and the operation parameter type.
[0019] Compared with the prior art, the advantages and positive effects of the present invention are as follows: A time compensation relationship is established between the power operation record and the communication receipt record. The uplink transmission compensation duration is calculated using the round-trip time of the sending and receiving receipts. The local sampling time of the terminal is uniformly converted to the server time reference, eliminating the disturbance of the acquisition time caused by link delay and clock difference. At the same time, the terminals from the same source are continuously verified by numbering in the sampling order. The numbering breakpoints are identified and gap marks are formed. For duplicate numbered records, the valid data is determined by combining the communication verification results and the server receiving time. Then, the data is archived and output according to the source terminal and parameter type of the corrected time. The query set thus has the comprehensive effects of unified time axis, missing test prompt, reliable deduplication and clear traceability. Attached Figure Description
[0020] Figure 1 A schematic diagram of the overall data flow topology for intelligent power supply data collaborative processing; Figure 2 A schematic diagram illustrating the relationship between the server time base downsampling time correction; Figure 3 A schematic diagram illustrating the sampling sequence numbering gap marking status for power supply terminals from the same source; Figure 4 A schematic diagram illustrating the identification and archiving of valid records with duplicate numbers; Figure 5 This is a schematic diagram of the collaborative processing of modules in a smart power data collaborative processing system. Detailed Implementation
[0021] The technical solution described in this invention will be explained below with reference to the accompanying drawings. The following implementation details are defined by the scope of protection text, the purpose of the invention, and the data objects, processing steps, and module collaboration relationships defined by the technical solution. They are used to illustrate the feasible implementation methods for intelligent power data in the processes of terminal sampling, communication transmission, server reception, time correction, sequence number continuity identification, duplicate record filtering, and archiving storage. In this document, a power operation record refers to a record object formed after a single local sampling is completed by the source power terminal and transmitted via communication. It includes at least the source power terminal identifier, sampling sequence number, terminal local sampling time, terminal communication transmission time, server reception time, voltage value, current value, power value, and temperature value. A communication receipt record refers to a record object associated with the power operation record, used to express the server-side receipt issuance status and the terminal-side receipt arrival status. It includes the server receipt issuance time and the terminal receipt arrival time. Uplink transmission compensation duration refers to the uplink communication time compensation amount used to convert the terminal-side sampling time relationship to the server time base. It is determined jointly by the terminal communication transmission time, server reception time, server receipt issuance time, and terminal receipt arrival time. The corrected acquisition attribution time refers to the time result representing the attribution time of the corresponding sampling behavior under the server time base. This result is associated with the source power terminal identifier and sampling sequence number. Gap marker records are used to indicate the range or details of missing numbers formed when there is a non-continuous increment between adjacent sampling sequence numbers under the same source power terminal identifier. Valid operation records refer to power operation records that, under the same source power terminal identifier and the same sampling sequence number, are determined to be eligible for archiving after being jointly limited by communication verification results and server reception time. Archived records are storage records formed based on the corrected acquisition attribution time, source power terminal identifier, and operation parameter type.
[0022] Example 1: Please see Figures 1 to 4 This embodiment provides a smart power data collaborative processing method. In this embodiment, after the source power terminal completes local sampling, it generates an operation data message. After receiving the operation data message and its associated communication receipt record, the server corrects the sampling time based on the server time base, and identifies the continuous and repetitive states of the sampling sequence number under the same source power terminal identifier. Then, the voltage value, current value, power value, and temperature value are archived according to the operation parameter type. Figure 1 Used to illustrate the data collaboration path between the source power terminal, communication transmission relationship, server receiving node, and archive storage node; Figure 2 Used to show the timing relationship between the terminal's local sampling time, the terminal's communication transmission time, the server's reception time, the server's receipt transmission time, and the terminal's receipt arrival time; Figure 3The notch marker status is used to indicate the sampling sequence number of the power supply terminal identifier from the same source; Figure 4 Used to show the data selection and mapping relationship between duplicate number candidate groups, valid run records, and archived records.
[0023] S1, Obtain Power Supply Operation Record. The server receives the operation data message uploaded by the source power terminal and uses this operation data message as the data source for the power supply operation record. The operation data message is encapsulated by the source power terminal after completing a single local sampling. The operation data message carries a terminal identity field, a sampling sequence number field, a local sampling time field, a transmission time field, and an operation parameter field. The terminal identity field identifies the source power terminal to which the operation data message belongs; the sampling sequence number field indicates the sampling order of the source power terminal in its local sampling sequence; the local sampling time field indicates the time when the source power terminal completed local sampling; the transmission time field indicates the time when the source power terminal sent the operation data message; and the operation parameter field carries voltage, current, power, and temperature values. When the server receives the operation data message, it reads the server's local clock and writes the server's local clock reading into the reception time field, thereby forming a power supply operation record with terminal-side time information, server-side reception time information, and operation parameter information.
[0024] S111, parse the terminal identity field in the runtime data message and determine the terminal identity field as the source power terminal identifier. The source power terminal identifier is used as the basis for terminal-level aggregation in subsequent gap marking, duplicate record filtering and archiving processes, so that sampling sequences from different source power terminals will not be mixed up.
[0025] S112, parse the sampling sequence number field in the runtime data message and determine the sampling sequence number as the sampling order number. The sampling order number is used as the input object for judging the sampling order and numbering continuity under the same source power terminal identifier. The calculation of subsequent adjacent number increment units is performed based on this sampling order number.
[0026] S113, parse the local sampling time field and the transmission time field in the runtime data packet, and determine them as the terminal local sampling time and the terminal communication transmission time, respectively. The terminal local sampling time is used to express the original time position of the terminal-side sampling action, and the terminal communication transmission time is used to express the time position of the sampled data entering the communication link from the terminal side. The time interval between the two is used as the terminal-side temporary storage interval between sampling and transmission.
[0027] S114: Read the server's local clock reading when the server receives the running data packet, write it into the receiving time field, and determine the receiving time field as the server's receiving time. The server's receiving time serves as the time position for receiving the running data packet under the server's time reference, and is used for subsequent uplink arrival interval calculation and server reference transmission home time determination.
[0028] S115: Extract voltage, current, power, and temperature values from the operating parameter fields, and write these values, along with the source power supply terminal identifier, sampling sequence number, terminal local sampling time, terminal communication transmission time, and server reception time, into the power supply operating record. Thus, the power supply operating record already possesses the correspondence between terminal identity, sampling sequence, terminal-side time, server-side reception time, and operating parameters before entering subsequent processing.
[0029] S2: Obtain communication receipt records and calculate uplink transmission compensation duration. Communication receipt records are associated with the same source power terminal identifier and the same sampling sequence number, providing the server receipt issuance time and terminal receipt arrival time. The server calculates the uplink transmission compensation duration based on the terminal communication sending time, server receiving time, server receipt issuance time, and terminal receipt arrival time. The input to this step comes from the power operation record formed in S1 and its associated communication receipt records, and the output is the uplink transmission compensation duration used in S3 to convert and correct the acquisition home time.
[0030] S211: Obtain the communication receipt data packet associated with the same source power terminal identifier and the same sampling sequence number. Parse the server receipt time field and terminal receipt time field in the communication receipt data packet. Determine the server receipt time field as the server receipt issuance time and the terminal receipt time field as the terminal receipt arrival time, and generate a receipt time pair. The receipt time pair and the corresponding power operation record together constitute the timing input of one sampling communication process.
[0031] S212, calculate the uplink arrival interval between the server receiving time and the terminal communication sending time. The uplink arrival interval is used to express the time difference between when the running data packet is sent by the source power terminal and when it is received by the server. Its input is the terminal communication sending time and the server receiving time in the power operation record.
[0032] S213, calculate the receipt return interval relative to the server receipt sending time. The receipt return interval is used to express the time difference between the receipt being sent from the server side and arriving at the terminal side. Its inputs are the server receipt sending time and the terminal receipt arrival time in the communication receipt record.
[0033] S214, compare the absolute value of the interval difference between the uplink arrival interval and the acknowledgment return interval, and compare this absolute value of the interval difference with a preset transmission symmetry tolerance threshold. The preset transmission symmetry tolerance threshold is a configuration boundary used to determine whether the uplink transmission status and the acknowledgment return status meet the symmetry processing conditions.
[0034] S215, when the absolute value of the interval difference is not greater than the preset transmission symmetry tolerance threshold, the uplink arrival interval and the acknowledgment return interval are averaged to generate a symmetric link compensation candidate duration, and this symmetric link compensation candidate duration is determined as the uplink transmission compensation duration. This process involves both the uplink arrival interval and the acknowledgment return interval in determining the compensation duration, and is suitable for timing states where the difference between the two is within the preset transmission symmetry tolerance threshold.
[0035] S216, when the absolute value of the interval difference is greater than the preset transmission symmetry tolerance threshold, the uplink arrival interval is selected as the candidate duration for asymmetric link compensation, and this candidate duration for asymmetric link compensation is determined as the uplink transmission compensation duration. This process ensures that the compensation duration directly corresponds to the uplink arrival status of the running data packet, avoiding the use of the acknowledgment return interval as an equal compensation basis for averaging when the deviation between the uplink arrival interval and the acknowledgment return interval is large.
[0036] S3, based on the uplink transmission compensation duration, converts the terminal's local sampling time into a corrected acquisition attribution time based on the server's time reference. This step receives the terminal's local sampling time, terminal communication transmission time, and server reception time generated in S1, and the uplink transmission compensation duration generated in S2. During the conversion, the server's reference transmission attribution time is first determined, then the terminal-side temporary storage interval is rolled back to obtain the candidate sampling attribution time under the server's time reference. The output corrected acquisition attribution time is used for the time attribution field of subsequent archived records.
[0037] S311, calculate the terminal-side temporary storage interval relative to the terminal's local sampling time. The terminal-side temporary storage interval is used to express the duration between when the source power terminal completes local sampling and when it sends out the operation data message. It is determined by the terminal communication transmission time and the terminal's local sampling time in the same power supply operation record.
[0038] S312, determine the server reference transmission home time based on the server reception time and the uplink transmission compensation duration. The server reference transmission home time is used to indicate the home time position of the event of the running data packet being sent from the terminal side under the server time reference. The server reception time and the uplink transmission compensation duration jointly define its time relationship.
[0039] S313, using the terminal-side temporary storage interval as the duration between sampling and transmission, and backtracking the terminal-side temporary storage interval based on the server's reference transmission time, a sampling attribution candidate time under the server's time reference is obtained. This sampling attribution candidate time is used to map the terminal's local sampling behavior to the server's time reference, rather than directly using the terminal's local sampling time or the server's reception time as the archiving time.
[0040] S314, the candidate sampling time is associated with the source power terminal identifier and sampling sequence number and written to generate the corrected sampling time. The corrected sampling time is associated with the source power terminal identifier to distinguish the sampling time of different source power terminals; the corrected sampling time is associated with the sampling sequence number to form a consistent time archiving basis with the valid operation records after the gap mark and duplicate record filtering.
[0041] S4: For each power supply operation record with the same source power terminal identifier, arrange them according to the sampling sequence number, and generate a gap mark record based on the incrementing unit between adjacent sampling sequence numbers. The input of this step is multiple power supply operation records corresponding to the same source power terminal identifier, the processing object is the sampling sequence number in the above power supply operation records, and the output is a gap mark record or a state where no gap mark record exists. Figure 3 In the process, the sampling sequence numbers under the same source power terminal identifier form a terminal sampling sequence in ascending order, and the incrementing unit of the number between adjacent record pairs is used to indicate whether the sampling sequence is continuous.
[0042] S411, Obtain the power supply operation records corresponding to the power supply terminal identifiers from the same source, and establish a terminal sampling sequence according to the sampling order numbering from smallest to largest. Each item in the terminal sampling sequence corresponds to one power supply operation record, and the sequence sorting is only performed under the same source power supply terminal identifier.
[0043] S412, in the terminal sampling sequence, two adjacent power supply operation records are selected sequentially to form an adjacent record pair. The adjacent record pair includes the previous power supply operation record and the next power supply operation record, both of which belong to the same source power supply terminal identifier.
[0044] S413, calculate the increment unit of the sampling sequence number of the later power supply operation record relative to the sampling sequence number of the previous power supply operation record in an adjacent record pair. The increment unit is used to characterize the difference in sampling sequence numbers between adjacent record pairs, and it is subsequently compared with a preset continuous increment unit.
[0045] S414: When the incrementing unit of the number is greater than the preset consecutive incrementing unit, the number interval between the previous power supply operation record and the next power supply operation record is determined as a missing number interval, and a gap mark record is generated. When the incrementing unit of the number is not greater than the preset consecutive incrementing unit, it is determined that there is no gap mark record between the adjacent record pairs. The preset consecutive incrementing unit can be determined by the sampling sequence number step size configuration value corresponding to the power supply terminal identifier from the same source.
[0046] S415, read the sampling sequence number step size configuration value corresponding to the power supply terminal identifier from the same source, determine the sampling sequence number step size configuration value as a preset continuous increment unit, and compare the difference between the number increment unit and the sampling sequence number step size configuration value. The sampling sequence number step size configuration value is used to represent the increment unit between adjacent sampling sequence numbers of the power supply terminal under normal continuous sampling conditions.
[0047] S416, when the incrementing unit of the number is a consecutive integer multiple of the sampling sequence number step size configuration value, the missing sampling sequence number is estimated item by item based on the sampling sequence number and sampling sequence number step size configuration value of the previous power supply operation record. The missing sampling sequence numbers estimated item by item are used to construct the missing number details and are associated with the corresponding source power supply terminal identifier and adjacent record pairs.
[0048] S417, when the incrementing unit of the number does not conform to the continuous integer multiple relationship, adjacent record pairs are written into the abnormal incrementing queue, a missing number detail is generated, and the missing number range is statistically obtained. The abnormal incrementing queue is used to record adjacent record pairs that cannot be estimated item by item according to the sampling sequence step size configuration value, so as to distinguish this type of number incrementing state from the normal integer multiple missing state.
[0049] S5: For power supply operation records with the same sampling sequence number, determine the valid operation record by combining the communication verification result and the server reception time, and generate an archived record based on the corrected acquisition attribution time, source power supply terminal identifier, and operation parameter type. The inputs to this step are the power supply operation records with the same sampling sequence number under the same source power supply terminal identifier, the communication verification result corresponding to each power supply operation record, and the corrected acquisition attribution time formed in S3. The outputs are the valid operation records and the archived records generated from their operation parameters. Figure 4 In the process, the candidate group with repeated numbering receives candidate running records with the same sampling sequence number. After filtering, the valid running records are obtained, and the running parameters in the valid running records are mapped to different running parameter types to form parameter archive items.
[0050] S511: Obtain the operation records of each power supply with the same sampling sequence number under the same source power terminal identifier, write each power supply operation record into the duplicate number candidate group, and read the communication verification result corresponding to each power supply operation record. The communication verification result is used to indicate whether the corresponding candidate operation record is in the pass state, and its source is the output of the communication verification process corresponding to the candidate operation record.
[0051] S512, when there is a candidate running record in the duplicate numbered candidate group with a communication verification result of "passed", select the candidate running record with the earliest server reception time from the candidate running records corresponding to the "passed" status and determine it as a valid running record. This valid running record retains fields such as source power terminal identifier, sampling sequence number, server reception time, voltage value, current value, power value, and temperature value, and establishes a correspondence with the corrected acquisition attribution time generated in S3.
[0052] S513: Retrieve voltage, current, power, and temperature values from valid operation records. Determine the corresponding operation parameter type for each value according to a preset operation parameter type mapping table. The preset operation parameter type mapping table establishes the correspondence between operation parameter fields and their types. The mapped objects include at least voltage, current, power, and temperature values. Voltage values correspond to voltage types, current values to current types, power values to power types, and temperature values to temperature types.
[0053] S514: The corrected acquisition time, source power terminal identifier, and parameter archiving items are written to the same archive storage record, and the sampling sequence number is sorted to generate an archive record. The parameter archiving items consist of the operating parameter type and its corresponding value. The archive record uses the corrected acquisition time to indicate the sampling time assignment, the source power terminal identifier to indicate the terminal assignment, and the sampling sequence number to indicate the sampling sequence assignment. After the archive record is generated, its field status can be verified: the corrected acquisition time, source power terminal identifier, sampling sequence number sorting result, and parameter archiving items formed by voltage, current, power, and temperature values should be readable within the same archive storage record.
[0054] Through steps S1 to S5 above, the operational data packets sampled by the source power terminal are first parsed into power operation records, and then the communication receipt records are used to calculate the uplink transmission compensation duration. The corrected acquisition attribution time is jointly determined by the server reception time, the uplink transmission compensation duration, and the terminal-side temporary storage interval. The sampling sequence number under the same source power terminal identifier is used to generate a gap mark record. The candidate group of duplicate numbers corresponding to the same sampling sequence number is used to determine the valid operational records. The operational parameters in the valid operational records are written into the archive record according to the operational parameter type. Thus, a traceable data flow relationship is formed between the input source, processing process, intermediate state, and output result.
[0055] Example 2: Please see Figure 5 This embodiment provides a smart power data collaborative processing system for implementing the method described in Embodiment 1. Figure 5 This illustrates the collaborative relationships between the data acquisition module, calculation module, correction module, gap marking module, and archiving module.
[0056] The data acquisition module is used to acquire power supply operation records. It receives the operation data message encapsulated by the source power terminal after completing a single local sampling, parses the terminal identity field, sampling sequence number field, local sampling time field, transmission time field, and operation parameter field in the operation data message, and writes the server's local clock reading at the time the server receives the operation data message into the reception time field. The power supply operation record output by the data acquisition module includes the source power terminal identifier, sampling sequence number, terminal local sampling time, terminal communication transmission time, server reception time, voltage value, current value, power value, and temperature value. The output of the data acquisition module forms a data transmission relationship with the data receiving positions of the calculation module, correction module, gap marking module, and archiving module. Specifically, the calculation module reads the terminal communication transmission time and server reception time; the correction module reads the terminal local sampling time, terminal communication transmission time, and server reception time; the gap marking module reads the source power terminal identifier and sampling sequence number; and the archiving module reads the source power terminal identifier, sampling sequence number, and operation parameter values.
[0057] The calculation module is connected to the data acquisition module and is used to acquire communication receipt records and calculate the uplink transmission compensation duration. The calculation module receives the server receipt sending time and terminal receipt arrival time from the communication receipt records, and reads the terminal communication sending time and server receiving time from the power operation record output by the data acquisition module. The calculation module first forms the uplink arrival interval and receipt return interval, and then compares the absolute value of the interval difference between the two with a preset transmission symmetry tolerance threshold. When the absolute value of the interval difference is not greater than the preset transmission symmetry tolerance threshold, the calculation module outputs a symmetric link compensation candidate duration as the uplink transmission compensation duration; when the absolute value of the interval difference is greater than the preset transmission symmetry tolerance threshold, the calculation module outputs an asymmetric link compensation candidate duration as the uplink transmission compensation duration. The output of the calculation module is connected to the correction module, enabling the uplink transmission compensation duration to be included in the conversion process for correcting the acquisition home time.
[0058] The correction module, connected to the calculation module, converts the terminal's local sampling time into a corrected acquisition attribution time based on the uplink transmission compensation duration. The correction module reads the terminal's local sampling time, terminal communication transmission time, and server reception time from the data acquisition module, and the uplink transmission compensation duration from the calculation module. First, the correction module determines the terminal-side temporary storage interval based on the terminal communication transmission time and the terminal's local sampling time. Then, it determines the server reference transmission attribution time based on the server reception time and the uplink transmission compensation duration. Subsequently, it backs down the terminal-side temporary storage interval based on the server reference transmission attribution time to obtain the sampling attribution candidate time under the server time reference. After associating the sampling attribution candidate time with the source power terminal identifier and sampling sequence number, the correction module outputs the corrected acquisition attribution time. The output of the correction module is connected to the archiving module, enabling the archiving module to organize archived records according to the server time reference.
[0059] The gap marking module, connected to the correction module, is used to arrange the operating records of each power source with the same source power terminal identifier according to the sampling sequence number, and generate gap marking records based on the incrementing unit between adjacent sampling sequence numbers. The gap marking module reads the source power terminal identifier and sampling sequence number from the record set associated by the data acquisition module or the correction module, aggregates the records according to the source power terminal identifier, and sorts the sampling sequence numbers under the same source power terminal identifier from smallest to largest, forming a terminal sampling sequence. The gap marking module sequentially reads two sampling sequence numbers from adjacent record pairs to obtain the incrementing unit, and compares it with a preset consecutive incrementing unit. When the incrementing unit is greater than the preset consecutive incrementing unit, the gap marking module outputs a gap marking record; when the incrementing unit is not greater than the preset consecutive incrementing unit, the gap marking module outputs a state that no gap marking record exists. The missing number marking module can also read the sampling sequence step size configuration value corresponding to the power terminal identifier from the same source, use it as a preset continuous increment unit, and estimate the missing sampling sequence number item by item when the number increment unit is a continuous integer multiple of the sampling sequence step size configuration value; when the number increment unit does not conform to the continuous integer multiple relationship, the adjacent record pairs are written into the abnormal increment queue, generating missing number details and statistically obtaining the missing number range.
[0060] The archiving module, connected to the gap marking module, is used to determine valid operating records for power supply operation records with the same sampling sequence number, combining communication verification results and server reception time. It then generates archived records based on the corrected acquisition time, source power supply terminal identifier, and operating parameter type. The archiving module reads operating records with the same sampling sequence number under the same source power supply terminal identifier and writes them into a duplicate number candidate group. It reads the communication verification results corresponding to each power supply operation record. When a candidate operating record in the duplicate number candidate group has a communication verification result of "pass," the archiving module selects the candidate operating record with the earliest server reception time from the candidates corresponding to the "pass" status as the valid operating record. The archiving module then reads the voltage, current, power, and temperature values from the valid operating records and determines the corresponding operating parameter types according to a preset operating parameter type mapping table, forming parameter archive items. Finally, the archiving module writes the corrected acquisition time, source power supply terminal identifier, and parameter archive items into the same archive storage record and sorts the sampling sequence number to generate the archived record.
[0061] In this embodiment, the data boundaries between the modules are as follows: the data acquisition module forms a power operation record; the calculation module forms an uplink transmission compensation duration; the correction module forms a correction acquisition attribution time; the gap marking module forms a gap marking record, a missing number detail, or a status indicating that a gap marking record does not exist; and the archiving module forms a valid operation record and an archive record.
[0062] The processes, field states, processing order, judgment conditions, parameter sources, module collaboration relationships, and carrier inheritance relationships described in the above embodiments are used to explain the possible implementations of the present invention and should not limit the present invention to the specific embodiments listed. Without departing from the technical solutions described in the present invention, any equivalent substitutions, equivalent modifications, equivalent combinations, order adjustments, corresponding module replacements, equivalent transformations of field names, equivalent inheritance of execution entities, or equivalent changes in carrier forms that can be conceived by those skilled in the art should fall within the scope of protection of this patent; however, they should not be extended to unclaimed topics, nor should the substantive correspondence of technical objects be changed through changes in reference numerals.
Claims
1. A method for collaborative processing of intelligent power supply data, characterized in that, Includes the following steps: Acquire power supply operation records, which include source power terminal identifier, sampling sequence number, terminal local sampling time, terminal communication transmission time, server reception time, voltage value, current value, power value, and temperature value; Obtain communication receipt records, which include the server receipt sending time and the terminal receipt arrival time. Calculate uplink transmission compensation duration based on the terminal communication sending time, the server receiving time, the server receipt sending time, and the terminal receipt arrival time. Based on the uplink transmission compensation duration, the terminal local sampling time is converted into the corrected acquisition home time of the server time base; For each power supply operation record with the same source power terminal identifier, they are arranged according to the sampling order number, and a gap mark record is generated according to the number increment unit between adjacent sampling order numbers; For each power supply operation record that has the same sampling sequence number, the valid operation record is determined by combining the communication verification result and the server receiving time, and an archive record is generated based on the corrected acquisition time, the source power supply terminal identifier and the operation parameter type.
2. The intelligent power data collaborative processing method according to claim 1, characterized in that, The process of obtaining the power supply operation record specifically includes: The system obtains the running data packet encapsulated by the source power terminal after completing a single local sampling, parses the terminal identity field, sampling sequence number field, local sampling time field, sending time field, and running parameter field in the running data packet, and writes the server local clock reading when the server receives the running data packet into the receiving time field. The terminal identity field is determined as the source power terminal identifier; the sampling sequence number field is determined as the sampling sequence number; the local sampling time field is determined as the local sampling time of the terminal; the sending time field is determined as the communication sending time of the terminal; and the receiving time field is determined as the receiving time of the server, thereby obtaining the power operation record.
3. The intelligent power data collaborative processing method according to claim 1, characterized in that, The calculation process for the uplink transmission compensation duration specifically includes: Obtain communication receipt data packets associated with the same source power terminal identifier and the same sampling sequence number; parse the server receipt time field and terminal receipt time field in the communication receipt data packets; determine the server receipt time field as the server receipt sending time; determine the terminal receipt time field as the terminal receipt arrival time; and generate receipt time pairs. Calculate the uplink arrival interval between the server receiving time and the terminal communication sending time, calculate the receipt return interval between the terminal receipt arrival time and the server receipt sending time, and determine the uplink transmission compensation duration based on the deviation between the uplink arrival interval and the receipt return interval.
4. The intelligent power data collaborative processing method according to claim 3, characterized in that, The process of determining the deviation state specifically includes: Compare the absolute value of the interval difference between the uplink arrival interval and the receipt return interval. When the absolute value of the interval difference is not greater than a preset transmission symmetry tolerance threshold, average the uplink arrival interval and the receipt return interval to generate a symmetric link compensation candidate duration. When the absolute value of the interval difference is greater than the preset transmission symmetry tolerance threshold, the uplink arrival interval is selected as the candidate duration for asymmetric link compensation. The symmetric link compensation duration or the asymmetric link compensation duration is determined as the uplink transmission compensation duration.
5. The intelligent power data collaborative processing method according to claim 1, characterized in that, The conversion process for correcting the acquisition time specifically includes: Calculate the terminal-side temporary storage interval relative to the terminal's local sampling time, determine the server's reference transmission time based on the server's receiving time and the uplink transmission compensation duration, and use the terminal-side temporary storage interval as the duration between sampling and transmission. Based on the server reference sending attribution time, the terminal-side temporary storage interval is rolled back to obtain the sampling attribution candidate time under the server time reference, and the sampling attribution candidate time is associated with the source power terminal identifier and the sampling sequence number and written to generate the corrected acquisition attribution time.
6. The intelligent power data collaborative processing method according to claim 1, characterized in that, The process of generating the gap mark record specifically includes: Obtain the power supply operation records corresponding to the same source power terminal identifier, establish a terminal sampling sequence according to the sampling order numbering from small to large, and select two adjacent power supply operation records in the terminal sampling sequence to form adjacent record pairs; Calculate the increment of the sampling sequence number of the later power operation record relative to the sampling sequence number of the previous power operation record in the adjacent record pair. When the incrementing unit of the number is greater than the preset continuous incrementing unit, the number interval between the previous power operation record and the next power operation record is determined as the missing number interval, and the gap mark record is generated; otherwise, the gap mark record does not exist.
7. The intelligent power data collaborative processing method according to claim 6, characterized in that, The process of determining the missing number range specifically includes: Read the sampling sequence number step size configuration value corresponding to the same source power terminal identifier, determine the sampling sequence number step size configuration value as the preset continuously increasing unit, and compare the difference between the number increasing unit and the sampling sequence number step size configuration value; When the incrementing unit of the number is a consecutive integer multiple of the sampling sequence number step size configuration value, the missing sampling sequence number is estimated item by item based on the sampling sequence number and the sampling sequence number step size configuration value of the previous power supply operation record. When the increment of the number does not conform to the consecutive integer multiple relationship, the adjacent record pairs are written into the abnormal increment queue, a missing number detail is generated, and the missing number range is statistically obtained.
8. The intelligent power data collaborative processing method according to claim 1, characterized in that, The process of determining the valid operation record specifically includes: Obtain the power supply operation records with the same sampling sequence number under the same source power terminal identifier, write each power supply operation record into the duplicate number candidate group, and read the communication verification result corresponding to each power supply operation record; When there is a candidate running record in the candidate group with a communication verification result of "passed", the candidate running record with the earliest receiving time of the server is selected from the candidate running records corresponding to the "passed" status and determined as the valid running record.
9. The intelligent power supply data collaborative processing method according to claim 8, characterized in that, The process of generating the archived records specifically includes: Obtain the voltage, current, power, and temperature values from the valid operation records, and determine the operation parameter types corresponding to the voltage, current, power, and temperature values according to the preset operation parameter type mapping table. The corrected acquisition time, the source power terminal identifier, and the parameter archive item are written into the same archive storage record, and the sampling sequence number is sorted to generate the archive record.
10. A smart power data collaborative processing system, characterized in that, The system is used to implement the method according to any one of claims 1-9, comprising: The data acquisition module is used to acquire power supply operation records, which include source power terminal identifier, sampling sequence number, terminal local sampling time, terminal communication transmission time, server reception time, voltage value, current value, power value, and temperature value. The calculation module, connected to the data acquisition module, is used to acquire communication receipt records, which include the server receipt sending time and the terminal receipt arrival time. The uplink transmission compensation duration is calculated based on the terminal communication sending time, the server receiving time, the server receipt sending time, and the terminal receipt arrival time. The correction module, connected to the calculation module, is used to convert the terminal local sampling time into the corrected acquisition home time based on the uplink transmission compensation duration. A gap marking module, connected to a correction module, is used to arrange the power operation records of each power source terminal identifier according to the sampling order numbering, and generate gap marking records according to the numbering increment unit between adjacent sampling order numbers; The archiving module, connected to the gap marking module, is used to determine the valid operating record for each of the power supply operating records that have the same sampling sequence number, by combining the communication verification result and the server receiving time, and to generate an archived record based on the corrected acquisition attribution time, the source power supply terminal identifier, and the operating parameter type.