[go: up one dir, main page]

CN112399446A - Edge gateway communication method, device, computer equipment and storage medium - Google Patents

Edge gateway communication method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN112399446A
CN112399446A CN202011109357.5A CN202011109357A CN112399446A CN 112399446 A CN112399446 A CN 112399446A CN 202011109357 A CN202011109357 A CN 202011109357A CN 112399446 A CN112399446 A CN 112399446A
Authority
CN
China
Prior art keywords
protocol
data
target
protocol configuration
edge gateway
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.)
Granted
Application number
CN202011109357.5A
Other languages
Chinese (zh)
Other versions
CN112399446B (en
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.)
Yundy Intelligent Technology Co Ltd
Original Assignee
Yundy Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yundy Intelligent Technology Co Ltd filed Critical Yundy Intelligent Technology Co Ltd
Priority to CN202011109357.5A priority Critical patent/CN112399446B/en
Publication of CN112399446A publication Critical patent/CN112399446A/en
Application granted granted Critical
Publication of CN112399446B publication Critical patent/CN112399446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

本申请涉及一种边缘网关通信方法、装置、计算机设备和存储介质。方法包括:边缘网关获取协议配置端所配置的目标协议配置数据;读取目标协议配置数据中配置的通信流程;针对通信流程中的当前待执行流程,根据目标协议配置数据中配置的协议数据结构进行数据协议封包,得到当前待执行流程对应的通信数据包;边缘网关向目标设备下发通信数据包;边缘网关接收目标设备针对通信数据包返回的回复数据包,并根据协议数据结构对回复数据包进行解包,得到回复数据。本方法能提高边缘网关的适用性。

Figure 202011109357

The present application relates to an edge gateway communication method, apparatus, computer equipment and storage medium. The method includes: the edge gateway obtains the target protocol configuration data configured by the protocol configuration terminal; reads the communication process configured in the target protocol configuration data; for the current to-be-executed process in the communication process, according to the protocol data structure configured in the target protocol configuration data Carry out data protocol encapsulation to obtain the communication data packet corresponding to the current process to be executed; the edge gateway sends the communication data packet to the target device; the edge gateway receives the reply data packet returned by the target device for the communication data packet, and responds to the reply data according to the protocol data structure. The packet is unpacked and the reply data is obtained. The method can improve the applicability of the edge gateway.

Figure 202011109357

Description

边缘网关通信方法、装置、计算机设备和存储介质Edge gateway communication method, apparatus, computer equipment and storage medium

技术领域technical field

本申请涉及通信技术领域,特别是涉及一种边缘网关通信方法、装置、计算机设备和存储介质。The present application relates to the field of communication technologies, and in particular, to an edge gateway communication method, apparatus, computer device and storage medium.

背景技术Background technique

随着无线通信技术的发展,万物互联的物联网也日益发展起来。不同通信协议标准的设备通过物联网网关进行通信协议转换后,即可实现通信。With the development of wireless communication technology, the Internet of Things, which is the Internet of Everything, is also developing day by day. Devices with different communication protocol standards can communicate with each other after the communication protocol is converted through the IoT gateway.

目前,设备厂商都会有独自的通信协议标准,使用不同厂商之间的设备进行通信,需要对各种各样的通信协议进行转换。但是,目前大部分物联网网关产品基本上都是仅支持一到两种标准通信协议转换,如有特殊需求,则需要额外定制开发,因此传统方法过于局限,适用性不高。At present, equipment manufacturers all have their own communication protocol standards. When using equipment between different manufacturers to communicate, various communication protocols need to be converted. However, most of the current IoT gateway products basically only support one or two standard communication protocol conversions. If there are special requirements, additional customized development is required. Therefore, the traditional methods are too limited and have low applicability.

发明内容SUMMARY OF THE INVENTION

基于此,有必要针对上述技术问题,提供一种能够提高适用性的边缘网关通信方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide an edge gateway communication method, apparatus, computer device and storage medium that can improve the applicability of the above technical problems.

一种边缘网关通信方法,所述方法包括:An edge gateway communication method, the method comprising:

边缘网关获取协议配置端所配置的目标协议配置数据;所述目标协议配置数据,是所述协议配置端预先针对待通信的目标设备的设备类型对应配置的协议配置数据;The edge gateway obtains the target protocol configuration data configured by the protocol configuration terminal; the target protocol configuration data is the protocol configuration data pre-configured by the protocol configuration terminal corresponding to the device type of the target device to be communicated;

读取所述目标协议配置数据中配置的通信流程;Read the communication process configured in the target protocol configuration data;

针对所述通信流程中的当前待执行流程,根据所述目标协议配置数据中配置的协议数据结构进行数据协议封包,得到所述当前待执行流程对应的通信数据包;For the current to-be-executed process in the communication process, perform data protocol encapsulation according to the protocol data structure configured in the target protocol configuration data, to obtain a communication data packet corresponding to the current to-be-executed process;

所述边缘网关向所述目标设备下发所述通信数据包;sending, by the edge gateway, the communication data packet to the target device;

所述边缘网关接收所述目标设备针对所述通信数据包返回的回复数据包,并根据所述协议数据结构对所述回复数据包进行解包,得到回复数据。The edge gateway receives the reply data packet returned by the target device for the communication data packet, and unpacks the reply data packet according to the protocol data structure to obtain reply data.

在其中一个实施例中,所述边缘网关获取协议配置端所配置的目标协议配置数据,包括:In one embodiment, the edge gateway obtains the target protocol configuration data configured by the protocol configuration terminal, including:

所述边缘网关在启动后,检测本地是否存在与目标设备的设备类型对应配置的目标协议配置数据;After the edge gateway is started, it detects whether there is locally configured target protocol configuration data corresponding to the device type of the target device;

当存在时,所述边缘网关从本地读取所述目标协议配置数据;When present, the edge gateway reads the target protocol configuration data locally;

当不存在时,所述边缘网关从协议配置端,获取目标协议配置数据。When it does not exist, the edge gateway obtains the target protocol configuration data from the protocol configuration end.

在其中一个实施例中,所述当不存在时,所述边缘网关从协议配置端,获取目标协议配置数据,包括:In one embodiment, when it does not exist, the edge gateway obtains the target protocol configuration data from the protocol configuration terminal, including:

当不存在时,则发出告警信息;接收所述协议配置端针对所述告警信息配置并下发的所述目标协议配置数据;或,When it does not exist, send out alarm information; receive the target protocol configuration data configured and delivered by the protocol configuration end for the alarm information; or,

当不存在时,所述边缘网关向所述协议配置端发送协议配置下载请求;接收所述协议配置端针对所述协议配置下载请求返回的所述目标协议配置数据。When it does not exist, the edge gateway sends a protocol configuration download request to the protocol configuration terminal; and receives the target protocol configuration data returned by the protocol configuration terminal for the protocol configuration download request.

在其中一个实施例中,在所述边缘网关获取协议配置端所配置的目标协议配置数据之前,所述方法还包括:In one embodiment, before the edge gateway acquires the target protocol configuration data configured by the protocol configuration terminal, the method further includes:

在部署所述边缘网关时,接收从所述协议配置端下发的目标协议配置数据并进行本地存储;When deploying the edge gateway, receive the target protocol configuration data delivered from the protocol configuration terminal and store it locally;

所述边缘网关获取协议配置端所配置的目标协议配置数据,包括:The edge gateway obtains the target protocol configuration data configured by the protocol configuration terminal, including:

所述边缘网关获取本地存储的所述目标协议配置数据。The edge gateway obtains the locally stored configuration data of the target protocol.

在其中一个实施例中,所述针对所述通信流程中的当前待执行流程,根据所述目标协议配置数据中配置的协议数据结构进行数据协议封包,得到所述当前待执行流程对应的通信数据包,包括:In one embodiment, for the current to-be-executed process in the communication process, perform data protocol encapsulation according to the protocol data structure configured in the target protocol configuration data to obtain communication data corresponding to the current to-be-executed process package, including:

针对所述通信流程中的当前待执行流程,根据所述协议配置数据中配置的协议数据结构,针对定义的协议字段,填充所述协议字段所绑定的数据源所对应的数据,或者,填充所述协议字段所绑定的数据;For the current to-be-executed process in the communication process, according to the protocol data structure configured in the protocol configuration data, for the defined protocol field, fill in the data corresponding to the data source bound to the protocol field, or fill in the data bound to the protocol field;

将填充后得到的数据转换为目标数据格式,得到与所述当前待执行流程对应的通信数据包。The data obtained after filling is converted into a target data format, and a communication data packet corresponding to the current process to be executed is obtained.

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

在所述边缘网关向所述目标设备下发所述通信数据包之后,当与所述目标设备通信正常时,则执行所述边缘网关接收所述目标设备针对所述通信数据包返回的回复数据包的步骤;After the edge gateway sends the communication data packet to the target device, when the communication with the target device is normal, the edge gateway receives the reply data returned by the target device for the communication data packet. package steps;

当与所述目标设备通信异常时,则重新执行所述边缘网关向所述目标设备下发所述通信数据包;When the communication with the target device is abnormal, re-execute the edge gateway to deliver the communication data packet to the target device;

当重新下发的次数达到预设次数阈值、且与所述目标设备仍通信异常时,则发出协议配置错误告警信息。When the number of re-delivery times reaches the preset number of times threshold and the communication with the target device is still abnormal, a protocol configuration error alarm message is sent.

在其中一个实施例中,所述目标协议配置数据是所述协议配置端通过执行协议配置步骤进行配置得到;In one of the embodiments, the target protocol configuration data is obtained by configuring the protocol configuration terminal by performing a protocol configuration step;

所述协议配置步骤,包括:The protocol configuration steps include:

配置在目标协议下所述边缘网关与所述目标设备之间的通信流程;Configure the communication process between the edge gateway and the target device under the target protocol;

配置所述目标协议中各协议字段的含义及字段长度,并绑定各所述协议字段相应填充的数据或数据源;Configure the meaning and field length of each protocol field in the target protocol, and bind the corresponding filled data or data source of each of the protocol fields;

在针对配置的所述通信流程的完整性检测通过后,将针对所述目标协议配置的信息进行保存,得到目标协议配置数据。After the integrity check for the configured communication process passes, the information configured for the target protocol is saved to obtain target protocol configuration data.

一种边缘网关通信装置,所述装置包括:An edge gateway communication device, the device comprising:

获取模块,用于获取协议配置端所配置的目标协议配置数据;所述目标协议配置数据,是所述协议配置端预先针对待通信的目标设备的设备类型对应配置的协议配置数据;an acquisition module, configured to acquire the target protocol configuration data configured by the protocol configuration terminal; the target protocol configuration data is the protocol configuration data pre-configured by the protocol configuration terminal corresponding to the device type of the target device to be communicated;

读取模块,用于读取所述目标协议配置数据中配置的通信流程;a reading module for reading the communication process configured in the target protocol configuration data;

封包模块,用于针对所述通信流程中的当前待执行流程,根据所述目标协议配置数据中配置的协议数据结构进行数据协议封包,得到所述当前待执行流程对应的通信数据包;a package module, configured to perform data protocol package according to the protocol data structure configured in the target protocol configuration data for the current process to be executed in the communication process, to obtain a communication data packet corresponding to the current process to be executed;

下发模块,用于向所述目标设备下发所述通信数据包;a sending module, configured to send the communication data packet to the target device;

解包模块,用于接收所述目标设备针对所述通信数据包返回的回复数据包,并根据所述协议数据结构对所述回复数据包进行解包,得到回复数据。An unpacking module, configured to receive a reply data packet returned by the target device for the communication data packet, and unpack the reply data packet according to the protocol data structure to obtain reply data.

一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

获取协议配置端所配置的目标协议配置数据;所述目标协议配置数据,是所述协议配置端预先针对待通信的目标设备的设备类型对应配置的协议配置数据;Obtaining the target protocol configuration data configured by the protocol configuration terminal; the target protocol configuration data is the protocol configuration data pre-configured by the protocol configuration terminal corresponding to the device type of the target device to be communicated;

读取所述目标协议配置数据中配置的通信流程;Read the communication process configured in the target protocol configuration data;

针对所述通信流程中的当前待执行流程,根据所述目标协议配置数据中配置的协议数据结构进行数据协议封包,得到所述当前待执行流程对应的通信数据包;For the current to-be-executed process in the communication process, perform data protocol encapsulation according to the protocol data structure configured in the target protocol configuration data, to obtain a communication data packet corresponding to the current to-be-executed process;

向所述目标设备下发所述通信数据包;delivering the communication data packet to the target device;

接收所述目标设备针对所述通信数据包返回的回复数据包,并根据所述协议数据结构对所述回复数据包进行解包,得到回复数据。Receive the reply data packet returned by the target device for the communication data packet, and unpack the reply data packet according to the protocol data structure to obtain reply data.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

获取协议配置端所配置的目标协议配置数据;所述目标协议配置数据,是所述协议配置端预先针对待通信的目标设备的设备类型对应配置的协议配置数据;Obtaining the target protocol configuration data configured by the protocol configuration terminal; the target protocol configuration data is the protocol configuration data pre-configured by the protocol configuration terminal corresponding to the device type of the target device to be communicated;

读取所述目标协议配置数据中配置的通信流程;Read the communication process configured in the target protocol configuration data;

针对所述通信流程中的当前待执行流程,根据所述目标协议配置数据中配置的协议数据结构进行数据协议封包,得到所述当前待执行流程对应的通信数据包;For the current to-be-executed process in the communication process, perform data protocol encapsulation according to the protocol data structure configured in the target protocol configuration data, to obtain a communication data packet corresponding to the current to-be-executed process;

向所述目标设备下发所述通信数据包;delivering the communication data packet to the target device;

接收所述目标设备针对所述通信数据包返回的回复数据包,并根据所述协议数据结构对所述回复数据包进行解包,得到回复数据。Receive the reply data packet returned by the target device for the communication data packet, and unpack the reply data packet according to the protocol data structure to obtain reply data.

上述边缘网关通信方法、装置、计算机设备和存储介质,边缘网关直接从协议配置端,获取针对待通信的目标设备的设备类型对应配置的目标协议配置数据,无需固定开发协议到边缘网关中。基于目标协议配置数据中配置的通信流程,边缘网关便能知晓当前待执行流程,并根据所述目标协议配置数据中配置的协议数据结构进行数据协议封包,得到所述当前待执行流程对应的通信数据包。所述边缘网关向所述目标设备下发所述通信数据包。由于,是基于针对目标设备的设备类型对应配置的协议数据结构进行封包,所以,下发的通信数据包能够被目标设备识别,进而,所述边缘网关接收所述目标设备针对所述通信数据包返回的回复数据包,并根据所述协议数据结构对所述回复数据包进行解包,得到回复数据。从而,通过灵活的协议配置就能够实现边缘网关与支持各种协议的设备之间的通信,解决了边缘网关协议转换问题,进而,有效地提高了边缘网关的适用性。In the above-mentioned edge gateway communication method, device, computer equipment and storage medium, the edge gateway directly obtains the target protocol configuration data corresponding to the device type of the target device to be communicated from the protocol configuration end, without the need to fix the development protocol to the edge gateway. Based on the communication process configured in the target protocol configuration data, the edge gateway can know the current process to be executed, and perform data protocol packetization according to the protocol data structure configured in the target protocol configuration data to obtain the communication corresponding to the current process to be executed. data pack. The edge gateway delivers the communication data packet to the target device. Since the packet is based on the protocol data structure configured corresponding to the device type of the target device, the communication data packet delivered can be identified by the target device, and further, the edge gateway receives the communication data packet from the target device for the communication data packet. The returned reply data packet is unpacked according to the protocol data structure to obtain reply data. Therefore, the communication between the edge gateway and devices supporting various protocols can be realized through flexible protocol configuration, the problem of protocol conversion of the edge gateway is solved, and the applicability of the edge gateway is effectively improved.

一种边缘网关通信方法,所述方法包括:An edge gateway communication method, the method comprising:

配置在目标协议下所述边缘网关与所述目标设备之间的通信流程;Configure the communication process between the edge gateway and the target device under the target protocol;

配置所述目标协议中各协议字段的含义及字段长度,并绑定各所述协议字段相应填充的数据或数据源,得到协议数据结构;Configuring the meaning and field length of each protocol field in the target protocol, and binding the corresponding filled data or data source of each of the protocol fields to obtain a protocol data structure;

在针对配置的所述通信流程的完整性检测通过后,将针对所述目标协议配置的所述通信流程和所述协议数据结构进行保存,得到与所述目标设备的设备类型对应配置的目标协议配置数据;After the integrity check for the configured communication flow is passed, the communication flow configured for the target protocol and the protocol data structure are saved to obtain a target protocol configured corresponding to the device type of the target device Configuration Data;

下发所述目标协议配置数据至边缘网关;其中,所述目标协议配置数据,用于指示边缘网关根据所述目标协议配置数据,与所述目标设备进行通信。Delivering the target protocol configuration data to the edge gateway; wherein the target protocol configuration data is used to instruct the edge gateway to communicate with the target device according to the target protocol configuration data.

一种边缘网关通信装置,所述装置包括:An edge gateway communication device, the device comprising:

配置模块,用于配置在目标协议下所述边缘网关与所述目标设备之间的通信流程;配置所述目标协议中各协议字段的含义及字段长度,并绑定各所述协议字段相应填充的数据或数据源,得到协议数据结构;在针对配置的所述通信流程的完整性检测通过后,将针对所述目标协议配置的所述通信流程和所述协议数据结构进行保存,得到与所述目标设备的设备类型对应配置的目标协议配置数据;A configuration module, configured to configure the communication process between the edge gateway and the target device under the target protocol; configure the meaning and field length of each protocol field in the target protocol, and bind each of the protocol fields to fill accordingly data or data source, obtain the protocol data structure; after the integrity test for the configured communication process passes, save the communication process and the protocol data structure configured for the target protocol, and obtain the The target protocol configuration data corresponding to the configuration of the device type of the target device;

下发模块,用于下发所述目标协议配置数据至边缘网关;其中,所述目标协议配置数据,用于指示边缘网关根据所述目标协议配置数据,与所述目标设备进行通信。The delivery module is configured to deliver the target protocol configuration data to the edge gateway; wherein the target protocol configuration data is used to instruct the edge gateway to communicate with the target device according to the target protocol configuration data.

一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

配置在目标协议下所述边缘网关与所述目标设备之间的通信流程;Configure the communication process between the edge gateway and the target device under the target protocol;

配置所述目标协议中各协议字段的含义及字段长度,并绑定各所述协议字段相应填充的数据或数据源,得到协议数据结构;Configuring the meaning and field length of each protocol field in the target protocol, and binding the corresponding filled data or data source of each of the protocol fields to obtain a protocol data structure;

在针对配置的所述通信流程的完整性检测通过后,将针对所述目标协议配置的所述通信流程和所述协议数据结构进行保存,得到与所述目标设备的设备类型对应配置的目标协议配置数据;After the integrity check for the configured communication flow is passed, the communication flow configured for the target protocol and the protocol data structure are saved to obtain a target protocol configured corresponding to the device type of the target device Configuration Data;

下发所述目标协议配置数据至边缘网关;其中,所述目标协议配置数据,用于指示边缘网关根据所述目标协议配置数据,与所述目标设备进行通信。Delivering the target protocol configuration data to the edge gateway; wherein the target protocol configuration data is used to instruct the edge gateway to communicate with the target device according to the target protocol configuration data.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

配置在目标协议下所述边缘网关与所述目标设备之间的通信流程;Configure the communication process between the edge gateway and the target device under the target protocol;

配置所述目标协议中各协议字段的含义及字段长度,并绑定各所述协议字段相应填充的数据或数据源,得到协议数据结构;Configuring the meaning and field length of each protocol field in the target protocol, and binding the corresponding filled data or data source of each of the protocol fields to obtain a protocol data structure;

在针对配置的所述通信流程的完整性检测通过后,将针对所述目标协议配置的所述通信流程和所述协议数据结构进行保存,得到与所述目标设备的设备类型对应配置的目标协议配置数据;After the integrity check for the configured communication flow is passed, the communication flow configured for the target protocol and the protocol data structure are saved to obtain a target protocol configured corresponding to the device type of the target device Configuration Data;

下发所述目标协议配置数据至边缘网关;其中,所述目标协议配置数据,用于指示边缘网关根据所述目标协议配置数据,与所述目标设备进行通信。Delivering the target protocol configuration data to the edge gateway; wherein the target protocol configuration data is used to instruct the edge gateway to communicate with the target device according to the target protocol configuration data.

上述边缘网关通信方法、装置、计算机设备和存储介质,首先,配置在目标协议下所述边缘网关与所述目标设备之间的通信流程。然后,配置所述目标协议中各协议字段的含义及字段长度,并绑定各所述协议字段相应填充的数据或数据源,得到协议数据结构。进一步,在针对配置的所述通信流程的完整性检测通过后,将针对所述目标协议配置的所述通信流程和所述协议数据结构进行保存,得到与所述目标设备的设备类型对应配置的目标协议配置数据。经过前面的三个步骤,此时得到的目标协议配置数据是经过协议配置端检测过的通信流程完整,并且能够与所述目标设备适配的目标协议配置数据。边缘网关即可以根据与目标设备适配的目标协议配置数据,直接与目标设备进行通信。即,通过灵活的协议配置就能够实现边缘网关与支持各种协议的设备之间的通信,解决了边缘网关协议转换问题,进而,有效地提高了边缘网关的适用性。In the above-mentioned edge gateway communication method, apparatus, computer device and storage medium, first, a communication process between the edge gateway and the target device is configured under a target protocol. Then, configure the meaning and field length of each protocol field in the target protocol, and bind the corresponding filled data or data source in each of the protocol fields to obtain a protocol data structure. Further, after the integrity check for the configured communication flow is passed, the communication flow configured for the target protocol and the protocol data structure are saved to obtain a configuration corresponding to the device type of the target device. Target protocol configuration data. After the previous three steps, the target protocol configuration data obtained at this time is the target protocol configuration data that has been detected by the protocol configuration end and that the communication process is complete and that can be adapted to the target device. The edge gateway can directly communicate with the target device according to the target protocol configuration data adapted to the target device. That is, the communication between the edge gateway and devices supporting various protocols can be realized through flexible protocol configuration, which solves the problem of protocol conversion of the edge gateway, and further improves the applicability of the edge gateway effectively.

附图说明Description of drawings

图1为一个实施例中边缘网关通信方法的应用环境图;FIG. 1 is an application environment diagram of an edge gateway communication method in one embodiment;

图2为一个实施例中边缘网关通信方法的流程示意图;FIG. 2 is a schematic flowchart of an edge gateway communication method in one embodiment;

图3为一个实施例中边缘网关通信方法的系统架构图;3 is a system architecture diagram of an edge gateway communication method in one embodiment;

图4为另一个实施例中边缘网关通信方法步骤的流程示意图;4 is a schematic flowchart of steps of an edge gateway communication method in another embodiment;

图5为另一个实施例中边缘网关通信方法的流程示意图;FIG. 5 is a schematic flowchart of an edge gateway communication method in another embodiment;

图6为一个实施例中边缘网关通信装置的结构框图;6 is a structural block diagram of an edge gateway communication device in one embodiment;

图7为一个实施例中边缘网关通信装置的结构框图;7 is a structural block diagram of an edge gateway communication device in an embodiment;

图8为一个实施例中计算机设备的内部结构图。Figure 8 is a diagram of the internal structure of a computer device 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所示的应用环境中。其中,边缘网关104通过网络与协议配置端102以及设备106进行通信。其中,The edge gateway communication method provided in this application can be applied to the application environment shown in FIG. 1 . The edge gateway 104 communicates with the protocol configuration terminal 102 and the device 106 through the network. in,

边缘网关104可以用具有网关功能的智能路由器来实现或者用专门的网关产品来实现。协议配置端102可以是云平台或者是协议配置软件。设备106可以是具有计算能力的智能设备。设备106可以是物联网设备。设备106包括但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑、便携式可穿戴设备、智能电视、智能音箱、智能空调以及智能打印机等。The edge gateway 104 can be implemented with an intelligent router with gateway function or with a dedicated gateway product. The protocol configuration terminal 102 may be a cloud platform or protocol configuration software. Device 106 may be a smart device with computing capabilities. Device 106 may be an Internet of Things device. Devices 106 include, but are not limited to, various personal computers, laptops, smart phones, tablet computers, portable wearable devices, smart TVs, smart speakers, smart air conditioners, smart printers, and the like.

在一个实施例中,如图2所示,提供了一种边缘网关通信方法,该方法可以通过边缘网关来实现,也可以通过边缘网关和协议配置端的交互来实现。现以该方法应用于图1中的边缘网关为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2 , an edge gateway communication method is provided, and the method can be implemented by an edge gateway, and can also be implemented by interaction between the edge gateway and a protocol configuration terminal. Now, the method is applied to the edge gateway in Fig. 1 as an example to illustrate, including the following steps:

步骤202,边缘网关获取协议配置端所配置的目标协议配置数据;目标协议配置数据,是协议配置端预先针对待通信的目标设备的设备类型对应配置的协议配置数据。Step 202, the edge gateway obtains target protocol configuration data configured by the protocol configuration terminal; the target protocol configuration data is the protocol configuration data pre-configured by the protocol configuration terminal corresponding to the device type of the target device to be communicated.

其中,边缘网关,是部署在网络边缘侧的、且具有边缘计算能力的网关。边缘网关可以通过网络连接协议配置端,以及通过网络和协议转换功能连接设备端。可以理解,边缘网关能够通过与协议配置端的通信连接,获取协议配置端所配置的目标协议配置数据。可以理解,边缘网关的边缘计算能力,能够用于实时分析设备等相关的数据并提供轻量化的连接管理。Among them, the edge gateway is a gateway that is deployed on the edge side of the network and has edge computing capabilities. The edge gateway can connect the protocol configuration side through the network, and connect the device side through the network and protocol conversion function. It can be understood that the edge gateway can obtain the target protocol configuration data configured by the protocol configuration end through the communication connection with the protocol configuration end. It can be understood that the edge computing capability of the edge gateway can be used to analyze data related to devices and other related data in real time and provide lightweight connection management.

协议,即网络协议的简称,是边缘网关与设备进行通信时,双方必须共同遵从的事先约定的规则。可以理解,通信双方按照约定的协议规则进行数据封包或解包,才能实现相互间的通信。A protocol, short for a network protocol, is a pre-agreed rule that both parties must follow when an edge gateway communicates with a device. It can be understood that the communication between the two parties can only be achieved by encapsulating or unpacking data according to the agreed protocol rules.

协议配置端,用于针对设备类型配置相应的协议配置数据。The protocol configuration terminal is used to configure the corresponding protocol configuration data for the device type.

在一个实施例中,协议配置端,可以是安装有协议配置软件的设备,也可以是云平台等。协议配置软件,是用于进行协议配置的软件(即具备协议配置功能的软件)。In one embodiment, the protocol configuration terminal may be a device installed with protocol configuration software, or may be a cloud platform or the like. The protocol configuration software is software for performing protocol configuration (ie, software with a protocol configuration function).

目标设备,是指边缘网关的待通信的设备,即,边缘网关将要与之通信的设备。The target device refers to the device to be communicated with by the edge gateway, that is, the device to be communicated with by the edge gateway.

目标协议配置数据,是协议配置端预先针对待通信的目标设备的设备类型对应配置的协议配置数据。协议配置数据,是配置的协议数据。即,将目标设备与边缘网关之间所要使用的协议数据预先在协议配置端中进行配置,即得到目标协议配置数据。The target protocol configuration data is the protocol configuration data pre-configured by the protocol configuration end corresponding to the device type of the target device to be communicated. The protocol configuration data is the configured protocol data. That is, the protocol data to be used between the target device and the edge gateway is pre-configured in the protocol configuration terminal, that is, the target protocol configuration data is obtained.

在一个实施例中,目标协议配置数据中包括配置的通信流程和配置的协议数据结构。In one embodiment, the target protocol configuration data includes a configured communication process and a configured protocol data structure.

具体地,技术人员可以预先在协议配置端针对目标设备的设备类型,对应配置协议配置数据。当边缘网关需要与目标设备进行通信时,则可以获取协议配置端所配置的目标协议配置数据,以准备好与目标设备进行通信。Specifically, a technician can configure the protocol configuration data correspondingly to the device type of the target device at the protocol configuration end in advance. When the edge gateway needs to communicate with the target device, it can obtain the target protocol configuration data configured by the protocol configuration terminal to prepare for communication with the target device.

可以理解,当边缘网关想要与目标设备进行通信时,边缘网关可以请求从协议配置端下载所配置的目标协议配置数据,也可以从边缘网关的本地中直接获取已经存储的协议配置端所配置的目标协议配置数据。It can be understood that when the edge gateway wants to communicate with the target device, the edge gateway can request to download the configured target protocol configuration data from the protocol configuration terminal, or directly obtain the stored protocol configuration terminal from the local edge gateway. target protocol configuration data.

步骤204,读取目标协议配置数据中配置的通信流程。Step 204: Read the communication flow configured in the target protocol configuration data.

其中,通信流程,是指边缘网关与用户设备约定的进行通信的流程。可以理解,边缘网关与用户设备进行通信时,需要按照目标协议配置数据中配置的通信流程进行通信。The communication process refers to the communication process agreed between the edge gateway and the user equipment. It can be understood that when the edge gateway communicates with the user equipment, the communication needs to be performed according to the communication process configured in the target protocol configuration data.

可以理解,通信流程,可以包括约定的通信方式、总共需要的通信步骤、每个通信步骤所代表的含义、以及各通信步骤之间的顺序等信息。It can be understood that the communication process may include information such as the agreed communication method, the total required communication steps, the meaning represented by each communication step, and the sequence between the communication steps.

需要说明的是,不同协议所定义的通信流程有差异,即,使用不同协议的设备,所对应的通信流程不同。因此,边缘网关可以从协议配置端中获取使用不同的协议的设备的协议配置数据,根据协议配置数据中所配置的通信流程,与各个设备进行通信。It should be noted that the communication processes defined by different protocols are different, that is, devices using different protocols have different communication processes. Therefore, the edge gateway can obtain the protocol configuration data of devices using different protocols from the protocol configuration terminal, and communicate with each device according to the communication process configured in the protocol configuration data.

例如:三菱系列设备(即使用三菱通信协议的设备)所对应的通信流程为“网关读取,设备回复数据,网关回复确认信息”,但是Modbus-RTU设备(即使用modbus通信协议的设备),通信流程只需“网关读取,设备回复数据”。For example, the communication process corresponding to the Mitsubishi series equipment (that is, the equipment using the Mitsubishi communication protocol) is "the gateway reads, the equipment replies to the data, and the gateway replies to the confirmation information", but the Modbus-RTU equipment (that is, the equipment that uses the modbus communication protocol), The communication process only needs "the gateway reads, the device replies data".

具体地,边缘网关对已获取到的目标协议配置数据进行读取,得到目标协议配置数据中配置的对应于目标设备定义好的通信流程。Specifically, the edge gateway reads the acquired target protocol configuration data, and obtains a communication process defined in the target protocol configuration data corresponding to the target device.

步骤206,针对通信流程中的当前待执行流程,根据目标协议配置数据中配置的协议数据结构进行数据协议封包,得到当前待执行流程对应的通信数据包。Step 206 , for the current to-be-executed process in the communication process, perform data protocol encapsulation according to the protocol data structure configured in the target protocol configuration data to obtain a communication data packet corresponding to the current to-be-executed process.

其中,当前待执行流程,是指通信流程中的边缘网关当前将要执行的流程。Wherein, the current process to be executed refers to the current process to be executed by the edge gateway in the communication process.

协议数据结构,是定义的数据通信格式。The protocol data structure is the defined data communication format.

在一个实施例中,配置的协议数据结构,可以包括定义的每个字段的含义及字段长度,以及绑定该字段的数据源,或者直接绑定该字段的数据。In one embodiment, the configured protocol data structure may include the defined meaning and field length of each field, and the data source to which the field is bound, or the data of the field is directly bound.

例如:三菱系列协议首字节为起始符,第二字节为设备站号,起始符固定为指定字符,设备站号绑定网关配置里挂载的设备单元号等等。For example: the first byte of the Mitsubishi series protocol is the start character, the second byte is the device station number, the start character is fixed to the specified character, the device station number is bound to the device unit number mounted in the gateway configuration, etc.

数据协议封包,是将需要发送的数据按照协议数据结构进行对应填充后,并转换成目标数据形式的过程。The data protocol packet is the process of filling the data to be sent according to the protocol data structure and converting it into the target data form.

通信数据包,是数据协议封包后得到的用于发送给设备的数据包。The communication data packet is the data packet obtained after the data protocol is encapsulated and sent to the device.

具体地,边缘网关从读取的目标协议配置数据中配置的对应于设备厂商定义好的通信流程中,进一步获知当前待执行流程。边缘网关可以根据目标协议配置数据中配置的协议数据结构进行数据协议封包,即可得到当前待执行流程对应的通信数据包。Specifically, the edge gateway further learns the current to-be-executed process from the communication process that is configured in the read target protocol configuration data and corresponds to the communication process defined by the device manufacturer. The edge gateway can perform data protocol packetization according to the protocol data structure configured in the target protocol configuration data, so as to obtain the communication data packet corresponding to the current process to be executed.

步骤208,边缘网关向目标设备下发通信数据包。Step 208, the edge gateway delivers the communication data packet to the target device.

其中,下发,是指以边缘网关侧向设备发送通信数据包的动作。The delivery refers to the action of sending communication data packets to the device on the edge gateway side.

具体地,边缘网关确认网络连接到设备端为正常的状态,并不存在断网情况,便向设备下发当前待执行流程对应的通信数据包。Specifically, the edge gateway confirms that the network connection to the device is in a normal state and there is no network disconnection, and then sends a communication data packet corresponding to the current process to be executed to the device.

步骤210边缘网关接收目标设备针对通信数据包返回的回复数据包,并根据协议数据结构对回复数据包进行解包,得到回复数据。Step 210: The edge gateway receives the reply data packet returned by the target device for the communication data packet, and unpacks the reply data packet according to the protocol data structure to obtain reply data.

其中,回复数据包,是设备端根据厂家预先配置好的协议数据结构针对边缘网关请求返回的数据进行数据协议封包后,返回给边缘网关的数据包,里面包含着设备端的实时的信息。Among them, the reply data packet is the data packet returned to the edge gateway by the device end according to the protocol data structure pre-configured by the manufacturer for the data returned by the edge gateway request, which contains the real-time information of the device end.

解包,是边缘网关或者设备端对接收到的数据包根据协议配置的协议的数据结构,依次从回复数据包中提出有用数据。Unpacking is the data structure of the received data packet configured by the edge gateway or the device according to the protocol, and sequentially extracts useful data from the reply data packet.

回复数据,即设备回复的代表着设备端实时信息的数据。Reply data, that is, the data that the device replies to represent the real-time information on the device.

具体地,与边缘网关进行通信的设备,在接收到边缘网关下发的通信数据包后,解包提取出实质的数据,获知边缘网关需要的数据,然后,根据厂家预先配置好的协议数据结构针对边缘网关请求返回的数据进行数据协议封包后,返回给边缘网关。边缘网关接收目标设备针对通信数据包返回的回复数据包后,根据协议数据结构对回复数据包进行解包,得到回复数据,从而实现边缘网关与设备之间的通信。Specifically, the device that communicates with the edge gateway, after receiving the communication data packet sent by the edge gateway, unpacks and extracts the actual data, learns the data required by the edge gateway, and then, according to the protocol data structure pre-configured by the manufacturer After performing data protocol packets on the data returned by the edge gateway request, it is returned to the edge gateway. After receiving the reply data packet returned by the target device for the communication data packet, the edge gateway unpacks the reply data packet according to the protocol data structure to obtain reply data, thereby realizing the communication between the edge gateway and the device.

在一个实施例中,在一个具体的实施例中,参考图3边缘网关通信方法的系统架构图。协议配置端,即“协议配置软件”或“云平台”,进行协议下发。边缘网关接收协议配置端下发的目标协议配置数据,根据目标协议配置数据进行数据协议封包/协议解包,实现与目标设备的通信。In one embodiment, in a specific embodiment, refer to FIG. 3 for a system architecture diagram of an edge gateway communication method. The protocol configuration terminal, that is, the "protocol configuration software" or "cloud platform", issues the protocol. The edge gateway receives the target protocol configuration data sent by the protocol configuration terminal, and performs data protocol encapsulation/protocol unpacking according to the target protocol configuration data to realize communication with the target device.

上述边缘网关通信方法、装置、计算机设备和存储介质,边缘网关直接从协议配置端,获取针对待通信的目标设备的设备类型对应配置的目标协议配置数据,无需固定开发协议到边缘网关中。基于目标协议配置数据中配置的通信流程,边缘网关便能知晓当前待执行流程,并根据目标协议配置数据中配置的协议数据结构进行数据协议封包,得到当前待执行流程对应的通信数据包。边缘网关向目标设备下发通信数据包。由于,是基于针对目标设备的设备类型对应配置的协议数据结构进行封包,所以,下发的通信数据包能够被目标设备识别,进而,边缘网关接收目标设备针对通信数据包返回的回复数据包,并根据协议数据结构对回复数据包进行解包,得到回复数据。从而,通过灵活的协议配置就能够实现边缘网关与支持各种协议的设备之间的通信,解决了边缘网关协议转换问题,进而,有效地提高了边缘网关的适用性。In the above-mentioned edge gateway communication method, device, computer equipment and storage medium, the edge gateway directly obtains the target protocol configuration data corresponding to the device type of the target device to be communicated from the protocol configuration end, without the need to fix the development protocol to the edge gateway. Based on the communication process configured in the target protocol configuration data, the edge gateway can know the current process to be executed, and perform data protocol packetization according to the protocol data structure configured in the target protocol configuration data to obtain the communication data packet corresponding to the current process to be executed. The edge gateway sends communication data packets to the target device. Since the packet is based on the protocol data structure configured corresponding to the device type of the target device, the communication data packet sent can be identified by the target device, and then the edge gateway receives the reply data packet returned by the target device for the communication data packet, And according to the protocol data structure, the reply data packet is unpacked to obtain the reply data. Therefore, the communication between the edge gateway and devices supporting various protocols can be realized through flexible protocol configuration, the problem of protocol conversion of the edge gateway is solved, and the applicability of the edge gateway is effectively improved.

在一个实施例中,边缘网关获取协议配置端所配置的目标协议配置数据,包括:边缘网关在启动后,检测本地是否存在与目标设备的设备类型对应配置的目标协议配置数据;当存在时,边缘网关从本地读取目标协议配置数据;当不存在时,边缘网关从协议配置端,获取目标协议配置数据。In one embodiment, the edge gateway obtains the target protocol configuration data configured by the protocol configuration terminal, including: after the edge gateway is started, detecting whether there is local target protocol configuration data configured corresponding to the device type of the target device; The edge gateway reads the target protocol configuration data locally; when it does not exist, the edge gateway obtains the target protocol configuration data from the protocol configuration side.

具体地,边缘网关在启动后,边缘网关会先在自己的本地存储文件夹中检测是否存在与目标设备的设备类型对应配置的目标协议配置数据。如果本地存储文件夹存储了目标协议配置数据,边缘网关便直接从本地文件夹读取目标协议配置数据。如果本地存储文件夹没有存储目标协议配置数据,则边缘网关需要从协议配置端获取目标协议配置数据。Specifically, after the edge gateway is started, the edge gateway will first detect in its local storage folder whether there is target protocol configuration data configured corresponding to the device type of the target device. If the local storage folder stores the target protocol configuration data, the edge gateway directly reads the target protocol configuration data from the local folder. If the local storage folder does not store the target protocol configuration data, the edge gateway needs to obtain the target protocol configuration data from the protocol configuration side.

在一个具体的实施例中,参考图4边缘网关通信方法步骤的流程示意图,示出了边缘网关在启动后,会检测本地是否存在与目标设备的设备类型对应配置的目标协议配置数据,即“检查是否存在对应协议配置数据”。当存在目标协议配置数据时,边缘网关从本地读取目标协议配置数据,即“读取配置”。In a specific embodiment, referring to the schematic flowchart of the steps of the edge gateway communication method in FIG. 4, it is shown that after the edge gateway is started, it will detect whether there is local target protocol configuration data corresponding to the device type of the target device, that is, " Check if there is corresponding protocol configuration data". When the target protocol configuration data exists, the edge gateway reads the target protocol configuration data locally, that is, "read configuration".

本实施例中,通过边缘网关检测本地存储文件夹是否有存储与目标设备的设备类型对应配置的目标协议配置数据,能够减少后台工作人员自行检测的工作量。In this embodiment, the edge gateway detects whether the local storage folder stores the target protocol configuration data configured corresponding to the device type of the target device, which can reduce the workload of self-detection by the background staff.

在一个实施例中,当不存在时,边缘网关从协议配置端,获取目标协议配置数据,包括:当不存在时,则发出告警信息;接收协议配置端针对告警信息配置并下发的目标协议配置数据。In one embodiment, when it does not exist, the edge gateway obtains the target protocol configuration data from the protocol configuration terminal, including: when it does not exist, sending alarm information; receiving the target protocol configured and delivered by the protocol configuration terminal for the alarm information Configuration Data.

其中,告警信息是边缘网关发出的,用于告知工作人员边缘网关的本地存储文件夹中没有存储目标协议配置数据。The alarm information is sent by the edge gateway, and is used to inform the staff that no target protocol configuration data is stored in the local storage folder of the edge gateway.

具体地,当边缘网关检测到本地存储文件夹没有存储目标协议配置数据,就发出告警信息,告知工作人员边缘网关不能正常使用,缺少该有的协议配置数据。工作人员到协议配置端针对告警信息对目标协议配置数据进行配置。协议配置端再下发的目标协议配置数据到边缘网关。Specifically, when the edge gateway detects that the local storage folder does not store the target protocol configuration data, it sends an alarm message to inform the staff that the edge gateway cannot be used normally and lacks the proper protocol configuration data. The staff goes to the protocol configuration end to configure the target protocol configuration data for the alarm information. The target protocol configuration data sent by the protocol configuration end is sent to the edge gateway.

在一个实施例中,当不存在时,边缘网关从协议配置端,获取目标协议配置数据,包括:当不存在时,边缘网关向协议配置端发送协议配置下载请求;接收协议配置端针对协议配置下载请求返回的目标协议配置数据。In one embodiment, when it does not exist, the edge gateway obtains the target protocol configuration data from the protocol configuration terminal, including: when it does not exist, the edge gateway sends a protocol configuration download request to the protocol configuration terminal; and receives the protocol configuration terminal for the protocol configuration terminal. The target protocol configuration data returned by the download request.

在一个具体的实施例中,当边缘网关检测到本地存储文件夹没有存储目标协议配置数据,向协议配置端发送协议配置下载请求。如果能够成功接收协议配置端针对协议配置下载请求返回的目标协议配置数据,则不用向工作人员发出告警信息。In a specific embodiment, when the edge gateway detects that the local storage folder does not store the target protocol configuration data, it sends a protocol configuration download request to the protocol configuration end. If the target protocol configuration data returned by the protocol configuration end for the protocol configuration download request can be successfully received, there is no need to send alarm information to the staff.

本实施例中,边缘网关自行检查本地存储文件夹不存目标协议配置数据,便自动去请求协议配置端下发,能够接收到目标协议配置数据就不再向相关工作人员发出告警,如果协议配置端不能够下发目标协议配置数据,再发出告警信息,告知工作人员到协议配置端去配置好目标协议配置数据。由此,可帮助工作人员判断发出告警信息是协议配置端没有配置好目标协议配数据。In this embodiment, the edge gateway automatically checks that the local storage folder does not contain the target protocol configuration data, and then automatically requests the protocol configuration terminal to deliver it, and no longer sends an alarm to the relevant staff if the target protocol configuration data can be received. The terminal cannot deliver the target protocol configuration data, and then sends an alarm message to inform the staff to go to the protocol configuration terminal to configure the target protocol configuration data. Therefore, it can help the staff to judge that the alarm information is issued because the target protocol configuration data is not configured properly at the protocol configuration end.

在一个实施例中,在边缘网关获取协议配置端所配置的目标协议配置数据之前,该方法还包括:在部署边缘网关时,接收从协议配置端下发的目标协议配置数据并进行本地存储;边缘网关获取协议配置端所配置的目标协议配置数据,包括:边缘网关获取本地存储的目标协议配置数据。In one embodiment, before the edge gateway obtains the target protocol configuration data configured by the protocol configuration terminal, the method further includes: when the edge gateway is deployed, receiving the target protocol configuration data delivered from the protocol configuration terminal and storing it locally; The edge gateway obtains the target protocol configuration data configured by the protocol configuration terminal, including: the edge gateway obtains locally stored target protocol configuration data.

具体地,在边缘网关获取协议配置端所配置的目标协议配置数据之前,会先部署边缘网关,在部署边缘网关时,技术人员可以先在协议配置端进行协议数据结构定义编辑,以适配该目标设备所使用的协议,编辑完成后,得到目标协议配置数据,并通过有线/无线将目标协议配置数据下发到边缘网关。边缘网关则可以将从协议配置端下发的目标协议配置数据进行本地存储。当边缘网关部署完成启动后,则可从本地获取所存储的目标协议配置数据。Specifically, before the edge gateway obtains the target protocol configuration data configured by the protocol configuration terminal, the edge gateway will be deployed first. When deploying the edge gateway, the technician can first define and edit the protocol data structure on the protocol configuration terminal to adapt to the After editing the protocol used by the target device, the target protocol configuration data is obtained, and the target protocol configuration data is sent to the edge gateway through wired/wireless. The edge gateway can locally store the target protocol configuration data delivered from the protocol configuration end. After the edge gateway is deployed and started, the stored target protocol configuration data can be obtained locally.

本实施例中,在边缘网关部署时就接收目标协议配置数据并进行本地存储,工作人员无需在完成边缘网关部署之后,触发部署完成控件,边缘网关再进行目标协议配置数据的接收,可以减少工作人员的等待时间,如果下载顺利,也能进一步减少后续工作人员对边缘网关部署的工作的检查,由此能够减少工作人员的工作量,可以加快项目的进展。In this embodiment, when the edge gateway is deployed, the target protocol configuration data is received and stored locally. The staff does not need to trigger the deployment completion control after completing the edge gateway deployment, and the edge gateway will then receive the target protocol configuration data, which can reduce work. The waiting time of personnel, if the download is successful, can also further reduce the subsequent staff's inspection of the deployment of the edge gateway, thereby reducing the workload of the staff and speeding up the progress of the project.

在一个实施例中,针对通信流程中的当前待执行流程,根据协议配置数据中配置的协议数据结构进行数据协议封包,得到当前待执行流程对应的通信数据包,包括:针对通信流程中的当前待执行流程,根据协议配置数据中配置的协议数据结构,针对定义的协议字段,填充协议字段所绑定的数据源所对应的数据,或者,填充协议字段所绑定的数据;将填充后得到的数据转换为目标数据格式,得到与当前待执行流程对应的通信数据包。In one embodiment, for the current to-be-executed process in the communication process, perform data protocol encapsulation according to the protocol data structure configured in the protocol configuration data to obtain the communication data packet corresponding to the current to-be-executed process, including: for the current process in the communication process In the process to be executed, according to the protocol data structure configured in the protocol configuration data, for the defined protocol field, fill in the data corresponding to the data source bound to the protocol field, or fill in the data bound by the protocol field; The data is converted into the target data format, and the communication data packet corresponding to the current process to be executed is obtained.

其中,设备协议其实本质上就是一串数据,要实现与设备通信,我们需要根据设备厂家制定的协议数据结构,在对应协议字段写入对应的数据,才能实现通信。Among them, the device protocol is essentially a string of data. To communicate with the device, we need to write the corresponding data in the corresponding protocol field according to the protocol data structure formulated by the device manufacturer to realize communication.

可以理解,对于不同协议来说,对应于协议字段所写入的数据的数据类型不同。比如,三菱系列协议的数据类型为ASCII码流,Modbus-RTU协议的数据类型则为十六进制。It can be understood that, for different protocols, the data types of the data written corresponding to the protocol fields are different. For example, the data type of Mitsubishi series protocol is ASCII stream, and the data type of Modbus-RTU protocol is hexadecimal.

数据源,是指实质性的数据的来源。Data source refers to the source of substantial data.

可以理解,当协议字段所绑定的是数据而不是数据源,则无需通过数据源进行相应数据的取数,而是直接将绑定的对应数据填充到协议字段中。It can be understood that when the protocol field is bound to data instead of the data source, it is not necessary to fetch the corresponding data through the data source, but directly fill the bound corresponding data into the protocol field.

具体地,边缘网关针对通信流程中的当前待执行流程,根据协议配置数据中配置的协议数据结构,针对定义的协议字段,根据该协议字段所绑定的数据源,取出实质性的数据以填充到该协议字段中,将填充后得到的数据转换为目标数据格式,得到与当前待执行流程对应的通信数据包。Specifically, for the current to-be-executed process in the communication process, according to the protocol data structure configured in the protocol configuration data, for the defined protocol field, the edge gateway takes out substantial data to fill in the data source bound to the protocol field. In the protocol field, the data obtained after filling is converted into the target data format, and the communication data packet corresponding to the current process to be executed is obtained.

在一个具体的实施例中,当协议字段所绑定的是数据而不是数据源时,则直接填充协议字段所绑定的数据,将填充后得到的数据转换为目标数据格式,得到与当前待执行流程对应的通信数据包。In a specific embodiment, when the data bound to the protocol field is not the data source, the data bound to the protocol field is directly filled, and the data obtained after filling is converted into the target data format, and the obtained data is obtained with the current pending data format. Execute the communication data packet corresponding to the process.

在一个具体的实施例中,参考图4边缘网关通信方法步骤的流程示意图,示出了边缘网关进行数据协议封包的过程。针对通信流程中的当前待执行流程,根据协议配置数据中配置的协议数据结构进行数据协议封包,即对应于图4中“根据协议配置执行通信流程”以及“根据协议字段信息填充数据”的步骤。In a specific embodiment, referring to the schematic flowchart of the steps of the edge gateway communication method in FIG. 4 , the process of performing data protocol encapsulation by the edge gateway is shown. For the current to-be-executed process in the communication process, the data protocol packet is performed according to the protocol data structure configured in the protocol configuration data, which corresponds to the steps of "execute the communication process according to the protocol configuration" and "fill data according to the protocol field information" in FIG. 4 . .

本实施例中,边缘网关获取协议配置端所配置的目标协议配置数据,根据目标协议配置数据中配置的协议数据结构,针对定义的协议字段,填充协议字段所对应的数据,或者,填充协议字段所绑定的数据。然后,将填充后得到的数据转换为目标数据格式,得到与当前待执行流程对应的通信数据包。整个协议配置流程,不需要人工预先固定设置边缘网关的协议配置而是通过协议配置端获取,不需要人工来进行协议数据的填充而是自行填充,因此能够让边缘网关适配不同厂家的设备,提高了边缘网关的适配性。In this embodiment, the edge gateway obtains the target protocol configuration data configured by the protocol configuration terminal, and according to the protocol data structure configured in the target protocol configuration data, for the defined protocol field, fills in the data corresponding to the protocol field, or fills in the protocol field bound data. Then, the data obtained after filling is converted into a target data format, and a communication data packet corresponding to the current process to be executed is obtained. The entire protocol configuration process does not need to manually set the protocol configuration of the edge gateway in advance, but obtains it through the protocol configuration terminal. It does not need to manually fill in the protocol data but fills it by itself. Therefore, the edge gateway can be adapted to the equipment of different manufacturers. Improves the adaptability of edge gateways.

在一个实施例中,该方法还包括:在边缘网关向目标设备下发通信数据包之后,当与目标设备通信正常时,则执行边缘网关接收目标设备针对通信数据包返回的回复数据包的步骤;当与目标设备通信异常时,则重新执行边缘网关向目标设备下发通信数据包;当重新下发的次数达到预设次数阈值、且与目标设备仍通信异常时,则发出协议配置错误告警信息。In one embodiment, the method further includes: after the edge gateway delivers the communication data packet to the target device, when the communication with the target device is normal, executing the step of receiving the reply data packet returned by the target device for the communication data packet by the edge gateway ; When the communication with the target device is abnormal, the edge gateway will re-deliver communication data packets to the target device; when the number of re-delivery times reaches the preset number of times threshold, and the communication with the target device is still abnormal, a protocol configuration error alarm will be issued information.

具体地,在边缘网关向目标设备下发通信数据包之后,若与目标设备能够通信正常,设备便能接收到边缘网关下发的通信数据包。设备根据协议数据结构对边缘网关下发的通信数据包进行解包,提取需要的实质的数据,获知边缘网关所需要回复的实质的数据。设备将边缘网关所需要回复的实质数据根据数据协议结构进行封包,发送回复数据包到边缘网关。Specifically, after the edge gateway sends the communication data packet to the target device, if the communication with the target device is normal, the device can receive the communication data packet sent by the edge gateway. The device unpacks the communication data packets sent by the edge gateway according to the protocol data structure, extracts the required essential data, and learns the essential data that the edge gateway needs to reply. The device encapsulates the substantial data that the edge gateway needs to reply to according to the data protocol structure, and sends the reply data packet to the edge gateway.

当边缘网关没有获取到设备上传的回复数据包,超过预设时长阈值,判断与目标设备通信异常,则重新执行边缘网关向目标设备下发通信数据包。When the edge gateway does not obtain the reply data packet uploaded by the device, exceeds the preset duration threshold, and judges that the communication with the target device is abnormal, the edge gateway re-executes the delivery of the communication data packet to the target device.

当重新下发的次数达到预设次数阈值、且与目标设备仍通信异常时,则发出协议配置错误告警信息。When the number of re-delivery times reaches the preset number of times threshold and the communication with the target device is still abnormal, a protocol configuration error alarm message is sent.

在一个具体的实施例中,参考图4边缘网关通信方法步骤的流程示意图,示出了边缘网关与设备进行通信时,会“判断设备是否正常通信”。设备接收到网关下发的通信数据包,即“接收数据”,会进行判断协议是否正确,协议正确,会根据协议数据结构进行数据协议封包后,上传回复数据包到边缘网关。如果能够接收到设备上传的回复数据包,则为正常通信,会对设备上传的回复数据包进行解包,即“根据协议配置,提取数据”。如果超过预设时长阈值还没有收到设备上传的回复数据包,则先判断是否下发通信数据包的过程出现问题,即边缘网关会再次进行下发通信数据包。在此实时例中,当重新下发的次数预设阈值为3次。重新下发通信数据包到达三次后,如果超过预设时长阈值还没有收到设备上传的回复数据包,发出协议配置错误告警信息。In a specific embodiment, referring to the schematic flowchart of the steps of the edge gateway communication method in FIG. 4 , it is shown that when the edge gateway communicates with the device, it will "determine whether the device communicates normally". When the device receives the communication data packet sent by the gateway, that is, "received data", it will judge whether the protocol is correct and the protocol is correct. After the data protocol is packaged according to the protocol data structure, the device will upload the reply data packet to the edge gateway. If the reply data packet uploaded by the device can be received, it is a normal communication, and the reply data packet uploaded by the device will be unpacked, that is, "extract data according to the protocol configuration". If the reply data packet uploaded by the device has not been received after the preset duration threshold, it is first determined whether there is a problem in the process of sending the communication data packet, that is, the edge gateway will send the communication data packet again. In this real-time example, the preset threshold for the number of re-delivery times is 3 times. After the re-delivery of the communication data packet arrives three times, if the reply data packet uploaded by the device has not been received after the preset duration threshold, a protocol configuration error alarm message is sent.

本实施例中,通过获取设备上传的回复数据包,边缘网关对回复数据包进行解包提取实质数据,并上传到云平台。运维人员在云平台通过查看边缘网关上传的实时数据,能够对设备的状态进行实时监控。In this embodiment, by acquiring the reply data packet uploaded by the device, the edge gateway unpacks the reply data packet to extract substantial data, and uploads it to the cloud platform. Operation and maintenance personnel can monitor the status of the device in real time by viewing the real-time data uploaded by the edge gateway on the cloud platform.

在一个实施例中,目标协议配置数据是协议配置端通过执行协议配置步骤进行配置得到;协议配置步骤,包括:配置在目标协议下边缘网关与目标设备之间的通信流程;配置目标协议中各协议字段的含义及字段长度,并绑定各协议字段相应填充的数据或数据源;在针对配置的通信流程的完整性检测通过后,将针对目标协议配置的信息进行保存,得到目标协议配置数据。In one embodiment, the target protocol configuration data is obtained by the protocol configuration terminal performing a protocol configuration step to configure; the protocol configuration step includes: configuring the communication process between the edge gateway and the target device under the target protocol; configuring each of the target protocol The meaning and field length of the protocol fields, and bind the corresponding filled data or data source of each protocol field; after the integrity check for the configured communication process passes, the information configured for the target protocol is saved to obtain the target protocol configuration data .

其中,针对目标协议配置的信息,包括配置的通信流程、以及配置的目标协议的协议数据结构的相关信息。目标协议的协议数据结构的相关信息,包括目标协议中各协议字段的含义及字段长度,并绑定各协议字段相应填充的数据或数据源。The information configured for the target protocol includes the configured communication process and the related information of the protocol data structure of the configured target protocol. Information about the protocol data structure of the target protocol, including the meaning and field length of each protocol field in the target protocol, and binding the data or data source corresponding to each protocol field.

具体地,在协议配置端,配置在目标协议下边缘网关与目标设备之间的通信流程,然后,配置目标协议中各协议字段的含义及字段长度,并绑定各协议字段相应填充的数据或数据源,完成针对目标协议的配置流程。Specifically, at the protocol configuration end, configure the communication process between the edge gateway and the target device under the target protocol, then configure the meaning and field length of each protocol field in the target protocol, and bind the corresponding filled data or Data source, complete the configuration process for the target protocol.

在下发协议配置数据到边缘网关之前,先针对配置的通信流程的完整性进行检测,检测没有问题后,再将目标协议配置数据下发到边缘网关。检测有问题,则重新对目标协议进行配置,直到配置好再向边缘网关下发目标协议配置数据。边缘网关将目标协议配置数据保存到本地存储文件夹中。Before delivering the protocol configuration data to the edge gateway, first check the integrity of the configured communication process, and then deliver the target protocol configuration data to the edge gateway after detecting that there is no problem. If there is a problem in the detection, reconfigure the target protocol until the configuration is complete, and then deliver the target protocol configuration data to the edge gateway. The edge gateway saves the target protocol configuration data to the local storage folder.

在一个具体的实施例中,参考图4边缘网关通信方法步骤的流程示意图,示出了协议配置端对协议流程配置的过程。配置在目标协议下边缘网关与目标设备之间的通信流程,即“配置设备的通信流程”。配置目标协议中各协议字段的含义及字段长度,即“定义协议各字段的含义以及字节长度”。In a specific embodiment, referring to the schematic flowchart of the steps of the edge gateway communication method in FIG. 4 , a process of protocol configuration end-to-end protocol process configuration is shown. Configure the communication process between the edge gateway and the target device under the target protocol, that is, "configure the communication process of the device". Configure the meaning and field length of each protocol field in the target protocol, that is, "Define the meaning and byte length of each field in the protocol".

本实施例中,在不同的项目中,针对不同的厂家设备,去针对性下载与设备对应的协议配置数据,需要什么样的协议配置数据就下载什么样的协议配置数据,无需在边缘网关固定存储一到两种协议配置数据,解决了传统网关与很多设备都无法进行通讯,适用性很差的问题,提高了边缘网关的适用性。In this embodiment, in different projects, for different manufacturers' devices, the protocol configuration data corresponding to the device is downloaded in a targeted manner, and what kind of protocol configuration data is needed can be downloaded without fixing it on the edge gateway. One or two protocol configuration data is stored, which solves the problem that traditional gateways cannot communicate with many devices and has poor applicability, and improves the applicability of edge gateways.

在一个实施例中,如图5所示,提供了一种边缘网关通信方法,该方法可以通过协议配置端来实现。现以该方法应用于图1中的协议配置端为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 5 , an edge gateway communication method is provided, and the method can be implemented by a protocol configuration terminal. Now, the method is applied to the protocol configuration terminal in FIG. 1 as an example to illustrate, including the following steps:

步骤502,配置在目标协议下所述边缘网关与所述目标设备之间的通信流程。Step 502: Configure the communication flow between the edge gateway and the target device under the target protocol.

步骤504,配置所述目标协议中各协议字段的含义及字段长度,并绑定各所述协议字段相应填充的数据或数据源,得到协议数据结构。Step 504: Configure the meaning and field length of each protocol field in the target protocol, and bind the corresponding filled data or data source of each of the protocol fields to obtain a protocol data structure.

步骤506,在针对配置的所述通信流程的完整性检测通过后,将针对所述目标协议配置的所述通信流程和所述协议数据结构进行保存,得到与所述目标设备的设备类型对应配置的目标协议配置数据。Step 506, after passing the integrity check for the configured communication process, save the communication process and the protocol data structure configured for the target protocol, and obtain a configuration corresponding to the device type of the target device target protocol configuration data.

步骤508,下发所述目标协议配置数据至边缘网关;其中,所述目标协议配置数据,用于指示边缘网关根据所述目标协议配置数据,与所述目标设备进行通信。Step 508, delivering the target protocol configuration data to the edge gateway; wherein the target protocol configuration data is used to instruct the edge gateway to communicate with the target device according to the target protocol configuration data.

上述边缘网关通信方法,首先,配置在目标协议下所述边缘网关与所述目标设备之间的通信流程。然后,配置所述目标协议中各协议字段的含义及字段长度,并绑定各所述协议字段相应填充的数据或数据源,得到协议数据结构。进一步,在针对配置的所述通信流程的完整性检测通过后,将针对所述目标协议配置的所述通信流程和所述协议数据结构进行保存,得到与所述目标设备的设备类型对应配置的目标协议配置数据。经过前面的三个步骤,此时得到的目标协议配置数据是经过协议配置端检测过的通信流程完整,并且能够与所述目标设备适配的目标协议配置数据。边缘网关即可以根据与目标设备适配的目标协议配置数据,直接与目标设备进行通信。即,通过灵活的协议配置就能够实现边缘网关与支持各种协议的设备之间的通信,解决了边缘网关协议转换问题,进而,有效地提高了边缘网关的适用性。In the above edge gateway communication method, first, a communication process between the edge gateway and the target device under a target protocol is configured. Then, configure the meaning and field length of each protocol field in the target protocol, and bind the corresponding filled data or data source in each of the protocol fields to obtain a protocol data structure. Further, after the integrity check for the configured communication flow is passed, the communication flow configured for the target protocol and the protocol data structure are saved to obtain a configuration corresponding to the device type of the target device. Target protocol configuration data. After the previous three steps, the target protocol configuration data obtained at this time is the target protocol configuration data that has been detected by the protocol configuration end and that the communication process is complete and that can be adapted to the target device. The edge gateway can directly communicate with the target device according to the target protocol configuration data adapted to the target device. That is, the communication between the edge gateway and devices supporting various protocols can be realized through flexible protocol configuration, which solves the problem of protocol conversion of the edge gateway, and further improves the applicability of the edge gateway effectively.

应该理解的是,虽然本申请各实施例中的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,本申请各实施例中的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowcharts in the various embodiments of the present application are displayed in sequence according to the arrows, these steps are not necessarily executed sequentially in the order indicated 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 the flowcharts in the embodiments of the present application may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but may be executed at different times. The order of execution of the steps or stages is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the steps or stages in the other steps.

在一个实施例中,如图6所示,提供了一种边缘网关通信装置500,设置于边缘网关中,该装置600包括:获取模块602、读取模块604、封包模块606、下发模块608和解包模块610,其中:In one embodiment, as shown in FIG. 6 , an edge gateway communication device 500 is provided, which is set in the edge gateway. The device 600 includes: an acquisition module 602 , a reading module 604 , a packet module 606 , and a sending module 608 and unpacking module 610, where:

获取模块602,用于获取协议配置端所配置的目标协议配置数据;目标协议配置数据,是协议配置端预先针对待通信的目标设备的设备类型对应配置的协议配置数据。The obtaining module 602 is configured to obtain target protocol configuration data configured by the protocol configuration terminal; the target protocol configuration data is the protocol configuration data pre-configured by the protocol configuration terminal corresponding to the device type of the target device to be communicated.

读取模块604,用于读取目标协议配置数据中配置的通信流程。The reading module 604 is configured to read the communication process configured in the target protocol configuration data.

封包模块606,用于针对通信流程中的当前待执行流程,根据目标协议配置数据中配置的协议数据结构进行数据协议封包,得到当前待执行流程对应的通信数据包。The encapsulation module 606 is configured to perform data protocol encapsulation according to the protocol data structure configured in the target protocol configuration data for the current to-be-executed process in the communication process to obtain a communication data packet corresponding to the current to-be-executed process.

下发模块608,用于向目标设备下发通信数据包。The delivery module 608 is configured to deliver the communication data packet to the target device.

解包模块610,用于接收目标设备针对通信数据包返回的回复数据包,并根据协议数据结构对回复数据包进行解包,得到回复数据。The unpacking module 610 is configured to receive the reply data packet returned by the target device for the communication data packet, and unpack the reply data packet according to the protocol data structure to obtain reply data.

在一个实施例中,获取模块602还用于在边缘网关启动后,检测本地是否存在与目标设备的设备类型对应配置的目标协议配置数据;当存在时,从本地读取目标协议配置数据;当不存在时,从协议配置端,获取目标协议配置数据。In one embodiment, the obtaining module 602 is further configured to detect whether there is local target protocol configuration data configured corresponding to the device type of the target device after the edge gateway is started; when there is, read the target protocol configuration data from the local; when If it does not exist, obtain the target protocol configuration data from the protocol configuration side.

在一个实施例中,获取模块602还用于当不存在时,则发出告警信息;接收协议配置端针对告警信息配置并下发的目标协议配置数据。In one embodiment, the obtaining module 602 is further configured to send alarm information when it does not exist; and receive the target protocol configuration data configured and delivered by the protocol configuration end for the alarm information.

在一个实施例中,获取模块602还用于当不存在时,向协议配置端发送协议配置下载请求;接收协议配置端针对协议配置下载请求返回的目标协议配置数据。In one embodiment, the obtaining module 602 is further configured to send a protocol configuration download request to the protocol configuration end when it does not exist; and receive the target protocol configuration data returned by the protocol configuration end for the protocol configuration download request.

在一个实施例中,获取模块602还用于在部署边缘网关时,接收从协议配置端下发的目标协议配置数据并进行本地存储;获取本地存储的目标协议配置数据。In one embodiment, the obtaining module 602 is further configured to receive the target protocol configuration data delivered from the protocol configuration end and store it locally when the edge gateway is deployed; obtain the locally stored target protocol configuration data.

在一个实施例中,封包模块606还用于针对通信流程中的当前待执行流程,根据协议配置数据中配置的协议数据结构,针对定义的协议字段,填充协议字段所绑定的数据源所对应的数据,或者,填充协议字段所绑定的数据;将填充后得到的数据转换为目标数据格式,得到与当前待执行流程对应的通信数据包。In one embodiment, the encapsulation module 606 is further configured to, for the current to-be-executed process in the communication process, according to the protocol data structure configured in the protocol configuration data, for the defined protocol field, fill in the corresponding data source to which the protocol field is bound. or, fill in the data bound to the protocol field; convert the data obtained after filling into the target data format, and obtain the communication data packet corresponding to the current process to be executed.

在一个实施例中,下发模块608还用于向目标设备下发通信数据包之后,当与目标设备通信正常时,则通知解包模块610执行接收目标设备针对通信数据包返回的回复数据包的步骤;当与目标设备通信异常时,则重新向目标设备下发通信数据包;当重新下发的次数达到预设次数阈值、且与目标设备仍通信异常时,则发出协议配置错误告警信息。In one embodiment, the sending module 608 is further configured to, after sending the communication data packet to the target device, when the communication with the target device is normal, notify the unpacking module 610 to receive the reply data packet returned by the target device for the communication data packet When the communication with the target device is abnormal, the communication data packets are re-delivered to the target device; when the number of re-delivery times reaches the preset number of times threshold, and the communication with the target device is still abnormal, a protocol configuration error alarm message is issued .

在一个实施例中,该装置还包括:In one embodiment, the apparatus further includes:

配置模块(图中未示出),用于配置在目标协议下边缘网关与目标设备之间的通信流程;配置目标协议中各协议字段的含义及字段长度,并绑定各协议字段相应填充的数据或数据源;在针对配置的通信流程的完整性检测通过后,将针对目标协议配置的信息进行保存,得到目标协议配置数据。可以理解,配置模块可以是设置于协议配置端中的模块。本实施例中,边缘网关通信装置则是由边缘网关和协议配置端中的模块共同组成的装置。The configuration module (not shown in the figure) is used to configure the communication process between the edge gateway and the target device under the target protocol; configure the meaning and field length of each protocol field in the target protocol, and bind the corresponding filled fields of each protocol. Data or data source; after the integrity test for the configured communication process passes, the information configured for the target protocol is saved to obtain target protocol configuration data. It can be understood that the configuration module may be a module provided in the protocol configuration terminal. In this embodiment, the edge gateway communication device is a device jointly composed of modules in the edge gateway and the protocol configuration terminal.

在一个实施例中,如图7所示,提供了一种边缘网关通信装置700,设置于协议配置端中,该装置700包括:配置模块702、下发模块704,其中:In one embodiment, as shown in FIG. 7 , an edge gateway communication device 700 is provided, which is set in a protocol configuration terminal. The device 700 includes: a configuration module 702 and a delivery module 704, wherein:

配置模块702,用于配置在目标协议下所述边缘网关与所述目标设备之间的通信流程;还用于配置所述目标协议中各协议字段的含义及字段长度,并绑定各所述协议字段相应填充的数据或数据源,得到协议数据结构;还用于在针对配置的所述通信流程的完整性检测通过后,将针对所述目标协议配置的所述通信流程和所述协议数据结构进行保存,得到与所述目标设备的设备类型对应配置的目标协议配置数据;A configuration module 702, configured to configure the communication process between the edge gateway and the target device under the target protocol; also configured to configure the meaning and field length of each protocol field in the target protocol, and bind each of the The data or data source correspondingly filled in the protocol field is used to obtain a protocol data structure; it is also used to convert the communication process configured for the target protocol and the protocol data after the integrity test for the configured communication process is passed. The structure is saved, and the target protocol configuration data configured corresponding to the device type of the target device is obtained;

下发模块704,用于下发所述目标协议配置数据至边缘网关;其中,所述目标协议配置数据,用于指示边缘网关根据所述目标协议配置数据,与所述目标设备进行通信。The delivery module 704 is configured to deliver the target protocol configuration data to the edge gateway; wherein the target protocol configuration data is used to instruct the edge gateway to communicate with the target device according to the target protocol configuration data.

关于边缘网关通信装置的具体限定可以参见上文中对于边缘网关通信方法的限定,在此不再赘述。上述边缘网关通信装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the edge gateway communication device, reference may be made to the above definition of the edge gateway communication method, which will not be repeated here. Each module in the above-mentioned edge gateway communication device may be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是协议配置端或者边缘网关,其内部结构图可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种边缘网关通信方法。In one embodiment, a computer device is provided, the computer device may be a protocol configuration terminal or an edge gateway, and an internal structure diagram thereof may be as shown in FIG. 8 . The computer device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by the processor, implements an edge gateway communication method.

本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 8 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.

在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各种实施例的边缘网关通信方法。In one embodiment, a computer device is provided, including a memory and a processor, where a computer program is stored in the memory, and when the processor executes the computer program, the edge gateway communication methods of the foregoing various embodiments are implemented.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述各种实施例的边缘网关通信方法。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, implements the edge gateway communication methods of the above-mentioned various embodiments.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the various embodiments provided in this application may include at least one of non-volatile and volatile memory. The non-volatile memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, and the like. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, the RAM may be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM).

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, 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 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 (12)

1.一种边缘网关通信方法,其特征在于,所述方法包括:1. An edge gateway communication method, characterized in that the method comprises: 边缘网关获取协议配置端所配置的目标协议配置数据;所述目标协议配置数据,是所述协议配置端预先针对待通信的目标设备的设备类型对应配置的协议配置数据;The edge gateway obtains the target protocol configuration data configured by the protocol configuration terminal; the target protocol configuration data is the protocol configuration data pre-configured by the protocol configuration terminal corresponding to the device type of the target device to be communicated; 读取所述目标协议配置数据中配置的通信流程;Read the communication process configured in the target protocol configuration data; 针对所述通信流程中的当前待执行流程,根据所述目标协议配置数据中配置的协议数据结构进行数据协议封包,得到所述当前待执行流程对应的通信数据包;For the current to-be-executed process in the communication process, perform data protocol encapsulation according to the protocol data structure configured in the target protocol configuration data, to obtain a communication data packet corresponding to the current to-be-executed process; 所述边缘网关向所述目标设备下发所述通信数据包;sending, by the edge gateway, the communication data packet to the target device; 所述边缘网关接收所述目标设备针对所述通信数据包返回的回复数据包,并根据所述协议数据结构对所述回复数据包进行解包,得到回复数据。The edge gateway receives the reply data packet returned by the target device for the communication data packet, and unpacks the reply data packet according to the protocol data structure to obtain reply data. 2.根据权利要求1所述的方法,其特征在于,所述边缘网关获取协议配置端所配置的目标协议配置数据,包括:2. The method according to claim 1, wherein the edge gateway obtains the target protocol configuration data configured by the protocol configuration terminal, comprising: 所述边缘网关在启动后,检测本地是否存在与目标设备的设备类型对应配置的目标协议配置数据;After the edge gateway is started, it detects whether there is locally configured target protocol configuration data corresponding to the device type of the target device; 当存在时,所述边缘网关从本地读取所述目标协议配置数据;When present, the edge gateway reads the target protocol configuration data locally; 当不存在时,所述边缘网关从协议配置端,获取目标协议配置数据。When it does not exist, the edge gateway obtains the target protocol configuration data from the protocol configuration end. 3.根据权利要求2所述的方法,其特征在于,所述当不存在时,所述边缘网关从协议配置端,获取目标协议配置数据,包括:3 . The method according to claim 2 , wherein, when not existing, the edge gateway obtains target protocol configuration data from a protocol configuration terminal, comprising: 3 . 当不存在时,则发出告警信息;接收所述协议配置端针对所述告警信息配置并下发的所述目标协议配置数据;或,When it does not exist, send out alarm information; receive the target protocol configuration data configured and delivered by the protocol configuration end for the alarm information; or, 当不存在时,所述边缘网关向所述协议配置端发送协议配置下载请求;接收所述协议配置端针对所述协议配置下载请求返回的所述目标协议配置数据。When it does not exist, the edge gateway sends a protocol configuration download request to the protocol configuration terminal; and receives the target protocol configuration data returned by the protocol configuration terminal for the protocol configuration download request. 4.根据权利要求1所述的方法,其特征在于,在所述边缘网关获取协议配置端所配置的目标协议配置数据之前,所述方法还包括:4. The method according to claim 1, wherein before the edge gateway obtains the target protocol configuration data configured by the protocol configuration terminal, the method further comprises: 在部署所述边缘网关时,接收从所述协议配置端下发的目标协议配置数据并进行本地存储;When deploying the edge gateway, receive the target protocol configuration data delivered from the protocol configuration terminal and store it locally; 所述边缘网关获取协议配置端所配置的目标协议配置数据,包括:The edge gateway obtains the target protocol configuration data configured by the protocol configuration terminal, including: 所述边缘网关获取本地存储的所述目标协议配置数据。The edge gateway obtains the locally stored configuration data of the target protocol. 5.根据权利要求1所述的方法,其特征在于,所述针对所述通信流程中的当前待执行流程,根据所述目标协议配置数据中配置的协议数据结构进行数据协议封包,得到所述当前待执行流程对应的通信数据包,包括:5. The method according to claim 1, characterized in that, for the current flow to be executed in the communication flow, data protocol encapsulation is performed according to the protocol data structure configured in the target protocol configuration data to obtain the The communication data packets corresponding to the current process to be executed include: 针对所述通信流程中的当前待执行流程,根据所述协议配置数据中配置的协议数据结构,针对定义的协议字段,填充所述协议字段所绑定的数据源所对应的数据,或者,填充所述协议字段所绑定的数据;For the current to-be-executed process in the communication process, according to the protocol data structure configured in the protocol configuration data, for the defined protocol field, fill in the data corresponding to the data source bound to the protocol field, or fill in the data bound to the protocol field; 将填充后得到的数据转换为目标数据格式,得到与所述当前待执行流程对应的通信数据包。The data obtained after filling is converted into a target data format, and a communication data packet corresponding to the current process to be executed is obtained. 6.根据权利要求1所述的方法,其特征在于,所述方法还包括:6. The method of claim 1, wherein the method further comprises: 在所述边缘网关向所述目标设备下发所述通信数据包之后,当与所述目标设备通信正常时,则执行所述边缘网关接收所述目标设备针对所述通信数据包返回的回复数据包的步骤;After the edge gateway sends the communication data packet to the target device, when the communication with the target device is normal, the edge gateway receives the reply data returned by the target device for the communication data packet. package steps; 当与所述目标设备通信异常时,则重新执行所述边缘网关向所述目标设备下发所述通信数据包;When the communication with the target device is abnormal, re-execute the edge gateway to deliver the communication data packet to the target device; 当重新下发的次数达到预设次数阈值、且与所述目标设备仍通信异常时,则发出协议配置错误告警信息。When the number of re-delivery times reaches the preset number of times threshold and the communication with the target device is still abnormal, a protocol configuration error alarm message is sent. 7.根据权利要求1至6中任一项所述的方法,其特征在于,所述目标协议配置数据是所述协议配置端通过执行协议配置步骤进行配置得到;7. The method according to any one of claims 1 to 6, wherein the target protocol configuration data is obtained by configuring the protocol configuration terminal by performing a protocol configuration step; 所述协议配置步骤,包括:The protocol configuration steps include: 配置在目标协议下所述边缘网关与所述目标设备之间的通信流程;Configure the communication process between the edge gateway and the target device under the target protocol; 配置所述目标协议中各协议字段的含义及字段长度,并绑定各所述协议字段相应填充的数据或数据源;Configure the meaning and field length of each protocol field in the target protocol, and bind the corresponding filled data or data source of each of the protocol fields; 在针对配置的所述通信流程的完整性检测通过后,将针对所述目标协议配置的信息进行保存,得到目标协议配置数据。After the integrity check for the configured communication process passes, the information configured for the target protocol is saved to obtain target protocol configuration data. 8.一种边缘网关通信方法,其特征在于,所述方法包括:8. An edge gateway communication method, wherein the method comprises: 配置在目标协议下所述边缘网关与所述目标设备之间的通信流程;Configure the communication process between the edge gateway and the target device under the target protocol; 配置所述目标协议中各协议字段的含义及字段长度,并绑定各所述协议字段相应填充的数据或数据源,得到协议数据结构;Configuring the meaning and field length of each protocol field in the target protocol, and binding the corresponding filled data or data source of each of the protocol fields to obtain a protocol data structure; 在针对配置的所述通信流程的完整性检测通过后,将针对所述目标协议配置的所述通信流程和所述协议数据结构进行保存,得到与所述目标设备的设备类型对应配置的目标协议配置数据;After the integrity check for the configured communication flow is passed, the communication flow configured for the target protocol and the protocol data structure are saved to obtain a target protocol configured corresponding to the device type of the target device Configuration Data; 下发所述目标协议配置数据至边缘网关;其中,所述目标协议配置数据,用于指示边缘网关根据所述目标协议配置数据,与所述目标设备进行通信。Delivering the target protocol configuration data to the edge gateway; wherein the target protocol configuration data is used to instruct the edge gateway to communicate with the target device according to the target protocol configuration data. 9.一种边缘网关通信装置,其特征在于,所述装置包括:9. An edge gateway communication device, wherein the device comprises: 获取模块,用于获取协议配置端所配置的目标协议配置数据;所述目标协议配置数据,是所述协议配置端预先针对待通信的目标设备的设备类型对应配置的协议配置数据;an acquisition module, configured to acquire the target protocol configuration data configured by the protocol configuration terminal; the target protocol configuration data is the protocol configuration data pre-configured by the protocol configuration terminal corresponding to the device type of the target device to be communicated; 读取模块,用于读取所述目标协议配置数据中配置的通信流程;a reading module for reading the communication process configured in the target protocol configuration data; 封包模块,用于针对所述通信流程中的当前待执行流程,根据所述目标协议配置数据中配置的协议数据结构进行数据协议封包,得到所述当前待执行流程对应的通信数据包;a package module, configured to perform data protocol package according to the protocol data structure configured in the target protocol configuration data for the current process to be executed in the communication process, to obtain a communication data packet corresponding to the current process to be executed; 下发模块,用于向所述目标设备下发所述通信数据包;a sending module, configured to send the communication data packet to the target device; 解包模块,用于接收所述目标设备针对所述通信数据包返回的回复数据包,并根据所述协议数据结构对所述回复数据包进行解包,得到回复数据。An unpacking module, configured to receive a reply data packet returned by the target device for the communication data packet, and unpack the reply data packet according to the protocol data structure to obtain reply data. 10.一种边缘网关通信装置,其特征在于,所述装置包括:10. An edge gateway communication device, wherein the device comprises: 配置模块,用于配置在目标协议下所述边缘网关与所述目标设备之间的通信流程;配置所述目标协议中各协议字段的含义及字段长度,并绑定各所述协议字段相应填充的数据或数据源,得到协议数据结构;在针对配置的所述通信流程的完整性检测通过后,将针对所述目标协议配置的所述通信流程和所述协议数据结构进行保存,得到与所述目标设备的设备类型对应配置的目标协议配置数据;A configuration module, configured to configure the communication process between the edge gateway and the target device under the target protocol; configure the meaning and field length of each protocol field in the target protocol, and bind each of the protocol fields to fill accordingly data or data source, obtain the protocol data structure; after the integrity test for the configured communication process passes, save the communication process and the protocol data structure configured for the target protocol, and obtain the The target protocol configuration data corresponding to the configuration of the device type of the target device; 下发模块,用于下发所述目标协议配置数据至边缘网关;其中,所述目标协议配置数据,用于指示边缘网关根据所述目标协议配置数据,与所述目标设备进行通信。The delivery module is configured to deliver the target protocol configuration data to the edge gateway; wherein the target protocol configuration data is used to instruct the edge gateway to communicate with the target device according to the target protocol configuration data. 11.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至8中任一项所述的方法的步骤。11. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the method according to any one of claims 1 to 8 when the processor executes the computer program. step. 12.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至8中任一项所述的方法的步骤。12. A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
CN202011109357.5A 2020-10-16 2020-10-16 Edge gateway communication method, device, computer equipment and storage medium Active CN112399446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011109357.5A CN112399446B (en) 2020-10-16 2020-10-16 Edge gateway communication method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011109357.5A CN112399446B (en) 2020-10-16 2020-10-16 Edge gateway communication method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112399446A true CN112399446A (en) 2021-02-23
CN112399446B CN112399446B (en) 2024-12-24

Family

ID=74596563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011109357.5A Active CN112399446B (en) 2020-10-16 2020-10-16 Edge gateway communication method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112399446B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558578A (en) * 2021-02-26 2021-03-26 奇力士(武汉)智慧水务科技有限公司 Automatic assembly method and system for bottom layer data of secondary water supply platform
CN114153468A (en) * 2021-11-04 2022-03-08 云镝智慧科技有限公司 Industrial protocol adaptation method and device, edge device and cloud server

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223731A (en) * 2010-04-19 2011-10-19 中兴通讯股份有限公司 Interface equipment compatible with various terminals in internet of things and realization method thereof
CN104052759A (en) * 2013-03-11 2014-09-17 中国科学院计算技术研究所 System for realizing add-and-play technology of internet of things
CN104202222A (en) * 2014-08-20 2014-12-10 惠州Tcl移动通信有限公司 Smart home controller and communication method thereof
CN106230713A (en) * 2016-08-26 2016-12-14 南威软件股份有限公司 A kind of intelligent gateway
CN107124421A (en) * 2017-05-11 2017-09-01 珠海格力电器股份有限公司 Multi-protocol-based communication method, multi-protocol gateway device and storage medium
CN109246142A (en) * 2018-10-26 2019-01-18 深圳市通用互联科技有限责任公司 Data encapsulation method, router things-internet gateway and storage medium
CN109495572A (en) * 2018-11-22 2019-03-19 深圳市信锐网科技术有限公司 A kind of Internet of things system and its network communication method, device and storage medium
CN110460521A (en) * 2019-09-19 2019-11-15 北京中电普华信息技术有限公司 An edge computing soft gateway
US20200128077A1 (en) * 2017-05-25 2020-04-23 Siemens Aktiengesellschaft Data transmission method and device
CN111163147A (en) * 2019-12-24 2020-05-15 深圳供电局有限公司 Gateway device, multi-protocol data transmission method and computer device
CN111478966A (en) * 2020-04-07 2020-07-31 全球能源互联网研究院有限公司 Analysis method, device, computer equipment and storage medium of Internet of Things protocol
CN111726769A (en) * 2020-06-29 2020-09-29 南方电网数字电网研究院有限公司 Communication system, method and device for miniature intelligent sensor

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223731A (en) * 2010-04-19 2011-10-19 中兴通讯股份有限公司 Interface equipment compatible with various terminals in internet of things and realization method thereof
CN104052759A (en) * 2013-03-11 2014-09-17 中国科学院计算技术研究所 System for realizing add-and-play technology of internet of things
CN104202222A (en) * 2014-08-20 2014-12-10 惠州Tcl移动通信有限公司 Smart home controller and communication method thereof
CN106230713A (en) * 2016-08-26 2016-12-14 南威软件股份有限公司 A kind of intelligent gateway
CN107124421A (en) * 2017-05-11 2017-09-01 珠海格力电器股份有限公司 Multi-protocol-based communication method, multi-protocol gateway device and storage medium
US20200128077A1 (en) * 2017-05-25 2020-04-23 Siemens Aktiengesellschaft Data transmission method and device
CN109246142A (en) * 2018-10-26 2019-01-18 深圳市通用互联科技有限责任公司 Data encapsulation method, router things-internet gateway and storage medium
CN109495572A (en) * 2018-11-22 2019-03-19 深圳市信锐网科技术有限公司 A kind of Internet of things system and its network communication method, device and storage medium
CN110460521A (en) * 2019-09-19 2019-11-15 北京中电普华信息技术有限公司 An edge computing soft gateway
CN111163147A (en) * 2019-12-24 2020-05-15 深圳供电局有限公司 Gateway device, multi-protocol data transmission method and computer device
CN111478966A (en) * 2020-04-07 2020-07-31 全球能源互联网研究院有限公司 Analysis method, device, computer equipment and storage medium of Internet of Things protocol
CN111726769A (en) * 2020-06-29 2020-09-29 南方电网数字电网研究院有限公司 Communication system, method and device for miniature intelligent sensor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558578A (en) * 2021-02-26 2021-03-26 奇力士(武汉)智慧水务科技有限公司 Automatic assembly method and system for bottom layer data of secondary water supply platform
CN112558578B (en) * 2021-02-26 2021-05-11 奇力士(武汉)智慧水务科技有限公司 Automatic assembly method for bottom layer data of secondary water supply platform
CN114153468A (en) * 2021-11-04 2022-03-08 云镝智慧科技有限公司 Industrial protocol adaptation method and device, edge device and cloud server

Also Published As

Publication number Publication date
CN112399446B (en) 2024-12-24

Similar Documents

Publication Publication Date Title
WO2016015511A1 (en) Method, apparatus and computer storage medium for simulating data packet in network management test event
CN111464419A (en) A data transmission control method based on bus network communication
CN115543755B (en) A performance monitoring method, device, system, equipment and medium
CN106610789B (en) A kind of data processing method, apparatus and system
CN112399446A (en) Edge gateway communication method, device, computer equipment and storage medium
CN105389120A (en) Supporting RMA API over active message
CN115361327B (en) Method, device, terminal and medium for automatically testing NCSI command of network card
CN112838938B (en) Test system of Internet of things platform
JP2013246817A (en) Remote card content management using synchronous server-side scripting
CN113630466B (en) Data transmission method, system, electronic equipment and storage medium
CN105656727A (en) Method and device achieving application testing on mobile terminal
CN105577453A (en) A system and method for implementing mobile application testing
CN113905357B (en) Data migration method, device, equipment and storage medium based on WiFi direct connection
CN116257268A (en) A device upgrading method, device, electronic device and storage medium
CN116466986A (en) Equipment software upgrading method and device of energy storage system, communication module and medium
CN115866093A (en) Data processing method, device, equipment and storage medium of dual network protocol stack
CN117411950A (en) Information processing methods and devices, electronic equipment and media
CN114520767A (en) WIA-PA network-based whole-network terminal upgrading system and method
CN113190410A (en) Log collection method, system, client and storage medium
CN113032054A (en) Service execution method, device, storage medium and electronic device
CN106997291A (en) A kind of control method and master node, slave node
CN115617370B (en) Data refreshing method and device, electronic equipment and storage medium
JP4809679B2 (en) Stream data communication method and stream data communication apparatus
CN118113641B (en) High reliability one-way transmission method, device, equipment and storage medium
CN113515461B (en) Communication test method and device, electronic equipment and storage medium

Legal Events

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