CN116112581A - Method, equipment and medium for transmitting and processing serial port communication big data subpackage - Google Patents

Method, equipment and medium for transmitting and processing serial port communication big data subpackage Download PDF

Info

Publication number
CN116112581A
CN116112581A CN202211690743.7A CN202211690743A CN116112581A CN 116112581 A CN116112581 A CN 116112581A CN 202211690743 A CN202211690743 A CN 202211690743A CN 116112581 A CN116112581 A CN 116112581A
Authority
CN
China
Prior art keywords
packet
data
serial port
sub
buffer
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
CN202211690743.7A
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.)
Casco Signal Ltd
Original Assignee
Casco Signal 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 Casco Signal Ltd filed Critical Casco Signal Ltd
Priority to CN202211690743.7A priority Critical patent/CN116112581A/en
Publication of CN116112581A publication Critical patent/CN116112581A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/323Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the physical layer [OSI layer 1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/329Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the application layer [OSI layer 7]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention relates to a serial port communication big data subpackage transmission and processing method, equipment and medium, wherein the method comprises the following steps: s1, splitting a communication data packet of a sender into sub-packets with the length not more than the Buffer size; s2, defining sub-packets or data after sub-packet splicing as application layer data packets; s3, setting two Buffer arrays A and B with the same size on a receiver according to the size and the number of buffers of the serial port receiver; s4, storing serial port layer data in a Buffer into a Buffer array A; s5, checking the recognized complete serial port layer data packet, only accepting the sub-packet data therein after all the checking passes, and preparing to store the sub-packet data in a buffer array B; s6, the buffer array B possibly comprises a plurality of application layer data packets, and the application layer data packets are further segmented to obtain a single application layer data packet. Compared with the prior art, the invention has the advantages of effectively solving the problems that the carrying data quantity of a single data packet is limited, and the requirement of large data transmission of users cannot be met, and the like.

Description

Method, equipment and medium for transmitting and processing serial port communication big data subpackage
Technical Field
The invention relates to a train signal control system, in particular to a serial port communication big data subpackaging transmission and processing method, equipment and medium.
Background
Serial communication is a serial communication mode widely applied to the embedded and industrial control fields, and has the characteristics of low cost, simple realization of a communication line and slower data transmission speed. The data volume of the application layer carried by one data packet cannot meet the requirement of a user on large data transmission due to the limitation of the transmission speed and the size of a buffer zone of a receiving party. And when the serial port transmits data more frequently, a large number of packet loss and adhesion problems can be generated, so that a receiver cannot stably receive the data, and the data is lost.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a serial port communication big data packetization transmission and processing method, equipment and medium.
The aim of the invention can be achieved by the following technical scheme:
according to a first aspect of the present invention, there is provided a serial port communication big data packetization transmission and processing method, comprising the steps of:
s1, splitting a communication data packet of a sender into sub-packets with the length not greater than the Buffer size according to the Buffer size of a serial port communication receiver;
step S2, defining sub-packets or data after sub-packet splicing as application layer data packets;
step S3, setting two Buffer arrays A and B with the same size on a receiver according to the size and the number of buffers of the serial port receiver;
step S4, the serial port layer data packet in a Buffer is stored in a Buffer array A, and the processing of step S5 is performed after a complete serial port layer data packet is identified from the Buffer array;
s5, checking the recognized complete serial port layer data packet, accepting the sub-packet data therein only after all the checking passes, and preparing to store the sub-packet data in a buffer array B;
step S6, the Buffer array B may contain a plurality of application layer data packets, the application layer data packets are further segmented to obtain single application layer data packets, and then step S4 is executed again to read the data in the next Buffer.
As a preferred technical solution, the subpacket in step S1 includes the following fields: a packetization protocol frame header, a packet length, a total packet number, a sub-packet sequence number, and sub-packet data.
As a preferred technical solution, the data with the header of the packetization protocol is defined as serial port layer data packets, when packetization is not needed, the total packet number is fixed to 1, the sub-packet sequence number is fixed to 0, and when packetization is needed, the initial value of the sub-packet sequence number is 0.
As a preferred technical solution, the application layer packet in step S2 includes the following fields: the method comprises the steps of applying a data frame header, a frame type, a packet length and application data, wherein the frame header of an application data packet and the frame header of a serial port data packet take different values.
In the step S4, if the length of the newly added serial port layer data plus the existing data in the buffer array a exceeds the maximum length of the buffer data, the buffer array a is emptied first and then the new data is put in.
As a preferred technical solution, in the step S4, a complete serial port layer packet is identified, which specifically includes:
step S41, circularly reading the data in the buffer array A, continuously identifying the packet length after identifying the packet header of the packetizing protocol, checking the length of the data packet, considering that a complete serial port layer data packet is identified after the checking is passed, removing the packet data from the buffer array A, preparing for subsequent processing, and moving the data after the packet to the beginning of the buffer array A;
step S42, if the data packet does not pass the inspection, the serial port layer data packet is incomplete, the serial port layer data packet is broken, the serial port data in the next buffer is tried to be spliced with the serial port layer data packet, and step S4 is executed again.
In the preferred technical solution, in the step S4, when the step S4 is executed again, the next Buffer which does not store data in the Buffer array a is selected in sequence, and when all buffers are read, the method ends.
In the step S5, if the length of the checked data of the sub-packet plus the length of the existing data in the buffer array B exceeds the maximum length of the buffered data, the buffer array B is emptied first and then new sub-packet data is put in.
As a preferred technical solution, in the step S5, the identified complete serial port layer packet is checked, specifically:
step S51, checking that the sub-packet sequence number is smaller than the total packet number;
step S52, if the total packet number is 1, the sub-packet sequence number is 0;
step S53, if the total number of the packets is greater than 1, the sub-packet sequence numbers must be continuous;
step S54, when any one of the above checks fails, all the sub-packets stored are cleared, i.e. the buffer array B is cleared, and step S4 is executed again.
As a preferred technical solution, in the step S6, a data packet possibly including a plurality of application layers is read, specifically:
step S61, circularly reading a plurality of application data packets possibly contained in the buffer array B until the end of the buffer array B is read, and continuously identifying the frame type and the packet length after the application data frame header is identified in the byte stream, and checking the packet length;
step S62, when the packet length check is passed, a complete and correct application layer data packet is found, deleted from the buffer array B and allocated to the module requiring the use of the data, and the data that does not pass the check is cleared, and step S61 is repeated.
According to a second aspect of the present invention there is provided an electronic device comprising a memory and a processor, the memory having stored thereon a computer program, the processor implementing the method when executing the program.
According to a third aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the method.
Compared with the prior art, the invention has the following advantages:
1) The invention can effectively solve the problem that the data quantity carried by a single data packet is limited and the requirement of large data transmission of a user cannot be met by arranging the serial port layer data packet and the application layer data packet.
2) The invention can effectively solve the problems of packet breaking and adhesion frequently occurring in serial port communication by arranging the buffer array, and avoid the data loss caused by directly discarding the packet breaking and adhesion.
3) The invention improves the safety of the data by checking the packet length, the packet serial number and the like of the serial port data.
Drawings
Fig. 1 is a schematic diagram of a train control vehicle-mounted system and a communication management module for data interaction.
Fig. 2 is a schematic diagram of format definition of a serial port layer packet and an application layer packet according to the present invention.
Fig. 3 is a flow chart of processing serial port data by using the present invention by the vehicle-mounted main control software.
Fig. 4 is a flow chart of the present invention for identifying a complete serial port layer packet.
Fig. 5 is a flow chart of the present invention for checking a serial port layer packet.
FIG. 6 is a flow chart of the present invention for reading a packet that may include multiple application layers.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
Referring to fig. 1, a system structure of a train control vehicle-mounted system for serial port data interaction with a communication management module by adopting the technical scheme of the invention is described.
The train control vehicle-mounted system and the communication management module perform data interaction through an RS422 serial port, the length of a maximum data packet to be transmitted is 1500 bytes, the number of buffers in a serial port receiving FIFO of the train control vehicle-mounted system is 10, and the maximum storable byte number in each Buffer is 200. The problem of packet interruption in serial data transmission is that a complete packet is received in the first Buffer and the other half in the next Buffer. There is also a problem of blocking, i.e. there should be only one serial port layer packet in each Buffer in normal case, but when there is a blocking problem, there are multiple serial port layer packets in one Buffer. Considering that the communication management module needs to forward the received data of the 4 radio stations to the train control vehicle-mounted system, the data interaction quantity is large, the problems of packet breaking and adhesion occur frequently, and the problem can be well solved by adopting the technical scheme of the invention.
Referring to fig. 2, the format definition of the serial layer packet and the application layer packet employed by this system is described.
The serial port layer data packet includes a packetization protocol frame header, a total packet number, a sub-packet sequence number, a packet length, sub-packet data, and a CRC (cyclic redundancy check code). The application layer data packet contains an application data frame header, a frame type, a packet length, application data, and a CRC. Because the Buffer limit of the train control vehicle-mounted system is adopted, the length of a data packet which can pass through a serial port is not more than 200 bytes, when larger data is transmitted, an application data packet is firstly split into sub-packets with the length not more than 200 bytes, and then the sub-packets are packaged into serial port layer data according to a packetization protocol and then transmitted to the train control vehicle-mounted system.
Referring to fig. 3, a process of processing serial port data by using the method of the present invention by the vehicle-mounted main control software will be described.
In step 301, the Buffer arrays a and B are set to 2000 bytes according to the Buffer number and size.
Step 302, read data from a Buffer, determine whether the length of the data in the Buffer array a added with the read data length exceeds 2000 bytes, and empty the Buffer array a and store new data if the length exceeds 2000 bytes.
In step 303, the complete serial port layer data is searched from the buffer array a.
Step 304, the identified serial port layer data is checked.
Step 305, determining whether the data length of the serial port layer after the checking plus the data length in the buffer data B exceeds 2000 bytes, if so, clearing the buffer array B and storing new data.
Step 306, the complete application layer data is looked up from the buffer array B.
Step 307, judging whether all buffers are read completely, if not, repeating steps 302-307 until all buffers are read completely, and ending the process.
Referring to fig. 4, a process of identifying a complete serial port layer data packet by the present method is described.
Step 401, sequentially searching the frame header 0x77AA from the Buffer array a, sequentially executing step 402 after searching, and if not searching, attempting to splice the serial data in the next Buffer with the serial data, and executing step 302.
In step 402, after finding the frame header 0x77AA, the packet length of the packet data is checked, and if the packet is fetched from the array a by checking, the following data is moved to the head of the array a. If not, the serial data in the next Buffer is spliced with the serial data, and step 302 is executed.
Referring to fig. 5, a process of checking a serial layer packet by the present method is described.
Step 501, the following determination is sequentially performed: checking that the number of sub-packets should be smaller than the total number of packets; if the total packet number is 1, the sub-packet sequence number is 0; if the total number of packets is greater than 1, the sub-packet sequence numbers must be consecutive. When all the above checks pass, the subpacket passing the check is ready to be stored in the buffer array B. If the check fails, the buffer array B is emptied, step 302 is performed.
Referring to fig. 6, a process of reading a data packet that may include a plurality of application layers by the present method is described.
Step 601, sequentially searches the buffer array B for the frame header 0x55AA, and performs step 602.
And 602, checking the packet length of the found application data packet, taking the data packet out of the array B after the check is passed, and distributing the data packet to a required module. If not, the frame header 0x55AA should be searched backward in sequence until all application data packets that may exist are found.
Step 603, when the buffer array B has been found to the end, step 302 is performed.
The foregoing description of the embodiments of the method further describes the embodiments of the present invention through embodiments of the electronic device and the storage medium.
The electronic device of the present invention includes a Central Processing Unit (CPU) that can perform various appropriate actions and processes according to computer program instructions stored in a Read Only Memory (ROM) or computer program instructions loaded from a storage unit into a Random Access Memory (RAM). In the RAM, various programs and data required for the operation of the device can also be stored. The CPU, ROM and RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
A plurality of components in a device are connected to an I/O interface, comprising: an input unit such as a keyboard, a mouse, etc.; an output unit such as various types of displays, speakers, and the like; a storage unit such as a magnetic disk, an optical disk, or the like; and communication units such as network cards, modems, wireless communication transceivers, and the like. The communication unit allows the device to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processing unit performs the various methods and processes described above, such as the inventive method. For example, in some embodiments, the inventive methods may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device via the ROM and/or the communication unit. One or more of the steps of the method of the invention described above may be performed when the computer program is loaded into RAM and executed by a CPU. Alternatively, in other embodiments, the CPU may be configured to perform the methods of the present invention by any other suitable means (e.g., by means of firmware).
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
Program code for carrying out methods of the present invention may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (12)

1. The serial port communication big data sub-package transmission and processing method is characterized by comprising the following steps:
s1, splitting a communication data packet of a sender into sub-packets with the length not greater than the Buffer size according to the Buffer size of a serial port communication receiver;
step S2, defining sub-packets or data after sub-packet splicing as application layer data packets;
step S3, setting two Buffer arrays A and B with the same size on a receiver according to the size and the number of buffers of the serial port receiver;
step S4, the serial port layer data packet in a Buffer is stored in a Buffer array A, and the processing of step S5 is performed after a complete serial port layer data packet is identified from the Buffer array;
s5, checking the recognized complete serial port layer data packet, accepting the sub-packet data therein only after all the checking passes, and preparing to store the sub-packet data in a buffer array B;
step S6, the Buffer array B may contain a plurality of application layer data packets, the application layer data packets are further segmented to obtain single application layer data packets, and then step S4 is executed again to read the data in the next Buffer.
2. The method for transmitting and processing serial port communication big data packets according to claim 1, wherein the subpackets in step S1 include the following fields: a packetization protocol frame header, a packet length, a total packet number, a sub-packet sequence number, and sub-packet data.
3. The method for transmitting and processing serial port communication big data packets according to claim 2, wherein the data with the packet header is defined as serial port layer data packets, the total packet number is fixed to 1 when no packet is needed, the sub-packet sequence number is fixed to 0, and the initial value of the sub-packet sequence number is 0 when packet is needed.
4. The method for transmitting and processing serial port communication big data packets according to claim 1, wherein the application layer data packet in step S2 includes the following fields: the method comprises the steps of applying a data frame header, a frame type, a packet length and application data, wherein the frame header of an application data packet and the frame header of a serial port data packet take different values.
5. The method of claim 1, wherein in the step S4, if the length of the newly added serial port layer data plus the existing data in the buffer array a exceeds the maximum length of the buffer data, the buffer array a is emptied first and then the new data is put in.
6. The method for transmitting and processing serial port communication big data packets according to claim 1, wherein the step S4 is to identify a complete serial port layer data packet, specifically:
step S41, circularly reading the data in the buffer array A, continuously identifying the packet length after identifying the packet header of the packetizing protocol, checking the length of the data packet, considering that a complete serial port layer data packet is identified after the checking is passed, removing the packet data from the buffer array A, preparing for subsequent processing, and moving the data after the packet to the beginning of the buffer array A;
step S42, if the data packet does not pass the inspection, the serial port layer data packet is incomplete, the serial port layer data packet is broken, the serial port data in the next buffer is tried to be spliced with the serial port layer data packet, and step S4 is executed again.
7. The method according to claim 6, wherein in the step S4, when the step S4 is executed again, the next Buffer which does not store data in the Buffer array a is selected in sequence, and when all buffers are read, the method ends.
8. The method according to claim 1, wherein in the step S5, if the length of the data of the sub-packet after the inspection is passed plus the length of the existing data in the buffer array B exceeds the maximum length of the buffered data, the buffer array B is emptied first and then new sub-packet data is put in.
9. The method for transmitting and processing serial port communication big data packets according to claim 1, wherein in the step S5, the identified complete serial port layer data packet is checked, specifically:
step S51, checking that the sub-packet sequence number is smaller than the total packet number;
step S52, if the total packet number is 1, the sub-packet sequence number is 0;
step S53, if the total number of the packets is greater than 1, the sub-packet sequence numbers must be continuous;
step S54, when any one of the above checks fails, all the sub-packets stored are cleared, i.e. the buffer array B is cleared, and step S4 is executed again.
10. The method for transmitting and processing serial port communication big data packets according to claim 1, wherein in step S6, a plurality of application layer data packets are read, which may include:
step S61, circularly reading a plurality of application data packets possibly contained in the buffer array B until the end of the buffer array B is read, and continuously identifying the frame type and the packet length after the application data frame header is identified in the byte stream, and checking the packet length;
step S62, when the packet length check is passed, a complete and correct application layer data packet is found, deleted from the buffer array B and allocated to the module requiring the use of the data, and the data that does not pass the check is cleared, and step S61 is repeated.
11. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program, characterized in that the processor, when executing the program, implements the method of any of claims 1-10.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1-10.
CN202211690743.7A 2022-12-27 2022-12-27 Method, equipment and medium for transmitting and processing serial port communication big data subpackage Pending CN116112581A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211690743.7A CN116112581A (en) 2022-12-27 2022-12-27 Method, equipment and medium for transmitting and processing serial port communication big data subpackage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211690743.7A CN116112581A (en) 2022-12-27 2022-12-27 Method, equipment and medium for transmitting and processing serial port communication big data subpackage

Publications (1)

Publication Number Publication Date
CN116112581A true CN116112581A (en) 2023-05-12

Family

ID=86264928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211690743.7A Pending CN116112581A (en) 2022-12-27 2022-12-27 Method, equipment and medium for transmitting and processing serial port communication big data subpackage

Country Status (1)

Country Link
CN (1) CN116112581A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0974902A1 (en) * 1998-07-21 2000-01-26 Bull S.A. Method of detecting errors on a serial link of an integrated circuit and device to realise this method
US6631484B1 (en) * 1998-03-31 2003-10-07 Lsi Logic Corporation System for packet communication where received packet is stored either in a FIFO or in buffer storage based on size of received packet
CN102510323A (en) * 2011-09-22 2012-06-20 航天科工惯性技术有限公司 Frame identifying method for serial data
CN113778920A (en) * 2021-11-12 2021-12-10 湖南双菱电子科技有限公司 Embedded processor serial port communication method and software development kit
CN114138700A (en) * 2021-12-03 2022-03-04 西安广和通无线软件有限公司 Flow control method, device, equipment and storage medium for serial port data transmission
CN115357535A (en) * 2022-08-01 2022-11-18 深圳市科陆电子科技股份有限公司 Virtual serial port design method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6631484B1 (en) * 1998-03-31 2003-10-07 Lsi Logic Corporation System for packet communication where received packet is stored either in a FIFO or in buffer storage based on size of received packet
EP0974902A1 (en) * 1998-07-21 2000-01-26 Bull S.A. Method of detecting errors on a serial link of an integrated circuit and device to realise this method
CN102510323A (en) * 2011-09-22 2012-06-20 航天科工惯性技术有限公司 Frame identifying method for serial data
CN113778920A (en) * 2021-11-12 2021-12-10 湖南双菱电子科技有限公司 Embedded processor serial port communication method and software development kit
CN114138700A (en) * 2021-12-03 2022-03-04 西安广和通无线软件有限公司 Flow control method, device, equipment and storage medium for serial port data transmission
CN115357535A (en) * 2022-08-01 2022-11-18 深圳市科陆电子科技股份有限公司 Virtual serial port design method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘晓;陈广凯;赵汉青;刘露露;: "一种基于单片机串口通信的数据缓存处理方法", 信息通信, no. 04, 15 April 2020 (2020-04-15) *
边庆;吴琳;段小虎;: "基于双缓冲和FPGA的RS422接口电路设计", 信息通信, no. 04, 15 April 2017 (2017-04-15) *

Similar Documents

Publication Publication Date Title
US6697366B1 (en) Ethernet memory management system and methods for operation thereof
US20100138573A1 (en) System including transmitter and receiver
US10079782B2 (en) Facilitating communication of data packets using credit-based flow control
US20230118176A1 (en) Data transmission method and apparatus, computer-readable storage medium, electronic device, and computer program product
US6952739B2 (en) Method and device for parameter independent buffer underrun prevention
CN112671771B (en) Data transmission method, device, electronic equipment and medium
CN110113100B (en) Visible light communication device and method for Ethernet data transmission
EP3065323B1 (en) Transmission method and device based on management data input/output multi-source agreements
US20040085963A1 (en) Method of organizing data packets
WO2021134418A1 (en) Data checking method and apparatus
CA2529599C (en) Method and apparatus for providing tandem connection, performance monitoring, and protection architectures over ethernet protocols
US20220100411A1 (en) Combining write transactions of a large write
US20030076822A1 (en) Data and context memory sharing
CN116112581A (en) Method, equipment and medium for transmitting and processing serial port communication big data subpackage
US20090022158A1 (en) Method For Increasing Network Transmission Efficiency By Increasing A Data Updating Rate Of A Memory
CN114338270A (en) Data communication method, device, electronic equipment and storage medium
JP2009253433A (en) Associative memory apparatus
CN113852484B (en) Terminal equipment network distribution method, device, electronic equipment and computer readable medium
CN112615916A (en) File deployment method and device, electronic equipment and storage medium
US8228213B2 (en) Data compression system and associated methods
CN113454935B (en) Line coding method and device
CN116055418B (en) Method and device for transmitting Ethernet data, electronic equipment and storage medium
US20230261795A1 (en) Method for Retransmitting Data and Apparatus
US20030172176A1 (en) Embedded system having multiple data receiving channels
CN117478267A (en) Passive optical network transmission method and related equipment

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