CN114817115A - Serial port communication method and related device - Google Patents
Serial port communication method and related device Download PDFInfo
- Publication number
- CN114817115A CN114817115A CN202210550031.9A CN202210550031A CN114817115A CN 114817115 A CN114817115 A CN 114817115A CN 202210550031 A CN202210550031 A CN 202210550031A CN 114817115 A CN114817115 A CN 114817115A
- Authority
- CN
- China
- Prior art keywords
- sub
- function node
- service type
- function
- different
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0026—PCI express
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Systems (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及通信技术领域,具体涉及串口通信方法及相关装置。The embodiments of the present application relate to the field of communication technologies, and in particular, to a serial communication method and a related device.
背景技术Background technique
周边设备高速连接标准(peripheral component interconnect express,PCIE)可以理解为一种高速串行计算机扩展总线标准,支持PCIE的PCIE设备需要串口驱动来实现串口通信,以实现例如抓取日志,收发AT指令(attention,一种应用于终端设备与计算机应用之间的连接与通信的指令)等功能。Peripheral component interconnect express (PCIE) can be understood as a high-speed serial computer expansion bus standard. PCIE devices that support PCIE need serial drivers to realize serial communication, such as capturing logs, sending and receiving AT commands ( attention, an instruction applied to the connection and communication between terminal devices and computer applications) and other functions.
示例性地,将PCIE设备插入电子设备A,电子设备A可以识别插入的设备为PCIE设备,然后安装PCIE设备驱动。由于不同的功能对应不同的数据通道,PCIE设备驱动将根据PCIE设备的需求生成子功能节点,不同的子功能节点用于实现不同的功能。Exemplarily, when a PCIE device is inserted into electronic device A, electronic device A can identify the inserted device as a PCIE device, and then install a PCIE device driver. Since different functions correspond to different data channels, the PCIE device driver will generate sub-function nodes according to the requirements of the PCIE device, and different sub-function nodes are used to implement different functions.
目前,为了实现PCIE设备的串口通信,需要对每个子功能节点开发对应的串口驱动。但是,通过上述方式来实现串口通信的开发成本大。At present, in order to realize the serial port communication of PCIE devices, it is necessary to develop corresponding serial port drivers for each sub-function node. However, the development cost of realizing serial communication in the above-mentioned manner is high.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了串口通信方法及相关装置,通过本申请可以降低PCIE设备实现串口通信的开发成本。The embodiments of the present application provide a serial port communication method and a related device, and through the present application, the development cost of realizing serial port communication by a PCIE device can be reduced.
第一方面,本申请提供了一种串口通信方法,包括:In a first aspect, the present application provides a serial communication method, including:
确定第一子功能节点对应的业务类型,上述第一子功能节点为周边设备高速连接标准PCIE设备生成的多个子功能节点中的一个子功能节点,上述PCIE设备为支持PCIE的设备,一个上述子功能节点对应一种上述业务类型;Determine the service type corresponding to the first sub-function node, the first sub-function node is a sub-function node in a plurality of sub-function nodes generated by the peripheral equipment high-speed connection standard PCIE device, the above-mentioned PCIE device is a device supporting PCIE, and one of the above-mentioned sub-function nodes. The function node corresponds to one of the above service types;
为上述第一子功能节点创建上述业务类型对应的读写接口;Create a read-write interface corresponding to the above-mentioned service type for the above-mentioned first sub-function node;
控制上述第一子功能节点基于上述读写接口进行串口通信。Control the above-mentioned first sub-function node to perform serial communication based on the above-mentioned read-write interface.
本申请提供的串口通信方法,首先确定出第一子功能节点对应的业务类型,然后根据该第一子功能节点对应的业务类型创建对应的读写接口,由于第一子功能节点的读写接口都是根据其对应的业务类型创建的,那么创建的读写接口就可以很好地实现该第一子功能节点的功能,进而实现串口通信。可以理解的是,其他子功能节点(例如第二子功能节点、第三子功能节点等)都可以采取上述方式创建读写接口,进而实现串口通信。通过本申请,可以不需要对每个子功能节点进行单独开发,而是一次性分别为PCIE设备的各个子功能节点创建出对应的读写接口,从而降低开发成本和开发人员的维护工作量。The serial communication method provided by the present application firstly determines the service type corresponding to the first sub-function node, and then creates a corresponding read-write interface according to the service type corresponding to the first sub-function node. Since the read-write interface of the first sub-function node are created according to their corresponding business types, then the created read-write interface can well realize the function of the first sub-function node, and then realize serial communication. It can be understood that other sub-function nodes (for example, the second sub-function node, the third sub-function node, etc.) can use the above method to create a read-write interface, thereby realizing serial communication. Through the present application, it is not necessary to develop each sub-function node separately, but to create corresponding read and write interfaces for each sub-function node of the PCIE device at one time, thereby reducing development costs and maintenance workload of developers.
在一种可能的实施方式中,不同的上述子功能节点对应不同的标识信息,上述确定第一子功能节点对应的业务类型,包括:In a possible implementation manner, different above-mentioned sub-function nodes correspond to different identification information, and the above-mentioned determination of the service type corresponding to the first sub-function node includes:
获取上述第一子功能节点的标识信息;Obtain the identification information of the above-mentioned first sub-function node;
根据上述标识信息确定上述第一子功能节点对应的业务类型。The service type corresponding to the above-mentioned first sub-function node is determined according to the above-mentioned identification information.
在一种可能的实施方式中,上述根据上述标识信息确定上述第一子功能节点对应的业务类型之前,上述方法还包括:In a possible implementation manner, before the above-mentioned determination of the service type corresponding to the above-mentioned first sub-function node according to the above-mentioned identification information, the above-mentioned method further includes:
对上述多个子功能节点对应的所有业务类型进行编号,不同的上述业务类型对应不同的编号;Numbering all service types corresponding to the above-mentioned multiple sub-function nodes, and different above-mentioned service types correspond to different numbers;
建立上述多个子功能节点对应的标识信息与上述编号之间的对应关系,一个上述标识信息对应一个上述编号;establishing the correspondence between the identification information corresponding to the above-mentioned multiple sub-function nodes and the above-mentioned number, and one of the above-mentioned identification information corresponds to one of the above-mentioned numbers;
上述根据上述标识信息确定上述第一子功能节点对应的业务类型,包括:The above-mentioned determination of the service type corresponding to the above-mentioned first sub-function node according to the above-mentioned identification information includes:
根据上述标识信息对应的编号确定上述第一子功能节点对应的业务类型。The service type corresponding to the first sub-function node is determined according to the serial number corresponding to the identification information.
在一种可能的实施方式中,其特征在于,第一业务类型对应第一读写接口,第二业务类型对应第二读写接口;上述第一业务类型和上述第二业务类型至少有如下一项不同:处理的数据格式不同、处理的数据来源不同。In a possible implementation manner, the first service type corresponds to the first read/write interface, and the second service type corresponds to the second read/write interface; the first service type and the second service type are at least one of the following Different items: different data formats are processed, and different data sources are processed.
在一种可能的实施方式中,其特征在于,上述业务类型包括抓取日志、收发AT命令、用作调试工具的端口。In a possible implementation manner, the above service types include capturing logs, sending and receiving AT commands, and ports used as debugging tools.
在一种可能的实施方式中,其特征在于,上述标识信息包括硬件身份标识号ID。In a possible implementation manner, the above identification information includes a hardware identification number ID.
第二方面,本申请提供了一种串口通信装置,包括:In a second aspect, the present application provides a serial communication device, including:
确定单元,用于确定第一子功能节点对应的业务类型,上述第一子功能节点为周边设备高速连接标准PCIE设备生成的多个子功能节点中的一个子功能节点,上述PCIE设备为支持PCIE的设备,一个上述子功能节点对应一种上述业务类型;The determining unit is used to determine the service type corresponding to the first sub-function node, the first sub-function node is a sub-function node in a plurality of sub-function nodes generated by the peripheral equipment high-speed connection standard PCIE device, and the above-mentioned PCIE device is a PCIE-supporting device. equipment, one of the above-mentioned sub-function nodes corresponds to one of the above-mentioned service types;
创建单元,用于为上述第一子功能节点创建上述业务类型对应的读写接口;A creation unit is used to create a read-write interface corresponding to the above-mentioned service type for the above-mentioned first sub-function node;
控制单元,用于控制上述第一子功能节点基于上述读写接口进行串口通信。A control unit, configured to control the first sub-function node to perform serial communication based on the read-write interface.
在一种可能的实施方式中,不同的上述子功能节点对应不同的标识信息,上述装置还包括获取单元,用于获取上述第一子功能节点的标识信息;In a possible implementation manner, different above-mentioned sub-function nodes correspond to different identification information, and the above-mentioned apparatus further includes an obtaining unit, configured to obtain the identification information of the above-mentioned first sub-function node;
确定单元,具体用于根据上述标识信息确定上述第一子功能节点对应的业务类型。The determining unit is specifically configured to determine the service type corresponding to the above-mentioned first sub-function node according to the above-mentioned identification information.
在一种可能的实施方式中,上述装置还包括编号单元,用于对上述多个子功能节点对应的所有业务类型进行编号,不同的上述业务类型对应不同的编号;In a possible implementation manner, the above-mentioned apparatus further includes a numbering unit for numbering all the service types corresponding to the above-mentioned multiple sub-function nodes, and different above-mentioned service types correspond to different numbers;
上述装置还包括对应关系建立单元,用于建立上述多个子功能节点对应的标识信息与上述编号之间的对应关系,一个上述标识信息对应一个上述编号;The above-mentioned device further includes a corresponding relationship establishing unit, which is used to establish a corresponding relationship between the identification information corresponding to the above-mentioned multiple sub-function nodes and the above-mentioned number, and one of the above-mentioned identification information corresponds to one of the above-mentioned numbers;
确定单元,具体用于根据上述标识信息对应的编号确定上述第一子功能节点对应的业务类型。The determining unit is specifically configured to determine the service type corresponding to the first sub-function node according to the serial number corresponding to the identification information.
在一种可能的实施方式中,第一业务类型对应第一读写接口,第二业务类型对应第二读写接口;上述第一业务类型和上述第二业务类型至少有如下一项不同:处理的数据格式不同、处理的数据来源不同。In a possible implementation, the first service type corresponds to the first read/write interface, and the second service type corresponds to the second read/write interface; the first service type and the second service type are different in at least one of the following: processing The data formats are different, and the data sources processed are different.
在一种可能的实施方式中,上述业务类型包括抓取日志、收发AT命令、用作调试工具的端口。In a possible implementation manner, the above-mentioned service types include capturing logs, sending and receiving AT commands, and ports used as debugging tools.
在一种可能的实施方式中,上述标识信息包括硬件身份标识号ID。In a possible implementation manner, the above-mentioned identification information includes a hardware identification number ID.
第三方面,本申请实施例提供了一种串口通信装置,包括:处理器和存储器,其中,该存储器中存储有计算机程序,该处理器调用该存储器中存储的计算机程序,用于执行如第一方面或者第一方面的任意一种可能的实施方式中的方法。In a third aspect, an embodiment of the present application provides a serial communication device, including: a processor and a memory, wherein a computer program is stored in the memory, and the processor calls the computer program stored in the memory to execute the program as described in the first The method in an aspect or any one of the possible implementations of the first aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在一个或多个处理器上运行时,使得如第一方面或者第一方面的任意一种可能的实施方式中的方法被执行。In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program runs on one or more processors, the first aspect is Or the method in any possible implementation manner of the first aspect is performed.
第五方面,本申请实施例提供了一种计算机程序产品,该计算机程序产品包括程序指令,该程序指令当被处理器执行时使该处理器执行如第一方面或者第一方面的任意一种可能的实施方式中的方法。In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes program instructions, and when executed by a processor, the program instructions cause the processor to execute the first aspect or any one of the first aspect Methods in possible implementations.
附图说明Description of drawings
为了更清楚地说明本申请实施例或背景技术中的技术方案,下面将对本申请实施例或背景技术中所需要使用的附图作简单的介绍。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the following briefly introduces the accompanying drawings that are required in the embodiments or the background technology of the present application.
图1是本申请实施例提供的一种串口通信方法的流程示意图;1 is a schematic flowchart of a serial port communication method provided by an embodiment of the present application;
图2是本申请实施例提供的一种数据流向示意图;2 is a schematic diagram of a data flow provided by an embodiment of the present application;
图3是本申请实施例提供的一种串口通信装置的结构示意图;3 is a schematic structural diagram of a serial communication device provided by an embodiment of the present application;
图4是本申请实施例提供的另一种串口通信装置的结构示意图。FIG. 4 is a schematic structural diagram of another serial communication device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations of the present application. As used in the specification of this application and the appended claims, the singular expressions "a," "an," "above," "the" and "the" are intended to include the plural expressions as well, unless the context clearly dictates otherwise. It will also be understood that, as used in this application, the term "and/or" refers to and includes any and all possible combinations of one or more of the listed items. The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order.
通用串行总线(universal serial bus,USB)是一个外部总线标准,是应用在计算机领域的接口技术,用于规范计算机与外部设备的连接和通讯。本申请实施例中,USB接口可以理解为支持USB标准的接口,USB接口具有热插拔功能,可连接多种外设。示例性地,计算机可以通过自身的USB接口连接例如鼠标、键盘等设备。Universal serial bus (universal serial bus, USB) is an external bus standard, which is an interface technology applied in the computer field, and is used to standardize the connection and communication between computers and external devices. In the embodiments of the present application, the USB interface can be understood as an interface supporting the USB standard, and the USB interface has a hot-plug function and can be connected to various peripheral devices. Exemplarily, the computer can be connected to devices such as a mouse, a keyboard and the like through its own USB interface.
通信设备类(communication device class,CDC)可以理解为给各种通信设备使用的USB子类,可以理解的是,通过USB的通信设备类(communication device class,CDC),USB接口可以被当做虚拟接口用。根据通信设备的不同,CDC可以被分成不同的模型,例如USB传模拟电话业务(plain old telephone service,POTS)模型、USB集成服务数字网络(integrated services digital network,ISDN)模型以及USB网络模型等。其中,USB传模拟电话业务可以分为直接线控制模型(direct line control model,DLCM)、抽象控制模型(abstract control model,ACM)和USB电话模型(USB telephone model,UTM)。The communication device class (CDC) can be understood as a USB subclass used by various communication devices. It can be understood that through the USB communication device class (CDC), the USB interface can be regarded as a virtual interface use. According to different communication devices, CDC can be divided into different models, such as a USB transmission analog telephone service (plain old telephone service, POTS) model, a USB integrated services digital network (Integrated services digital network, ISDN) model and a USB network model and so on. The USB transmission analog telephone service can be classified into a direct line control model (DLCM), an abstract control model (ACM) and a USB telephone model (UTM).
本申请实施例中,USB设备可以理解为支持USB标准的设备。目前,USB设备可以采用CDC-ACM驱动来实现串口通信,用于抓取日志,收发AT指令(attention,一种应用于终端设备与计算机应用之间的连接与通信的指令)或者提供其他调试工具的端口等。In this embodiment of the present application, a USB device may be understood as a device supporting the USB standard. At present, USB devices can use the CDC-ACM driver to realize serial communication, which is used to capture logs, send and receive AT commands (attention, a command applied to the connection and communication between terminal devices and computer applications), or provide other debugging tools. port, etc.
随着通信技术的不断发展,除了上述USB接口标准,还出现了周边设备高速连接标准(peripheral component interconnect express,PCIE)接口标准。PCIE可以理解为一种高速串行计算机扩展总线标准,属于高速串行点对点双通道高带宽传输,支持热插拔以及服务质量(quality of service,QoS)等功能。本申请实施例中,PCIE设备可以理解为支持周边设备高速连接标准的设备。With the continuous development of communication technology, in addition to the above-mentioned USB interface standard, a peripheral component interconnect express (PCIE) interface standard also appears. PCIE can be understood as a high-speed serial computer expansion bus standard, which belongs to high-speed serial point-to-point dual-channel high-bandwidth transmission, and supports functions such as hot-plugging and quality of service (QoS). In this embodiment of the present application, a PCIE device may be understood as a device that supports the high-speed connection standard of peripheral devices.
视窗(windows)操作系统中,在PCIE设备被其他电子设备识别之后,将安装PCIE设备驱动。例如,将PCIE设备插入笔记本,笔记本可以识别出插入的设备为PCIE设备,然后安装PCIE设备驱动。一个PCIE设备可以利用串口实现不同的功能,因此,PCIE设备驱动将适应性地生成多个子功能节点,每个子功能节点用以实现不同的功能。In the Windows operating system, after the PCIE device is recognized by other electronic devices, the PCIE device driver will be installed. For example, when a PCIE device is inserted into a notebook, the notebook can recognize that the inserted device is a PCIE device, and then install the PCIE device driver. A PCIE device can use the serial port to realize different functions, therefore, the PCIE device driver will adaptively generate multiple sub-function nodes, and each sub-function node is used to realize different functions.
本申请实施例中,子功能节点可以理解为由PCIE设备生成的子节点,不同的子功能节点用来实现不同的功能。可选地,子功能节点也可以理解为虚拟的节点。本申请实施例中,业务类型可以理解为子功能节点实现的功能。可以理解的是,每个子功能节点都对应一种业务类型,不同的子功能节点对应不同的业务类型。In this embodiment of the present application, a sub-function node may be understood as a sub-node generated by a PCIE device, and different sub-function nodes are used to implement different functions. Optionally, the sub-function node can also be understood as a virtual node. In this embodiment of the present application, the service type may be understood as a function implemented by a sub-function node. It can be understood that each sub-function node corresponds to a service type, and different sub-function nodes correspond to different service types.
目前,PCIE设备没有统一的串口驱动来实现串口通信,并且,不同的芯片厂商对自己的芯片平台会有特定的数据传输协议,来自不同芯片厂商制造的PCIE设备所支持的数据传输协议不同,因此,生产PCIE设备的厂商需要自己单独提供串口驱动。另外,PCIE设备生成的不同子功能节点用于不同业务的处理,由此,为了让每个子功能节点都能够正常工作,即实现PCIE设备的串口通信,需要单独为每个子功能节点开发对应的串口驱动。At present, PCIE devices do not have a unified serial port driver to realize serial communication, and different chip manufacturers have specific data transmission protocols for their own chip platforms. PCIE devices from different chip manufacturers support different data transmission protocols. Therefore, , Manufacturers of PCIE devices need to provide their own serial port drivers. In addition, the different sub-function nodes generated by the PCIE device are used for processing different services. Therefore, in order to make each sub-function node work normally, that is, to realize the serial port communication of the PCIE device, it is necessary to develop a corresponding serial port for each sub-function node. drive.
示例性地,设备A为PCIE设备,设备A被设定需要实现的功能为功能A、功能B以及功能C。因此,设备A将生成子功能节点1、子功能节点2以及子功能节点3,其中,子功能节点1用以实现功能A、子功能节点2用以实现功能B、子功能节点3用以实现功能3。为了让上述子功能节点1、子功能节点2以及子功能节点3都正常工作起来,开发人员需要单独对子功能节点1进行开发,以实现功能A,再单独对子功能节点2进行开发,以实现功能B,单独对子功能节点3进行开发,以实现功能3。可以理解的是,单独为每个子功能节点开发对应的串口驱动实现串口通信的方式,导致开发人员对串口驱动的开发成本及维护的工作量大。Exemplarily, device A is a PCIE device, and the functions to be implemented by device A are set to be function A, function B, and function C. Therefore, device A will generate sub-function node 1, sub-function node 2 and sub-function node 3, wherein sub-function node 1 is used to realize function A, sub-function node 2 is used to realize function B, and sub-function node 3 is used to realize Function 3. In order to make the above sub-function node 1, sub-function node 2 and sub-function node 3 work normally, developers need to develop sub-function node 1 separately to realize function A, and then develop sub-function node 2 separately to achieve Implement function B, and develop sub-function node 3 separately to realize function 3. It is understandable that the way to develop a corresponding serial port driver for each sub-function node to realize serial port communication leads to a large amount of development cost and maintenance workload for the developer for the serial port driver.
基于上述问题,本申请实施例提供了一种串口通信方法,通过本申请可以减小开发人员对串口驱动的开发成本及维护的工作量。可以理解的是,上述方法可以由串口通信装置执行,该串口通信装置可以任意需要为PCIE设备实现串口通信的装置。示例性地,请参阅图1,图1是本申请实施例提供的一种串口通信方法的流程示意图。如图1所示,该方法包括:Based on the above problems, an embodiment of the present application provides a serial port communication method, through which the developer's development cost and maintenance workload for serial port drivers can be reduced. It can be understood that the above method can be executed by a serial communication device, and the serial communication device can be any device that needs to realize serial communication for PCIE devices. Illustratively, please refer to FIG. 1 , which is a schematic flowchart of a serial port communication method provided by an embodiment of the present application. As shown in Figure 1, the method includes:
101、确定第一子功能节点对应的业务类型,该第一子功能节点为周边设备高速连接标准PCIE设备生成的多个子功能节点中的一个子功能节点,该PCIE设备为支持PCIE的设备,一个该子功能节点对应一种该业务类型。101. Determine a service type corresponding to a first sub-function node, where the first sub-function node is a sub-function node in a plurality of sub-function nodes generated by a peripheral device high-speed connection standard PCIE device, the PCIE device is a device supporting PCIE, and a The sub-function node corresponds to one of the service types.
本申请实施例中,串口通信装置可以属于PCIE设备,通过串口通信装置的控制以实现串口通信。本申请实施例中,上述业务类型也可以称为业务模式,业务功能等。由于每个子功能节点实现的功能不同,上述业务类型也可以理解为子功能节点对应实现的功能类型,因此,本步骤中,一个子功能节点对应一种业务类型。In this embodiment of the present application, the serial communication device may belong to a PCIE device, and serial communication is implemented through the control of the serial communication device. In this embodiment of the present application, the above-mentioned service types may also be referred to as service modes, service functions, and the like. Since the functions implemented by each sub-function node are different, the above service types can also be understood as the function types implemented correspondingly by the sub-function nodes. Therefore, in this step, one sub-function node corresponds to one type of service.
可以理解的是,PCIE设备被设备之后,将根据要求生成多个子功能节点,最终目的是让每个子功能节点各自实现对应的功能。本步骤中,串口通信装置确定出第一子功能节点对应的业务类型,在一种可能的实现方式中,串口通信装置可以根据PCIE设备的配置信息确定出该第一子功能节点对应的业务类型。可以理解的是,对于某个PCIE设备,其需要实现的功能,即需要建立的子功能节点是固定的,因此,可以通过PCIE设备的配置信息确定出该第一子功能节点对应的业务类型。It can be understood that, after the PCIE device is installed, multiple sub-function nodes will be generated according to requirements, and the ultimate goal is to allow each sub-function node to implement corresponding functions. In this step, the serial communication device determines the service type corresponding to the first sub-function node. In a possible implementation manner, the serial communication device may determine the service type corresponding to the first sub-function node according to the configuration information of the PCIE device. . It can be understood that, for a certain PCIE device, the function to be implemented, that is, the sub-function node to be established is fixed. Therefore, the service type corresponding to the first sub-function node can be determined through the configuration information of the PCIE device.
在另一种可能的实现方式中,串口通信装置可以接收其他设备的指示信息来确定该第一子功能节点对应的业务类型。在又一种可能的实现方式中,可以将PCIE设备所有需要实现的功能,即所有业务类型提前预设在代码中,对于某个PCIE设备,根据其子功能节点与业务类型之间的对应关系来确定出该第一子功能节点对应的业务类型。In another possible implementation manner, the serial communication apparatus may receive indication information of other devices to determine the service type corresponding to the first sub-function node. In another possible implementation, all functions that need to be implemented by the PCIE device, that is, all service types can be preset in the code in advance. For a PCIE device, according to the corresponding relationship between its sub-function nodes and service types to determine the service type corresponding to the first sub-function node.
在一些实施例中,图1所示的方法中,不同的子功能节点对应不同的标识信息,步骤101包括:In some embodiments, in the method shown in FIG. 1, different sub-function nodes correspond to different identification information, and step 101 includes:
1011、获取上述第一子功能节点的标识信息;1011. Obtain the identification information of the first sub-function node;
1012、根据上述标识信息确定上述第一子功能节点对应的业务类型。1012. Determine a service type corresponding to the first sub-function node according to the identification information.
本实施例中,不同的子功能节点被标识信息标记,不同的子功能节点对应不同的标识信息。上述标识信息可以理解为任意用于标识子功能节点的信息。示例性地,该标识信息可以是子功能节点在存储设备中的位置信息,也可以是被生成的时间信息,也可以是被生成后的排列次序,也可以是子功能节点的名称,还可以是人为编号等。In this embodiment, different sub-function nodes are marked with identification information, and different sub-function nodes correspond to different identification information. The above identification information may be understood as any information used to identify the sub-function node. Exemplarily, the identification information may be the location information of the sub-function node in the storage device, or the generated time information, or the generated order, or the name of the sub-function node, or It is an artificial number, etc.
在一些实施例中,标识信息包括硬件身份标识号(identity document,ID)。可以理解的是,在PCIE设备生成上述多个子功能节点时,将为每个子功能节点确定出对应的硬件ID,每个硬件ID可以理解为一个字符串,该硬件ID与子功能节点之间一一对应。In some embodiments, the identification information includes a hardware identity document (ID). It can be understood that when the PCIE device generates the above-mentioned multiple sub-function nodes, the corresponding hardware ID will be determined for each sub-function node, and each hardware ID can be understood as a character string. A correspondence.
本实施例中,标识信息与业务类型之间的对应关系可以事先确定在代码中,例如可以采用关系映射表记录两者之间的对应关系。In this embodiment, the corresponding relationship between the identification information and the service type may be determined in the code in advance, for example, a relationship mapping table may be used to record the corresponding relationship between the two.
为了开发方便,可以对业务类型进行编号,在确定子节点的标识信息后,就可以通过该标识信息对应的编号确定出对应的业务类型。因此,在一些实施例中,上述步骤1012之前,还包括:For the convenience of development, the service type can be numbered, and after the identification information of the child node is determined, the corresponding service type can be determined by the number corresponding to the identification information. Therefore, in some embodiments, before the above step 1012, the method further includes:
1013、对该多个子功能节点对应的所有业务类型进行编号,不同的该业务类型对应不同的编号。1013. Number all service types corresponding to the multiple sub-function nodes, and different service types correspond to different numbers.
本步骤中,串口通信装置对各业务类型进行编号,示例性地,可以根据业务类型的优先级进行编号,也可以根据业务类型的服务质量进行编号,也可以随机编号,保证不同的业务类型对应不同的编号即可。In this step, the serial communication device numbers each service type. Exemplarily, the numbering may be performed according to the priority of the service type, the numbering may be performed according to the service quality of the service type, or the numbering may be random to ensure that different service types correspond to each other. A different number will do.
1014、建立该多个子功能节点对应的标识信息与该编号之间的对应关系,一个该标识信息对应一个该编号。1014. Establish a correspondence between the identification information corresponding to the plurality of sub-function nodes and the serial number, and each piece of the identification information corresponds to one of the serial numbers.
上述步骤1012,包括:The above step 1012 includes:
1015、根据该标识信息对应的编号确定该第一子功能节点对应的业务类型。1015. Determine the service type corresponding to the first sub-function node according to the serial number corresponding to the identification information.
在对业务类型编号之后,将标识信息与编号之间对应起来。可以理解的是,子功能节点与标识信息之间是对应的,通过将标识信息与业务类型的编号对应起来,可以理解为将标识信息与业务类型对应起来,最终,通过子功能节点的标识信息就可以确定出对应的业务类型编号,再通过业务类型编号就可以确定出该子功能节点对应的业务类型。After the business type is numbered, the identification information and the number are corresponded. It can be understood that there is a correspondence between the sub-function node and the identification information. By matching the identification information with the number of the service type, it can be understood that the identification information corresponds to the service type. Finally, through the identification information of the sub-function node. The corresponding service type number can be determined, and then the service type corresponding to the sub-function node can be determined through the service type number.
102:为该第一子功能节点创建该业务类型对应的读写接口。102: Create a read-write interface corresponding to the service type for the first sub-function node.
本申请实施例中,读写接口可以是读接口、也可以是写接口,也可以是读接口和写接口,具体根据业务类型确定。In this embodiment of the present application, the read-write interface may be a read interface, a write interface, or a read interface and a write interface, which is specifically determined according to the service type.
可以理解的是,不同的子功能节点对应不同的业务类型,也可以理解为用于实现不同的功能,因此,不同的子功能节点对应的读写接口是不同的。本步骤中,串口通信装置为第一子功能节点创建读写接口,该读写接口是根据该第一子功能节点的业务类型创建的。示例性地,该第一子功能节点为子功能节点1,对应的业务类型为业务类型A,那么给子功能节点1创建读写接口时,将创建用于实现业务类型A的读写接口。又示例性地,该第一子功能节点为子功能节点2,对应的业务类型为业务类型B,那么给子功能节点2创建读写接口时,将创建用于实现业务类型B的读写接口。It can be understood that different sub-function nodes correspond to different service types, and can also be understood as being used to implement different functions. Therefore, the read-write interfaces corresponding to different sub-function nodes are different. In this step, the serial communication device creates a read-write interface for the first sub-function node, and the read-write interface is created according to the service type of the first sub-function node. Exemplarily, the first sub-function node is sub-function node 1, and the corresponding service type is service type A. When creating a read-write interface for sub-function node 1, a read-write interface for realizing service type A will be created. Also exemplarily, the first sub-function node is sub-function node 2, and the corresponding business type is business type B, then when creating a read-write interface for sub-function node 2, a read-write interface for realizing business type B will be created. .
本申请实施例中,不同的业务类型对应不同的读写接口。也就是说,在一些实施例中,第一业务类型对应第一读写接口,第二业务类型对应第二读写接口;上述第一业务类型和上述第二业务类型至少有如下一项不同:处理的数据格式不同、处理的数据来源不同。In this embodiment of the present application, different service types correspond to different read and write interfaces. That is, in some embodiments, the first service type corresponds to the first read/write interface, and the second service type corresponds to the second read/write interface; the first service type and the second service type are different in at least one of the following: The data formats processed are different, and the data sources processed are different.
可以理解的是,不同的子功能节点用于实现不同的功能,在不同的功能中,处理的数据不同。本申请实施例中,业务类型的不同至少包括处理的数据格式不同、或者处理的数据来源不同。示例性地,不同功能中所支持的数据传输协议不同,则处理的数据格式不同;不同功能中的数据来自不同的数据源,则处理的数据来源不同。It can be understood that different sub-function nodes are used to implement different functions, and in different functions, different data are processed. In this embodiment of the present application, the difference in service types includes at least different formats of data to be processed, or different sources of data to be processed. Exemplarily, if the data transmission protocols supported in different functions are different, the processed data formats are different; if the data in different functions comes from different data sources, the processed data sources are different.
在一些实施例中,业务类型包括抓取日志、收发AT命令、用作调试工具的端口。In some embodiments, service types include scraping logs, sending and receiving AT commands, and ports used as debugging tools.
在windows操作系统中,日志可以理解为用于记录与操作相关内容的文件,例如应用程序日志、安全日志以及系统日志等。AT指令可以理解为应用于串口通信装置与应用之间的连接与通信的指令。可以理解的是,用于抓取日志的子功能节点、用于收发AT命令的子功能节点以及用作调试工具的端口的子功能节点,各自处理的数据类型各不相同,且各自对应的读写接口也不相同。通过本申请提供的方法就可以为每个子功能节点创建对应的读写接口,用于分别实现抓取日志、收发AT命令、用作调试工具的端口。In the Windows operating system, logs can be understood as files used to record operation-related content, such as application logs, security logs, and system logs. The AT command can be understood as the command applied to the connection and communication between the serial communication device and the application. It can be understood that the sub-function nodes used to capture logs, the sub-function nodes used to send and receive AT commands, and the sub-function nodes used as ports for debugging tools each process different data types, and their corresponding read The write interface is also different. Through the method provided in the present application, a corresponding read and write interface can be created for each sub-function node, which is used to respectively realize the port for capturing logs, sending and receiving AT commands, and serving as a debugging tool.
103:控制该第一子功能节点基于该读写接口进行串口通信。103: Control the first sub-function node to perform serial communication based on the read-write interface.
可以理解的是,在串口通信装置为该第一子功能节点创建对应的读写接口后,该第一子功能节点就可以在串口通信装置的控制下,基于自身对应的读写接口实现串口通信。It can be understood that after the serial communication device creates a corresponding read-write interface for the first sub-function node, the first sub-function node can realize serial communication based on its corresponding read-write interface under the control of the serial communication device. .
综上,本申请提供的串口通信方法,首先确定出第一子功能节点对应的业务类型,然后根据该第一子功能节点对应的业务类型创建对应的读写接口,由于第一子功能节点的读写接口都是根据其对应的业务类型创建的,那么创建的读写接口就可以很好地实现该第一子功能节点的功能,进而实现串口通信。可以理解的是,其他子功能节点(例如第二子功能节点、第三子功能节点等)都可以采取上述方式创建读写接口,进而实现串口通信。通过本申请,可以不需要对每个子功能节点进行单独开发,而是一次性分别为PCIE设备的各个子功能节点创建出对应的读写接口,从而降低开发成本和开发人员的维护工作量。To sum up, the serial communication method provided by this application firstly determines the service type corresponding to the first sub-function node, and then creates the corresponding read-write interface according to the service type corresponding to the first sub-function node. The read and write interfaces are created according to their corresponding business types, so the created read and write interfaces can well realize the function of the first sub-function node, and then realize serial communication. It can be understood that other sub-function nodes (for example, the second sub-function node, the third sub-function node, etc.) can use the above method to create a read-write interface, thereby realizing serial communication. Through the present application, it is not necessary to develop each sub-function node separately, but to create corresponding read and write interfaces for each sub-function node of the PCIE device at one time, thereby reducing development costs and maintenance workload of developers.
为了更加清楚地理解本方案,接下来结合图2对本申请提供的方法进行解释。In order to understand the solution more clearly, the method provided by the present application is explained next with reference to FIG. 2 .
可以理解的是,本申请提供的方法用于实现PCIE设备的串口通信,即让每个子功能节点可以实现各自的功能,因此,可以将上述串口通信装置理解为一种串口驱动。在现有技术中,必须分别为每个子功能节点单独提供串口驱动,而通过本申请,则通过一个串口驱动就可以实现全部子功能节点的串口通信。It can be understood that the method provided in this application is used to realize serial communication of PCIE devices, that is, each sub-function node can realize its own function. Therefore, the above serial communication device can be understood as a serial port driver. In the prior art, a serial port driver must be provided separately for each sub-function node, but with the present application, the serial port communication of all the sub-function nodes can be realized through one serial port driver.
由于不同的子功能节点被PCIE设备驱动生成后,名称和硬件ID都会不一样,首先在安装文件中设定好不同的硬件ID来为多个子功能节点提供串口驱动,然后在串口驱动的业务逻辑中,设定根据不同的硬件ID为不同的子功能节点生成独立的读写接口,以及特殊的数据配置上下文。当串口驱动根据硬件ID被安装到节点后,内部驱动逻辑也会根据子功能节点调用不同的数据传输接口,即读写接口,这样能够保证同一个驱动适配于不同平台,以及同一平台的不同数据传输通道。Since different sub-function nodes are generated by the PCIE device driver, the names and hardware IDs will be different. First, set different hardware IDs in the installation file to provide serial port drivers for multiple sub-function nodes, and then use the serial port driver business logic. , it is set to generate independent read and write interfaces for different sub-function nodes according to different hardware IDs, as well as special data configuration contexts. When the serial port driver is installed on the node according to the hardware ID, the internal driver logic will also call different data transmission interfaces according to the sub-function nodes, that is, read and write interfaces, which can ensure that the same driver is suitable for different platforms, and the same platform is different data transmission channel.
示例性地,请参阅图2,图2是本申请实施例提供的一种数据流向示意图。如图2所示,包括以下步骤:Illustratively, please refer to FIG. 2 , which is a schematic diagram of a data flow provided by an embodiment of the present application. As shown in Figure 2, it includes the following steps:
201、串口驱动安装。201. Serial driver installation.
本步骤中,上述串口驱动为一个串口驱动,根据硬件ID将串口驱动安装到子功能节点上,可以理解为,根据硬件ID将上述串口驱动安装到每个子功能节点上,例如上述第一子功能节点,以及其他子功能节点。In this step, the serial port driver is a serial port driver, and the serial port driver is installed on the sub-function node according to the hardware ID. It can be understood that the serial port driver is installed on each sub-function node according to the hardware ID. For example, the first sub-function above node, and other sub-function nodes.
可以理解的是,在串口驱动的设备信息文件(device information file,INF)中配置所有传输业务接口的硬件ID,由此,串口驱动可以被安装在不同的平台或者同一平台的不同业务通道上。本实施例中,安装上串口驱动后,通过下述步骤202-步骤205让各个子功能节点正常运作起来。It can be understood that the hardware IDs of all transmission service interfaces are configured in the device information file (INF) of the serial port driver, so that the serial port driver can be installed on different platforms or different service channels of the same platform. In this embodiment, after the serial port driver is installed, the following steps 202 to 205 are used to make each sub-function node operate normally.
202、串口驱动加载。202. The serial port driver is loaded.
本步骤中,串口驱动已经安装到子功能节点上,对于每个子功能节点,获取该子功能节点的硬件属性。示例性地,当串口驱动加载时,可以利用WDF框架(windows driverfoundation,一种驱动模型)提供的接口函数获取PCIE设备的硬件属性,得到该子功能节点的硬件ID。In this step, the serial port driver has been installed on the sub-function node, and for each sub-function node, the hardware properties of the sub-function node are obtained. Exemplarily, when the serial port driver is loaded, the interface function provided by the WDF framework (windows driver foundation, a driver model) can be used to obtain the hardware attribute of the PCIE device, and the hardware ID of the sub-function node can be obtained.
203、串口驱动业务类型配置。203. Serial port driver service type configuration.
本步骤中,根据硬件属性设定业务类型。在串口驱动的上下文描述结构体中定义业务类型,当串口驱动加载后,根据硬件ID将对应定义的业务类型赋给该业务类型变量。同时在上下文描述结构体中定义所有平台业务通道所需要用到的变量,对于不同的业务通道,当变量与自己无关时,并不会影响到串口驱动的业务逻辑。也就是说,每个子功能节点根据对应的硬件ID确定出对应的业务类型,与自己无关的业务类型将不受影响。In this step, the service type is set according to the hardware attribute. The service type is defined in the context description structure of the serial port driver. After the serial port driver is loaded, the correspondingly defined service type is assigned to the service type variable according to the hardware ID. At the same time, the variables required by all platform business channels are defined in the context description structure. For different business channels, when the variables have nothing to do with themselves, it will not affect the business logic of the serial port driver. That is to say, each sub-function node determines the corresponding service type according to the corresponding hardware ID, and the service type unrelated to itself will not be affected.
可选地,可以对所有的业务类型进行编号,让不同的业务类型有有不同的编号,进而,不同的编号可以对应于不同的数据通道。Optionally, all service types may be numbered, so that different service types have different numbers, and further, different numbers may correspond to different data channels.
204、串口驱动读写队列创建。204. The serial port driver creates a read and write queue.
本步骤中,创建读写队列时,根据业务类型创建读写接口。加载到各个子功能节点的串口驱动依据业务类型,针对数据的读写创建自己的读接口和/或写接口,因此,可以利用串口驱动加载获取的不同业务类型,进而创建不同的读写接口。In this step, when creating a read-write queue, create a read-write interface according to the service type. The serial port driver loaded into each sub-function node creates its own read and/or write interface for data reading and writing according to the service type. Therefore, the serial port driver can be used to load the different service types obtained, and then create different read and write interfaces.
最终,当一个串口驱动被加载到不同的子功能节点后,可以调用各自不同的读写接口来实现串口通信,通过上述方式,能够保证在不同平台以及不同的业务通道上,使用同一个串口驱动都能进行不同数据包的数据传输。Finally, when a serial port driver is loaded into different sub-function nodes, different read and write interfaces can be called to realize serial communication. Through the above method, the same serial port driver can be used on different platforms and different service channels. Can carry out data transmission of different data packets.
205、其他变量或数据定义。205. Other variables or data definitions.
可以理解的是,部分子功能节点可能需要特殊配置,本步骤中,对某些特定接口单独创建线程或特殊变量,以更好地适配子功能节点需要的功能。It can be understood that some sub-function nodes may require special configuration. In this step, threads or special variables are separately created for some specific interfaces to better adapt to the functions required by the sub-function nodes.
可以理解的是,通过对上述串口驱动的基础模型进行构造,易于拓展和重复利用,可以适配到其他平台,不需要重新开发串口驱动,只需要做简单适配即可。It can be understood that by constructing the basic model of the above serial port driver, it is easy to expand and reuse, and can be adapted to other platforms. It is not necessary to re-develop the serial port driver, and only needs to do a simple adaptation.
以上详细阐述了本申请实施例提供的方法,下面介绍本申请实施例提供的装置。The methods provided by the embodiments of the present application are described in detail above, and the apparatuses provided by the embodiments of the present application are introduced below.
请参阅图3,图3是本申请实施例提供的一种串口通信装置的结构示意图。该串口通信装置30用于执行上述串口通信方法,应理解,但凡能够实现本申请提供的串口通信方法的装置都属于本申请的保护范围。如图3所示,该串口通信装置30包括确定单元301、创建单元302以及控制单元303。可选地,该串口通信装置30还可以包括获取单元304、编号单元305以及对应关系建立单元306。其中,各个单元的描述如下:Please refer to FIG. 3 , which is a schematic structural diagram of a serial communication device provided by an embodiment of the present application. The serial communication device 30 is used to execute the above serial communication method. It should be understood that any device capable of implementing the serial communication method provided by the present application belongs to the protection scope of the present application. As shown in FIG. 3 , the serial communication device 30 includes a
确定单元301,用于确定第一子功能节点对应的业务类型,上述第一子功能节点为周边设备高速连接标准PCIE设备生成的多个子功能节点中的一个子功能节点,上述PCIE设备为支持PCIE的设备,一个上述子功能节点对应一种上述业务类型;The determining
创建单元302,用于为上述第一子功能节点创建上述业务类型对应的读写接口;A
控制单元303,用于控制上述第一子功能节点基于上述读写接口进行串口通信。The
在一种可能的实施方式中,不同的上述子功能节点对应不同的标识信息,上述装置还包括获取单元304,用于获取上述第一子功能节点的标识信息;In a possible implementation manner, different above-mentioned sub-function nodes correspond to different identification information, and the above-mentioned apparatus further includes an obtaining
确定单元301,具体用于根据上述标识信息确定上述第一子功能节点对应的业务类型。The determining
在一种可能的实施方式中,上述装置还包括编号单元305,用于对上述多个子功能节点对应的所有业务类型进行编号,不同的上述业务类型对应不同的编号;In a possible implementation manner, the above-mentioned apparatus further includes a
上述装置还包括对应关系建立单元306,用于建立上述多个子功能节点对应的标识信息与上述编号之间的对应关系,一个上述标识信息对应一个上述编号;The above-mentioned device also includes a corresponding
确定单元301,具体用于根据上述标识信息对应的编号确定上述第一子功能节点对应的业务类型。The determining
在一种可能的实施方式中,第一业务类型对应第一读写接口,第二业务类型对应第二读写接口;上述第一业务类型和上述第二业务类型至少有如下一项不同:处理的数据格式不同、处理的数据来源不同。In a possible implementation, the first service type corresponds to the first read/write interface, and the second service type corresponds to the second read/write interface; the first service type and the second service type are different in at least one of the following: processing The data formats are different, and the data sources processed are different.
在一种可能的实施方式中,上述业务类型包括抓取日志、收发AT命令、用作调试工具的端口。In a possible implementation manner, the above-mentioned service types include capturing logs, sending and receiving AT commands, and ports used as debugging tools.
在一种可能的实施方式中,上述标识信息包括硬件身份标识号ID。In a possible implementation manner, the above-mentioned identification information includes a hardware identification number ID.
请参阅图4,图4是本申请实施例提供的另一种串口通信装置的结构示意图。如图4所示,上述串口通信装置40包括存储器401、处理器402。进一步可选的,还可以包含通信接口403以及总线404,其中,存储器401、处理器402以及通信接口403通过总线404实现彼此之间的通信连接。Please refer to FIG. 4. FIG. 4 is a schematic structural diagram of another serial communication device provided by an embodiment of the present application. As shown in FIG. 4 , the above-mentioned serial communication device 40 includes a
其中,存储器401用于提供存储空间,存储空间中可以存储操作系统和计算机程序等数据。存储器401包括但不限于是随机存储记忆体(random access memory,RAM)、只读存储器(read-only memory,ROM)、可擦除可编程只读存储器(erasable programmable readonly memory,EPROM)、或便携式只读存储器(compact disc read-only memory,CD-ROM)。Among them, the
处理器402是进行算术运算和逻辑运算的模块,可以是中央处理器(centralprocessing unit,CPU)、显卡处理器(graphics processing unit,GPU)或微处理器(microprocessor unit,MPU)等处理模块中的一种或者多种的组合。The
存储器401中存储有计算机程序,处理器402调用存储器401中存储的计算机程序,以执行上述串口通信方法。A computer program is stored in the
本申请还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机代码,当计算机代码在计算机上运行时,使得计算机执行上述实施例的方法。The present application also provides a computer-readable storage medium, where computer codes are stored in the computer-readable storage medium, and when the computer codes are executed on the computer, the computer is made to execute the methods of the above embodiments.
本申请还提供一种计算机程序产品,该计算机程序产品包括计算机代码或计算机程序,当该计算机代码或计算机程序在计算机上运行时,使得上述实施例中的方法被执行。The present application also provides a computer program product, the computer program product includes computer code or a computer program, when the computer code or computer program is run on a computer, the method in the above embodiment is executed.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以上述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the above claims.
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210550031.9A CN114817115A (en) | 2022-05-20 | 2022-05-20 | Serial port communication method and related device |
PCT/CN2023/090863 WO2023221753A1 (en) | 2022-05-20 | 2023-04-26 | Serial port communication method and related apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210550031.9A CN114817115A (en) | 2022-05-20 | 2022-05-20 | Serial port communication method and related device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114817115A true CN114817115A (en) | 2022-07-29 |
Family
ID=82517874
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210550031.9A Pending CN114817115A (en) | 2022-05-20 | 2022-05-20 | Serial port communication method and related device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114817115A (en) |
WO (1) | WO2023221753A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023221753A1 (en) * | 2022-05-20 | 2023-11-23 | 深圳市广和通无线通信软件有限公司 | Serial port communication method and related apparatus |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117290190B (en) * | 2023-11-27 | 2024-02-13 | 博为科技有限公司 | Remote serial port log acquisition method, device and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246618A (en) * | 2012-02-01 | 2013-08-14 | 中兴通讯股份有限公司 | Method and device for achieving universal serial bus (USB) functions on basis of embedded system |
CN107015825A (en) * | 2009-07-10 | 2017-08-04 | 中兴通讯股份有限公司 | The collocation method and system of a kind of USB data card |
WO2018019009A1 (en) * | 2016-07-25 | 2018-02-01 | 中兴通讯股份有限公司 | Data processing method and system, peripheral component interconnect express device and host |
WO2020000489A1 (en) * | 2018-06-30 | 2020-01-02 | 华为技术有限公司 | Pcie sending and receiving method, apparatus, device and system |
CN112214294A (en) * | 2019-09-18 | 2021-01-12 | 华为技术有限公司 | Method for calling hardware interface and electronic equipment |
CN112631915A (en) * | 2020-12-24 | 2021-04-09 | 苏州浪潮智能科技有限公司 | Method, system, device and medium for PCIE device software simulation |
US20210224210A1 (en) * | 2019-07-31 | 2021-07-22 | Huawei Technologies Co., Ltd. | Information processing method, physical machine, and pcie device |
CN114201432A (en) * | 2020-09-02 | 2022-03-18 | 华为技术有限公司 | Method and electronic device for USB transfer |
CN114416630A (en) * | 2021-12-24 | 2022-04-29 | 深圳市广和通无线通信软件有限公司 | Communication method and device based on PCIE, computer equipment and readable storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104636186B (en) * | 2015-01-27 | 2018-02-13 | 华为技术有限公司 | Virutal machine memory management method, physical host, PCIE device and its collocation method and migration management equipment |
US10191882B2 (en) * | 2015-06-29 | 2019-01-29 | Futurewei Technologies, Inc. | Method and system for aggregation-friendly address assignment to PCIe devices |
CN110362511B (en) * | 2018-04-11 | 2021-07-02 | 杭州海康威视数字技术股份有限公司 | PCIE equipment |
CN114817115A (en) * | 2022-05-20 | 2022-07-29 | 深圳市广和通无线通信软件有限公司 | Serial port communication method and related device |
-
2022
- 2022-05-20 CN CN202210550031.9A patent/CN114817115A/en active Pending
-
2023
- 2023-04-26 WO PCT/CN2023/090863 patent/WO2023221753A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107015825A (en) * | 2009-07-10 | 2017-08-04 | 中兴通讯股份有限公司 | The collocation method and system of a kind of USB data card |
CN103246618A (en) * | 2012-02-01 | 2013-08-14 | 中兴通讯股份有限公司 | Method and device for achieving universal serial bus (USB) functions on basis of embedded system |
WO2018019009A1 (en) * | 2016-07-25 | 2018-02-01 | 中兴通讯股份有限公司 | Data processing method and system, peripheral component interconnect express device and host |
WO2020000489A1 (en) * | 2018-06-30 | 2020-01-02 | 华为技术有限公司 | Pcie sending and receiving method, apparatus, device and system |
US20210224210A1 (en) * | 2019-07-31 | 2021-07-22 | Huawei Technologies Co., Ltd. | Information processing method, physical machine, and pcie device |
CN112214294A (en) * | 2019-09-18 | 2021-01-12 | 华为技术有限公司 | Method for calling hardware interface and electronic equipment |
CN114201432A (en) * | 2020-09-02 | 2022-03-18 | 华为技术有限公司 | Method and electronic device for USB transfer |
CN112631915A (en) * | 2020-12-24 | 2021-04-09 | 苏州浪潮智能科技有限公司 | Method, system, device and medium for PCIE device software simulation |
CN114416630A (en) * | 2021-12-24 | 2022-04-29 | 深圳市广和通无线通信软件有限公司 | Communication method and device based on PCIE, computer equipment and readable storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023221753A1 (en) * | 2022-05-20 | 2023-11-23 | 深圳市广和通无线通信软件有限公司 | Serial port communication method and related apparatus |
Also Published As
Publication number | Publication date |
---|---|
WO2023221753A1 (en) | 2023-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5649128A (en) | Multiple bus interface adapter for connection to a plurality of computer bus architectures | |
WO2023221753A1 (en) | Serial port communication method and related apparatus | |
CN101065740B (en) | USB On-The-Go controller | |
CN207115097U (en) | A kind of FPGA isomeries accelerator card | |
CN106371847B (en) | CPCI bus RS422 communication driving method and system under Windows xp system | |
CN114003445B (en) | BMC I2C monitoring function test method, system, terminal and storage medium | |
CN117171042B (en) | Development and debugging system and method based on parameter configuration method for graphic program | |
CN110968352B (en) | Reset system and server system of PCIE equipment | |
CN110244983A (en) | Method for fixing serial number, terminal equipment and storage medium | |
CN110880998A (en) | Message transmission method and device based on programmable device | |
CN111008162A (en) | A method and system for realizing a single PCIE slot supporting multiple PCIE Ports | |
CN114401250A (en) | Method and device for address allocation | |
CN115344520B (en) | Method and device for using PCIe interface compatible with silver fir card, storage medium and equipment | |
CN103365798A (en) | Serial port time sharing multiplexing method and system | |
CN115599268A (en) | Screen capture method, computing device and storage medium | |
CN104252429A (en) | Storage control device and method for calling its address | |
CN101685396A (en) | System and method for controlling function icon | |
CN101118511A (en) | Method for supporting vertical card by basic input output system | |
CN117408061A (en) | Whole vehicle model simulation performance optimization system and computer device | |
CN117077221A (en) | Hard disk screen printing distribution method and device, computer equipment and medium | |
CN114123457B (en) | Power supply method, device and equipment | |
CN115952129A (en) | Blade server setting method and device and readable storage medium | |
CN115328764A (en) | Test code optimization method and related equipment based on automated test | |
CN101826062A (en) | Computer executing method and electric system | |
CN113127002B (en) | Method, device, equipment and medium for monitoring code compiling process |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220729 |
|
RJ01 | Rejection of invention patent application after publication |