[go: up one dir, main page]

CN115801814A - A data transmission method, system and storage medium based on serial port double FIFO buffer structure - Google Patents

A data transmission method, system and storage medium based on serial port double FIFO buffer structure Download PDF

Info

Publication number
CN115801814A
CN115801814A CN202211647001.6A CN202211647001A CN115801814A CN 115801814 A CN115801814 A CN 115801814A CN 202211647001 A CN202211647001 A CN 202211647001A CN 115801814 A CN115801814 A CN 115801814A
Authority
CN
China
Prior art keywords
serial port
data
fifo buffer
port double
buffer area
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
CN202211647001.6A
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.)
Dongfeng Yuexiang Technology Co Ltd
Original Assignee
Dongfeng Yuexiang Technology 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 Dongfeng Yuexiang Technology Co Ltd filed Critical Dongfeng Yuexiang Technology Co Ltd
Priority to CN202211647001.6A priority Critical patent/CN115801814A/en
Publication of CN115801814A publication Critical patent/CN115801814A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Communication Control (AREA)

Abstract

The invention relates to a data transmission method, a system and a storage medium based on a serial port double FIFO buffer area structure, wherein the method comprises the following steps: at least one physical memory is respectively distributed in a monitoring system of a cloud platform and an automatic driving system of a vehicle end, an idle memory pool and a working memory pool are respectively established for the physical memories in the two systems through a bidirectional linked list, and at least one serial port double FIFO buffer area and a corresponding read-write pointer are established in the two systems; t2: and sending data requests with different priorities based on the automatic driving system of the vehicle end, acquiring the memory of a free memory pool of the automatic driving system of the vehicle end and filling the data requests, adding the memory filled with the data requests into a working memory pool of the automatic driving system of the vehicle end, and outputting the physical initial address and the size of the data requests. The invention not only reduces the probability of priority reversal caused by the problem of buffer area occupation, but also improves the real-time response performance of the system.

Description

一种基于串口双FIFO缓冲区结构的数据传输方法、系统及存 储介质A data transmission method, system and memory based on serial port double FIFO buffer structure storage medium

技术领域technical field

本发明涉及数据传输技术领域,尤其是涉及一种基于串口双FIFO缓冲区结构的数据传输方法、系统及存储介质。The invention relates to the technical field of data transmission, in particular to a data transmission method, system and storage medium based on a serial port double FIFO buffer structure.

背景技术Background technique

在嵌入式系统中,串口是使用较多的一种数据传输接口,在传输数据时,串口驱动程序一般使用中断的方式进行单个字节接收或发送,对于应用层而言,应该提供一种比较通用的接口,比如直接发送一个字节数组,或者直接接收一个字节数组,而不是收发单个字节, 为了达成这个目的,通常考虑在串口驱动中加入数据缓冲管理。In the embedded system, the serial port is a kind of data transmission interface that is widely used. When transmitting data, the serial port driver generally uses the interrupt method to receive or send a single byte. For the application layer, it should provide a comparison Common interfaces, such as directly sending a byte array, or directly receiving a byte array, instead of sending and receiving a single byte, in order to achieve this goal, it is usually considered to add data buffer management in the serial port driver.

常用的串口收发缓冲管理一般是设置2个缓冲区,一个是发送缓冲区TxBuf,一个是接收缓冲区RxBuf,并为每个缓冲区分别设置两个指针,一个记录中断服务程序将处理的字节,另一个记录使用串口服务的上层程序将处理的字节。以串口发送为例,两个指针分别为inTxBuf和outTxBuf。outTxBuf指向发送中断要发送的数据,inTxBuf指向上层程序将数据放入缓冲区的起始位置。这种方式被称之为采用双缓冲队列的方法。在缓冲区够大的情况下,上层程序可以一次将要发送的数据全部放入缓冲区中,而不是一次发送一个字节。在发送时,第一次发送先取outBuf指向的字节发送,并将outBuf指向下一个待发送字节位置,当前字节发送完成后产生发送中断,然后在中断判断缓冲区是否为空,不为空则继续取出字节发送,直到所有字节发送完成。Commonly used serial port transceiver buffer management is generally to set two buffers, one is the sending buffer TxBuf, the other is the receiving buffer RxBuf, and set two pointers for each buffer, one records the bytes that the interrupt service program will process , another records the bytes that will be processed by the upper-level program that uses the serial port service. Take serial port transmission as an example, the two pointers are inTxBuf and outTxBuf respectively. outTxBuf points to the data to be sent by the sending interrupt, and inTxBuf points to the starting position where the upper layer program puts the data into the buffer. This approach is called the method of using a double-buffered queue. When the buffer is large enough, the upper layer program can put all the data to be sent into the buffer at one time instead of sending one byte at a time. When sending, first send the byte pointed to by outBuf, and point outBuf to the next byte to be sent. After the current byte is sent, a sending interrupt is generated, and then the interrupt is used to judge whether the buffer is empty or not. If it is empty, continue to fetch bytes and send until all bytes are sent.

以上串口发送缓冲区方式可以让应用层以数组的方式将一整包数据存放到待发送缓冲区中,如果在单线程应用调用中是没有问题的,但如果在多线程、多任务的系统中,多个优先级不同的应用任务同时使用串口发送各自的数据包时,就会产生缓冲区竞争问题,甚至导致任务优先级反转,主要原因在于只有一个inBuf指针指向待写入缓冲区起始位置,比如,一个低优先级的任务A正在使用inBuf将自己的待发送数据包拷贝进缓冲区时,一个高优先级的任务B也要使用inBuf将自己的数据包写入缓冲区中,但此时任务A已占用了inBuf指针,高优先级任务B必须等待A将自己的整个数据包拷贝完成之后再将inBuf释放给任务B,这个拷贝过程是不能被抢占的,否则会打乱各个任务应用层要发送的数据包,造成数据混乱,而高优先级的任务B必须等待低优先级任务A拷贝完所有数据包后才能拷贝自己的应用数据,这就造成了一定的优先级反转,整个系统中如果存在较多应用任务要使用串口缓冲区发送数据包,优先级反转的概率则会加大,最终导致系统实时性降低。The above serial port send buffer method allows the application layer to store a whole packet of data in the buffer to be sent in the form of an array. If there is no problem in a single-threaded application call, but if in a multi-threaded, multi-tasking system , when multiple application tasks with different priorities use the serial port to send their respective data packets at the same time, there will be a buffer competition problem, and even cause task priority inversion. The main reason is that there is only one inBuf pointer pointing to the beginning of the buffer to be written. For example, when a low-priority task A is using inBuf to copy its data packets to be sent into the buffer, a high-priority task B also uses inBuf to write its own data packets into the buffer, but At this time, task A has occupied the inBuf pointer, and high-priority task B must wait for A to finish copying its entire data packet before releasing inBuf to task B. This copying process cannot be preempted, otherwise it will disrupt each task. The data packets to be sent by the application layer cause data confusion, and the high-priority task B must wait for the low-priority task A to copy all the data packets before copying its own application data, which causes a certain priority inversion. If there are many application tasks in the entire system that need to use the serial port buffer to send data packets, the probability of priority inversion will increase, which will eventually lead to a decrease in the real-time performance of the system.

发明内容Contents of the invention

鉴于以上现有技术的不足,本发明提供了一种基于串口双FIFO缓冲区结构的数据传输方法、系统及存储介质,不仅减少由于缓冲区占用问题导致的优先级反转几率,而且提高了系统实时响应性能。In view of the above deficiencies in the prior art, the present invention provides a data transmission method, system and storage medium based on a serial port double FIFO buffer structure, which not only reduces the priority inversion probability caused by the buffer occupation problem, but also improves the system Real-time responsive performance.

为了实现上述目的及其他相关目的,本发明提供的技术方案如下:In order to achieve the above object and other related objects, the technical solutions provided by the present invention are as follows:

一种基于串口双FIFO缓冲区结构的数据传输方法,包括:A data transmission method based on a serial port double FIFO buffer structure, comprising:

T1:在云平台的监控系统和车端的自动驾驶系统中各自分配至少一块物理内存,分别对两个系统中的物理内存通过双向链表建立空闲内存池和工作内存池,同时在两个系统中都建立至少一个串口双FIFO缓冲区及其对应的读写指针;T1: Allocate at least one piece of physical memory in the monitoring system of the cloud platform and the automatic driving system of the car, respectively establish a free memory pool and a working memory pool for the physical memory in the two systems through a doubly linked list, and simultaneously create a free memory pool and a working memory pool in both systems. Establish at least one serial port double FIFO buffer and its corresponding read and write pointers;

T2:基于所述车端的自动驾驶系统发送优先级不同的数据请求,获取所述车端自动驾驶系统的空闲内存池的内存并填入数据请求,将填入数据请求的内存加入到所述车端自动驾驶系统的工作内存池中,输出数据请求的物理起始地址及大小;T2: Based on the data requests with different priorities sent by the automatic driving system at the vehicle end, obtain the memory in the free memory pool of the automatic driving system at the vehicle end and fill in the data request, and add the memory filled with the data request to the vehicle In the working memory pool of the terminal automatic driving system, the physical start address and size of the output data request;

T3:将所述数据请求的物理起始地址及大小写入所述车端的自动驾驶系统的串口双FIFO缓冲区,根据数据请求的优先级不同,先后输出优先级高的数据请求和优先级低的数据请求;T3: Write the physical start address and size of the data request into the serial port double FIFO buffer of the autopilot system at the vehicle end, and output the data requests with high priority and those with low priority according to the priorities of the data requests data requests;

T4:将所述优先级高的数据请求和优先级低的数据请求发送至所述云平台的监控系统,所述云平台的监控系统将反馈数据请求通过串口双FIFO缓冲区发送至所述车端的自动驾驶系统。T4: Send the high-priority data request and the low-priority data request to the monitoring system of the cloud platform, and the monitoring system of the cloud platform sends the feedback data request to the vehicle through the serial port double FIFO buffer advanced automatic driving system.

进一步的,在步骤T3中,所述先后输出优先级高的数据请求和优先级低的数据请求包括:Further, in step T3, the successively outputting data requests with high priority and data requests with low priority includes:

T31:将优先级不同的数据请求输入至所述串口双FIFO缓冲区,所述串口双FIFO缓冲区按照优先级对数据请求进行拷贝;T31: inputting data requests with different priorities into the serial port double FIFO buffer, and the serial port double FIFO buffer copies the data requests according to the priority;

T32:若优先级低的数据请求正在使用所述串口双FIFO缓冲区写入数据,优先级高的数据请求输入到所述串口双FIFO缓冲区,将优先级低的数据请求写入进程打断,完成优先级搞得数据请求,然后再完成优先级低的数据请求。T32: If the low-priority data request is using the serial port dual FIFO buffer to write data, the high-priority data request is input to the serial port dual-FIFO buffer, and the low-priority data request is written into the process to interrupt , complete the priority data request, and then complete the low priority data request.

进一步的,所述串口双FIFO缓冲区包括写入指针、读出指针和至少一个缓冲区间单元。Further, the serial port double FIFO buffer includes a write pointer, a read pointer and at least one inter-buffer unit.

进一步的,所述写入指针为指向首个未被使用的缓冲区间单元。Further, the write pointer points to the first unused inter-buffer unit.

进一步的,所述读出指针为指向待发送的首个缓冲区间单元。Further, the read pointer points to the first inter-buffer unit to be sent.

进一步的,当数据请求输入所述串口双FIFO缓冲区,根据所述写入指针,选择相应的缓冲区间单元,所述写入指针指向下一个空闲的缓冲区间单元。Further, when a data request is input into the serial port double FIFO buffer, a corresponding inter-buffer unit is selected according to the write pointer, and the write pointer points to the next free inter-buffer unit.

进一步的,当优先级高的数据请求输入同一个所述串口双FIFO缓冲区时,优先级高的数据请求占用空闲的缓冲区间单元进行数据拷贝,优先级低的数据请求则停止进行数据拷贝,等待优先级高的数据请求完成数据拷贝。Further, when the data requests with high priority are input into the same serial port double FIFO buffer, the data requests with high priority occupy idle buffer inter-units for data copying, and the data requests with low priority stop copying data, Wait for data requests with high priority to complete data copying.

为了实现上述目的及其他相关目的,本发明还提供了一种基于串口双FIFO缓冲区结构的数据传输系统,包括计算机设备,该计算机设备被编程或配置以执行任意一项所述基于串口双FIFO缓冲区结构的数据传输方法的步骤。In order to achieve the above purpose and other related purposes, the present invention also provides a data transmission system based on a serial port double FIFO buffer structure, including computer equipment, which is programmed or configured to perform any one of the serial port dual FIFO based data transmission systems. The steps of the data transfer method of the buffer structure.

为了实现上述目的及其他相关目的,本发明还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有被编程或配置以执行任意一项所述基于串口双FIFO缓冲区结构的数据传输方法的计算机程序。In order to achieve the above object and other related objects, the present invention also provides a computer-readable storage medium, which is programmed or configured to perform any one of the serial port double FIFO buffer structure-based Computer programs for data transfer methods.

本发明具有以下积极效果:The present invention has the following positive effects:

1.本发明通过加入串口双FIFO缓冲区,可以减少由于缓冲区占用问题导致的优先级反转几率。1. The present invention can reduce the priority inversion probability caused by the buffer occupation problem by adding a serial port double FIFO buffer.

2.本发明通过在云平台的控制系统和车载自动驾驶系统中设置了串口双FIFO缓冲区,提高了系统实时响应性能。2. The present invention improves the real-time response performance of the system by setting a serial port double FIFO buffer in the control system of the cloud platform and the vehicle-mounted automatic driving system.

附图说明Description of drawings

图1为本发明方法流程示意图;Fig. 1 is a schematic flow sheet of the method of the present invention;

图2为本发明串口双FIFO缓冲区结构示意图。Fig. 2 is a schematic diagram of the structure of the serial port double FIFO buffer in the present invention.

具体实施方式Detailed ways

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings on the premise of not paying creative efforts.

实施例1:如图1所示,一种基于串口双FIFO缓冲区结构的数据传输方法,包括:Embodiment 1: as shown in Figure 1, a kind of data transmission method based on serial port double FIFO buffer structure, comprises:

T1:在云平台的监控系统和车端的自动驾驶系统中各自分配至少一块物理内存,分别对两个系统中的物理内存通过双向链表建立空闲内存池和工作内存池,同时在两个系统中都建立至少一个串口双FIFO缓冲区及其对应的读写指针;T1: Allocate at least one piece of physical memory in the monitoring system of the cloud platform and the automatic driving system of the car, respectively establish a free memory pool and a working memory pool for the physical memory in the two systems through a doubly linked list, and simultaneously create a free memory pool and a working memory pool in both systems. Establish at least one serial port double FIFO buffer and its corresponding read and write pointers;

T2:基于所述车端的自动驾驶系统发送优先级不同的数据请求,获取所述车端自动驾驶系统的空闲内存池的内存并填入数据请求,将填入数据请求的内存加入到所述车端自动驾驶系统的工作内存池中,输出数据请求的物理起始地址及大小;T2: Based on the data requests with different priorities sent by the automatic driving system at the vehicle end, obtain the memory in the free memory pool of the automatic driving system at the vehicle end and fill in the data request, and add the memory filled with the data request to the vehicle In the working memory pool of the terminal automatic driving system, the physical start address and size of the output data request;

T3:将所述数据请求的物理起始地址及大小写入所述车端的自动驾驶系统的串口双FIFO缓冲区,根据数据请求的优先级不同,先后输出优先级高的数据请求和优先级低的数据请求;T3: Write the physical start address and size of the data request into the serial port double FIFO buffer of the autopilot system at the vehicle end, and output the data requests with high priority and those with low priority according to the priorities of the data requests data requests;

T4:将所述优先级高的数据请求和优先级低的数据请求发送至所述云平台的监控系统,所述云平台的监控系统将反馈数据请求通过串口双FIFO缓冲区发送至所述车端的自动驾驶系统。T4: Send the high-priority data request and the low-priority data request to the monitoring system of the cloud platform, and the monitoring system of the cloud platform sends the feedback data request to the vehicle through the serial port double FIFO buffer advanced automatic driving system.

在本实施例中,如图2所示,在步骤T3中,所述先后输出优先级高的数据请求和优先级低的数据请求包括:In this embodiment, as shown in FIG. 2, in step T3, the successively outputting data requests with high priority and data requests with low priority includes:

T31:将优先级不同的数据请求输入至所述串口双FIFO缓冲区,所述串口双FIFO缓冲区按照优先级对数据请求进行拷贝;T31: inputting data requests with different priorities into the serial port double FIFO buffer, and the serial port double FIFO buffer copies the data requests according to the priority;

T32:若优先级低的数据请求正在使用所述串口双FIFO缓冲区写入数据,优先级高的数据请求输入到所述串口双FIFO缓冲区,将优先级低的数据请求写入进程打断,完成优先级搞得数据请求,然后再完成优先级低的数据请求。T32: If the low-priority data request is using the serial port dual FIFO buffer to write data, the high-priority data request is input to the serial port dual-FIFO buffer, and the low-priority data request is written into the process to interrupt , complete the priority data request, and then complete the low priority data request.

在本实施例中,所述串口双FIFO缓冲区包括写入指针、读出指针和至少一个缓冲区间单元。In this embodiment, the serial port double FIFO buffer includes a write pointer, a read pointer and at least one inter-buffer unit.

在本实施例中,所述写入指针为指向首个未被使用的缓冲区间单元。In this embodiment, the write pointer points to the first unused inter-buffer unit.

在本实施例中,所述读出指针为指向待发送的首个缓冲区间单元。In this embodiment, the read pointer points to the first inter-buffer unit to be sent.

在本实施例中,当数据请求输入所述串口双FIFO缓冲区,根据所述写入指针,选择相应的缓冲区间单元,所述写入指针指向下一个空闲的缓冲区间单元。In this embodiment, when a data request is input into the serial port double FIFO buffer, a corresponding inter-buffer unit is selected according to the write pointer, and the write pointer points to the next free inter-buffer unit.

在本实施例中,当优先级高的数据请求输入同一个所述串口双FIFO缓冲区时,优先级高的数据请求占用空闲的缓冲区间单元进行数据拷贝,优先级低的数据请求则停止进行数据拷贝,等待优先级高的数据请求完成数据拷贝。In this embodiment, when the data requests with high priority are input into the same serial port double FIFO buffer, the data requests with high priority occupy the idle buffer unit for data copying, and the data requests with low priority stop Data copying, waiting for data requests with high priority to complete data copying.

为了实现上述目的及其他相关目的,本发明还提供了一种基于串口双FIFO缓冲区结构的数据传输系统,包括计算机设备,该计算机设备被编程或配置以执行任意一项所述基于串口双FIFO缓冲区结构的数据传输方法的步骤。In order to achieve the above purpose and other related purposes, the present invention also provides a data transmission system based on a serial port double FIFO buffer structure, including computer equipment, which is programmed or configured to perform any one of the serial port dual FIFO based data transmission systems. The steps of the data transfer method of the buffer structure.

为了实现上述目的及其他相关目的,本发明还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有被编程或配置以执行任意一项所述基于串口双FIFO缓冲区结构的数据传输方法的计算机程序。In order to achieve the above object and other related objects, the present invention also provides a computer-readable storage medium, which is programmed or configured to perform any one of the serial port double FIFO buffer structure-based Computer programs for data transfer methods.

实施例2:在实施例1的一种基于串口双FIFO缓冲区结构的数据传输方法、系统及存储介质的基础上,下面对本发明作进一步的说明。Embodiment 2: On the basis of the data transmission method, system and storage medium based on the serial port double FIFO buffer structure in Embodiment 1, the present invention will be further described below.

如图2所示,在多任务系统中,如果有不同优先级的多个任务同时使用串口发送数据,比如低优先级的任务A正在使用缓冲区写入数据,它先取到了写入指针,即占领了写入指针所指向的缓冲区间,然后立即将写入指针指向下一个空闲的缓冲区间,这时一个高优先级的任务B也要使用串口发送数据,由于写入指针已指向空闲的缓冲区间,任务B可不用等待任务A完成拷贝数据动作,立即打断任务A,占领写入指针指向的缓冲区间,然后完成数据拷贝,任务B完成后,返回到任务A的断点处继续执行,完成任务A的数据拷贝。这样看来,串口的双fifo缓冲结构,可以减小高优先级任务B等待低优先级任务A完成数据拷贝的时间,提高了系统实时响应性能。As shown in Figure 2, in a multitasking system, if multiple tasks with different priorities use the serial port to send data at the same time, for example, task A with low priority is using the buffer to write data, it first gets the write pointer, that is Occupy the buffer pointed to by the write pointer, and then immediately point the write pointer to the next free buffer. At this time, a high-priority task B also uses the serial port to send data, because the write pointer already points to the free buffer Interval, task B does not need to wait for task A to complete the copy data action, immediately interrupt task A, occupy the buffer space pointed by the write pointer, and then complete the data copy, after task B is completed, return to the breakpoint of task A to continue execution, Complete the data copy of task A. From this point of view, the double fifo buffer structure of the serial port can reduce the time for the high-priority task B to wait for the low-priority task A to complete the data copy, and improve the real-time response performance of the system.

综上所述,本发明不仅减少由于缓冲区占用问题导致的优先级反转几率,而且提高了系统实时响应性能。To sum up, the present invention not only reduces the priority inversion probability caused by the buffer occupation problem, but also improves the real-time response performance of the system.

上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The specific implementation manners described above do not limit the protection scope of the present disclosure. It should be apparent to those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present disclosure shall be included within the protection scope of the present disclosure.

Claims (9)

1. A data transmission method based on a serial port double FIFO buffer area structure is characterized by comprising the following steps:
t1: respectively allocating at least one physical memory in a monitoring system of a cloud platform and an automatic driving system of a vehicle end, respectively establishing an idle memory pool and a working memory pool for the physical memories in the two systems through a bidirectional linked list, and simultaneously establishing at least one serial port double FIFO buffer area and a corresponding read-write pointer in the two systems;
t2: based on the data requests with different priorities sent by the automatic driving system of the vehicle end, acquiring the memory of a free memory pool of the automatic driving system of the vehicle end and filling the data requests, adding the memory filled with the data requests into a working memory pool of the automatic driving system of the vehicle end, and outputting the physical initial address and the size of the data requests;
t3: writing the physical initial address and the size of the data request into a serial port double FIFO buffer area of an automatic driving system of the vehicle end, and outputting a data request with high priority and a data request with low priority in sequence according to different priorities of the data requests;
t4: and sending the data request with high priority and the data request with low priority to a monitoring system of the cloud platform, and sending the feedback data request to an automatic driving system of the vehicle end by the monitoring system of the cloud platform through a serial port double FIFO buffer area.
2. The data transmission method based on the serial port double-FIFO buffer structure according to claim 1, wherein in step T3, the outputting the data request with high priority and the data request with low priority successively comprises:
t31: inputting data requests with different priorities into the serial port double FIFO buffer area, and copying the data requests by the serial port double FIFO buffer area according to the priorities;
t32: and if the data request with low priority is writing data by using the serial port double FIFO buffer area, the data request with high priority is input into the serial port double FIFO buffer area, the writing process of the data request with low priority is interrupted, the data request with high priority is completed, and then the data request with low priority is completed.
3. The data transmission method based on the serial port double FIFO buffer area structure according to claim 2, characterized in that: the serial port double FIFO buffer area comprises a write-in pointer, a read-out pointer and at least one buffer area unit.
4. The data transmission method based on the serial port double FIFO buffer zone structure according to claim 3, characterized in that: the write pointer points to the first unused buffer interval unit.
5. The data transmission method based on the serial port double FIFO buffer zone structure according to claim 3, characterized in that: the read pointer points to the first buffer interval unit to be sent.
6. The data transmission method based on the serial port double FIFO buffer area structure according to claim 2, characterized in that: and when a data request is input into the serial port double FIFO buffer area, selecting a corresponding buffer interval unit according to the write pointer, wherein the write pointer points to the next idle buffer interval unit.
7. The data transmission method based on the serial port double FIFO buffer area structure according to claim 6, characterized in that: when the data request with high priority is input into the same serial port double FIFO buffer area, the data request with high priority occupies the idle buffer area unit for data copying, the data request with low priority stops data copying, and the data request with high priority is waited to finish data copying.
8. A serial port double FIFO buffer structure based data transmission system comprising a computer device, characterized in that the computer device is programmed or configured to perform the steps of the serial port double FIFO buffer structure based data transmission method according to any one of claims 1 to 7.
9. A computer-readable storage medium having stored thereon a computer program programmed or configured to perform the method for data transmission based on a serial dual FIFO buffer structure according to any of claims 1 to 7.
CN202211647001.6A 2022-12-21 2022-12-21 A data transmission method, system and storage medium based on serial port double FIFO buffer structure Pending CN115801814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211647001.6A CN115801814A (en) 2022-12-21 2022-12-21 A data transmission method, system and storage medium based on serial port double FIFO buffer structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211647001.6A CN115801814A (en) 2022-12-21 2022-12-21 A data transmission method, system and storage medium based on serial port double FIFO buffer structure

Publications (1)

Publication Number Publication Date
CN115801814A true CN115801814A (en) 2023-03-14

Family

ID=85427588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211647001.6A Pending CN115801814A (en) 2022-12-21 2022-12-21 A data transmission method, system and storage medium based on serial port double FIFO buffer structure

Country Status (1)

Country Link
CN (1) CN115801814A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116701282A (en) * 2023-06-12 2023-09-05 深圳市安保医疗科技股份有限公司 VCP data transmission method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239248A (en) * 2014-09-16 2014-12-24 国家计算机网络与信息安全管理中心 PCI-E (peripheral component interconnect-express) multi-buffer DMA (direct memory access) data transmission method
CN108427894A (en) * 2018-03-27 2018-08-21 中国农业银行股份有限公司 A kind of data communications method and device
CN111124961A (en) * 2019-12-30 2020-05-08 武汉先同科技有限公司 Method for realizing conversion from single-port RAM to pseudo-dual-port RAM in continuous read-write mode

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239248A (en) * 2014-09-16 2014-12-24 国家计算机网络与信息安全管理中心 PCI-E (peripheral component interconnect-express) multi-buffer DMA (direct memory access) data transmission method
CN108427894A (en) * 2018-03-27 2018-08-21 中国农业银行股份有限公司 A kind of data communications method and device
CN111124961A (en) * 2019-12-30 2020-05-08 武汉先同科技有限公司 Method for realizing conversion from single-port RAM to pseudo-dual-port RAM in continuous read-write mode

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116701282A (en) * 2023-06-12 2023-09-05 深圳市安保医疗科技股份有限公司 VCP data transmission method, device, equipment and medium

Similar Documents

Publication Publication Date Title
US4272819A (en) Inter-subsystem direct transfer system
JPS61109164A (en) Bus control
CN115658571B (en) Data transmission method, device, electronic equipment and medium
JP2006513493A5 (en)
CN118550857B (en) Data transmission method, device, electronic device and storage medium
US11789634B2 (en) Systems and methods for processing copy commands
US12019572B2 (en) Bridging module, data transmission system, and data transmission method
JPH0587854B2 (en)
CN111258932A (en) Method for accelerating UFS protocol processing and storage controller
CN112559400A (en) Multi-stage scheduling apparatus, method, network chip and computer-readable storage medium
WO2025152635A1 (en) Cache request processing method and apparatus, device, storage medium and program
US20200183875A1 (en) Usb transmission device and transmission method
CN115563038A (en) Data processing system, method and data processing equipment based on DMA controller
CN115801814A (en) A data transmission method, system and storage medium based on serial port double FIFO buffer structure
CN108958903B (en) Embedded multi-core central processor task scheduling method and device
CN119988054A (en) Heterogeneous inter-core communication method and system on chip
CN100530078C (en) Management method of stack buffer area
US11972110B2 (en) Storage device and storage system
CN110865953A (en) Asynchronous copying method and device
US12019909B2 (en) IO request pipeline processing device, method and system, and storage medium
CN108958905B (en) Lightweight operating system of embedded multi-core central processing unit
JPS6336531B2 (en)
JP2008015876A (en) Data access system, data access device, data access integrated circuit, and data access method
CN120066433B (en) Multithreading printing scheduling method and device, electronic equipment and storage medium
JP6502879B2 (en) Storage device

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