WO2023044675A1 - 一种获取边缘数据的方法、连接器及数据平台 - Google Patents

一种获取边缘数据的方法、连接器及数据平台 Download PDF

Info

Publication number
WO2023044675A1
WO2023044675A1 PCT/CN2021/119979 CN2021119979W WO2023044675A1 WO 2023044675 A1 WO2023044675 A1 WO 2023044675A1 CN 2021119979 W CN2021119979 W CN 2021119979W WO 2023044675 A1 WO2023044675 A1 WO 2023044675A1
Authority
WO
WIPO (PCT)
Prior art keywords
connector
data
terminal device
data platform
edge
Prior art date
Application number
PCT/CN2021/119979
Other languages
English (en)
French (fr)
Inventor
李欢
Original Assignee
西门子股份公司
西门子(中国)有限公司
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 西门子股份公司, 西门子(中国)有限公司 filed Critical 西门子股份公司
Priority to PCT/CN2021/119979 priority Critical patent/WO2023044675A1/zh
Publication of WO2023044675A1 publication Critical patent/WO2023044675A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/06Answer-back mechanisms or circuits

Definitions

  • the present application relates to the technical field of data management, and more specifically, relates to a method for acquiring edge data, a connector and a data platform.
  • the data platform can integrate various data sources.
  • the data platform collects data from various data sources, it generally uses the connector on the data platform to collect.
  • the types of data sources on the network are becoming more and more diverse. It is necessary to create connectors for different data sources one by one and configure different data source endpoints to realize data collection. This not only gives The implementation staff has increased a lot of workload, which is not conducive to the monitoring and management of data source endpoints.
  • the embodiment of the present application provides a method for obtaining edge data, a connector and a data platform, which can automatically obtain edge data without creating a connector for each data source endpoint, and can reduce data collection efficiency while improving data collection efficiency. workload.
  • a method for acquiring edge data including: the connector acquires the communication protocol used by the terminal device; the connector establishes a connection with the terminal device by using the communication protocol; the connector establishes a connection with the data platform connection; the connector sends data format information to the data platform, and the data format information indicates the application program interface API of the connector; the connector receives the API call instruction sent by the data platform, and the API The calling instruction is used to instruct the data platform to receive data through the API; the connector sends the edge data of the terminal device to the data platform through the API.
  • the connector can realize the connection with the terminal device by obtaining the communication protocol used by the terminal device, and then connect with the data platform, so that the data platform can automatically obtain the edge data of the terminal device according to actual needs.
  • establishing the connection between the connector and the data platform includes: the connector broadcasting first indication information, where the first indication information is used to indicate that the connector has established a connection with the terminal device ;
  • the connector receives the security certificate sent by the data platform; the connector verifies the security certificate, and sends a security certificate verification pass response to the data platform; the connector receives the data platform sent session key.
  • the connector broadcasts indication information that a connection has been established with the terminal device, so that the data platform can establish a connection with the connector after sniffing the message, thereby achieving the purpose of automatically obtaining edge data.
  • the method before sending the edge data of the terminal device to the data platform through the API, the method further includes: the connector acquires the edge data from the terminal device.
  • the connector is an application running on an edge server, and obtaining the edge data from the terminal device by the connector includes: directly obtaining the edge data from the terminal device; or The edge data is acquired through an edge gateway, wherein the edge server is connected to the terminal device through the edge gateway.
  • the connector is middleware integrated inside the edge gateway, and obtaining the edge data from the terminal device by the connector includes: using the edge gateway to obtain the edge data .
  • the method further includes: the connector receiving a running status query instruction sent by the data platform, the running status query command is used to query the running status of the connector; the connecting The controller sends the running status data of the connector to the data platform.
  • the data platform can monitor the running status of the connector at any time, which improves the efficiency of connector management.
  • the method further includes: acquiring, by the connector, performance data of the terminal device, where the performance data is used to indicate the operating status of the terminal device;
  • the platform sends the performance data.
  • the connector can independently report the monitoring data of the terminal equipment, without the need for the data platform to cyclically send requests to monitor the terminal equipment, which improves the maintenance and management capabilities of the terminal equipment.
  • it can also make the operational technology (operation technology, OT) level improve the awareness of the information technology (information technology, IT) level.
  • a method for acquiring edge data comprising: establishing a connection between a data platform and a connector, where the connector is connected to a terminal device through a communication protocol used by the terminal device;
  • the data platform receives the data format information sent by the connector, the data format information indicates the application program interface API of the connector; the data platform sends an API call instruction, and the API call instruction is used to indicate the data
  • the platform receives data through the API; the data platform receives the edge data of the terminal device sent by the connector through the API.
  • the establishing a connection between the data platform and the connector includes: the data platform acquiring first indication information broadcast by the connector, where the first indication information is used to indicate that the connector has connected with The terminal device establishes a connection; the data platform sends a security certificate to the connector; receives a security certificate verification pass response sent by the connector; the data platform sends a session key to the connector.
  • the method further includes: the data platform sends an operation status query instruction to the connector, and the operation status query instruction is used to query the operation status of the connector; the data platform Receive running status data sent by the connector.
  • the method further includes: the data platform receiving performance data of the terminal device sent by the connector, where the performance data is used to indicate an operating state of the terminal device.
  • a connector for acquiring edge data includes: an acquisition module, configured to acquire a communication protocol used by a terminal device; a processing module, configured to use the communication protocol to establish an connection; establishing a connection with the data platform; a sending module, configured to send data format information to the data platform, the data format information indicating the application program interface API of the connector; the acquisition module is also used to receive the The API call instruction sent by the data platform, the API call instruction is used to instruct the data platform to receive data through the API; the sending module is also used to send the terminal device to the data platform through the API edge data.
  • the sending module is specifically configured to broadcast first indication information, where the first indication information is used to indicate that the connector has established a connection with the terminal device; the obtaining module is specifically configured to Receive the security certificate sent by the data platform; the processing module is specifically used to verify the security certificate; the sending module is specifically used to send a security certificate verification pass response to the data platform; the acquisition module is specifically used to to receive the session key sent by the data platform.
  • the acquiring module is further configured to acquire the edge data from the terminal device.
  • the connector is an application running on an edge server
  • the obtaining module is specifically configured to: obtain the terminal data directly from the terminal device; or obtain the edge data through an edge gateway , wherein the edge server is connected to the terminal device through an edge gateway.
  • the connector is middleware integrated inside the edge gateway, and the obtaining module is specifically configured to obtain the edge data through the edge gateway.
  • the acquisition module is further configured to receive an operation status query instruction sent by the data platform, the operation status query instruction is used to query the operation status of the connector; the sending module specifically uses to send the running status data of the connector to the data platform.
  • the obtaining module is also used to obtain performance data of the terminal device, the performance data is used to indicate the operating state of the terminal device; the sending module is also used to send the data to The platform sends the performance data.
  • a data platform for acquiring edge data includes: a monitoring connection module, configured to establish a connection with a connector, and the connector is a communication protocol used with a terminal device through the terminal device The connected connector; the monitoring connection module is also used to receive the data format information sent by the connector, the data format information indicates the application program interface API of the connector; the data acquisition module is used to send the API call instruction The API call instruction is used to instruct the data platform to receive data through the API; the data acquisition module is also used to receive the edge data of the terminal device sent by the connector through the API.
  • the monitoring connection module is specifically configured to obtain first indication information broadcast by the connector, where the first indication information is used to indicate that the connector has established a connection with the terminal device; Sending a security certificate to the connector; receiving a security certificate verification pass response sent by the connector; and sending a session key to the connector.
  • the data platform further includes a running status indication module; the running status indicating module is used to send a running status query instruction to the connector, and the running status query command is used to query the connection the health status of the connector; receiving health status data from the connector.
  • the running state indication module is further configured to receive performance data of the terminal device sent by the connector, where the performance data is used to indicate the running state of the terminal device.
  • a device for automatically acquiring terminal data including: a memory for storing programs; a processor for executing the programs stored in the memory, and when the programs stored in the memory are executed, the The processor is configured to execute the above method for acquiring edge data.
  • a computer-readable storage medium stores program code for execution by a device, and the program code includes instructions for executing the steps in the above-mentioned method for acquiring edge data.
  • the present application also provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer , causing the computer to execute the above-mentioned method for acquiring edge data.
  • FIG. 1 is a schematic structural diagram of a data platform provided by an embodiment of the present application.
  • Fig. 2 is a schematic flowchart of a method for acquiring edge data according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a method for a connector to acquire edge data according to an embodiment of the present application.
  • Fig. 4 is a schematic flowchart of a method for further acquiring edge data according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a connector for acquiring edge data according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a data platform for acquiring edge data according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an apparatus for acquiring edge data according to an embodiment of the present application.
  • the connector obtains the communication protocol used by the terminal device
  • the connector uses the communication protocol to establish a connection with the terminal device
  • the connector establishes a connection with the data platform
  • the connector sends data format information to the data platform, indicating the application program interface API of the connector;
  • the connector receives the API call instruction sent by the data platform
  • the connector sends the edge data of the terminal device through the API
  • edge gateway
  • processing module
  • a running status indication module
  • serial numbers of the processes do not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, rather than by the implementation order of the embodiments of the present application.
  • the implementation process constitutes no limitation.
  • FIG. 1 is a schematic structural diagram of a data platform system provided by an embodiment of the present application.
  • the data platform can analyze the data generated by various data sources.
  • the data source can be various databases, cloud or WEB.
  • the data platform can include a data layer, and the data layer provides a container for the data platform to access data, making data management more flexible.
  • the data platform needs to analyze the data of the data source, it must first obtain the data.
  • the data layer can create corresponding connectors for different types of data sources, then configure the data source endpoints, read the data, and then send it to the data platform for analysis and processing.
  • the embodiment of the present application proposes a method for obtaining edge data, which can automatically obtain edge data from edge devices, without creating connectors and configuring the endpoints for data source endpoints one by one, thereby reducing the workload of the staff. Improve the efficiency of obtaining edge data.
  • an edge device may be a device that provides an entry point to an enterprise or service provider core network.
  • edge devices include edge routers, routing switches, firewalls, multiplexers, and other wide area network (WAN) devices.
  • WAN wide area network
  • edge devices With the development of artificial intelligence and Internet of things (IoT) technology, edge devices generally have built-in processors with onboard analysis or artificial intelligence capabilities. These devices may include sensors, drivers, and IoT gateways.
  • Fig. 2 shows a method 200 for acquiring edge data according to an embodiment of the present application, and the method 200 includes at least the following steps 201-206.
  • the connector acquires the communication protocol used by the terminal device.
  • the terminal device can be various devices that generate data, including but not limited to programmable logic controller (programmable logic controller, PLC), industrial equipment (such as lathe, milling machine, grinding machine or planer, etc.), intelligent Meters (voltage, current or element measurement and analysis instruments), distributed control system (distributed control system, DCS), IoT devices (such as radio frequency identification equipment, smart home equipment, construction equipment) and other equipment.
  • programmable logic controller programmable logic controller
  • industrial equipment such as lathe, milling machine, grinding machine or planer, etc.
  • intelligent Meters voltage, current or element measurement and analysis instruments
  • distributed control system distributed control system
  • IoT devices such as radio frequency identification equipment, smart home equipment, construction equipment
  • the connector establishes communication connections with different types of terminal devices through a built-in communication protocol.
  • the communication protocol may be a protocol for realizing network communication between the data of the terminal equipment and the connector, for example, the communication protocol may include hypertext transfer protocol (hypertext transfer protocol, HTTP), internet protocol (internet protocol, IP) and transmission control Protocol (transmission control protocol, TCP), building automation control network (building automation control network, BACnet), open database connectivity (open database connectivity, ODBC) and other protocols required for network communication.
  • the connector establishes a connection with the terminal device by using the communication protocol.
  • the connector obtains the communication protocol used by the terminal device through a protocol sniffing technology, and then uses the communication protocol to connect with the terminal device, so as to obtain edge data generated by the terminal device.
  • the connector starts the automatic discovery function, specifically as follows: the connector configures the data structure for the terminal device, exposes the application program interface API, and broadcasts the first indication information.
  • the first indication information is used to indicate that the connector has been connected to the terminal device.
  • the first indication information includes an identification (identification, ID) of the connector.
  • the first indication information is a specific data packet format, such as a UDP data packet format.
  • the connector establishes a connection with the data platform.
  • the data platform establishes a connection with the connector.
  • the data platform is always in the state of sniffing specific data packet format information, and when it finds specific data packet format information, it establishes a connection with the connector that sends the information.
  • the data platform when the data platform establishes a connection with the connector, the data platform first sends its security certificate to the connector, and when the connector passes the verification of the security certificate, it returns a verification pass response to the data platform; the data platform sends the connector a Send the connector ID, session key and other information to inform the connector that the registration is successful, that is, the connection between the data platform and the connector is successful.
  • the connector sends data format information to the data platform, where the data format information indicates the application program interface API of the connector.
  • the data platform receives the data format information sent by the connector.
  • the data format information also includes related information such as data structure and authentication, so that the data platform can record and use the basic information of the connector.
  • the connector receives an API call instruction sent by the data platform, where the API call instruction is used to instruct the data platform to receive data from the receiver through the API.
  • the data platform sends the API calling instruction to the receiver.
  • the receiver after receiving the calling instruction, acquires edge data from the terminal device.
  • the connector creates a channel for this data transfer and prepares to receive edge data in streaming format.
  • the connector sends the edge data of the terminal device to the data platform through the API.
  • the data platform receives the edge data of the terminal device through this API.
  • the data platform After the data platform finishes receiving the data, it sends a data receiving completion command to the connector, which is used to indicate that the data has been received.
  • the link closes the channel according to the instruction.
  • the data platform can query the running status of the connector by sending a running status command to the connector, and the connector returns its running status data to the data platform, such as http status code : 301moved permanently (permanently removed), 400bad request (bad request), 403Forbidden (forbidden), etc.
  • the specific running status data is determined by the communication protocol used by the connector.
  • the data platform can monitor the running status of the connector at any time, which improves the efficiency of connector management.
  • the connector can actively obtain the performance data of the terminal equipment, such as whether it is working normally, etc., and report the performance data to the data platform, so that the data platform can monitor the terminal The operating state of the device.
  • the connector can independently report the monitoring data of the terminal equipment, without the need for the data platform to cyclically send requests to monitor the terminal equipment, which improves the maintenance and management capabilities of the terminal equipment.
  • FIG. 3 is a schematic diagram of a method for a connector to acquire edge data.
  • the connector when the connector is a single application running on the edge server, it can directly obtain edge data from the terminal device.
  • the connector when the connector is a single application running on the edge server, it can obtain edge data through the edge gateway, where the edge server is connected to the terminal device through the edge gateway.
  • the connector serves as middleware integrated inside the edge gateway, and the edge gateway may be used to obtain edge data from the terminal device when acquiring edge data.
  • the connector acquires the communication protocol used by the terminal device, and uses the communication protocol to establish a connection with the terminal device.
  • the connector obtains the communication protocol used by the terminal device through a protocol sniffing technology, and then uses the communication protocol to connect with the terminal device, so as to obtain edge data generated by the terminal device.
  • the connector starts the automatic discovery function.
  • the connector configures a data structure for the terminal device, exposes an application program interface API, and broadcasts first indication information, where the first indication information is used to indicate that the connector has established a connection with the terminal device.
  • the first indication information includes an identification (identification, ID) of the connector.
  • the first indication information is a specific data packet format, such as a UDP data packet format.
  • the data platform establishes a connection with the connector.
  • the data platform is always in a state of sniffing information about a specific data packet format, and it should be understood that this state may occur before step 401 or step 402 .
  • a connection is established with the connector that sent the information.
  • the data platform automatically sniffs information in the UDP data packet format, and establishes a connection with the connector when the first indication information broadcast by the connector is in the UDP data packet format.
  • the process of establishing a connection between the data platform and the connector includes at least the following steps 404-407.
  • the data platform sends the security certificate of the data platform to the connector.
  • the connector receives the security certificate of the data platform sent by the data platform.
  • the connector verifies the security certificate.
  • the connector sends a verification pass response to the data platform.
  • the data platform receives the verification pass response sent by the connector.
  • the data platform sends the registered connector ID and session key to the connector.
  • the connector receives the registered connector ID and session key sent by the data platform.
  • the data platform sends the connector ID to the connector so that the connector can confirm that it has registered with the data platform and has established a connection with the data platform.
  • the connector sends data format information to the data platform.
  • the data platform receives the data format information sent by the connector.
  • the data platform records the basic information of the connector.
  • the data platform sends an API call instruction to the connector.
  • the connector receives the API call instruction sent by the data platform.
  • the data platform queries and obtains data based on the data interaction type of the connector, where the data interaction type can be, for example, advanced message queuing protocol (advanced message queuing protocol, AMQP), message queuing telemetry transport (message queuing telemetry transport) , MQTT) and representational state transfer (representational state transfer, REST), etc.
  • advanced message queuing protocol advanced message queuing protocol, AMQP
  • message queuing telemetry transport messages queuing telemetry transport
  • MQTT representational state transfer
  • REST representational state transfer
  • the connector acquires edge data from the terminal device.
  • the connector sends the edge data of the terminal device to the data platform through the API.
  • the data platform receives the edge data of the terminal device sent by the connector through the API.
  • the method 400 may also include the following steps 413-416 to obtain the running status of the connector and the terminal device.
  • the data platform sends an operation status query instruction to the connector.
  • the connector receives the running status query instruction sent by the data platform.
  • the connector returns the running status data of the connector to the data platform.
  • the data platform receives the running status data of the connector sent by the connector.
  • the connector acquires performance data of the terminal device.
  • the connector reports the performance data of the terminal device to the data platform.
  • the data platform receives the performance data of the terminal device reported by the connector.
  • FIG. 5 shows a schematic block diagram of a connector 500 for acquiring edge data according to an embodiment of the present application.
  • the connector 500 can execute the methods 200 and 400 for acquiring edge data in the above embodiments of the present application.
  • this connector includes:
  • An acquisition module 510 configured to acquire a communication protocol used by the terminal device
  • a processing module 520 configured to establish a connection with the terminal device using the communication protocol; establish a connection with the data platform;
  • a sending module 530 configured to send data format information to the data platform, where the data format information indicates the application program interface API of the connector;
  • the acquisition module 510 is further configured to receive an API call instruction sent by the data platform, where the API call instruction is used to instruct the data platform to receive data through the API;
  • the sending module 530 is further configured to send the edge data of the terminal device to the data platform through the API.
  • the sending module 530 is specifically configured to broadcast first indication information, where the first indication information is used to indicate that the connector has established a connection with the terminal device; the The acquisition module 510 is specifically used to receive the security certificate sent by the data platform; the processing module 520 is specifically used to verify the security certificate; the sending module 530 is specifically used to send the security certificate verification pass to the data platform. Response; the obtaining module 510 is specifically configured to receive the session key sent by the data platform.
  • the acquiring module 510 is further configured to acquire the edge data from the terminal device.
  • the connector is an application program running on the edge server, and the obtaining module 510 is specifically configured to: obtain the terminal data directly from the terminal device; or through an edge gateway The edge data is acquired, wherein the edge server is connected to the terminal device through an edge gateway.
  • the connector is a middleware integrated inside the edge gateway, and the obtaining module 510 is specifically configured to obtain the edge data through the edge gateway.
  • the acquisition module 510 is also configured to receive an operation status query instruction sent by the data platform, and the operation status query instruction is used to query the operation status of the connector;
  • the sending module 530 is specifically configured to send the running status data of the connector to the data platform.
  • the obtaining module 510 is further configured to obtain performance data of the terminal device, and the performance data is used to indicate the operating status of the terminal device; the sending module 530 is also configured to It is used to send the performance data to the data platform.
  • FIG. 6 shows a schematic block diagram of a data platform 600 for acquiring edge data according to an embodiment of the present application.
  • the data platform 600 can execute the methods 200 and 400 for acquiring edge data in the above embodiments of the present application.
  • the data platform includes:
  • the monitoring connection module 610 is configured to establish a connection with a connector, the connector is a connector connected to the terminal device through the communication protocol used by the terminal device; receive data format information sent by the connector, the data format information indicating the API of said connector;
  • the data acquisition module 620 is configured to send an API call instruction, the API call instruction is used to instruct the data platform to receive data through the API; receive the edge data of the terminal device sent by the connector through the API.
  • monitoring connection module 610 may be called an auto-discovery connector watcher.
  • the data acquisition module may be referred to as an edge connector adapter. This application does not limit the specific name of the module.
  • the monitoring connection module 610 is specifically configured to obtain first indication information broadcast by the connector, and the first indication information is used to indicate that the connector has connected with the The terminal device establishes a connection; sends a security certificate to the connector; receives a security certificate verification pass response sent by the connector; and sends a session key to the connector.
  • the data platform further includes a running status indication module 630; the running status indicating module 630 is configured to send a running status query command to the connector, and the running status query command Used to query the running status of the connector; receive the running status data sent by the connector.
  • running status indicating module may also be called a data source running status indicator (data source health indicator). This application does not limit the specific name of the module.
  • the operation state indication module 630 is further configured to receive performance data of the terminal device sent by the connector, the performance data is used to indicate the operation status of the terminal device state.
  • the method for establishing a connection with the connector and obtaining data on the above data platform can be summarized as a data platform integration protocol in the embodiment of the present application.
  • the data platform establishes a communication connection with the connector through the built-in data platform integration protocol, and performs operations such as obtaining edge data.
  • the data platform integration protocol is a communication standard that the connector needs to follow when establishing a connection with the data platform.
  • the data platform integration protocol can be determined according to the user manual of the connector.
  • the data platform integration protocol is built into the data platform.
  • the data platform integration protocol can refer to Table 1 below.
  • FIG. 7 is a schematic diagram of a hardware structure of an apparatus for acquiring edge data according to an embodiment of the present application.
  • the device type identification apparatus 700 shown in FIG. 7 includes a memory 701 , a processor 702 , a communication interface 703 and a bus 704 .
  • the memory 701 , the processor 702 , and the communication interface 703 are connected to each other through a bus 704 .
  • the memory 701 may be a read-only memory (read-only memory, ROM), a static storage device and a random access memory (random access memory, RAM).
  • the memory 701 may store a program. When the program stored in the memory 701 is executed by the processor 702, the processor 702 and the communication interface 703 are used to execute each step of the method for acquiring edge data according to the embodiment of the present application.
  • the processor 702 may be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, an application specific integrated circuit (application specific integrated circuit, ASIC), a graphics processing unit (graphics processing unit, GPU) or one or more
  • the integrated circuit is used to execute related programs to realize the functions required by the units in the device type identification device according to the embodiment of the present application, or to execute the method for acquiring edge data according to the embodiment of the present application.
  • the processor 702 may also be an integrated circuit chip, which has a signal processing capability. During implementation, each step of the method for acquiring edge data in the embodiment of the present application may be completed by an integrated logic circuit of hardware in the processor 702 or instructions in the form of software.
  • processor 702 can also be general-purpose processor, digital signal processor (digital signal processing, DSP), ASIC, off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic device, discrete gate or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC off-the-shelf programmable gate array
  • FPGA field programmable gate array
  • Various methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the steps of the methods disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register.
  • the storage medium is located in the memory 701, and the processor 702 reads the information in the memory 701, and combines its hardware to complete the functions required by the units included in the device type identification device of the embodiment of the present application, or execute the acquisition of the embodiment of the present application A method for edge data.
  • the communication interface 703 implements communication between the apparatus 700 and other devices or communication networks by using a transceiver device such as but not limited to a transceiver. For example, traffic data of an unknown device may be acquired through the communication interface 703 .
  • the bus 704 may include pathways for transferring information between various components of the device 700 (eg, memory 701 , processor 702 , communication interface 703 ).
  • the device 700 may also include other devices necessary for normal operation.
  • the apparatus 700 may also include hardware devices for implementing other additional functions.
  • the device 700 may also only include the components necessary to realize the embodiment of the present application, and does not necessarily include all the components shown in FIG. 7 .
  • the embodiment of the present application also provides a computer-readable storage medium, which stores program codes for device execution, where the program codes include instructions for executing the steps in the above-mentioned method for acquiring edge data.
  • the embodiment of the present application also provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by the computer, the The computer executes the above-mentioned method for acquiring edge data.
  • the above-mentioned computer-readable storage medium may be a transitory computer-readable storage medium, or a non-transitory computer-readable storage medium.
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the aspects, implementations, implementations or features of the described embodiments can be used alone or in any combination. Aspects of the described embodiments can be implemented by software, hardware or a combination of hardware and software.
  • the described embodiments may also be embodied by a computer-readable medium storing computer-readable code comprising instructions executable by at least one computing device.
  • the computer readable medium can be associated with any data storage device that can store data that can be read by a computer system. Exemplary computer-readable media may include read-only memory, random-access memory, Compact Disc Read-Only Memory (CD-ROM), hard disk drive (Hard Disk Drive, HDD), digital Video disc (Digital Video Disc, DVD), magnetic tape and optical data storage device, etc.
  • the computer readable medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

一种获取边缘数据的方法,连接器和数据平台,能够使得数据平台可以根据实际需求自动获取终端设备的边缘数据,还可以减轻工作人员的工作量。该方法包括:连接器获取终端设备使用的通信协议;所述连接器利用所述通信协议与所述终端设备建立连接;所述连接器与数据平台建立连接;所述连接器向所述数据平台发送数据格式信息,所述数据格式信息指示所述连接器的应用程序接口API;所述连接器接收所述数据平台发送的API调用指令,所述API调用指令用于指示所述数据平台通过所述API接收数据;所述连接器通过所述API向所述数据平台发送所述终端设备的边缘数据。

Description

一种获取边缘数据的方法、连接器及数据平台 技术领域
本申请涉及数据管理技术领域,并且更具体地,涉及一种获取边缘数据的方法、连接器和数据平台。
背景技术
数据平台可集成各类数据源,当数据平台收集各种数据源的数据时,一般采用数据平台上的连接器进行收集。随着网络资源的爆炸式增长,网络上数据源的种类越来越多样化,需要为不同的数据源一一创建连接器,并对不同的数据源端点进行配置才能实现数据收集,这不仅给实施人员增加了不少的工作量,还不利于对数据源端点的监控与管理。
因此,如何在提高数据收集效率的同时减少工作量,是一项亟待解决的技术问题。
发明内容
本申请实施例提供了一种获取边缘数据的方法、连接器和数据平台,可以自动获取边缘数据,不需要为每个数据源端点创建连接器,在实现提高数据收集效率的同时,还能减少工作量。
第一方面,提供一种获取边缘数据的方法,包括:连接器获取终端设备使用的通信协议;所述连接器利用所述通信协议与所述终端设备建立连接;所述连接器与数据平台建立连接;所述连接器向所述数据平台发送数据格式信息,所述数据格式信息指示所述连接器的应用程序接口API;所述连接器接收所述数据平台发送的API调用指令,所述API调用指令用于指示所述数据平台通过所述API接收数据;所述连接器通过所述API向所述数据平台发送所述终端设备的边缘数据。
上述技术方案,连接器可以通过获取终端设备使用的通信协议实现与终端设备的连接,然后再与数据平台连接,使得数据平台可以根据实际需求自动获取终端设备的边缘数据。另外,通过该方案,不需要为终端设备一一创 建连接器,也不需要对终端设备进行一一配置,不仅有利于为工作人员减轻工作量,而且对底层终端设备的配置要求降低,普适性更高。
在一些可能的实现方式中,所述连接器与数据平台建立连接包括:所述连接器广播第一指示信息,所述第一指示信息用于指示所述连接器已与所述终端设备建立连接;所述连接器接收所述数据平台发送的安全证书;所述连接器对所述安全证书进行验证,并向所述数据平台发送安全证书验证通过响应;所述连接器接收所述数据平台发送的会话密钥。
通过该实现方式,连接器广播已与终端设备建立连接的指示信息,以便数据平台嗅探到该消息后与该连接器建立连接,从而实现自动获取边缘数据的目的。
在一些可能的实现方式中,在通过所述API向所述数据平台发送所述终端设备的边缘数据之前,所述方法还包括:所述连接器从所述终端设备获取所述边缘数据。
在一些可能的实现方式中,所述连接器为运行在边缘服务器的应用程序,所述连接器从所述终端设备获取所述边缘数据包括:直接从所述终端设备获取所述边缘数据;或经过边缘网关获取所述边缘数据,其中,所述边缘服务器通过边缘网关与所述终端设备连接。
在一些可能的实现方式中,所述连接器为集成在所述边缘网关内部的中间件,所述连接器从所述终端设备获取所述边缘数据包括:利用所述边缘网关获取所述边缘数据。
在一些可能的实现方式中,所述方法还包括:所述连接器接收所述数据平台发送的运行状态查询指令,所述运行状态查询指令用于查询所述连接器的运行状态;所述连接器向所述数据平台发送所述连接器的运行状态数据。
通过该实现方式,数据平台可以随时监控连接器的运行状态,提高了随连接器管理的效率。
在一些可能的实现方式中,所述方法还包括:所述连接器获取所述终端设备的性能数据,所述性能数据用于指示所述终端设备的运行状态;所述连接器向所述数据平台发送所述性能数据。
通过该实现方式,连接器可以自主上报对终端设备的监控数据,无需数据平台循环发送请求对终端设备进行监控,提高了对终端设备的维护与管理能力。此外,还可以使得运营技术(operation technology,OT)层面提高对 信息技术(information technology,IT)层面的感知能力。
第二方面,提供了一种获取边缘数据的方法,所述方法包括:数据平台与连接器建立连接,所述连接器为与终端设备通过所述终端设备使用的通信协议连接的连接器;所述数据平台接收所述连接器发送的数据格式信息,所述数据格式信息指示所述连接器的应用程序接口API;所述数据平台发送API调用指令,所述API调用指令用于指示所述数据平台通过所述API接收数据;所述数据平台通过所述API接收所述连接器发送的所述终端设备的边缘数据。
在一些可能的实现方式中,所述数据平台与连接器建立连接包括:所述数据平台获取所述连接器广播的第一指示信息,所述第一指示信息用于指示所述连接器已与所述终端设备建立连接;所述数据平台向所述连接器发送安全证书;接收所述连接器发送的安全证书验证通过响应;所述数据平台向所述连接器发送会话密钥。
在一些可能的实现方式中,所述方法还包括:所述数据平台向所述连接器发送运行状态查询指令,所述运行状态查询指令用于查询所述连接器的运行状态;所述数据平台接收所述连接器发送的运行状态数据。
在一些可能的实现方式中,所述方法还包括:所述数据平台接收所述连接器发送的所述终端设备的性能数据,所述性能数据用于指示所述终端设备的运行状态。
第三方面,提供了一种获取边缘数据的连接器,所述连接器包括:获取模块,用于获取终端设备使用的通信协议;处理模块,用于利用所述通信协议与所述终端设备建立连接;与数据平台建立连接;发送模块,用于向所述数据平台发送数据格式信息,所述数据格式信息指示所述连接器的应用程序接口API;所述获取模块还用于,接收所述数据平台发送的API调用指令,所述API调用指令用于指示所述数据平台通过所述API接收数据;所述发送模块还用于,通过所述API向所述数据平台发送所述终端设备的边缘数据。
在一些可能的实现方式中,所述发送模块具体用于广播第一指示信息,所述第一指示信息用于指示所述连接器已与所述终端设备建立连接;所述获取模块具体用于接收所述数据平台发送的安全证书;所述处理模块具体用于对所述安全证书进行验证;所述发送模块具体用于向所述数据平台发送安全证书验证通过响应;所述获取模块具体用于接收所述数据平台发送的会话密钥。
在一些可能的实现方式中,所述获取模块还用于从所述终端设备获取所述边缘数据。
在一些可能的实现方式中,所述连接器为运行在边缘服务器的应用程序,所述获取模块具体用于:直接从所述终端设备获取所述终端数据;或通过边缘网关获取所述边缘数据,其中,所述边缘服务器通过边缘网关与所述终端设备连接。
在一些可能的实现方式中,所述连接器为集成在所述边缘网关内部的中间件,所述获取模块具体用于通过所述边缘网关获取所述边缘数据。
在一些可能的实现方式中,所述获取模块还用于接收所述数据平台发送的运行状态查询指令,所述运行状态查询指令用于查询所述连接器的运行状态;所述发送模块具体用于向所述数据平台发送所述连接器的运行状态数据。
在一些可能的实现方式中,所述获取模块还用于获取所述终端设备的性能数据,所述性能数据用于指示所述终端设备的运行状态;所述发送模块还用于向所述数据平台发送所述性能数据。
第四方面,提供了一种获取边缘数据的数据平台,所述数据平台包括:监控连接模块,用于与连接器建立连接,所述连接器为与终端设备通过所述终端设备使用的通信协议连接的连接器;所述监控连接模块还用于接收所述连接器发送的数据格式信息,所述数据格式信息指示所述连接器的应用程序接口API;数据获取模块,用于发送API调用指令,所述API调用指令用于指示所述数据平台通过所述API接收数据;所述数据获取模块还用于通过所述API接收所述连接器发送的所述终端设备的边缘数据。
在一些可能的实现方式中,所述监控连接模块具体用于获取所述连接器广播的第一指示信息,所述第一指示信息用于指示所述连接器已与所述终端设备建立连接;向所述连接器发送安全证书;接收所述连接器发送的安全证书验证通过响应;向所述连接器发送的会话密钥。
在一些可能的实现方式中,所述数据平台还包括运行状态指示模块;所述运行状态指示模块用于向所述连接器发送运行状态查询指令,所述运行状态查询指令用于查询所述连接器的运行状态;接收来自所述连接器的运行状态数据。
在一些可能的实现方式中,所述运行状态指示模块还用于接收所述连接器发送的所述终端设备的性能数据,所述性能数据用于指示所述终端设备的 运行状态。
第五方面,提供了一种自动获取终端数据的装置,包括:存储器,用于存储程序;处理器,用于执行所述存储器存储的程序,当所述存储器存储的程序被执行时,所述处理器用于执行上述获取边缘数据的方法。
第六方面,提供了一种计算机可读存储介质,所述计算机可读介质存储用于设备执行的程序代码,所述程序代码包括用于执行上述获取边缘数据的方法中的步骤的指令。
第七方面,本申请还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述的获取边缘数据的方法。
附图说明
图1是本申请实施例提供的一种数据平台的结构示意图。
图2是本申请实施例的获取边缘数据方法的示意性流程图。
图3是本申请实施例的连接器获取边缘数据的方法的结构示意图。
图4是本申请实施例的进一步获取边缘数据方法的示意性流程图。
图5是本申请实施例的获取边缘数据的连接器的结构示意图。
图6是本申请实施例的获取边缘数据的数据平台的结构示意图。
图7是本申请实施例的获取边缘数据的装置的结构示意图。
附图标记列表:
110,数据平台;
111,连接器1;
112,连接器2;
113,连接器3;
120,数据源;
121,数据库;
122,云端;
123,WEB;
DP,数据平台;
C,连接器;
TD,终端设备;
201,连接器获取终端设备使用的通信协议;
202,连接器利用该通信协议与终端设备建立连接;
203,连接器与数据平台建立连接;
204,连接器向数据平台发送数据格式信息,指示连接器的应用程序接口API;
205,连接器接收数据平台发送的API调用指令;
206,连接器通过API发送终端设备的边缘数据;
301,数据平台;
302,连接器;
303,边缘网关;
304,终端设备;
401-416,方法400的步骤;
500,连接器;
510,获取模块;
520,处理模块;
530,发送模块;
600,数据平台;
610,监控连接模块;
620,数据获取模块;
630,运行状态指示模块;
700,装置;
701,存储器;
702,处理器;
703,通信接口;
704,总线。
具体实施方式
下面将结合附图,对本申请实施例中的技术方案进行描述。应理解,本说明书中的具体的例子只是为了帮助本领域技术人员更好地理解本申请实施 例,而非限制本申请实施例的范围。
应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
还应理解,本说明书中描述的各种实施方式,既可以单独实施,也可以组合实施,本申请实施例对此不作限定。
除非另有说明,本申请实施例所使用的所有技术和科学术语与本申请的技术领域的技术人员通常理解的含义相同。本申请中所使用的术语只是为了描述具体的实施例的目的,不是旨在限制本申请的范围。
图1是本申请实施例提供的一种数据平台系统的结构示意图。数据平台可以对多种数据源产生的数据进行分析,例如,数据源可以为各种数据库、云端或WEB。数据平台可以包括数据层,数据层为数据平台提供存取数据的容器,使数据的管理更加灵活。如图1所示,当数据平台需要对数据源的数据进行分析时,首先得获取数据。此时,数据层可以为不同种类的数据源创建对应的连接器,然后对数据源端点进行配置再进行数据的读取,再传送至数据平台进行分析处理。
随着网络资源的爆炸式增长,数据源的种类越来越多样化,对于图1这样的数据平台,在获取各个数据源的数据进行分析时,需要为不同的数据源一一创建连接器,并对不同的数据源端点进行配置才能实现数据收集,这不仅给实施人员增加了不少的工作量,还不利于数据平台对数据源端点的监控与管理。
鉴于此,本申请实施例提出了一种获取边缘数据的方法,可以自动从边缘设备获取边缘数据,无需为数据源端点一一创建连接器以及配置该端点,从而减少了工作人员的工作量,提高了获取边缘数据的效率。
其中,边缘设备可以是向企业或服务提供商核心网络提供入口点的设备。例如,边缘设备包括边缘路由器、路由交换机、防火墙、多路复用器和其他广域网(WAN)设备。随着人工智能和物联网(internet of things,IoT)技术的发展,边缘设备一般还有内置的处理器,具有板载分析或人工智能能力,这些设备可能包括传感器、驱动器和物联网网关等。
图2示出了本申请实施例的获取边缘数据的方法200,方法200至少包括以下步骤201-206。
201,连接器获取终端设备使用的通信协议。
在本申请实施例中,终端设备可以是产生数据的各种设备,包括并不限于可编程逻辑控制器(programmable logic controller,PLC)、工业设备(如车床、铣床、磨床或者刨床等)、智能仪表(电压、电流或者元素测量分析仪器)、分散控制系统(distributed control system,DCS)、IoT设备(例如,射频识别设备、智能家居设备、建筑设备)以及其他设备等。
在本申请的实施例中,连接器通过内置的通信协议与不同种类的终端设备建立通信连接。其中通信协议可以是实现终端设备的数据与连接器进行网络通信的协议,例如,通信协议可以包括超文本传输协议(hypertext transfer protocol,HTTP),网际互连协议(internet protocol,IP)以及传输控制协议(transmission control protocol,TCP)、建筑自动化控制网络(building automation control network,BACnet)、开放数据库连接(open database connectivity,ODBC)等网络通信所需协议。
202,连接器利用该通信协议与终端设备建立连接。
在一种实现方式中,连接器通过协议嗅探技术获取终端设备使用的通信协议,然后利用该通信协议与终端设备连接,以便获取终端设备产生的边缘数据。
在一种实现方式中,连接器与终端设备连接成功后,连接器便启动自动发现功能,具体表现为:连接器为终端设备配置数据结构,暴露应用程序接口API,广播第一指示信息,该第一指示信息用于指示连接器已经与终端设备连接。
在一种实现方式中,第一指示信息包括连接器的身份标识(identification,ID)。
在一种实现方式中,第一指示信息为特定的数据包格式,例如UDP数据包格式。
203,连接器与数据平台建立连接。相应地,数据平台与连接器建立连接。
在本申请的实施例中,数据平台一直处于嗅探特定数据包格式信息的状态,当发现有特定的数据包格式信息,便与发送该信息的连接器建立连接。
一种实现方式中,数据平台与连接器建立连接时,首先数据平台向连接器发送其安全证书,当连接器对该安全证书验证通过后,向数据平台返回验证通过响应;数据平台向连接器发送连接器的ID、会话密钥等信息,以便告 知连接器注册成功,即数据平台与连接器连接成功。
204,连接器向数据平台发送数据格式信息,该数据格式信息指示所述连接器的应用程序接口API。相应地,数据平台接收连接器发送的该数据格式信息。
在一种实现方式中,数据格式信息还包括数据结构、认证等相关信息,以便数据平台对该连接器的基本信息进行记录与使用。
205,连接器接收数据平台发送的API调用指令,该API调用指令用于指示数据平台通过该API从接收器接收数据。相应地,连接器在接收数据平台发送的API调用指令前,数据平台向接收器发送该API调用指令。
在一种实现方式中,接收器接收到该调用指令后,便从终端设备获取边缘数据。可选地,连接器为该次数据传输创建信道,并准备以数据流格式接收边缘数据。
206,连接器通过该API向数据平台发送终端设备的边缘数据。相应地,数据平台通过该API接收终端设备的边缘数据。
在一种实现方式中,当数据平台接收完数据后,向连接器发送数据接收完成指令,用于指示数据已经完成接收。连接器根据该指令,关闭信道。
作为一种可选的实施方式,在本申请的实施例中,数据平台可以通过向连接器发送运行状态指令查询连接器的运行状态,连接器向数据平台返回其运行状态数据,例如http状态码:301moved permanently(永久移除)、400bad request(坏请求)、403Forbidden(禁止)等,具体的运行状态数据由连接器使用的通信协议决定。
通过该实施方式,数据平台可以随时监控连接器的运行状态,提高了对连接器管理的效率。
作为另一种可选的实施方式,在本申请的实施例中,连接器可以主动获取终端设备的性能数据,例如是否正常工作等,并将该性能数据报告至数据平台,以便数据平台监控终端设备的运行状态。
通过该实施方式,连接器可以自主上报对终端设备的监控数据,无需数据平台循环发送请求对终端设备进行监控,提高了对终端设备的维护与管理能力。
作为示例,图3为连接器获取边缘数据的方法的示意图。
在一种实现方式中,连接器作为运行在边缘服务器中的单个应用程序时, 可以直接从终端设备获取边缘数据。
在一种实现方式中,连接器作为运行在边缘服务器中的单个应用程序时,可以通过边缘网关获取边缘数据,其中边缘服务器通过边缘网关与终端设备连接。
在一种实现方式中,连接器作为集成在边缘网关内部的中间件,在获取边缘数据时可以利用边缘网关从终端设备获取边缘数据。
为了更加清楚的理解本申请实施例的获取边缘数据的方法200,以下结合图4描述本申请中可能的获取边缘数据的方法400。
401,连接器获取终端设备使用的通信协议,利用所述通信协议与所述终端设备建立连接。
示例性的,连接器通过协议嗅探技术获取终端设备使用的通信协议,然后利用该通信协议与终端设备连接,以便获取终端设备产生的边缘数据。
402,连接器启动自动发现功能。
具体地,连接器为终端设备配置数据结构,暴露应用程序接口API,广播第一指示信息,该第一指示信息用于指示连接器已经与终端设备建立连接。第一指示信息包括连接器的身份标识(identification,ID)。第一指示信息为特定的数据包格式,例如UDP数据包格式。
403,数据平台与连接器建立连接。
具体地,数据平台一直处于嗅探特定数据包格式信息的状态,应理解,该状态可以发生在401步骤或402步骤之前。当发现有特定的数据包格式信息,与发送该信息的连接器建立连接。例如,数据平台自动嗅探UDP数据包格式的信息,当连接器广播的第一指示信息为UDP数据包格式,则与该连接器建立连接。数据平台与连接器建立连接的过程至少包括以下步骤404-407。
404,数据平台向连接器发送数据平台的安全证书。相应地,连接器接收数据平台发送的数据平台的安全证书。
405,连接器对安全证书进行验证。
406,当安全证书验证通过后,连接器向数据平台发送验证通过响应。相应地,数据平台接收连接器发送的验证通过响应。
407,数据平台向连接器发送注册好的连接器ID和会话密钥。相应地,连接器接收数据平台发送的注册好的连接器ID和会话密钥。
应理解,数据平台向连接器发送连接器ID是为了便于连接器确认自身在 数据平台注册完成,并已经与数据平台建立连接。
408,连接器向数据平台发送数据格式信息。相应地,数据平台接收连接器发送的数据格式信息。
409,数据平台记录连接器的基本信息。
410,数据平台向连接器发送API调用指令。相应地,连接器接收数据平台发送的API调用指令。
一种可能的实现方式,数据平台基于连接器的数据交互类型查询并获取数据,其中数据交互类型例如可以是高级消息队列协议(advanced message queuing protocol,AMQP)、消息队列遥测传输(message queuing telemetry transport,MQTT)以及表述性状态传递(representational state transfer,REST)等。
411,连接器从终端设备获取边缘数据。
412,连接器通过API向数据平台发送终端设备的边缘数据。相应地,数据平台通过API接收连接器发送的终端设备的边缘数据。
作为一种可选的实施方式,方法400还可以包括以下步骤413-416,以获取连接器与终端设备的运行状态。
413,数据平台向连接器发送运行状态查询指令。相应地,连接器接收数据平台发送的运行状态查询指令。
414,连接器向数据平台返回连接器的运行状态数据。相应地,数据平台接收连接器发送的连接器的运行状态数据。
415,连接器获取终端设备的性能数据。
416,连接器向数据平台报告终端设备的性能数据。相应地,数据平台接收连接器报告的终端设备的性能数据。
图5示出了本申请实施例的获取边缘数据的连接器500的示意性框图。该连接器500可以执行上述本申请实施例的获取边缘数据的方法200和400。
如图5所示,该连接器包括:
获取模块510,用于获取终端设备使用的通信协议;
处理模块520,用于利用所述通信协议与所述终端设备建立连接;与数据平台建立连接;
发送模块530,用于向所述数据平台发送数据格式信息,所述数据格式信息指示所述连接器的应用程序接口API;
所述获取模块510还用于,接收所述数据平台发送的API调用指令,所述API调用指令用于指示所述数据平台通过所述API接收数据;
所述发送模块530还用于,通过所述API向所述数据平台发送所述终端设备的边缘数据。
可选地,在本申请一个实施例中,所述发送模块530具体用于广播第一指示信息,所述第一指示信息用于指示所述连接器已与所述终端设备建立连接;所述获取模块510具体用于接收所述数据平台发送的安全证书;所述处理模块520具体用于对所述安全证书进行验证;所述发送模块530具体用于向所述数据平台发送安全证书验证通过响应;所述获取模块510具体用于接收所述数据平台发送的会话密钥。
可选地,在本申请一个实施例中,所述获取模块510还用于从所述终端设备获取所述边缘数据。
可选地,在本申请一个实施例中,所述连接器为运行在边缘服务器的应用程序,所述获取模块510具体用于:直接从所述终端设备获取所述终端数据;或通过边缘网关获取所述边缘数据,其中,所述边缘服务器通过边缘网关与所述终端设备连接。
可选地,在本申请一个实施例中,所述连接器为集成在所述边缘网关内部的中间件,所述获取模块510具体用于通过所述边缘网关获取所述边缘数据。
可选地,在本申请一个实施例中,所述获取模块510还用于接收所述数据平台发送的运行状态查询指令,所述运行状态查询指令用于查询所述连接器的运行状态;所述发送模块530具体用于向所述数据平台发送所述连接器的运行状态数据。
可选地,在本申请一个实施例中,所述获取模块510还用于获取所述终端设备的性能数据,所述性能数据用于指示所述终端设备的运行状态;所述发送模块530还用于向所述数据平台发送所述性能数据。
图6示出了本申请实施例的获取边缘数据的数据平台600的示意性框图。该数据平台600可以执行上述本申请实施例的获取边缘数据的方法200和400。
如图6所示,该数据平台包括:
监控连接模块610,用于与连接器建立连接,所述连接器为与终端设备通过所述终端设备使用的通信协议连接的连接器;接收所述连接器发送的数 据格式信息,所述数据格式信息指示所述连接器的API;
数据获取模块620,用于发送API调用指令,所述API调用指令用于指示所述数据平台通过所述API接收数据;通过所述API接收所述连接器发送的所述终端设备的边缘数据。
应理解,监控连接模块610可以称为自动发现连接器观察器(auto-discovery connector watcher)。数据获取模块可以称为边缘连接器适配器(edge connector adapter)。本申请对模块的具体名称不做限定。
可选地,在本申请一个实施例中,所述监控连接模块610具体用于获取所述连接器广播的第一指示信息,所述第一指示信息用于指示所述连接器已与所述终端设备建立连接;向所述连接器发送安全证书;接收所述连接器发送的安全证书验证通过响应;向所述连接器发送会话密钥。
可选地,在本申请一个实施例中,所述数据平台还包括运行状态指示模块630;所述运行状态指示模块630用于向所述连接器发送运行状态查询指令,所述运行状态查询指令用于查询所述连接器的运行状态;接收所述连接器发送的运行状态数据。
应理解,运行状态指示模块也可以称为数据源运行状态指示器(data source health indicator)。本申请对该模块的具体名称不做限定。
可选地,在本申请一个实施例中,所述运行状态指示模块630还用于接收所述连接器发送的所述终端设备的性能数据,所述性能数据用于指示所述终端设备的运行状态。
需要说明的是,在上述数据平台与连接器建立连接并获取数据的方法可以归纳成为本申请实施例的一种数据平台集成协议。其中,数据平台通过内置的该数据平台集成协议与连接器建立通信连接,并进行获取边缘数据等操作。其中,数据平台集成协议是连接器与数据平台建立连接时需要遵循的通信标准。数据平台集成协议可以根据连接器的使用说明书确定。数据平台集成协议内置于数据平台中。
作为一种可选的实施方式,该数据平台集成协议可参考下表1。
表1
Figure PCTCN2021119979-appb-000001
Figure PCTCN2021119979-appb-000002
图7是本申请实施例的获取边缘数据的装置的硬件结构示意图。图7所示的设备类型识别的装置700包括存储器701、处理器702、通信接口703以及总线704。其中,存储器701、处理器702、通信接口703通过总线704实现彼此之间的通信连接。
存储器701可以是只读存储器(read-only memory,ROM),静态存储设备和随机存取存储器(random access memory,RAM)。存储器701可以存储程序,当存储器701中存储的程序被处理器702执行时,处理器702和通信接口703用于执行本申请实施例的获取边缘数据的方法的各个步骤。
处理器702可以采用通用的中央处理器(central processing unit,CPU),微处理器,应用专用集成电路(application specific integrated circuit,ASIC),图形处理器(graphics processing unit,GPU)或者一个或多个集成电路,用于执行相关程序,以实现本申请实施例的设备类型识别的装置中的单元所需执行的功能,或者执行本申请实施例的获取边缘数据的方法。
处理器702还可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,本申请实施例的获取边缘数据的方法的各个步骤可以通过处理器702中的硬件的集成逻辑电路或者软件形式的指令完成。
上述处理器702还可以是通用处理器、数字信号处理器(digital signal processing,DSP)、ASIC、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器701,处理器702读取存储器701中的信息,结合其硬件完成本申请实施例的设备类型识别的装置中包括的单元所需执行的功能,或者执行本申请实施例的获取边缘数据的方法。
通信接口703使用例如但不限于收发器一类的收发装置,来实现装置700与其他设备或通信网络之间的通信。例如,可以通过通信接口703获取未知设备的流量数据。
总线704可包括在装置700各个部件(例如,存储器701、处理器702、通信接口703)之间传送信息的通路。
应注意,尽管上述装置700仅仅示出了存储器、处理器、通信接口,但是在具体实现过程中,本领域的技术人员应当理解,装置700还可以包括实现正常运行所必须的其他器件。同时,根据具体需要,本领域的技术人员应当理解,装置700还可包括实现其他附加功能的硬件器件。此外,本领域的技术人员应当理解,装置700也可仅仅包括实现本申请实施例所必须的器件,而不必包括图7中所示的全部器件。
本申请实施例还提供了一种计算机可读存储介质,存储用于设备执行的程序代码,所述程序代码包括用于执行上述获取边缘数据的方法中的步骤的指令。
本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述获取边缘数据的方法。
上述的计算机可读存储介质可以是暂态计算机可读存储介质,也可以是 非暂态计算机可读存储介质。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
本申请中使用的用词仅用于描述实施例并且不用于限制权利要求。如在实施例以及权利要求的描述中使用的,除非上下文清楚地表明,否则单数形式的“一个”和“所述”旨在同样包括复数形式。类似地,如在本申请中所使用的术语“和/或”是指包含一个或一个以上相关联的列出的任何以及所有可能的组合。另外,当用于本申请中时,术语“包括”指陈述的特征、整体、步骤、操作、元素,和/或组件的存在,但不排除一个或一个以上其它特征、整体、步骤、操作、元素、组件和/或这些的分组的存在或添加。
所描述的实施例中的各方面、实施方式、实现或特征能够单独使用或以任意组合的方式使用。所描述的实施例中的各方面可由软件、硬件或软硬件的结合实现。所描述的实施例也可以由存储有计算机可读代码的计算机可读介质体现,该计算机可读代码包括可由至少一个计算装置执行的指令。所述计算机可读介质可与任何能够存储数据的数据存储装置相关联,该数据可由计算机系统读取。用于举例的计算机可读介质可以包括只读存储器、随机存取存储器、紧凑型光盘只读储存器(Compact Disc Read-Only Memory,CD-ROM)、硬盘驱动器(Hard Disk Drive,HDD)、数字视频光盘(Digital Video Disc,DVD)、磁带以及光数据存储装置等。所述计算机可读介质还可以分布于通过网络联接的计算机系统中,这样计算机可读代码就可以分布式存储并执行。
上述技术描述可参照附图,这些附图形成了本申请的一部分,并且通过描述在附图中示出了依照所描述的实施例的实施方式。虽然这些实施例描述 的足够详细以使本领域技术人员能够实现这些实施例,但这些实施例是非限制性的;这样就可以使用其它的实施例,并且在不脱离所描述的实施例的范围的情况下还可以做出变化。比如,流程图中所描述的操作顺序是非限制性的,因此在流程图中阐释并且根据流程图描述的两个或两个以上操作的顺序可以根据若干实施例进行改变。作为另一个例子,在若干实施例中,在流程图中阐释并且根据流程图描述的一个或一个以上操作是可选的,或是可删除的。另外,某些步骤或功能可以添加到所公开的实施例中,或两个以上的步骤顺序被置换。所有这些变化被认为包含在所公开的实施例以及权利要求中。
另外,上述技术描述中使用术语以提供所描述的实施例的透彻理解。然而,并不需要过于详细的细节以实现所描述的实施例。因此,实施例的上述描述是为了阐释和描述而呈现的。上述描述中所呈现的实施例以及根据这些实施例所公开的例子是单独提供的,以添加上下文并有助于理解所描述的实施例。上述说明书不用于做到无遗漏或将所描述的实施例限制到本申请的精确形式。根据上述教导,若干修改、选择适用以及变化是可行的。在某些情况下,没有详细描述为人所熟知的处理步骤以避免不必要地影响所描述的实施例。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (24)

  1. 一种获取边缘数据的方法,其特征在于,所述方法包括:
    连接器获取(201)终端设备使用的通信协议;
    所述连接器利用所述通信协议与所述终端设备建立连接(202);
    所述连接器与数据平台建立连接(203);
    所述连接器向所述数据平台发送(204)数据格式信息,所述数据格式信息指示所述连接器的应用程序接口API;
    所述连接器接收(205)所述数据平台发送的API调用指令,所述API调用指令用于指示所述数据平台通过所述API接收数据;
    所述连接器通过所述API向所述数据平台发送(206)所述终端设备的边缘数据。
  2. 根据权利要求1所述的方法,其特征在于,所述连接器与数据平台建立连接(202)包括:
    所述连接器广播第一指示信息(402),所述第一指示信息用于指示所述连接器已与所述终端设备建立连接;
    所述连接器接收(404)所述数据平台发送的安全证书;
    所述连接器对所述安全证书进行验证(405),并向所述数据平台发送(406)安全证书验证通过响应;
    所述连接器接收(407)所述数据平台发送的会话密钥。
  3. 根据权利要求1或2所述的方法,其特征在于,在所述连接器通过所述API向所述数据平台发送(206)所述终端设备的边缘数据之前,所述方法还包括:
    所述连接器从所述终端设备获取(411)所述边缘数据。
  4. 根据权利要求3所述的方法,其特征在于,所述连接器为运行在边缘服务器的应用程序,所述连接器从所述终端设备获取(411)所述边缘数据包括:
    直接从所述终端设备获取所述边缘数据;或
    经过边缘网关获取所述边缘数据,其中,所述边缘服务器通过边缘网关与所述终端设备连接。
  5. 根据权利要求3所述的方法,其特征在于,所述连接器为集成在边缘网关内部的中间件,所述连接器从所述终端设备获取(411)所述边缘数据包括:
    利用所述边缘网关获取所述边缘数据。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:
    所述连接器接收(413)所述数据平台发送的运行状态查询指令,所述运行状态查询指令用于查询所述连接器的运行状态;
    所述连接器向所述数据平台发送(414)所述连接器的运行状态数据。
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述方法还包括:
    所述连接器获取(415)所述终端设备的性能数据,所述性能数据用于指示所述终端设备的运行状态;
    所述连接器向所述数据平台发送(416)所述性能数据。
  8. 一种获取边缘数据的方法,其特征在于,所述方法包括:
    数据平台与连接器建立连接(203),所述连接器为与终端设备通过所述终端设备使用的通信协议连接的连接器;
    所述数据平台接收(204)所述连接器发送的数据格式信息,所述数据格式信息指示所述连接器的应用程序接口API;
    所述数据平台发送(205)API调用指令,所述API调用指令用于指示所述数据平台通过所述API接收数据;
    所述数据平台通过所述API接收(206)所述连接器发送的所述终端设备的边缘数据。
  9. 根据权利要求8所述的方法,其特征在于,所述数据平台与连接器建立连接(203)包括:
    所述数据平台获取所述连接器广播的第一指示信息(403),所述第一指示信息用于指示所述连接器已与所述终端设备建立连接;
    所述数据平台向所述连接器发送(404)安全证书;接收(406)所述连接器发送的安全证书验证通过响应;
    所述数据平台向所述连接器发送(407)会话密钥。
  10. 根据权利要求8或9所述的方法,其特征在于,所述方法还包括:
    所述数据平台向所述连接器发送(413)运行状态查询指令,所述运行状态查询指令用于查询所述连接器的运行状态;
    所述数据平台接收(414)所述连接器发送的运行状态数据。
  11. 根据权利要求8至10中任一项所述的方法,其特征在于,所述方法还包括:
    所述数据平台接收(416)所述连接器发送的所述终端设备的性能数据,所述性能数据用于指示所述终端设备的运行状态。
  12. 一种获取边缘数据的连接器,其特征在于,所述连接器包括:
    获取模块(510),用于获取终端设备使用的通信协议;
    处理模块(520),用于利用所述通信协议与所述终端设备建立连接;与数据平台建立连接;
    发送模块(530),用于向所述数据平台发送数据格式信息,所述数据格式信息指示所述连接器的应用程序接口API;
    所述获取模块(510)还用于,接收所述数据平台发送的API调用指令,所述API调用指令用于指示所述数据平台通过所述API接收数据;
    所述发送模块(530)还用于,通过所述API向所述数据平台发送所述终端设备的边缘数据。
  13. 根据权利要求12所述的连接器,其特征在于,
    所述发送模块(530)具体用于广播第一指示信息,所述第一指示信息用于指示所述连接器已与所述终端设备建立连接;
    所述获取模块(510)具体用于接收所述数据平台发送的安全证书;
    所述处理模块(520)具体用于对所述安全证书进行验证;
    所述发送模块(530)具体用于向所述数据平台发送安全证书验证通过响应;
    所述获取模块(510)具体用于接收所述数据平台发送的会话密钥。
  14. 根据权利要求12或13所述的连接器,其特征在于,所述获取模块(510)还用于从所述终端设备获取所述边缘数据。
  15. 根据权利要求14所述的连接器,其特征在于,所述连接器为运行在边缘服务器的应用程序,所述获取模块(510)具体用于:
    直接从所述终端设备获取所述终端数据;或通过边缘网关获取所述边缘数据,其中,所述边缘服务器通过边缘网关与所述终端设备连接。
  16. 根据权利要求14所述的连接器,其特征在于,所述连接器为集成在所述边缘网关内部的中间件,所述获取模块(510)具体用于通过所述边缘网关获取所述边缘数据。
  17. 根据权利要求12至16中任一项所述的连接器,其特征在于,
    所述获取模块(510)还用于接收所述数据平台发送的运行状态查询指令,所述运行状态查询指令用于查询所述连接器的运行状态;
    所述发送模块(530)具体用于向所述数据平台发送所述连接器的运行状态数据。
  18. 根据权利要求12至17中任一项所述的连接器,其特征在于,
    所述获取模块(510)还用于获取所述终端设备的性能数据,所述性能数据用于指示所述终端设备的运行状态;
    所述发送模块(530)还用于向所述数据平台发送所述性能数据。
  19. 一种获取边缘数据的数据平台,其特征在于,所述数据平台包括:
    监控连接模块(610),用于与连接器建立连接,所述连接器为与终端设备通过所述终端设备使用的通信协议连接的连接器;
    所述监控连接模块(610)还用于接收所述连接器发送的数据格式信息,所述数据格式信息指示所述连接器的应用程序接口API;
    数据获取模块(620),用于发送API调用指令,所述API调用指令用于指示所述数据平台通过所述API接收数据;
    所述数据获取模块(620)还用于通过所述API接收所述连接器发送的所述终端设备的边缘数据。
  20. 根据权利要求19所述的数据平台,其特征在于,所述监控连接模块(610)具体用于获取所述连接器广播的第一指示信息,所述第一指示信息用于指示所述连接器已与所述终端设备建立连接;向所述连接器发送安全证书;接收所述连接器发送的安全证书验证通过响应;向所述连接器发送会话密钥。
  21. 根据权利要求19或20所述的数据平台,其特征在于,所述数据平台还包括运行状态指示模块;
    所述运行状态指示模块(630)用于向所述连接器发送运行状态查询指令,所述运行状态查询指令用于查询所述连接器的运行状态;接收所述连接器发送的运行状态数据。
  22. 根据权利要求19至21中任一项所述的数据平台,其特征在于,所述运行状态指示模块(630)还用于接收所述连接器发送的所述终端设备的性能数据,所述性能数据用于指示所述终端设备的运行状态。
  23. 一种自动获取终端数据的装置,其特征在于,包括:
    存储器(701),用于存储程序;
    处理器(702),用于执行所述存储器存储的程序,当所述存储器(701)存储的程序被执行时,所述处理器(702)用于执行根据权利要求1至11中任一项所述的获取边缘数据的方法。
  24. 一种计算机可读存储介质,其特征在于,所述计算机可读介质存储用于设备执行的程序代码,所述程序代码包括用于执行根据权利要求1至11中任一项所述的获取边缘数据的方法中的步骤的指令。
PCT/CN2021/119979 2021-09-23 2021-09-23 一种获取边缘数据的方法、连接器及数据平台 WO2023044675A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/119979 WO2023044675A1 (zh) 2021-09-23 2021-09-23 一种获取边缘数据的方法、连接器及数据平台

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/119979 WO2023044675A1 (zh) 2021-09-23 2021-09-23 一种获取边缘数据的方法、连接器及数据平台

Publications (1)

Publication Number Publication Date
WO2023044675A1 true WO2023044675A1 (zh) 2023-03-30

Family

ID=85719809

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/119979 WO2023044675A1 (zh) 2021-09-23 2021-09-23 一种获取边缘数据的方法、连接器及数据平台

Country Status (1)

Country Link
WO (1) WO2023044675A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160094581A1 (en) * 2014-09-29 2016-03-31 Akamai Technologies, Inc. HTTPS request enrichment
CN110650084A (zh) * 2019-08-26 2020-01-03 山东省科学院自动化研究所 一种工业物联网智能网关、联网系统及数据处理方法
CN111787066A (zh) * 2020-06-06 2020-10-16 王科特 一种基于大数据、ai的物联网数据平台
CN112714193A (zh) * 2021-03-26 2021-04-27 深圳佳兆业科技集团有限公司 基于物联网平台的社区数据处理系统、方法、装置和设备
CN113138562A (zh) * 2021-06-22 2021-07-20 武汉慧联无限科技有限公司 基于物联网的终端控制系统及终端控制方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160094581A1 (en) * 2014-09-29 2016-03-31 Akamai Technologies, Inc. HTTPS request enrichment
CN107077432A (zh) * 2014-09-29 2017-08-18 阿卡麦科技公司 Https请求充实
CN110650084A (zh) * 2019-08-26 2020-01-03 山东省科学院自动化研究所 一种工业物联网智能网关、联网系统及数据处理方法
CN111787066A (zh) * 2020-06-06 2020-10-16 王科特 一种基于大数据、ai的物联网数据平台
CN112714193A (zh) * 2021-03-26 2021-04-27 深圳佳兆业科技集团有限公司 基于物联网平台的社区数据处理系统、方法、装置和设备
CN113138562A (zh) * 2021-06-22 2021-07-20 武汉慧联无限科技有限公司 基于物联网的终端控制系统及终端控制方法

Similar Documents

Publication Publication Date Title
AU2021277736B2 (en) Pdu type setting method, ue policy setting method, and related entity
CN111917727A (zh) 基于5G和WiFi的电力物联网安全智能图传系统及方法
CN113411215B (zh) 基于opc ua的时间敏感网络集中用户配置方法及系统
CN111953550B (zh) 设备配网方法、装置及物联网设备
CN109586958B (zh) 双系统装置的配置管理方法及双系统装置
US11677858B2 (en) Optimizing interaction between applications and devices in a communications network
AU2019382495A1 (en) Method and device for transmitting V2X message and system
CN113746651B (zh) 接入网络切片的方法、电子设备及存储介质
JP2013162418A (ja) クラウドシステム、ゲートウェイ装置、通信制御方法、及び通信制御プログラム
CN102752215A (zh) 一种vdp请求报文的处理方法和边缘交换机
CN112202877A (zh) 网关联动方法、网关、云服务器及用户终端
US10931529B2 (en) Terminal device management method, server, and terminal device for managing terminal devices in local area network
CN111884938B (zh) 路由器信息采集方法及装置
WO2021068959A1 (zh) 数据处理方法和装置
WO2023044675A1 (zh) 一种获取边缘数据的方法、连接器及数据平台
CN110661850B (zh) 一种边缘计算方法、系统、计算机设备和存储介质
CN110505075B (zh) 设备管理方法及相关设备
WO2008013364A1 (en) Method and apparatus of communication between embedded cable modem and embedded set-top box
WO2012155571A1 (zh) 一种基站自配置的方法及装置
EP3054722A1 (en) Method and apparatus for enabling m2m service and h2h service to coexist
WO2022041827A1 (zh) 移动网络侦测信息的传输方法和装置、存储介质
CN111865790B (zh) 用于采集路由器信息的方法、装置、物联设备和物联网系统
CN108989443B (zh) 推送服务器向移动终端推送消息的方法及系统
Qarawlus et al. Demonstration of data-sovereign telemetry broker for open and disaggregated optical networks
US20120317256A1 (en) Management protocol for network devices

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21957811

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE