CN115811516A - Method, device, equipment and medium for concurrently reporting multi-frame files - Google Patents

Method, device, equipment and medium for concurrently reporting multi-frame files Download PDF

Info

Publication number
CN115811516A
CN115811516A CN202211552086.XA CN202211552086A CN115811516A CN 115811516 A CN115811516 A CN 115811516A CN 202211552086 A CN202211552086 A CN 202211552086A CN 115811516 A CN115811516 A CN 115811516A
Authority
CN
China
Prior art keywords
framing
reporting
message
file
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211552086.XA
Other languages
Chinese (zh)
Inventor
徐亮
苟孟生
叶超飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Sanxing Medical and Electric Co Ltd
Original Assignee
Ningbo Sanxing Medical and Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Sanxing Medical and Electric Co Ltd filed Critical Ningbo Sanxing Medical and Electric Co Ltd
Priority to CN202211552086.XA priority Critical patent/CN115811516A/en
Publication of CN115811516A publication Critical patent/CN115811516A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a method, a device, equipment and a medium for concurrently reporting multi-frame files, which relate to the technical field of communication and comprise the following steps of; determining a pre-created framing file and a reporting channel framing detection thread, and initializing framing information corresponding to the framing file; the framing information corresponding to the framing file at least comprises a file storage position, a file size and framing file header information; acquiring a message to be reported, judging whether the message to be reported exists in a framing file, performing framing detection on the message to be reported, and determining a detection result; when the detection result is that frame reporting is needed, performing frame processing on a message to be reported in a frame file based on a reporting channel frame detection thread, and determining a frame message; and carrying out parallel frame-division reporting on the frame-division messages of each reporting channel. The message uploading speed and efficiency of the power acquisition equipment are improved, and the message reporting timeliness is further improved.

Description

Method, device, equipment and medium for concurrently reporting multi-frame files
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a medium for concurrently reporting multiple subframe files.
Background
At present, terminal events acquired by a power acquisition terminal are various in types, and the occurrence reasons are multiple in possibility, so that a large number of events occur simultaneously and need to be reported. In the related art, all contents to be reported are written into one frame file, and the contents are sequentially read from the frame file and reported through corresponding channels. However, because the memory of the conventional acquisition terminal is limited, all channels share one framing file in the framing reporting, and each time one piece of reporting content is read from the framing file for reporting, the reporting content of the next channel needs to be reported after the reporting of the content of the previous channel is completed. When a large amount of event contents need to be reported, the method has slow reporting speed, low reporting efficiency and cannot meet the timeliness of reporting.
Disclosure of Invention
The application aims to provide a method, a device, equipment and a medium for concurrently reporting multi-subframe files, so that the message uploading speed and efficiency of power acquisition equipment are improved, and the timeliness of message reporting is further improved.
In a first aspect, the invention provides a method for concurrently reporting multi-frame files, which is applied to a power acquisition terminal; the method comprises the following steps: determining a pre-established framing file and a reporting channel framing detection thread, and initializing framing information corresponding to the framing file; the framing information corresponding to the framing file at least comprises a file storage position, a file size and framing file header information; acquiring a message to be reported, judging whether the message to be reported exists in a framing file, performing framing detection on the message to be reported, and determining a detection result; when the detection result is that frame reporting is needed, performing frame processing on a message to be reported in a frame file based on a reporting channel frame detection thread, and determining a frame message; and carrying out parallel frame-division reporting on the frame-division messages of each reporting channel.
In an alternative embodiment, the method further comprises: creating a frame file according to the number of the reporting channels; each reporting channel is used for reporting a framing file.
In an alternative embodiment, the method further comprises: acquiring the total number of online reporting channels; establishing a reporting channel framing detection thread corresponding to each reporting channel and a callback function corresponding to each thread based on the total number of the online reporting channels; and the callback function is used for triggering framing detection and framing reporting.
In an optional embodiment, performing framing detection on the message to be reported, and determining a detection result includes: judging whether the message size of the message to be reported exceeds a preset frame message threshold value or not; if so, writing the message to be reported in the temporary cache into the framing file of the corresponding channel; and if not, copying the message to be reported in the temporary buffer to a reporting queue buffer for waiting reporting.
In an alternative embodiment, the method further comprises: and if the message data to be reported exists in the framing file, performing last frame detection on the message to be reported in the framing file to judge whether the message to be reported is completely written into the corresponding framing file.
In an optional embodiment, the framing processing is performed on the to-be-reported packet in the framing file based on the reporting channel framing detection thread, and determining the framing packet includes: and detecting the framing files of the corresponding channels based on the reporting channel framing detection thread, and if a writing event of the message to be reported is detected, packaging the written message to be reported according to preset bytes to determine the framing message.
In an optional embodiment, performing parallel frame-wise reporting on the frame-wise packet of each reporting channel includes: reading the framed messages which are packaged in all the framed files based on the framing detection thread of the reporting channel, adding the framed messages to the corresponding reporting channel, and performing concurrent framing reporting on the framed messages through each reporting channel.
In a second aspect, the invention provides a device for concurrently reporting multi-frame files, which is applied to a power acquisition terminal; the device comprises: the determining and initializing module is used for determining a pre-established framing file and a reporting channel framing detection thread, and initializing framing information corresponding to the framing file; the framing information corresponding to the framing file at least comprises a file storage position, a file size and framing file header information; the message acquisition and framing detection module is used for acquiring a message to be reported, judging whether the message to be reported exists in a framing file, performing framing detection on the message to be reported and determining a detection result; the framing processing module is used for framing the message to be reported in the framing file based on a reporting channel framing detection thread when the detection result is that framing reporting is required, and determining a framing message; and the framing reporting module is used for performing parallel framing reporting on the framing messages of each reporting channel.
In a third aspect, the present invention provides an electronic device, including a processor and a memory, where 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 concurrently reporting multiple framing files in any one of the foregoing embodiments.
In a fourth aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the method for concurrently reporting multi-frame files according to any one of the preceding embodiments.
When the scheme is implemented, firstly, a pre-created framing file and a reporting channel framing detection thread are determined, and framing information corresponding to the framing file is initialized, wherein the framing information corresponding to the framing file at least comprises a file storage position, a file size and framing file header information. Acquiring a message to be reported, judging whether the message to be reported exists in a framing file, performing framing detection on the message to be reported, and determining a detection result; when the detection result is that frame reporting is needed, performing frame processing on a message to be reported in a frame file based on a reporting channel frame detection thread, and determining a frame message; and carrying out parallel frame-division reporting on the frame-division messages of each reporting channel. According to the method, the collection terminal is concurrently reported through the multi-frame files, each reporting channel independently shares one frame file, independent reporting is not affected, and the message uploading speed and efficiency of the power collection equipment can be greatly improved through concurrent message reporting, so that the timeliness of message reporting is further improved.
Drawings
In order to more clearly illustrate the detailed description of the present application or the technical solutions in the prior art, the drawings used in the detailed description or the prior art description will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for concurrently reporting multiple subframe files according to an embodiment of the present application;
fig. 2 is a schematic diagram of an interaction of a device according to an embodiment of the present application;
fig. 3 is a structural diagram of a device for concurrently reporting multiple subframe files according to an embodiment of the present application;
fig. 4 is a structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Referring to fig. 1, an embodiment of the present application provides a method for concurrently reporting multiple subframe files, where the method is applied to a power acquisition terminal, and the method mainly includes the following steps S102 to S108:
step S102, determining a pre-created framing file and a reporting channel framing detection thread, and initializing framing information corresponding to the framing file.
The reporting channel of the power acquisition terminal mainly comprises Ethernet, 4G and 485, and different events can be reported through a specified channel. In one embodiment, the pre-created framing file may be matched to the reporting channel to enable subsequent concurrent reporting. When the framing file is created, the framing file can be created according to the number of the reported channels; each reporting channel is used for reporting a framing file.
The framing information corresponding to the framing file at least comprises a file storage position, a file size and framing file header information. During initialization, after the acquisition terminal is restarted or initialized each time, a corresponding frame file can be created according to the number of reported channels, and the storage position, the file size and the header information (including the relevant parameter information of each channel) of the frame file are initialized.
Step S104, obtaining the report to be reported, judging whether the report to be reported exists in the framing file, carrying out framing detection on the report to be reported, and determining the detection result.
In one embodiment, the determination of whether the message to be reported exists in the framing file is performed to determine whether the message to be reported needs to be subjected to framing detection. In one embodiment, when it is determined that framing detection is required, framing detection is performed on a message to be reported, and a detection result is determined, it may be first determined whether the message size of the message to be reported exceeds a preset framing message threshold, and if the message size exceeds the preset framing message threshold, the message to be reported in the temporary cache is written into a framing file of a corresponding channel; and if the threshold value is not exceeded, copying the message to be reported in the temporary buffer to a reporting queue buffer for waiting reporting.
And step S106, when the detection result is that the frame-dividing report is required, the frame-dividing processing is carried out on the message to be reported in the frame-dividing file based on the frame-dividing detection thread of the report channel, and the frame-dividing message is determined.
Step S108, the frame message of each reporting channel is subjected to parallel frame reporting.
According to the method for the concurrent reporting of the multi-frame files, the concurrent reporting of the collecting terminal is achieved through the multi-frame files, each reporting channel independently shares one sub-frame file, independent reporting is not affected, and through concurrent message reporting, the message uploading speed and efficiency of the power collecting equipment can be greatly improved, and the timeliness of message reporting is further improved.
In one embodiment, in order to implement that each upload channel corresponds to one framing file, channel framing detection threads may be created in advance. In specific implementation, the following steps 1.1) and 1.2) can be included:
step 1.1), acquiring the total number of online reporting channels;
step 1.2), establishing a reporting channel framing detection thread corresponding to each reporting channel and a callback function corresponding to each thread based on the total number of the online reporting channels; and the callback function is used for triggering framing detection and framing reporting.
Further, in order to determine whether the messages to be reported are all written into the corresponding frame files, the method can also perform last frame detection. That is, if there is message data to be reported in the framing file, the message to be reported in the framing file is subjected to last frame detection to determine whether the message to be reported is completely written into the corresponding framing file.
In an optional implementation manner, the to-be-reported message in the framing file is framed by the reporting channel framing detection thread, and the framing message is determined, in a specific implementation, the framing file of the corresponding channel may be detected by the reporting channel framing detection thread, and if a write-in event of the to-be-reported message is detected, the written to-be-reported message is packaged according to preset bytes, and the framing message is determined.
Furthermore, the framing messages of each reporting channel are subjected to parallel framing reporting, the framing messages which are packaged in all the framing files can be read based on the framing detection thread of the reporting channel, the framing messages are added to the corresponding reporting channels, and the framing messages are subjected to concurrent framing reporting through each reporting channel.
For convenience of understanding, the embodiments of the present application provide a specific implementation manner, which mainly includes the following steps:
s1, creating and initializing a framing file: after the acquisition terminal is restarted or initialized every time, the corresponding framing file is created according to the number of reported channels, the storage position, the file size and the framing file header information (including the relevant parameter information of each channel) are initialized, and each channel independently has one framing file.
S2, establishing each channel framing detection thread:
(1) and acquiring the total quantity of the online channels.
(2) And creating sub-threads of each channel according to the total number of the on-line channels. The sub-threads of each channel run concurrently without mutual interference.
(3) And creating a reporting callback function of each channel sub-thread for realizing subsequent framing detection and reporting functions. At creation time, the relevant thread interface may be invoked for creation. One channel corresponds to one thread of framing detection. The frame threads are executed concurrently, the execution efficiency is high, and the frame sub threads are not affected by each other.
S3, framing detection: the maximum length of a frame message is generally defined in a national network 698 terminal not to exceed 2048 bytes, and if the maximum length exceeds the threshold value, framing processing is required. And if the framing is needed, writing the message in the temporary cache into the framing file of the corresponding channel. And if the framing is not needed, copying the message data in the temporary buffer to a reporting queue buffer for waiting reporting.
S4, detecting a last frame: if the message data exists in the framing file, the channel corresponding to the framing file is considered to need to be subjected to framing reporting, and subsequent last frame detection is required to be carried out for judging whether the message is completely written into the corresponding framing file. If the framing is performed, the corresponding framing file has the writing framing message and the framing header information has the recording framing times. And directly adding the messages which do not need to be framed into a reporting queue to wait for reporting.
S5, framing treatment: the reporting channel detects the respective framing files, and if the message is written in, the packet processing is carried out to obtain a frame message with every 2048 bytes.
S6, reporting in frames: reading the packaged messages in all the framing files, adding the messages to corresponding reporting channels, and reporting the messages to a master station (client) in a concurrent mode through all the channels, wherein the master station is a client and the terminal is a server. The master station sends a request to the terminal, or the terminal reports data to the master station, as shown in fig. 2.
S7, removing framing information: after the report is completed and the confirmation frame of the master station is received, or the maximum reporting times is reached, all the framing information in the framing files is cleared, and the reporting information such as the reporting times, the reporting time, the reporting state and the like is emptied.
In summary, in the embodiment of the present application, the message to be reported (i.e., the reported content) is written into different framing files according to the reporting channel, and the data transmitted by each channel is independent from each other and is not affected; a large number of events can be reported simultaneously, and the accuracy of reporting the events is ensured; and multiple channels can report simultaneously, so that the efficiency of reporting events is improved.
Based on the method embodiment, the embodiment of the application also provides a device for concurrently reporting the multi-frame files, and the device is applied to the power acquisition terminal; referring to fig. 3, the apparatus includes:
a determining and initializing module 32, configured to determine a pre-created framing file and a reporting channel framing detection thread, and initialize framing information corresponding to the framing file; the framing information corresponding to the framing file at least comprises a file storage position, a file size and framing file header information;
a message obtaining and framing detection module 34, configured to obtain a message to be reported, determine whether the message to be reported exists in a framing file, perform framing detection on the message to be reported, and determine a detection result;
a framing processing module 36, configured to, when the detection result indicates that framing reporting is required, perform framing processing on a to-be-reported message in a framing file based on a reporting channel framing detection thread, and determine a framed message;
and a frame-dividing reporting module 38, configured to perform parallel frame-dividing reporting on the frame-dividing message of each reporting channel.
The device for the concurrent reporting of the multi-frame files realizes the concurrent reporting of the acquisition terminal through the multi-frame files, and each reporting channel independently shares one sub-frame file, so that the independent reporting is not influenced mutually, and the message uploading speed and efficiency of the electric power acquisition equipment can be greatly improved through the concurrent message reporting, and the timeliness of the message reporting is further improved.
In some embodiments, the apparatus further comprises a framing file creating module configured to: creating a frame file according to the number of the reporting channels; each reporting channel is used for reporting a frame file.
In some embodiments, the apparatus further includes a reporting channel framing detection thread creating module, configured to: acquiring the total number of online reporting channels; establishing a reporting channel framing detection thread corresponding to each reporting channel and a callback function corresponding to each thread based on the total number of the online reporting channels; and the callback function is used for triggering framing detection and framing reporting.
In some embodiments, the framing detection module 34 is further configured to: judging whether the message size of the message to be reported exceeds a preset frame message threshold value or not; if so, writing the message to be reported in the temporary cache into the framing file of the corresponding channel; and if not, copying the message to be reported in the temporary buffer to a reporting queue buffer for waiting reporting.
In some embodiments, the apparatus further comprises a last frame detection module configured to: and if the message data to be reported exists in the framing file, performing last frame detection on the message to be reported in the framing file to judge whether the message to be reported is completely written into the corresponding framing file.
In some embodiments, the framing processing module 36 is further configured to: and detecting the framing files of the corresponding channels based on the reporting channel framing detection thread, and if a writing event of the message to be reported is detected, packaging the written message to be reported according to preset bytes to determine the framing message.
In some embodiments, the framing reporting module 38 is further configured to: and reading the framed messages which are packaged in all the framed files based on the framing detection thread of the reporting channel, adding the framed messages to the corresponding reporting channel, and performing concurrent framing reporting on the framed messages through each reporting channel.
For a brief description, the embodiment of the apparatus for concurrently reporting multiple framing files is not mentioned, and reference may be made to the corresponding content in the method for concurrently reporting multiple framing files.
An embodiment of the present application further provides an electronic device, as shown in fig. 4, which is a schematic structural diagram of the electronic device, where the electronic device 100 includes a processor 41 and a memory 40, where the memory 40 stores computer-executable instructions capable of being executed by the processor 41, and the processor 41 executes the computer-executable instructions to implement any one of the above methods for concurrently reporting a multi-frame file.
In the embodiment shown in fig. 4, the electronic device further comprises a bus 42 and a communication interface 43, wherein the processor 41, the communication interface 43 and the memory 40 are connected by the bus 42.
The Memory 40 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 43 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, etc. may be used. The bus 42 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 42 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
The processor 41 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 41. The Processor 41 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory, and the processor 41 reads information in the memory and completes the steps of the method for concurrently reporting the multi-frame files in the foregoing embodiment by combining hardware thereof.
The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the method for concurrently reporting the multi-frame file, and specific implementation may refer to the foregoing method embodiment, and details are not described herein again.
The method, apparatus, device, and medium for concurrently reporting multiple subframe files provided in this embodiment of the present application include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, and will not be described herein again.
Unless specifically stated otherwise, the relative steps, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present application, it is further noted that, unless expressly stated or limited otherwise, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in this application will be understood to be a specific case for those of ordinary skill in the art.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method for concurrently reporting multi-frame files is characterized in that the method is applied to a power acquisition terminal; the method comprises the following steps:
determining a pre-created framing file and a reporting channel framing detection thread, and initializing framing information corresponding to the framing file; the framing information corresponding to the framing file at least comprises a file storage position, a file size and framing file header information;
acquiring a message to be reported, judging whether the message to be reported exists in the framing file, performing framing detection on the message to be reported, determining a detection result, and determining the detection result;
when the detection result is that frame reporting is needed, performing frame processing on the message to be reported in the frame file based on a reporting channel frame detection thread to determine a frame message;
and carrying out parallel frame-division reporting on the frame-division messages of each reporting channel.
2. The method of claim 1, wherein the method further comprises:
creating the frame files according to the number of the reported channels; each reporting channel is used for reporting a framing file.
3. The method of claim 2, wherein the method further comprises:
acquiring the total number of online reporting channels;
establishing a reporting channel framing detection thread corresponding to each reporting channel and a callback function corresponding to each thread based on the total number of the online reporting channels; and the callback function is used for triggering framing detection and framing reporting.
4. The method according to claim 3, wherein the performing framing detection on the message to be reported and determining the detection result comprises:
judging whether the message size of the message to be reported exceeds a preset frame message threshold value or not;
if so, writing the message to be reported in the temporary cache into the framing file of the corresponding channel;
and if not, copying the message to be reported in the temporary buffer to a reporting queue buffer for waiting reporting.
5. The method of claim 1, wherein the method further comprises:
and if the message data to be reported exists in the frame files, performing last frame detection on the messages to be reported in the frame files so as to judge whether the messages to be reported are all written into the corresponding frame files.
6. The method according to claim 1, wherein the determining the framed packet by framing the packet to be reported in the framed file based on a reporting channel framing detection thread comprises:
detecting the framing files of the corresponding channels based on the reporting channel framing detection thread, and if a writing event of the message to be reported is detected, packaging the written message to be reported according to preset bytes to determine the framing message.
7. The method according to claim 6, wherein the performing parallel frame-division reporting on the frame-division messages of each reporting channel comprises:
reading the framed messages which are packaged in all the framed files based on the reporting channel framing detection thread, adding the framed messages to the corresponding reporting channels, and performing concurrent framing reporting on the framed messages through each reporting channel.
8. A device for concurrently reporting multi-frame files is characterized in that the device is applied to a power acquisition terminal; the device comprises:
the device comprises a determining and initializing module, a reporting channel framing detection thread and a frame information processing module, wherein the determining and initializing module is used for determining a pre-established framing file and a reporting channel framing detection thread and initializing the framing information corresponding to the framing file; the framing information corresponding to the framing file at least comprises a file storage position, a file size and framing file header information;
the message acquisition and framing detection module is used for acquiring a message to be reported, judging whether the message to be reported exists in the framing file, performing framing detection on the message to be reported and determining a detection result;
a framing processing module, configured to perform framing processing on a message to be reported in the framing file based on a reporting channel framing detection thread when the detection result indicates that framing reporting is required, and determine a framed message;
and the framing reporting module is used for performing parallel framing and 5 reporting on the framing messages of each reporting channel.
9. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of concurrent reporting of multiple-subframe files according to any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon computer-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method for concurrent reporting of multiple-split-frame files of any of claims 1 to 7.
CN202211552086.XA 2022-12-05 2022-12-05 Method, device, equipment and medium for concurrently reporting multi-frame files Pending CN115811516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211552086.XA CN115811516A (en) 2022-12-05 2022-12-05 Method, device, equipment and medium for concurrently reporting multi-frame files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211552086.XA CN115811516A (en) 2022-12-05 2022-12-05 Method, device, equipment and medium for concurrently reporting multi-frame files

Publications (1)

Publication Number Publication Date
CN115811516A true CN115811516A (en) 2023-03-17

Family

ID=85484974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211552086.XA Pending CN115811516A (en) 2022-12-05 2022-12-05 Method, device, equipment and medium for concurrently reporting multi-frame files

Country Status (1)

Country Link
CN (1) CN115811516A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116233200A (en) * 2023-05-10 2023-06-06 浙江正泰仪器仪表有限责任公司 Electric energy meter communication method and system based on subsequent frame dynamic registration

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116233200A (en) * 2023-05-10 2023-06-06 浙江正泰仪器仪表有限责任公司 Electric energy meter communication method and system based on subsequent frame dynamic registration
CN116233200B (en) * 2023-05-10 2023-08-15 浙江正泰仪器仪表有限责任公司 Electric energy meter communication method and system based on subsequent frame dynamic registration

Similar Documents

Publication Publication Date Title
US8977905B2 (en) Method and system for detecting abnormality of network processor
CN110932933B (en) Network condition monitoring method, computing device and computer storage medium
CN115811516A (en) Method, device, equipment and medium for concurrently reporting multi-frame files
CN106373616B (en) Method and device for detecting faults of random access memory and network processor
CN112637162A (en) UDP (user Datagram protocol) data packet processing method and device
CN112040001A (en) Request processing method and device based on distributed storage
CN111625319A (en) Virtual machine monitoring data acquisition method and device and host machine
CN114817860A (en) Data statistics method and device, solid state disk and medium
CN111865811B (en) Data processing method, device, equipment and medium
CN116225999B (en) DMA data transmission method and system
CN113973091A (en) Message processing method, network equipment and related equipment
CN109889418B (en) Data transmission method and device based on CAN bus
CN115955447A (en) Data transmission method, switch and switch system
CN113746920B (en) Data forwarding method and device, electronic equipment and computer readable storage medium
CN110989333B (en) Redundancy control method based on multiple computing cores, computing cores and redundancy control system
CN110740062B (en) Breakpoint resume method and device
CN111881153A (en) Data processing method and device, electronic equipment and machine-readable storage medium
CN115878351B (en) Message transmission method and device, storage medium and electronic device
CN117931940A (en) Method, device, readable storage medium and program product for synchronizing elastosearch multi-cluster data
CN112818055B (en) Block chain performance optimization method, device and equipment
CN113872976B (en) HTTP2 attack-based protection method and device and electronic equipment
CN116055418B (en) Method and device for transmitting Ethernet data, electronic equipment and storage medium
CN116909780B (en) Memory-based local distributed queue plug-in, system and queue processing method
CN116132204B (en) Data processing method, device, electronic equipment and readable storage medium
CN113242473B (en) Data processing method, system, data acquisition equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination