+

CN114301936A - Remote memory access method and system - Google Patents

Remote memory access method and system Download PDF

Info

Publication number
CN114301936A
CN114301936A CN202111527005.6A CN202111527005A CN114301936A CN 114301936 A CN114301936 A CN 114301936A CN 202111527005 A CN202111527005 A CN 202111527005A CN 114301936 A CN114301936 A CN 114301936A
Authority
CN
China
Prior art keywords
access
peripheral
sensing node
data packet
management module
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
CN202111527005.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.)
Tenow International Ltd
Original Assignee
Tenow International 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 Tenow International Ltd filed Critical Tenow International Ltd
Priority to CN202111527005.6A priority Critical patent/CN114301936A/en
Publication of CN114301936A publication Critical patent/CN114301936A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请涉及一种远程内存访问方法、系统、智能设备和存储介质。所述方法包括:外设管理模块接收到服务端的触发指令后,将访问操作、访问地址和第一数据按照所述访问操作封装为第一UDP网络数据包,将所述第一UDP网络数据包发送至所述访问端口对应的传感节点;所述传感节点将接收到的第一UDP网络数据包进行解封,根据解封获取得所述访问操作、访问地址和第一数据,对所述传感节点或与所述传感节点连接的外设模块进行所述访问操作,本发明,基于外设管理模块的内存映射,服务端对传感节点和外设模块可进行寄存器级别访问,实现了远程对硬件进行友好访问,可完成对物联网系统的设备诊断和数据采集,无需庞大的操作系统作为支撑,成本低。

Figure 202111527005

The present application relates to a remote memory access method, system, smart device and storage medium. The method includes: after receiving the trigger instruction from the server, the peripheral management module encapsulates the access operation, the access address and the first data into a first UDP network data packet according to the access operation, and then encapsulates the first UDP network data packet. sent to the sensing node corresponding to the access port; the sensing node decapsulates the received first UDP network data packet, obtains the access operation, the access address and the first data according to the decapsulation, and decapsulates the received first UDP network data packet. The sensing node or the peripheral module connected to the sensing node performs the access operation. In the present invention, based on the memory mapping of the peripheral management module, the server can perform register-level access to the sensing node and the peripheral module. It realizes friendly access to the hardware remotely, and can complete the equipment diagnosis and data collection of the Internet of Things system, without the need for a huge operating system as a support, and the cost is low.

Figure 202111527005

Description

远程内存访问方法和系统Remote memory access method and system

技术领域technical field

本申请涉及计算机技术领域,特别是涉及一种远程内存访问方法和系统。The present application relates to the field of computer technology, and in particular, to a remote memory access method and system.

背景技术Background technique

窄带物联网(Narrow Band Internet of Things,NB-IoT)和基于LTE演进的物联网技术(LTE enhanced MTO,eMTC)都是目前价格便宜的物联网无线互联方案,但两者均在满足大批量数据和灵活远程访问硬件方面还有欠缺,要达到同样的功能,需要付出更大的代价。原因有二,第一可靠的网络传输需要操作系统作为支撑,系统庞大,价格昂贵,不利于拓展,特别是对于分布式数据采集来讲,限制了其大规模应用;第二无法远程对硬件进行友好访问,特别是寄存器级别的访问,此种访问对访问对象的故障诊断和信息采集十分重要。Narrow Band Internet of Things (NB-IoT) and LTE-based Internet of Things (LTE enhanced MTO, eMTC) are both currently inexpensive wireless interconnection solutions for the Internet of Things, but both are meeting the needs of large-scale data. And flexible remote access hardware is still lacking, to achieve the same function, need to pay a higher price. There are two reasons. First, reliable network transmission requires the support of the operating system. The system is huge and expensive, which is not conducive to expansion, especially for distributed data collection, which limits its large-scale application; second, it is impossible to remotely perform hardware operations. Friendly access, especially register-level access, is very important for fault diagnosis and information collection of access objects.

综上所述,亟需一种无需庞大操作系统支持、可远程的内存访问方法。To sum up, there is an urgent need for a remote memory access method without the support of a huge operating system.

发明内容SUMMARY OF THE INVENTION

基于此,有必要针对上述技术问题,提供一种无需庞大操作系统支持且可远程的内存访问方法和智能设备。Based on this, it is necessary to provide a remote memory access method and a smart device that do not require the support of a huge operating system to address the above technical problems.

第一方面,提供了一种远程内存访问方法,所述方法包括:In a first aspect, a remote memory access method is provided, the method comprising:

外设管理模块接收到所述服务端的触发指令后,将第一存储器上存储的访问操作、访问地址和第一数据按照所述访问操作封装为第一UDP网络数据包,将所述第一UDP网络数据包发送至所述访问端口对应的传感节点;After receiving the trigger instruction of the server, the peripheral management module encapsulates the access operation, the access address and the first data stored in the first memory into a first UDP network data packet according to the access operation, and the first UDP sending the network data packet to the sensing node corresponding to the access port;

所述传感节点将接收到的第一UDP网络数据包进行解封,根据解封获取得所述访问操作、访问地址和第一数据,对所述传感节点或与所述传感节点连接的外设模块进行所述访问操作。The sensor node decapsulates the received first UDP network data packet, and according to the access operation, the access address and the first data obtained from the decapsulation, connects the sensor node or the sensor node. The peripheral module performs the access operation.

在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:

所述传感节点将完成所述访问操作后的回复数据封装为第二UDP网络数据包,将所述第二UDP网络数据包发送至所述外设管理模块;The sensing node encapsulates the reply data after completing the access operation into a second UDP network data packet, and sends the second UDP network data packet to the peripheral device management module;

所述外设管理模块拆封所述第二UDP网络数据包,若所述回复数据不只为通信应答,则将所述回复数据存于所述第二存储器。The peripheral device management module decapsulates the second UDP network data packet, and stores the reply data in the second memory if the reply data is not only a communication response.

在其中一个实施例中,所述对所述传感节点或与所述传感节点连接的外设模块进行操作具体:In one of the embodiments, the operation on the sensing node or the peripheral module connected with the sensing node is as follows:

所述传感节点根据所述访问操作判断是否为直接访问所述传感节点,若是直接访问所述传感节点,则对所述传感节点执行所述访问操作;若不是直接访问所述传感节点,则通过所述传感节点的本地寄存器映射的低速串行总线对外设模块执行所述访问操作后,将访问的结果存于本地寄存器中,以使外设管理模块查看操作外设模块的结果。The sensing node determines whether it is directly accessing the sensing node according to the access operation, and if it directly accesses the sensing node, executes the access operation on the sensing node; sensor node, after performing the access operation on the peripheral module through the low-speed serial bus mapped by the local register of the sensor node, the result of the access is stored in the local register, so that the peripheral device management module can view and operate the peripheral module the result of.

第二方面,提供了一种远程内存访问系统,所述系统包括:主机端、传感节点和外设模块,所述主机端包括服务端和外设管理模块,所述外设管理模块和传感节点之间通过网络通信,所述传感节点与外设模块通过低速串行总线进行交互,其中,In a second aspect, a remote memory access system is provided, the system includes: a host, a sensor node and a peripheral module, the host includes a server and a peripheral management module, the peripheral management module and the transmission module The sensing nodes communicate through the network, and the sensing nodes interact with the peripheral modules through a low-speed serial bus, wherein,

所述外设管理模块,用于接收到所述服务端的触发指令后,将第一存储器上存储的访问操作、访问地址和第一数据按照所述访问操作封装为第一UDP网络数据包,将所述第一UDP网络数据包发送至访问端口对应的传感节点;The peripheral management module is configured to encapsulate the access operation, the access address and the first data stored on the first memory into a first UDP network data packet according to the access operation after receiving the trigger instruction of the server, and then The first UDP network data packet is sent to the sensing node corresponding to the access port;

所述传感节点,用于将接收到的第一UDP网络数据包进行解封,根据解封获取的所述访问操作、访问地址和第一数据,对所述传感节点或与所述传感节点连接的外设模块进行所述访问操作。The sensing node is configured to decapsulate the received first UDP network data packet, and according to the access operation, the access address and the first data obtained from the decapsulation, decapsulate the sensing node or communicate with the transmission. The peripheral module connected to the sense node performs the access operation.

在其中一个实施例中,所述服务端和外设管理模块通过PCI总线连接。In one embodiment, the server and the peripheral device management module are connected through a PCI bus.

在其中一个实施例中,所述外设管理模块和传感节点通过一问一答的模式进行UDP通信。In one embodiment, the peripheral device management module and the sensor node perform UDP communication in a question-and-answer mode.

在其中一个实施例中,所述访问操作包括读或写、直接寻址或间接寻址、通讯请求的任一种或者多种组合。In one of the embodiments, the access operation includes any one or multiple combinations of read or write, direct addressing or indirect addressing, and communication requests.

在其中一个实施例中,所述外设管理模块还包括至少一个第二存储器,In one of the embodiments, the peripheral management module further includes at least one second memory,

所述传感节点,还用于将完成所述访问操作后的回复数据封装为第二UDP网络数据包,将所述第二UDP网络数据包发送至所述外设管理模块;The sensing node is further configured to encapsulate the reply data after completing the access operation into a second UDP network data packet, and send the second UDP network data packet to the peripheral device management module;

所述外设管理模块,还用于拆封所述第二UDP网络数据包,若所述回复数据不只为通信应答,则将所述回复数据存于所述第二存储器。The peripheral device management module is further configured to decapsulate the second UDP network data packet, and if the reply data is not only a communication response, the reply data is stored in the second memory.

在其中一个实施例中,所述传感节点具体用于根据所述访问操作判断是否为直接访问所述传感节点,若是直接访问所述传感节点,则对所述传感节点执行所述访问操作;若不是直接访问所述传感节点,则通过所述传感节点的本地寄存器映射的低速串行总线对外设模块执行所述访问操作后,将访问的结果存于本地寄存器中,以使外设管理模块查看操作外设模块的结果。In one embodiment, the sensing node is specifically configured to determine whether the sensing node is directly accessed according to the access operation, and if the sensing node is directly accessed, execute the sensing node on the sensing node. access operation; if the sensor node is not directly accessed, after the access operation is performed to the peripheral module through the low-speed serial bus mapped by the local register of the sensor node, the access result is stored in the local register to Enables the peripheral management module to view the results of operating peripheral modules.

在其中一个实施例中,所述系统为物联设备诊断系统和/或物联数据采集系统。In one embodiment, the system is an IoT device diagnosis system and/or an IoT data acquisition system.

上述远程内存访问方法和智能设备,通过外设管理模块接收到服务端的触发指令后,将访问操作、访问地址和第一数据按照所述访问操作封装为第一UDP网络数据包,将所述第一UDP网络数据包发送至访问端口对应的传感节点;所述传感节点将接收到的第一UDP网络数据包进行解封,根据解封获取得所述访问操作、访问地址和第一数据,对所述传感节点或与所述传感节点连接的外设模块进行所述访问操作,本发明,基于外设管理模块的内存映射,服务端对传感节点和外设模块可进行寄存器级别访问,实现了远程对硬件进行友好访问,可完成对物联网系统的设备诊断和数据采集,无需庞大的操作系统作为支撑,成本低。The above-mentioned remote memory access method and intelligent device, after receiving the trigger instruction of the server through the peripheral management module, the access operation, the access address and the first data are encapsulated into a first UDP network data packet according to the access operation, and the first UDP network data packet is encapsulated. A UDP network data packet is sent to the sensor node corresponding to the access port; the sensor node decapsulates the received first UDP network data packet, and obtains the access operation, the access address and the first data according to the decapsulation , perform the access operation on the sensing node or the peripheral module connected to the sensing node. In the present invention, based on the memory mapping of the peripheral management module, the server can register the sensing node and the peripheral module. Level access realizes remote friendly access to hardware, and can complete equipment diagnosis and data collection of the Internet of Things system, without the need for a huge operating system as a support, and the cost is low.

附图说明Description of drawings

图1为一个实施例中远程内存访问系统的结构框图;1 is a structural block diagram of a remote memory access system in one embodiment;

图2为一个实施例中远程内存访问方法的流程示意图。FIG. 2 is a schematic flowchart of a remote memory access method in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

在一个实施例中,如图1所示,提供了一种远程内存访问系统,本系统可用于物联设备诊断或数据采集的具体场景下,该系统包括:主机端1、传感节点2和外设模块3。所述主机端1包括服务端11和外设管理模块12,所述服务端11和外设管理模块12通过PCI(Peripheral Component Interconnect)总线连接,所述外设管理模块12包括至少一个第一存储器和至少一个第二存储器,第一存储器用于存放服务端11对传感节点的访问操作、访问地址和第一数据,第二存储器用于存放接收到的传感节点2的回复数据,所述服务端11通过32位地址数据总线对第一存储器和第二存储器进行读写,所述外设管理模块12和传感节点2之间通过网络通信,所述网络为以太网UDP协议,所述外设管理模块12通过地址总线连接一个或者多个所述传感节点2,所述外设管理模块12和传感节点2通过一问一答的模式进行UDP通信,所述传感节点2与外设模块3通过低速串行总线进行交互,所述低速串行总线包括I2C总线(INTER IC BUS,I2C)、通用异步收发器(Universal Asynchronous ReceiverTransmitter,UART)、串行外设接口(Serial Peripheral Interface,SPI)的任一种或多种组合,其中:In one embodiment, as shown in FIG. 1 , a remote memory access system is provided. The system can be used in a specific scenario of IoT device diagnosis or data collection. The system includes: a host 1 , a sensor node 2 and Peripheral module 3. The host 1 includes a server 11 and a peripheral management module 12, the server 11 and the peripheral management module 12 are connected through a PCI (Peripheral Component Interconnect) bus, and the peripheral management module 12 includes at least one first memory and at least one second memory, the first memory is used to store the access operation, access address and first data of the sensor node by the server 11, and the second memory is used to store the received reply data of the sensor node 2, the The server 11 reads and writes the first memory and the second memory through a 32-bit address data bus, and the peripheral management module 12 communicates with the sensing node 2 through a network. The network is an Ethernet UDP protocol. The peripheral management module 12 is connected to one or more of the sensing nodes 2 through an address bus. The peripheral management module 12 and the sensing node 2 conduct UDP communication through a question-and-answer mode, and the sensing node 2 communicates with the sensing node 2. The peripheral module 3 interacts through a low-speed serial bus, and the low-speed serial bus includes an I2C bus (INTER IC BUS, I2C), a Universal Asynchronous Receiver Transmitter (UART), a Serial Peripheral Interface (Serial Peripheral Interface) , SPI) any one or more combinations, wherein:

所述外设管理模块12将接收到所述服务端11的操作指令存于寄存器或第一存储器中,所述操作指令包括访问操作、访问地址和第一数据。The peripheral management module 12 stores the operation instruction received from the server 11 in a register or a first memory, and the operation instruction includes an access operation, an access address and first data.

所述外设管理模块12,用于接收到所述服务端11的触发指令后,将第一存储器上存储的访问操作、访问地址和第一数据按照所述访问操作封装为第一UDP网络数据包,将所述第一UDP网络数据包发送至访问端口对应的传感节点2;所述访问操作包括读或写、直接寻址或间接寻址、通讯请求的任一种或者多种组合,同一数据包包括读或写的一种,同一数据包包括直接寻址或间接寻址的一种,同一数据包包括通讯请求。所述触发指令是服务端用于触发外设管理模块开始进行远程访问的指令。所述访问地址为待访问传感节点对应的映射寄存器地址;所述访问端口为传感节点接收网络命令的端口。所述第一数据是服务端发送给待访问传感节点或待访问传感节点连接外设模块的寄存器或存储器的数据。The peripheral management module 12 is used to encapsulate the access operation, the access address and the first data stored on the first memory into the first UDP network data according to the access operation after receiving the trigger instruction of the server 11 packet, send the first UDP network data packet to the sensing node 2 corresponding to the access port; the access operation includes any one or more combinations of read or write, direct addressing or indirect addressing, and communication requests, The same data packet includes one of read or write, the same data packet includes one of direct addressing or indirect addressing, and the same data packet includes a communication request. The trigger instruction is an instruction used by the server to trigger the peripheral device management module to start remote access. The access address is a mapping register address corresponding to the sensor node to be accessed; the access port is a port for the sensor node to receive network commands. The first data is the data sent by the server to the sensor node to be accessed or the register or memory of the sensor node to be accessed connected to the peripheral module.

所述传感节点2,用于将接收到的第一UDP网络数据包进行解封,根据解封获取的所述访问操作、访问地址和第一数据,对所述传感节点2或与所述传感节点2连接的外设模块3进行操作。The sensing node 2 is used to decapsulate the received first UDP network data packet, and according to the access operation, the access address and the first data obtained from the decapsulation, the sensing node 2 or the related The peripheral module 3 connected to the sensing node 2 operates.

其中,所述传感节点2具体用于根据所述访问操作判断是否为直接访问所述传感节点2,若是直接访问所述传感节点2,则对所述传感节点2执行所述访问操作;若不是直接访问所述传感节点2,则为间接访问,即通过所述传感节点2的本地寄存器的操作映射成低速串行总线对外设模块3执行访问操作后,将访问的结果存于本地寄存器中,以使外设管理模块查看操作外设模块的结果。The sensing node 2 is specifically configured to determine whether the sensing node 2 is directly accessed according to the access operation, and if the sensing node 2 is directly accessed, execute the access to the sensing node 2 operation; if the sensor node 2 is not directly accessed, it is an indirect access, that is, after the operation of the local register of the sensor node 2 is mapped into a low-speed serial bus to perform an access operation on the peripheral module 3, the result of the access is Stored in a local register to allow the peripheral management module to view the results of operating the peripheral module.

一个外设管理模块12可对应连接一个或者多个传感节点2。外设管理模块12跟不同的传感节点2的通信是根据不同的访问端口进行区分,使得一个主机端1,可对应多个传感节点2。外设管理模块12发送一条读/写请求命令,则访问端口对应的传感节点2将立即返回一条回复命令,且每一条请求命令与回复命令都是一一对应的,使得本实施例的UDP网络协议传输更加可靠,且完成了访问传感节点或与所述传感节点连接的外设模块。One peripheral management module 12 can be connected to one or more sensor nodes 2 correspondingly. The communication between the peripheral management module 12 and different sensing nodes 2 is distinguished according to different access ports, so that one host 1 can correspond to multiple sensing nodes 2 . The peripheral management module 12 sends a read/write request command, then the sensor node 2 corresponding to the access port will immediately return a reply command, and each request command and the reply command are in one-to-one correspondence, so that the UDP of this embodiment Network protocol transmission is more reliable, and access to sensor nodes or peripheral modules connected to the sensor nodes is completed.

在本发明另一实施例中,所述外设管理模块12还包括至少一个第二存储器,其中,所述传感节点2,还用于将完成所述访问操作后的回复数据封装为第二UDP网络数据包,将所述第二UDP网络数据包发送至所述外设管理模块12;所述回复数据为被访问传感节点或与被访问传感节点获取的对应外设模块的执行结果数据。In another embodiment of the present invention, the peripheral device management module 12 further includes at least one second memory, wherein the sensing node 2 is further configured to encapsulate the reply data after completing the access operation as a second memory UDP network data packet, sending the second UDP network data packet to the peripheral management module 12; the reply data is the execution result of the visited sensor node or the corresponding peripheral module obtained with the visited sensor node data.

所述外设管理模块12,还用于拆封所述UDP网络数据包,若所述回复数据不只为通信应答,则将所述回复数据存于所述第二存储器。The peripheral device management module 12 is further configured to decapsulate the UDP network data packet, and store the reply data in the second memory if the reply data is not only a communication response.

上述远程内存访问系统中,基于外设管理模块的内存映射,服务端对传感节点和外设模块可进行寄存器级别访问,实现了远程对硬件进行友好访问,可完成对物联网系统的设备诊断和数据采集,无需庞大的操作系统作为支撑,成本低。In the above-mentioned remote memory access system, based on the memory mapping of the peripheral management module, the server can perform register-level access to the sensor node and peripheral module, which realizes remote friendly access to the hardware, and can complete the device diagnosis of the Internet of Things system. And data acquisition, no need for a huge operating system as a support, low cost.

在一个实施例中,如图2所示,提供了一种远程内存访问方法,以该方法应用于远程内存访问系统为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2, a remote memory access method is provided, and the method is applied to a remote memory access system as an example for description, including the following steps:

步骤S21,外设管理模块接收到服务端的触发指令后,将访问操作、访问地址和第一数据按照所述访问操作封装为第一UDP网络数据包,将所述第一UDP网络数据包发送至访问端口对应的传感节点。所述访问操作包括读或写、直接寻址或间接寻址、通讯请求的任一种或者多种组合。Step S21, after receiving the trigger instruction from the server, the peripheral management module encapsulates the access operation, the access address and the first data into a first UDP network data packet according to the access operation, and sends the first UDP network data packet to Access the sensor node corresponding to the port. The access operation includes any one or a combination of reading or writing, direct addressing or indirect addressing, and communication requests.

步骤S22,所述传感节点将接收到的第一UDP网络数据包进行解封,根据解封获取得所述访问操作、访问地址和第一数据,对所述传感节点或与所述传感节点连接的外设模块进行所述访问操作。Step S22, the sensing node decapsulates the received first UDP network data packet, and obtains the access operation, the access address and the first data according to the decapsulation, and decapsulates the sensing node or the communication with the transmission. The peripheral module connected to the sense node performs the access operation.

具体的,所述对所述传感节点或与所述传感节点连接的外设模块进行操作具体:Specifically, the operation on the sensing node or the peripheral module connected with the sensing node is as follows:

所述传感节点根据所述访问操作判断是否为直接访问所述传感节点,若是直接访问所述传感节点,则对所述传感节点执行所述访问操作;若不是直接访问所述传感节点,则通过所述传感节点的本地寄存器映射的低速串行总线对外设模块执行所述访问操作后,将访问的结果存于本地寄存器中,以使外设管理模块查看操作外设模块的结果。The sensing node determines whether it is directly accessing the sensing node according to the access operation, and if it directly accesses the sensing node, executes the access operation on the sensing node; sensor node, after performing the access operation on the peripheral module through the low-speed serial bus mapped by the local register of the sensor node, the result of the access is stored in the local register, so that the peripheral device management module can view and operate the peripheral module the result of.

上述远程内存访问方法中,通过外设管理模块接收到服务端的触发指令后,将访问操作、访问地址和第一数据按照所述访问操作封装为第一UDP网络数据包,将所述第一UDP网络数据包发送至所述访问端口对应的传感节点;所述传感节点将接收到的第一UDP网络数据包进行解封,根据解封获取得所述访问操作、访问地址和第一数据,对所述传感节点或与所述传感节点连接的外设模块进行所述访问操作,本发明,基于外设管理模块的内存映射,服务端对传感节点和外设模块可进行寄存器级别访问,实现了远程对硬件进行友好访问,可完成对物联网系统的设备诊断和数据采集,无需庞大的操作系统作为支撑,成本低。In the above-mentioned remote memory access method, after receiving the trigger instruction of the server through the peripheral management module, the access operation, the access address and the first data are encapsulated into a first UDP network data packet according to the access operation, and the first UDP network data packet is encapsulated. The network data packet is sent to the sensor node corresponding to the access port; the sensor node decapsulates the received first UDP network data packet, and obtains the access operation, the access address and the first data according to the decapsulation , perform the access operation on the sensing node or the peripheral module connected to the sensing node. In the present invention, based on the memory mapping of the peripheral management module, the server can register the sensing node and the peripheral module. Level access realizes remote friendly access to hardware, and can complete equipment diagnosis and data collection of the Internet of Things system, without the need for a huge operating system as a support, and the cost is low.

在本发明的另一个实施例中,提供了一种远程内存访问方法,所述外设管理模块还包括至少一个第二存储器,包括以下步骤:In another embodiment of the present invention, a remote memory access method is provided, wherein the peripheral device management module further includes at least one second memory, including the following steps:

步骤S23,所述传感节点将完成所述访问操作后的回复数据封装为第二UDP网络数据包,将所述第二UDP网络数据包发送至所述外设管理模块;Step S23, the sensor node encapsulates the reply data after completing the access operation into a second UDP network data packet, and sends the second UDP network data packet to the peripheral device management module;

步骤S24,所述外设管理模块拆封所述第二UDP网络数据包,若所述回复数据不只为通信应答,则将所述回复数据存于所述第二存储器;Step S24, the peripheral device management module decapsulates the second UDP network data packet, and if the reply data is not only a communication response, then stores the reply data in the second memory;

应该理解的是,虽然图2的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of FIG. 2 are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIG. 2 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. The execution of these sub-steps or stages The sequence is also not necessarily sequential, but may be performed alternately or alternately with other steps or sub-steps of other steps or at least a portion of a phase.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, all It is considered to be the range described in this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (10)

1.一种远程内存访问方法,其特征在于,所述方法包括:1. a remote memory access method, is characterized in that, described method comprises: 外设管理模块接收到所述服务端的触发指令后,将第一存储器上存储的访问操作、访问地址和第一数据按照所述访问操作封装为第一UDP网络数据包,将所述第一UDP网络数据包发送至访问端口对应的传感节点;After receiving the trigger instruction of the server, the peripheral management module encapsulates the access operation, the access address and the first data stored in the first memory into a first UDP network data packet according to the access operation, and the first UDP The network data packet is sent to the sensor node corresponding to the access port; 所述传感节点将接收到的第一UDP网络数据包进行解封,根据解封获取得所述访问操作、访问地址和第一数据,对所述传感节点或与所述传感节点连接的外设模块进行所述访问操作。The sensor node decapsulates the received first UDP network data packet, and according to the access operation, the access address and the first data obtained from the decapsulation, connects the sensor node or the sensor node. The peripheral module performs the access operation. 2.根据权利要求1所述的远程内存访问方法,其特征在于,所述方法还包括:2. The remote memory access method according to claim 1, wherein the method further comprises: 所述传感节点将完成所述访问操作后的回复数据封装为第二UDP网络数据包,将所述第二UDP网络数据包发送至所述外设管理模块;The sensing node encapsulates the reply data after completing the access operation into a second UDP network data packet, and sends the second UDP network data packet to the peripheral device management module; 所述外设管理模块拆封所述第二UDP网络数据包,若所述回复数据不只为通信应答,则将所述回复数据存于所述第二存储器。The peripheral device management module decapsulates the second UDP network data packet, and stores the reply data in the second memory if the reply data is not only a communication response. 3.根据权利要求1所述的远程内存访问方法,其特征在于,所述对所述传感节点或与所述传感节点连接的外设模块进行操作具体:3. The remote memory access method according to claim 1, wherein the operation on the sensing node or a peripheral module connected with the sensing node is as follows: 所述传感节点根据所述访问操作判断是否为直接访问所述传感节点,若是直接访问所述传感节点,则对所述传感节点执行所述访问操作;若不是直接访问所述传感节点,则通过所述传感节点的本地寄存器映射的低速串行总线对外设模块执行所述访问操作后,将访问的结果存于本地寄存器中,以使外设管理模块查看操作外设模块的结果。The sensing node determines whether it is directly accessing the sensing node according to the access operation, and if it directly accesses the sensing node, executes the access operation on the sensing node; sensor node, after performing the access operation on the peripheral module through the low-speed serial bus mapped by the local register of the sensor node, the result of the access is stored in the local register, so that the peripheral device management module can view and operate the peripheral module the result of. 4.一种远程内存访问系统,其特征在于,所述系统包括:主机端、传感节点和外设模块,所述主机端包括服务端和外设管理模块,所述外设管理模块和传感节点之间通过网络通信,所述传感节点与外设模块通过低速串行总线进行交互,其中,4. A remote memory access system, characterized in that the system comprises: a host, a sensing node and a peripheral module, the host comprises a server and a peripheral management module, the peripheral management module and the transmission The sensing nodes communicate through the network, and the sensing nodes interact with the peripheral modules through a low-speed serial bus, wherein, 所述外设管理模块,用于接收到所述服务端的触发指令后,将第一存储器上存储的访问操作、访问地址和第一数据按照所述访问操作封装为第一UDP网络数据包,将所述第一UDP网络数据包发送至访问端口对应的传感节点;The peripheral management module is configured to encapsulate the access operation, the access address and the first data stored on the first memory into a first UDP network data packet according to the access operation after receiving the trigger instruction of the server, and then The first UDP network data packet is sent to the sensing node corresponding to the access port; 所述传感节点,用于将接收到的第一UDP网络数据包进行解封,根据解封获取的所述访问操作、访问地址和第一数据,对所述传感节点或与所述传感节点连接的外设模块进行所述访问操作。The sensing node is configured to decapsulate the received first UDP network data packet, and according to the access operation, the access address and the first data obtained from the decapsulation, decapsulate the sensing node or communicate with the transmission. The peripheral module connected to the sense node performs the access operation. 5.根据权利要求4所述的远程内存访问系统,其特征在于,所述服务端和外设管理模块通过PCI总线连接。5 . The remote memory access system according to claim 4 , wherein the server and the peripheral management module are connected through a PCI bus. 6 . 6.根据权利要求4所述的远程内存访问系统,其特征在于,所述外设管理模块和传感节点通过一问一答的模式进行UDP通信。6 . The remote memory access system according to claim 4 , wherein the peripheral device management module and the sensing node perform UDP communication through a question-and-answer mode. 7 . 7.根据权利要求4所述的远程内存访问系统,其特征在于,所述访问操作包括读或写、直接寻址或间接寻址、通讯请求的任一种或者多种组合。7. The remote memory access system according to claim 4, wherein the access operation comprises any one or a combination of read or write, direct addressing or indirect addressing, and communication request. 8.根据权利要求4所述的远程内存访问系统,其特征在于,所述外设管理模块还包括至少一个第二存储器,8. The remote memory access system according to claim 4, wherein the peripheral device management module further comprises at least one second memory, 所述传感节点,还用于将完成所述访问操作后的回复数据封装为第二UDP网络数据包,将所述第二UDP网络数据包发送至所述外设管理模块;The sensing node is further configured to encapsulate the reply data after completing the access operation into a second UDP network data packet, and send the second UDP network data packet to the peripheral device management module; 所述外设管理模块,还用于拆封所述第二UDP网络数据包,若所述回复数据不只为通信应答,则将所述回复数据存于所述第二存储器。The peripheral device management module is further configured to decapsulate the second UDP network data packet, and if the reply data is not only a communication response, the reply data is stored in the second memory. 9.根据权利要求4所述的远程内存访问系统,其特征在于,所述传感节点具体用于根据所述访问操作判断是否为直接访问所述传感节点,若是直接访问所述传感节点,则对所述传感节点执行所述访问操作;若不是直接访问所述传感节点,则通过所述传感节点的本地寄存器映射的低速串行总线对外设模块执行所述访问操作后,将访问的结果存于本地寄存器中,以使外设管理模块查看操作外设模块的结果。9 . The remote memory access system according to claim 4 , wherein the sensing node is specifically configured to determine whether the sensing node is directly accessed according to the access operation, and if the sensing node is directly accessed. 10 . , then perform the access operation on the sensing node; if the sensing node is not directly accessed, after performing the access operation on the peripheral module through the low-speed serial bus mapped by the local register of the sensing node, The result of the access is stored in the local register, so that the peripheral management module can view the result of operating the peripheral module. 10.根据权利要求4所述的远程内存访问系统,其特征在于,所述系统为物联设备诊断系统和/或物联数据采集系统。10 . The remote memory access system according to claim 4 , wherein the system is an IoT device diagnosis system and/or an IoT data acquisition system. 11 .
CN202111527005.6A 2021-12-14 2021-12-14 Remote memory access method and system Pending CN114301936A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111527005.6A CN114301936A (en) 2021-12-14 2021-12-14 Remote memory access method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111527005.6A CN114301936A (en) 2021-12-14 2021-12-14 Remote memory access method and system

Publications (1)

Publication Number Publication Date
CN114301936A true CN114301936A (en) 2022-04-08

Family

ID=80968320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111527005.6A Pending CN114301936A (en) 2021-12-14 2021-12-14 Remote memory access method and system

Country Status (1)

Country Link
CN (1) CN114301936A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100332149A1 (en) * 1998-12-17 2010-12-30 Hach Company Method and system for remote monitoring of fluid quality and treatment
CN106104560A (en) * 2014-02-25 2016-11-09 Sca卫生用品公司 Sensor data analysis for multiple users
CN110290187A (en) * 2019-06-12 2019-09-27 浙江大华技术股份有限公司 Transmission method and device, storage medium, the electronic device of data information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100332149A1 (en) * 1998-12-17 2010-12-30 Hach Company Method and system for remote monitoring of fluid quality and treatment
CN106104560A (en) * 2014-02-25 2016-11-09 Sca卫生用品公司 Sensor data analysis for multiple users
CN110290187A (en) * 2019-06-12 2019-09-27 浙江大华技术股份有限公司 Transmission method and device, storage medium, the electronic device of data information

Similar Documents

Publication Publication Date Title
JP6014271B2 (en) Data processing system and data processing method
EP4155925A1 (en) Data transmission method, processor system, and memory access system
US9213662B2 (en) I/O bus system
CN108701004A (en) A data processing system, method and corresponding device
CN113904938A (en) A system and method for dynamically configuring PCIe terminal equipment
AU2017223094A1 (en) Bus bridge for translating requests between a module bus and an axi bus
CN101290605A (en) Data processing method, communication system and related equipment
CN111510363A (en) Slave station conversion device based on MODBUS protocol and control method thereof
KR101559089B1 (en) Communication protocol for sharing memory resources between components of a device
US12423261B2 (en) PCIe-based communications method and apparatus
US20140310430A1 (en) Tunneling Transaction Packets
CN113778934B (en) PCIe-based high-speed real-time transmission system
CN108153485B (en) Method and system for multi-device cooperative access to SRAM
US20040215861A1 (en) Method of allowing multiple, hardware embedded configurations to be recognized by an operating system
CN114301936A (en) Remote memory access method and system
CN100349142C (en) Remote page access method for use in shared virtual memory system and network interface card
KR102792263B1 (en) Memory card and method for processing data using the card
CN110795373B (en) I2C bus-to-parallel bus conversion method, terminal and storage medium
CN110765060B (en) MDIO bus-to-parallel bus conversion method and device, equipment and medium
CN118656280A (en) A consistency verification method and related device
CN111596199A (en) Test chip, integrated circuit test method and system and detection equipment
CN116417036A (en) Initializing system and method of memory, electronic equipment and storage medium
CN105739919A (en) Data access system and method
CN115344382A (en) Multi-machine equipment resource sharing and recombining method and system
CN102855208B (en) System and method for achieving file interaction

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220408

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载