Methods, apparatus, equipment and media for concurrent reporting of multiple frame files
By using a multi-frame file concurrent reporting method, the speed and efficiency issues of power acquisition terminals when reporting a large number of events are resolved, achieving faster message uploads and timeliness.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-05
- Publication Date
- 2026-03-13
AI Technical Summary
In existing technologies, when a large number of events need to be reported, the traditional frame file reporting method of power acquisition terminals results in slow reporting speed, low efficiency and inability to meet timeliness requirements.
The method of concurrent reporting using multiple frame files is adopted. By using pre-created frame files and frame detection threads for reporting channels, each reporting channel has its own frame file, and frame reporting is carried out in parallel, using a concurrent message reporting method.
This improved the message uploading speed and efficiency of power acquisition equipment, further enhancing the timeliness of message reporting.
Smart Images

Figure CN115811516B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method, apparatus, device and medium for concurrent reporting of multiple frame files. Background Technology
[0002] Currently, power data acquisition terminals collect a wide variety of terminal events with multiple possible causes, resulting in situations where a large number of events occur simultaneously and require reporting. Related technologies typically employ a method where all reportable content is written to a single frame file, and content is sequentially read from the frame file and reported through the corresponding channels. However, due to the limited memory of traditional acquisition terminals, in frame-based reporting, all channels share a single frame file. Each time a report is read from the frame file, the next channel's report can only be submitted after the previous channel's report is complete. When a large number of events need to be reported, this method is slow, inefficient, and fails to meet the timeliness requirements. Summary of the Invention
[0003] The purpose of this application is to provide a method, apparatus, device, and medium for concurrent reporting of multiple frame files, which improves the message uploading speed and efficiency of power acquisition equipment and further enhances the timeliness of message reporting.
[0004] In a first aspect, the present invention provides a method for concurrent reporting of multiple frame files, applied to a power acquisition terminal; the method includes: determining a pre-created frame file and a frame detection thread for a reporting channel, and initializing the frame information corresponding to the frame file; the frame information corresponding to the frame file includes at least the file storage location, file size, and frame file header information; obtaining a message to be reported, determining whether the message to be reported exists in the frame file, performing frame detection on the message to be reported, and determining the detection result; when the detection result indicates that frame reporting is required, performing frame processing on the message to be reported in the frame file based on the frame detection thread of the reporting channel, and determining the frame message; and performing parallel frame reporting of the frame messages of each reporting channel.
[0005] In an optional implementation, the method further includes: creating a frame file based on the number of reporting channels; wherein each reporting channel is used to report one frame file.
[0006] In an optional implementation, the method further includes: obtaining the total number of online reporting channels; creating a reporting channel frame detection thread and a callback function for each reporting channel based on the total number of online reporting channels; wherein the reporting channel frame detection thread for each reporting channel runs concurrently, and the callback function is used to trigger frame detection and frame reporting.
[0007] In an optional implementation, the message to be reported is subjected to frame detection, and the detection result is determined, including: determining whether the message size of the message to be reported exceeds the preset framed message threshold; if yes, the message to be reported in the temporary buffer is written into the framed file of the corresponding channel; if no, the message to be reported in the temporary buffer is copied to the reporting queue buffer to wait for reporting.
[0008] In an optional implementation, the method further includes: if there is data to be reported in the frame file, performing last frame detection on the data to be reported in the frame file to determine whether all the data to be reported has been written into the corresponding frame file.
[0009] In an optional implementation, the frame-segmentation detection thread of the reporting channel performs frame-segmentation processing on the message to be reported in the frame file to determine the frame-segmented message. This includes: detecting the frame file of the corresponding channel based on the frame-segmentation detection thread of the reporting channel; if a write event of the message to be reported is detected, the written message to be reported is grouped into packets according to preset bytes to determine the frame-segmented message.
[0010] In an optional implementation, the framed messages of each reporting channel are reported in parallel, including: reading the framed messages that have been assembled into packets in all framed files based on the framed detection thread of the reporting channel, adding them to the corresponding reporting channel, and reporting the framed messages concurrently through each reporting channel.
[0011] Secondly, the present invention provides a device for concurrent reporting of multiple frame files, which is applied to a power acquisition terminal. The device includes: a determination and initialization module, used to determine a pre-created frame file and a frame detection thread for the reporting channel, and to initialize the frame information corresponding to the frame file; the frame information corresponding to the frame file includes at least the file storage location, file size, and frame file header information; a message acquisition and frame detection module, used to acquire the message to be reported, determine whether the message to be reported exists in the frame file, perform frame detection on the message to be reported, and determine the detection result; a frame processing module, used to perform frame processing on the message to be reported in the frame file based on the frame detection thread of the reporting channel when the detection result indicates that frame reporting is required, and determine the frame message; and a frame reporting module, used to perform parallel frame reporting of the frame messages of each reporting channel.
[0012] Thirdly, the present invention provides an electronic device including a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, and the processor executing the computer-executable instructions to implement the method for concurrent reporting of multi-frame files according to any of the foregoing embodiments.
[0013] Fourthly, the present invention provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are invoked and executed by a processor, the computer-executable instructions cause the processor to implement the method for concurrent reporting of multi-frame files according to any of the foregoing embodiments.
[0014] This application provides a method, apparatus, device, and medium for concurrent reporting of multiple framed files. The method is applied to a power data acquisition terminal. During implementation, firstly, pre-created framed files and frame detection threads for reporting channels are determined. The framed information corresponding to the framed files is initialized, including at least the file storage location, file size, and framed file header information. Next, the message to be reported is acquired, and it is determined whether the message exists in the framed file. Frame detection is performed on the message to be reported, and the detection result is determined. When the detection result indicates that framed reporting is required, the message to be reported in the framed file is processed into frames based on the frame detection thread of the reporting channel to determine the framed message. Parallel framed reporting is then performed on the framed messages for each reporting channel. This method enables concurrent reporting from the data acquisition terminal through multiple frame files. Since each reporting channel has its own frame file, individual reporting does not affect each other. Furthermore, the concurrent message reporting greatly improves the message upload speed and efficiency of the power data acquisition equipment, and further enhances the timeliness of message reporting. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0016] Figure 1 A flowchart illustrating a method for concurrent reporting of multi-frame files provided in this application embodiment;
[0017] Figure 2 A schematic diagram of device interaction provided in an embodiment of this application;
[0018] Figure 3 A structural diagram of an apparatus for concurrent reporting of multi-frame files provided in an embodiment of this application;
[0019] Figure 4 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0021] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0022] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0023] See Figure 1 As shown, this application provides a method for concurrent reporting of multiple frame files. The method is applied to a power data acquisition terminal and mainly includes the following steps S102 to S108:
[0024] Step S102: Determine the pre-created frame file and the frame detection thread of the reporting channel, and initialize the frame information corresponding to the frame file.
[0025] The reporting channels of the power acquisition terminal can mainly include Ethernet, 4G, and RS-485, and different events can be reported through designated channels. In one implementation, pre-created frame files can be matched with reporting channels to enable subsequent concurrent reporting. When creating frame files, they can be created according to the number of reporting channels; each reporting channel is used to report one frame file.
[0026] The frame information corresponding to the aforementioned frame files includes at least the file storage location, file size, and frame file header information. During initialization, the corresponding frame files can be created and their storage location, file size, and frame file header information (including relevant parameter information for each channel) can be initialized based on the number of reporting channels after each restart or initialization of the acquisition terminal.
[0027] Step S104: Obtain the message to be reported, determine whether the message to be reported exists in the frame file, perform frame detection on the message to be reported, and determine the detection result.
[0028] In one implementation, determining whether the message to be reported exists in the frame file is to determine whether the message to be reported needs to undergo frame detection. In one implementation, when it is determined that frame detection is required, the message to be reported is subjected to frame detection, and the detection result is determined. First, it can be determined whether the message size of the message to be reported exceeds a preset frame message threshold. If it exceeds the threshold, the message to be reported in the temporary buffer is written into the frame file of the corresponding channel; if it does not exceed the threshold, the message to be reported in the temporary buffer is copied to the reporting queue buffer to wait for reporting.
[0029] Step S106: When the detection result indicates that frame reporting is required, the frame detection thread of the reporting channel performs frame processing on the message to be reported in the frame file to determine the frame message.
[0030] Step S108: Perform parallel frame reporting of the framed messages of each reporting channel.
[0031] The method for concurrent reporting of multiple frame files provided in this application realizes concurrent reporting of the acquisition terminal through multiple frame files. Since each reporting channel has its own frame file, individual reporting does not affect each other. Furthermore, the concurrent message reporting can greatly improve the message uploading speed and efficiency of power acquisition equipment, and further improve the timeliness of message reporting.
[0032] In one implementation, to ensure that each upload channel corresponds to a separate frame file, frame detection threads for each channel can be pre-created. In specific implementations, this may include the following steps 1.1) and 1.2):
[0033] Step 1.1), obtain the total number of online reporting channels;
[0034] Step 1.2) Based on the total number of online reporting channels, create a reporting channel frame detection thread and a callback function for each reporting channel; wherein, the reporting channel frame detection thread for each reporting channel runs concurrently, and the callback function is used to trigger frame detection and frame reporting.
[0035] Furthermore, to determine whether all the messages to be reported have been written to the corresponding frame file, the above method can also perform last frame detection. That is, if there is message data to be reported in the frame file, last frame detection is performed on the messages to be reported in the frame file to determine whether all the messages to be reported have been written to the corresponding frame file.
[0036] In an optional implementation, the above-mentioned frame detection thread of the reporting channel performs frame processing on the message to be reported in the frame file to determine the framed message. In specific implementation, the frame file of the corresponding channel can be detected based on the frame detection thread of the reporting channel. If a write event of the message to be reported is detected, the written message to be reported is processed into packets according to preset bytes to determine the framed message.
[0037] Furthermore, the framed messages of each reporting channel are reported in parallel. The framed messages that have been assembled into packets in all framed files can be read by the framed detection thread of the reporting channel and added to the corresponding reporting channel. The framed messages are then reported concurrently through each reporting channel.
[0038] For ease of understanding, this application provides a specific implementation method, which mainly includes the following steps:
[0039] S1, Creation and initialization of frame files: After each restart or initialization, the acquisition terminal creates the corresponding frame file according to the number of reporting channels and initializes the storage location, file size, and frame file header information (including relevant parameter information of each channel). Each channel has its own frame file.
[0040] S2, create frame detection threads for each channel:
[0041] ① Obtain the total number of online channels.
[0042] ② Create a sub-thread for each channel based on the total number of online channels. The sub-threads for each channel run concurrently without interfering with each other.
[0043] ③ Create reporting callback functions for each channel's sub-thread to implement subsequent frame detection and reporting functions. During creation, the relevant thread interface can be called. One channel corresponds to one frame detection thread. Each frame detection thread executes concurrently, resulting in high execution efficiency, and the individual frame detection sub-threads do not interfere with each other.
[0044] S3, Frame Detection: In the State Grid 698 terminal, the maximum length of a single frame is generally defined as no more than 2048 bytes. If this threshold is exceeded, frame splitting is required. If frame splitting is required, the message in the temporary buffer is written to the corresponding channel's frame file. If frame splitting is not required, the message data in the temporary buffer is copied to the reporting queue buffer to await reporting.
[0045] S4, Last Frame Detection: If message data exists in the frame file, the channel corresponding to that frame file is considered to need to be framed and reported. Subsequent last frame detection is required to determine whether all messages have been written to the corresponding frame file. If framing has been performed, the corresponding frame file will contain written framed messages, and the frame header information will record the number of framing operations. Messages that do not require framing are directly added to the reporting queue to await reporting.
[0046] S5, Frame processing: The reporting channel detects its own frame file. If a message is written, it performs packet assembly. Each frame consists of 2048 bytes.
[0047] S6, Framing Reporting: Reads all assembled packets from all frame files, adds them to the corresponding reporting channel, and reports them concurrently to the master station (client) through each channel. The master station is the client, and the terminal is the server. The master station sends requests to the terminal, or the terminal reports data to the master station. See [link to relevant documentation]. Figure 2 As shown.
[0048] S7, Clear Frame Information: After reporting is completed and an acknowledgment frame is received from the master station, or after the maximum number of reporting attempts is reached, clear the frame information in all frame files, and clear the reporting information such as the number of reporting attempts, reporting time, and reporting status.
[0049] In summary, in this embodiment of the application, the message to be reported (i.e. the content to be reported) is written into different frame files according to the reporting channel, and the data transmitted by each channel is independent and unaffected; moreover, a large number of events can be reported at the same time, ensuring the accuracy of event reporting; multiple channels can report at the same time, improving the efficiency of event reporting.
[0050] Based on the above method embodiments, this application also provides a device for concurrent reporting of multiple frame files, which is applied to a power data acquisition terminal; see also Figure 3 As shown, the device includes:
[0051] The determination and initialization module 32 is used to determine the pre-created frame file and the frame detection thread of the reporting channel, and to initialize the frame information corresponding to the frame file; the frame information corresponding to the frame file includes at least the file storage location, file size and frame file header information;
[0052] The message acquisition and frame detection module 34 is used to acquire the message to be reported, determine whether the message to be reported exists in the frame file, perform frame detection on the message to be reported, and determine the detection result.
[0053] The frame processing module 36 is used to perform frame processing on the message to be reported in the frame file based on the frame detection thread of the reporting channel when the detection result indicates that frame reporting is required, and to determine the frame message.
[0054] The frame reporting module 38 is used to perform parallel frame reporting of frame messages for each reporting channel.
[0055] The device for concurrent reporting of multiple frame files provided in this application embodiment enables concurrent reporting of the acquisition terminal through multiple frame files. Since each reporting channel has its own frame file, individual reporting does not affect each other. Furthermore, the concurrent message reporting greatly improves the message uploading speed and efficiency of the power acquisition equipment, and further enhances the timeliness of message reporting.
[0056] In some embodiments, the above apparatus further includes a frame file creation module, used to: create frame files according to the number of reporting channels; wherein each reporting channel is used to report one frame file.
[0057] In some embodiments, the above-mentioned apparatus further includes a reporting channel frame detection thread creation module, used to: obtain the total number of online reporting channels; create a reporting channel frame detection thread corresponding to each reporting channel and a callback function corresponding to each thread based on the total number of online reporting channels; wherein, the reporting channel frame detection thread corresponding to each reporting channel runs concurrently, and the callback function is used to trigger frame detection and frame reporting.
[0058] In some implementations, the frame detection module 34 is further configured to: determine whether the size of the message to be reported exceeds the preset frame message threshold; if so, write the message to be reported in the temporary buffer into the frame file of the corresponding channel; if not, copy the message to be reported in the temporary buffer to the reporting queue buffer to wait for reporting.
[0059] In some embodiments, the above-mentioned apparatus further includes a last frame detection module, used to: if there is data to be reported in the frame file, perform last frame detection on the data to be reported in the frame file to determine whether all the data to be reported has been written into the corresponding frame file.
[0060] In some implementations, the framing processing module 36 is further configured to: detect the framing file of the corresponding channel based on the framing detection thread of the reporting channel; if a write event of the message to be reported is detected, the written message to be reported is processed into packets according to preset bytes to determine the framing message.
[0061] In some implementations, the frame reporting module 38 is also used to: read the framed packets that have been assembled in all framed files based on the frame detection thread of the reporting channel, add them to the corresponding reporting channel, and perform concurrent frame reporting of the framed packets through each reporting channel.
[0062] The apparatus for concurrent reporting of multi-frame files provided in this application has the same implementation principle and technical effect as the aforementioned method embodiments. For the sake of brevity, any parts not mentioned in the embodiments of the apparatus for concurrent reporting of multi-frame files can be referred to the corresponding content in the aforementioned method embodiments for concurrent reporting of multi-frame files.
[0063] This application also provides an electronic device, such as... Figure 4 The diagram shows the structure of the electronic device 100, which includes a processor 41 and a memory 40. The memory 40 stores computer-executable instructions that can be executed by the processor 41. The processor 41 executes the computer-executable instructions to implement any of the above-mentioned methods for concurrent reporting of multi-frame files.
[0064] exist Figure 4 In the illustrated embodiment, the electronic device further includes a bus 42 and a communication interface 43, wherein the processor 41, the communication interface 43, and the memory 40 are connected via the bus 42.
[0065] The memory 40 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 43 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc. The bus 42 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 42 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0066] Processor 41 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 41 or by instructions in software form. Processor 41 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in the memory. The processor 41 reads the information in the memory and, in conjunction with its hardware, completes the steps of the method for concurrent reporting of multi-frame files as described in the preceding embodiment.
[0067] This application also provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the above-described method for concurrent reporting of multi-frame files. For specific implementation, please refer to the foregoing method embodiments, which will not be repeated here.
[0068] The computer program product of the method, apparatus, device and medium for concurrent reporting of multi-frame files provided in the embodiments of this application includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.
[0069] Unless otherwise specifically stated, the relative steps, numerical expressions, and values of the components and steps described in these embodiments do not limit the scope of this application.
[0070] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0071] In the description of this application, it should also be noted that, unless otherwise expressly specified and limited, the terms "set up," "install," "connect," and "link" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0072] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A method for concurrent reporting of multi-framed files, characterized in that, The method is applied to a power collection terminal; the method comprises: After each restart or initialization, a subframe file is created according to the number of reporting channels, and subframe information corresponding to the subframe file is initialized; each reporting channel is used for reporting a subframe file; the subframe information corresponding to the subframe file at least comprises a file storage location, a file size and subframe file header information; The total number of online reporting channels is obtained; based on the total number of online reporting channels, a reporting channel subframe detection thread corresponding to each reporting channel and a callback function corresponding to each thread are created; the reporting channel subframe detection thread corresponding to each reporting channel runs concurrently, and the callback function is used for triggering subframe detection and subframe reporting; A to-be-reported message is obtained, it is judged whether the to-be-reported message exists in the subframe file, the to-be-reported message is subjected to subframe detection, a detection result is determined, and the detection result is determined; When the detection result is that subframe reporting needs to be performed, the to-be-reported message in the subframe file is subjected to subframe processing based on the reporting channel subframe detection thread, and a subframe message is determined; The subframe message of each reporting channel is subjected to parallel subframe reporting; The to-be-reported message is written into different subframe files according to reporting channels, so that data transmitted by each channel is independent of each other; The to-be-reported message is subjected to subframe detection, and a detection result is determined, comprising: It is judged whether the message size of the to-be-reported message exceeds a preset subframe message threshold value; If yes, the to-be-reported message in a temporary cache is written into a subframe file of a corresponding channel; If no, the to-be-reported message in the temporary cache is copied to a reporting queue cache to wait for reporting; The method further comprises: If there is to-be-reported message data in the subframe file, the to-be-reported message in the subframe file is subjected to end subframe detection to judge whether the to-be-reported message has been completely written into a corresponding subframe file; The to-be-reported message in the subframe file is subjected to subframe processing based on the reporting channel subframe detection thread, and a subframe message is determined, comprising: The subframe file of a corresponding channel is detected based on the reporting channel subframe detection thread, if a to-be-reported message writing event is detected, the to-be-reported message is subjected to packet processing according to a preset byte, and a subframe message is determined.
2. The method for concurrent reporting of multi-framed files according to claim 1, wherein, The subframe message of each reporting channel is subjected to parallel subframe reporting, comprising: The subframe message which has completed packet processing in all subframe files is read based on the reporting channel subframe detection thread, is added to a corresponding reporting channel, and is subjected to concurrent subframe reporting through each reporting channel.
3. An apparatus for concurrent reporting of multi-framed files, the apparatus comprising: The device is applied to a power collection terminal; the device comprises: A determining and initializing module is configured to create the split frame files according to the number of reporting channels after each restart or initialization, and initialize split frame information corresponding to the split frame files; each reporting channel is configured to report a split frame file; the split frame information corresponding to the split frame file includes at least file storage location, file size and split frame file header information; the total number of online reporting channels is obtained; based on the total number of online reporting channels, a reporting channel split frame detection thread corresponding to each reporting channel and a callback function corresponding to each thread are created; the reporting channel split frame detection thread corresponding to each reporting channel runs concurrently, and the callback function is configured to trigger split frame detection and split frame reporting; A packet obtaining and split frame detection module is configured to obtain a to-be-reported packet, determine whether the to-be-reported packet exists in the split frame file, perform split frame detection on the to-be-reported packet, and determine a detection result; A split frame processing module is configured to, when the detection result is that split frame reporting is required, perform split frame processing on the to-be-reported packet in the split frame file based on the reporting channel split frame detection thread, and determine a split frame packet; A split frame reporting module is configured to perform parallel split frame reporting on the split frame packet of each reporting channel; The to-be-reported packet is written into different split frame files according to reporting channels, so that data transmitted by each channel is independent of each other; A packet obtaining and split frame detection module is configured to determine whether the packet size of the to-be-reported packet exceeds a preset split frame packet threshold; if yes, the to-be-reported packet in the temporary cache is written into the split frame file of the corresponding channel; if no, the to-be-reported packet in the temporary cache is copied to a reporting queue cache to wait for reporting; The apparatus is configured to, if there is to-be-reported packet data in the split frame file, perform end frame detection on the to-be-reported packet in the split frame file to determine whether the to-be-reported packet has been completely written into the corresponding split frame file; A split frame processing module is configured to perform detection on the split frame file of the corresponding channel based on the reporting channel split frame detection thread, and if a to-be-reported packet writing event is detected, the to-be-reported packet is packetized according to a preset byte for processing, and a split frame packet is determined.
4. An electronic device, comprising: The processor and the memory are included, the memory stores computer executable instructions capable of being executed by the processor, and the processor executes the computer executable instructions to implement the method for concurrent reporting of multiple split frame files according to claims 1 to 2.
5. A computer readable storage medium, characterized in that, The computer readable storage medium stores computer executable instructions, and when the computer executable instructions are called and executed by the processor, the computer executable instructions cause the processor to implement the method for concurrent reporting of multiple split frame files according to claims 1 to 2.
Citation Information
Patent Citations
File uploading method and device, equipment, and readable storage medium
CN107360233A
Concurrent data transmission method, system and device and computer readable storage medium
CN111917659A
Message reply method of electric power acquisition terminal
CN112104442A