Data collection method and device of edge device, electronic device and medium

By deploying custom data collection programs on edge devices and server-deployed data collection programs, the problem of the inability to collect user-defined data in existing technologies is solved, enabling the collection and uploading of user-defined data, shortening the development cycle, and facilitating the promotion of application services by service providers.

CN115629939BActive Publication Date: 2026-03-27BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-18
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing technologies, edge devices can only collect data pre-configured by the server, which cannot meet the data collection needs of users who customize their own data collection, resulting in an inability to accurately and comprehensively understand the status of edge devices.

Method used

It allows users to deploy a custom first collection program on edge devices to collect user-defined first type of data and convert it into target data in a preset format. Combined with a second collection program issued by the server, it enables the collection and uploading of user-defined data.

Benefits of technology

It enables the collection of user-defined data, shortens the development cycle, facilitates the promotion and use of application services by service providers, and meets the actual needs of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115629939B_ABST
    Figure CN115629939B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data collection method and device of an edge device, electronic equipment and medium, relates to the technical field of edge computing, cloud service and the like, specifically relates to the technical field of data collection of an edge device, and can be applied to the scene of the Internet of Things and the like. The specific implementation scheme comprises: collecting first type data by running a first collection program, and converting the first type data into target data in a preset format, wherein the first type data is user-defined data that needs to be collected by the edge device; collecting second type data by running a second collection program, and obtaining the target data, wherein the second type data is data that can be collected by a server corresponding to the edge device and pre-configured by the server; and sending the second type data and the target data to the server by running the second collection program. The above method achieves the purpose of collecting the first type data that needs to be collected by the user.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of edge computing, cloud services, and the like, in particular to the technical field of data collection of edge devices, and can be applied to Internet of Things scenarios and the like. BACKGROUND

[0002] In the scenario of Internet of Things edge computing, application services are deployed in edge devices to provide corresponding services. In the process of providing services by edge devices, corresponding data of the edge devices needs to be collected to monitor the running status thereof. However, in the related art, only the data that can be collected by the server pre-configuration can be collected, and the data that needs to be collected by the user self-definition cannot be collected, which cannot meet the actual needs of the user. SUMMARY

[0003] The present disclosure provides a data collection method and device of an edge device, an electronic device, and a medium.

[0004] According to a first aspect of the present disclosure, a data collection method of an edge device is provided, the method comprising:

[0005] collecting first type data by running a first collection program, and converting the first type data into target data in a preset format, wherein the first type data is data that needs to be collected by a user self-definition of the edge device;

[0006] collecting second type data by running a second collection program, and obtaining the target data, wherein the second type data is data that can be collected by a server pre-configuration corresponding to the edge device;

[0007] sending the second type data and the target data to the server by running the second collection program.

[0008] In the embodiments of the present disclosure, collecting the first type data by running the first collection program, and converting the first type data into the target data in the preset format comprises: collecting the first type data by running the first collection program, converting the first type data into the target data in the preset format, and exposing to a preset port.

[0009] In the embodiments of the present disclosure, collecting the second type data by running the second collection program, and obtaining the target data comprises:

[0010] collecting the second type data in a preset data format in at least one candidate data by running the second collection program;

[0011] obtaining the target data in the preset port by running the second collection program.

[0012] In the embodiments of the present disclosure, the first collection program is installed to the edge device based on a program deployment operation of the user.

[0013] In the embodiments of the present disclosure, the second collection procedure is issued to the edge device by the server.

[0014] In the embodiments of the present disclosure, the first type of data includes at least one of the following:

[0015] Device index data of the edge device that needs to be collected by the user;

[0016] Service index data of the application service that needs to be collected by the user, wherein the application service is installed into the edge device based on the user's application service deployment operation.

[0017] In the embodiments of the present disclosure, the second type of data includes at least one of the following:

[0018] Device index data of the edge device that can be collected by the server in advance;

[0019] Service index data of the application service that can be collected by the server in advance, wherein the application service is issued to the edge device by the server.

[0020] According to a second aspect of the present disclosure, a data collection method of an edge device is provided, comprising:

[0021] issuing a second collection procedure to the edge device;

[0022] receiving second type data and target data collected by the edge device by running the second collection procedure, wherein the second type data is data that can be collected by the server corresponding to the edge device in advance, and the target data is obtained by the edge device by running the first collection procedure to collect the first type data and converting the first type data into a preset format, and the first type data is data that needs to be collected by the user of the edge device;

[0023] based on the second type data and the target data to the preset function.

[0024] According to a third aspect of the present disclosure, a data collection device of an edge device is provided, which comprises a first collection module, a second collection module and a data uploading module.

[0025] The first collection module is used to collect first type data by running a first collection procedure, and convert the first type data into target data in a preset format, wherein the first type data is data that needs to be collected by the user of the edge device;

[0026] The second collection module is used to collect second type data by running a second collection procedure, and obtain target data, wherein the second type data is data that can be collected by the server corresponding to the edge device in advance;

[0027] The data uploading module is configured to send the second type data and the target data to the server by running the second collection program.

[0028] In the embodiments of the present disclosure, when the first collection module is configured to collect the first type data by running the first collection program and convert the first type data into the target data in the preset format, the first collection module is specifically configured to collect the first type data by running the first collection program, convert the first type data into the target data in the preset format and expose the target data to the preset port.

[0029] In the embodiments of the present disclosure, when the second collection module is configured to collect the second type data by running the second collection program and obtain the target data, the second collection module is specifically configured to:

[0030] collect the second type data in the preset data format from the at least one candidate data by running the second collection program;

[0031] obtain the target data from the preset port by running the second collection program.

[0032] In the embodiments of the present disclosure, the first collection program is installed to the edge device based on a program deployment operation of the user.

[0033] In the embodiments of the present disclosure, the second collection program is delivered to the edge device by the server.

[0034] In the embodiments of the present disclosure, the first type data includes at least one of the following:

[0035] device index data of the edge device that needs to be collected, which is defined by the user;

[0036] service index data of an application service that needs to be collected, which is defined by the user, wherein the application service is installed to the edge device based on an application service deployment operation of the user.

[0037] In the embodiments of the present disclosure, the second type data includes at least one of the following:

[0038] device index data of the edge device that can be collected, which is preconfigured by the server;

[0039] service index data of an application service that can be collected, which is preconfigured by the server, wherein the application service is delivered to the edge device by the server.

[0040] According to a fourth aspect of the present disclosure, an edge device data collection apparatus is provided, which comprises a program delivery apparatus, a data receiving apparatus and a function execution module.

[0041] The program delivery apparatus is configured to deliver a second collection program to the edge device.

[0042] The data receiving device is configured to receive second type data collected by the edge device by running a second collection program and target data, wherein the second type data is data that can be collected by the edge device according to a pre-configuration of a server corresponding to the edge device, the target data is obtained by converting first type data collected by the edge device by running a first collection program into a preset format, and the first type data is data that needs to be collected by the edge device according to a user self-definition.

[0043] The function executing module is configured to execute a preset function based on the second type data and the target data.

[0044] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising at least one processor, and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to the first aspect.

[0045] According to a sixth aspect of the present disclosure, a non-transitory computer readable storage medium storing computer instructions is provided, the computer instructions being used to enable a computer to perform the method according to the first aspect.

[0046] According to a seventh aspect of the present disclosure, a computer program product is provided, comprising a computer program, the computer program being used to implement the method according to the first aspect when executed by a processor.

[0047] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.

[0048] The technical solution provided by the present disclosure has the following beneficial effects:

[0049] The data collection method of the edge device provided by the embodiments of the present disclosure allows the user to deploy the first collection program provided by himself according to the actual needs to the edge device, the first collection program can collect the first type data defined by the user, and the collected data can be converted into the target data in the preset format which can be recognized and obtained by the second collection program, so that the target data can be uploaded to the server by the second collection program, achieving the purpose of collecting the first type data defined by the user, and omitting the work of developing the corresponding collection program for the data defined by the user by the service provider, shortening the development cycle, and facilitating the popularization and use of the application service of the service provider. BRIEF DESCRIPTION OF DRAWINGS

[0050] The accompanying drawings serve to better understand the present solution and do not constitute a limitation of the present disclosure. Among them:

[0051] Figure 1 A network architecture schematic diagram of a data collection method to which an edge device can be applied is shown;

[0052] Figure 2 A flow schematic diagram of a first data collection method of an edge device is shown;

[0053] Figure 3 A flow schematic diagram of a second data collection method of an edge device is shown;

[0054] Figure 4 A flow schematic diagram of a third data collection method of an edge device is shown;

[0055] Figure 5 A schematic diagram of a data collection apparatus of an edge device is shown;

[0056] Figure 6 A schematic diagram of another data collection apparatus of an edge device is shown;

[0057] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0058] Exemplary embodiments of the present disclosure are described herein with reference to the accompanying drawings, which are provided for purposes of illustration only and do not exhaustively depict all variations that can occur in accordance with the present disclosure. Thus, the embodiments described herein should not be considered to be exhaustive but rather be construed as merely illustrative. It will be apparent to one of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Also, for the purpose of clarity and the brevity, the description below omits the description of well-known functions and structures.

[0059] It should be understood that, in the embodiments of the present disclosure, the character " / " generally represents that the associated objects before and after are in an "or" relationship. The terms "first", "second", etc. are only for the purpose of description and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated.

[0060] In the scenario of Internet of Things edge computing, application services are deployed in edge devices to provide corresponding services. In the process of providing services by edge devices, corresponding data of the edge devices need to be collected to monitor the running status thereof, for example, device index data and service index data of application services of the edge devices need to be collected to monitor the running status of the edge devices through analysis of the data.

[0061] However, in the related art, only the data that the server can collect in advance can usually be collected. Specifically, the server can distribute a collection program provided by a service provider to an edge device, but the collection program provided by the service provider can only collect device index data of common edge devices and service index data of application services, and cannot support collection of data of all types of edge devices and application services. For example, the collection program provided by the service provider usually cannot collect user-defined data to be collected, where the user-defined data to be collected can include device index data of special edge devices or uncommon edge devices, and can also include service index data of application services developed by the user. Since the collection program provided by the service provider cannot support collection of data of all types of edge devices and application services, the actual needs of the user cannot be met, and the user cannot accurately and comprehensively understand the status of the edge device.

[0062] The method for collecting data of an edge device provided by the embodiments of the present disclosure allows a user to deploy a first collection program provided by the user to an edge device according to actual needs, the first collection program can collect first type data defined by the user to be collected, and can convert the collected data into target data in a preset format suitable for being recognized and obtained by a second collection program, so that the target data can be uploaded to a server by the second collection program, and the purpose of collecting the first type data defined by the user to be collected is achieved.

[0063] The application services and devices of the user are generally run on an edge device, and provide various application services. While providing the application services, the user needs to collect indexes such as running states and resource occupancy of the edge application services and devices, so as to monitor the use of the edge application services and devices in real time, and facilitate subsequent allocation and scheduling of resources and application services.

[0064] At present, the collection of information of edge application services and devices generally only supports collection of application service indexes distributed by an application service end and indexes of limited edge device types, and cannot achieve index collection and monitoring for some user-defined edge application services that are not distributed by the application service end and some indexes of special user-defined edge devices.

[0065] The execution subject of the method can be a terminal device, or a computer, or a server, or other devices with data processing capability. The execution subject of the method is not limited herein.

[0066] Optionally, the terminal device can be a mobile phone, or a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), or the like. The specific type of the terminal device is not limited in the embodiments of the present disclosure.

[0067] In some embodiments, the server can be a single server, or can also be a server cluster composed of multiple servers. In some embodiments, the server cluster can also be a distributed cluster. The specific implementation of the server is not limited in the present disclosure.

[0068] The data collection method of the edge device is exemplarily described below.

[0069] Figure 1 A network architecture schematic diagram to which the data collection method of the edge device provided in the embodiments of the present disclosure can be applied is shown in FIG. 1. Figure 1 As shown in FIG. 1, the network architecture can include a server and edge devices, each of which is in communication connection with the server. The edge devices are the execution subjects of the present disclosure, and the server can distribute some programs (such as a collection program or an application service) to the edge devices. The data collected by the edge devices can be uploaded to the server. It can be understood that the edge devices can be any of the terminal devices described above.

[0070] The first collection program and the second collection program are deployed in the edge devices. By running the first collection program and the second collection program, data of corresponding types can be collected. Specifically, the first collection program can be used to collect data that a user customizes to be collected, and the second collection program can be used to collect data that a server corresponding to the edge device pre-configures to be collectable.

[0071] Figure 2 A flowchart of a first data collection method of an edge device provided in the embodiments of the present disclosure is shown in FIG. 2. The execution subject of the method is an edge device. As shown in FIG. 2, the method can mainly include the following steps: Figure 2

[0072] S210: Collecting first type data by running the first collection program, and converting the first type data into target data in a preset format.

[0073] ​In step S210, the first type of data is user-defined data that needs to be collected by the edge device. The first type of data can include device index data of the edge device that needs to be collected by the user, or service index data of the application service that needs to be collected by the user. The device index data and the service index data can intuitively reflect the usage of the device and the application service, facilitating subsequent allocation and scheduling of resources and application services of the edge device.

[0074] The application service is installed on the edge device based on the user's application service deployment operation. The application service here is an application service provided by the user and not supported by the second collection program. The application service is usually an application service developed by the user according to his own needs. It can be understood that the application service can provide an artificial intelligence model for corresponding services, for example, the application service can be an image recognition model, a speech recognition model, and a recommendation model, etc.

[0075] S220: Collecting the second type of data by running the second collection program, and obtaining the target data.

[0076] In step S220, the second type of data is pre-configured data that can be collected by the server corresponding to the edge device. In the embodiment of the present disclosure, the second type of data can include device index data of the edge device that can be pre-configured and collected by the server, and the second type of data can include service index data of the application service that can be pre-configured and collected by the server, wherein the application service is downloaded to the edge device by the server. The server can create a node for the edge device and configure data that can be collected by the second collection program, and the edge device installs the node to deploy the second collection program. It can be understood that the application service can provide an artificial intelligence model for corresponding services, for example, the application service can be an image recognition model, a speech recognition model, and a recommendation model, etc.

[0077] S230: Sending the second type of data and the target data to the server by running the second collection program.

[0078] After receiving the second type of data and the target data, the server can monitor the running status of the edge device based on these data. For example, the server stores the received data, organizes the stored preset index data based on a preset data processing specification, adds a source label to the preset index data, exposes the organized preset index data through a preset server port, so that an alarm system connected to the cloud exposes the preset index data, and combines a preset alarm parameter to perform alarm; wherein the alarm parameter includes an alarm rule, an alarm destination, and an alarm notification type.

[0079] The data acquisition method for edge devices provided in this disclosure allows users to deploy their own first acquisition program to the edge device according to actual needs. The first acquisition program can acquire user-defined first type of data and convert the acquired data into target data in a preset format suitable for recognition and acquisition by a second acquisition program. This enables the target data to be uploaded to the server by the second acquisition program, achieving the purpose of acquiring user-defined first type of data. It also eliminates the need for the service provider to develop corresponding acquisition programs for user-defined data, shortens the development cycle, and facilitates the promotion and use of the service provider's application services.

[0080] In this embodiment of the disclosure, when the edge device collects first type data by running a first acquisition program and converts the first type data into target data in a preset format, it can collect the first type data by running the first acquisition program, convert the first type data into target data in a preset format, and expose it to a preset port. This makes it easier for the second acquisition program to directly locate the preset port and quickly obtain the target data at the preset port. Figure 3 The diagram illustrates a flowchart of a second data acquisition method for an edge device provided in this embodiment of the present disclosure. The execution subject of this method is an edge device, such as... Figure 3 As shown, the method mainly includes the following steps:

[0081] S310: Collect first type of data by running the first acquisition program, convert the first type of data into target data in a preset format and expose it to a preset port.

[0082] In step S310, the first type of data is user-defined data that needs to be collected from the edge device. The first type of data may include user-defined device indicator data of the edge device, or user-defined service indicator data of application services. The application service is installed on the edge device based on the user's application service deployment operation. Here, the application service is an application service provided by the user and not supported by the second collection program. This application service is usually an application service that the user develops according to their own needs.

[0083] S320: Acquire second type data in a preset data format from at least one candidate data by running a second acquisition program.

[0084] In step S220, the second type of data is data that the server corresponding to the edge device pre-configures to be able to collect. In the embodiment of the present disclosure, the second type of data can include device index data of the edge device that the server pre-configures to be able to collect, and the second type of data can include service index data of an application service that the server pre-configures to be able to collect, wherein the application service is delivered to the edge device by the server. The server can create a node for the edge device and configure data that the second collection program can collect, and the edge device installs the node to deploy the second collection program. It can be understood that the application service can provide an artificial intelligence model for providing a corresponding service, for example, the application service can be an image recognition model, a speech recognition model, and a recommendation model, etc.

[0085] S330: Obtain target data through the running of the second collection program at a preset port.

[0086] S340: Send the second type of data and the target data to the server through the running of the second collection program.

[0087] After receiving the second type of data and the target data, the server can monitor the running of the edge device based on these data, for example, the server stores the received data, organizes the stored preset index data based on a preset data processing specification, and adds a source label to the preset index data, exposes the organized preset index data through a preset server port, so that an alarm system connected to the cloud exposes the preset index data, and combines a preset alarm parameter to perform alarm; wherein the alarm parameter includes an alarm rule, an alarm destination, and an alarm notification type.

[0088] In the embodiment of the present disclosure, the first collection program is installed to the edge device based on the program deployment operation of the user, that is, the user can install the first collection program to the edge device by himself, which opens the permission of the user to deploy the data collection program, and helps to meet the actual needs of the user for data collection in a timely manner. The first collection program is usually a collection program developed by the user himself, which is specially used to collect data (such as the first type of data described above) that the user defines to be collected. These data can usually include device index data of some special edge devices or uncommon edge devices, service index data of an application service developed by the user himself, etc. The device index data can include running state data and resource occupation data, etc., and the service index data can include running parameters of the application service, accuracy of the calculation result, running speed, etc.

[0089] In the embodiments of the present disclosure, the second collection program is issued to the edge device by the server. The second collection program is a collection program provided by a service party. The service party can upload the second collection program to the server, and the server issues the second collection program to each edge device. The second collection program is used to collect data (such as the second type of data described above) that can be collected by the server in advance. These data can generally include device index data of common edge devices on the market and service index data of application services, wherein the device index data can include running state data and resource occupation data, and the service index data can include running parameters of the application service, accuracy of the calculation result, running speed, and the like.

[0090] Figure 4 A flowchart of a third data collection method of an edge device provided by the embodiments of the present disclosure is shown. The execution subject of the method is a server, as shown in Figure 4 The method can mainly include the following steps:

[0091] S410: issuing a second collection program to an edge device.

[0092] The server can create a node for the edge device and configure data that can be collected by the second collection program, and the edge device installs the node to deploy the second collection program. The second collection program can directly collect the second type of data, and the second type of data is data that can be collected by the server in advance. In the embodiments of the present disclosure, the second type of data can include device index data of the edge device that can be collected by the server in advance, and the second type of data can include service index data of the application service that can be collected by the server in advance, wherein the application service is issued to the edge device by the server. It can be understood that the application service can provide an artificial intelligence model for providing corresponding services, for example, the application service can be an image recognition model, a speech recognition model, and a recommendation model, and the like.

[0093] S420: receiving the second type of data and the target data collected by the edge device by running the second collection program.

[0094] The second type of data is data that can be collected by the server in advance, and the target data is obtained by converting the first type of data into a preset format after the edge device collects the first type of data by running the first collection program, and the first type of data is data that needs to be collected by the user of the edge device. Here, the specific process of the edge device obtaining the second type of data and the target data can be referred to the corresponding content in the foregoing, which will not be described here.

[0095] S430: performing a preset function based on the second type of data and the target data.

[0096] Here, the specific content of the preset functions can be determined according to actual design needs. For example, the preset functions can be data visualization display functions, data monitoring functions, and alarm functions. Optionally, after receiving the second type of data and the target data, the server can monitor the operation of the edge device based on these data. For example, the server stores the received data, organizes the stored preset indicator data according to preset data processing specifications, adds source tags to the preset indicator data, and exposes the organized preset indicator data through a preset service port, so that the alarm system connected to the cloud can issue an alarm based on the preset indicator data exposed by the cloud and in combination with preset alarm parameters; wherein, the alarm parameters include alarm rules, alarm destination, and alarm notification type.

[0097] Based on the same principle as the data acquisition method for edge devices described above, this disclosure provides a data acquisition device for edge devices. Figure 5 A schematic diagram of a data acquisition device for an edge device provided in an embodiment of this disclosure is shown. For example... Figure 5 As shown, the data acquisition device 400 of the edge device includes a first acquisition module 510, a second acquisition module 520, and a data upload module 530.

[0098] The first acquisition module 510 is used to acquire first type data by running a first acquisition program and convert the first type data into target data in a preset format. The first type data is user-defined data that the edge device needs to acquire.

[0099] The second acquisition module 520 is used to acquire second type data and obtain target data by running a second acquisition program. The second type data is data that can be acquired in advance by the server corresponding to the edge device.

[0100] The data upload module 530 is used to send the second type of data and the target data to the server by running the second acquisition program.

[0101] The data acquisition device for edge devices provided in this embodiment allows users to deploy their own first acquisition program to the edge device according to actual needs. The first acquisition program can collect user-defined first type of data that needs to be collected, and can convert the collected data into target data in a preset format suitable for recognition and acquisition by the second acquisition program. This enables the target data to be uploaded to the server by the second acquisition program, thus achieving the purpose of collecting user-defined first type of data. It also eliminates the need for the service provider to develop corresponding acquisition programs for user-defined data, shortens the development cycle, and facilitates the promotion and use of the service provider's application services.

[0102] In the embodiment of the present disclosure, the first collection module 510, when used for collecting the first type of data by running the first collection program, converting the first type of data into the target data in the preset format, and exposing to the preset port, is specifically used for collecting the first type of data by running the first collection program, converting the first type of data into the target data in the preset format, and exposing to the preset port.

[0103] In the embodiment of the present disclosure, the second collection module 520, when used for collecting the second type of data by running the second collection program and obtaining the target data, is specifically used for:

[0104] collecting the second type of data in the preset data format from the at least one candidate data by running the second collection program;

[0105] obtaining the target data from the preset port by running the second collection program.

[0106] In the embodiment of the present disclosure, the first collection program is installed to the edge device based on the user's program deployment operation.

[0107] In the embodiment of the present disclosure, the second collection program is issued to the edge device by the server.

[0108] In the embodiment of the present disclosure, the first type of data includes at least one of the following:

[0109] The user customizes the device index data of the edge device that needs to be collected;

[0110] The user customizes the service index data of the application service that needs to be collected, wherein the application service is installed to the edge device based on the user's application service deployment operation.

[0111] In the embodiment of the present disclosure, the first type of data includes at least one of the following:

[0112] The server pre-configures the device index data of the collectable edge device;

[0113] The server pre-configures the service index data of the collectable application service, wherein the application service is issued to the edge device by the server.

[0114] It can be understood that the above-mentioned modules of the edge device data collection apparatus in the embodiment of the present disclosure have the functions of corresponding steps of the above-mentioned edge device data collection method. The functions can be realized by hardware, or realized by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions. The above-mentioned modules can be software and / or hardware, and the above-mentioned modules can be realized individually or realized integrally by multiple modules. The function description of each module of the edge device data collection apparatus can be specifically referred to the corresponding description of the edge device data collection method, which will not be described here.

[0115] Based on the same principle as the above-mentioned data collection method of the edge device, the embodiment of the disclosure provides a data collection device 600 of an edge device, Figure 6 A schematic diagram of a data collection device of an edge device is shown. As Figure 6 shown, the data collection device 600 of the edge device includes a program issuing device 610, a data receiving device 620 and a function execution module 630.

[0116] The program issuing device 610 is configured to issue a second collection program to the edge device.

[0117] The data receiving device 620 is configured to receive second type data and target data collected by the edge device by running the second collection program, wherein the second type data is data that can be collected by the server corresponding to the edge device in advance, the target data is obtained by the edge device by running the first collection program to collect the first type data and converting the first type data into a preset format, and the first type data is data that the user of the edge device customizes to collect.

[0118] The function execution module 630 is configured to perform a preset function based on the second type data and the target data.

[0119] It can be understood that each module of the data collection device of the edge device in the embodiment of the disclosure has the function of realizing the corresponding steps of the above-mentioned data collection method of the edge device. The function can be realized by hardware, or realized by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions. The above-mentioned modules can be software and / or hardware, and the above-mentioned modules can be realized individually or multiple modules can be integrated to realize. For the function description of each module of the data collection device of the edge device, please refer to the corresponding description of the above-mentioned data collection method of the edge device, which will not be repeated here.

[0120] In the technical solution of the disclosure, the acquisition, storage and application of user personal information comply with relevant laws and regulations and do not violate public order and good customs.

[0121] According to the embodiments of the disclosure, the disclosure further provides an electronic device, a readable storage medium and a computer program product.

[0122] In an exemplary embodiment, the electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method described in the above embodiments. The electronic device may be the computer or server described above.

[0123] In an exemplary embodiment, the readable storage medium may be a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method described in the above embodiments.

[0124] In an exemplary embodiment, the computer program product includes a computer program that, when executed by a processor, implements the method described in the above embodiments.

[0125] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0126] like Figure 7 As shown, the electronic device 700 includes a computing unit 701, which can perform various appropriate actions and processes based on a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. The RAM 703 may also store various programs and data required for the operation of the device 700. The computing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0127] Multiple components in electronic device 700 are connected to I / O interface 705, including: input unit 706, such as keyboard, mouse, etc.; output unit 707, such as various types of displays, speakers, etc.; storage unit 708, such as disk, optical disk, etc.; and communication unit 709, such as network card, modem, wireless transceiver, etc. Communication unit 709 allows electronic device 700 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0128] The computing unit 701 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 701 performs various methods and processes described above, such as the data collection method of the edge device. For example, in some embodiments, the data collection method of the edge device can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded onto the RAM 703 and executed by the computing unit 701, one or more steps of the data collection method of the edge device described above can be performed. Alternatively, in other embodiments, the computing unit 701 can be configured to perform the data collection method of the edge device by any other appropriate means, such as by means of firmware.

[0129] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0130] Program code for carrying out methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces a function / operation specified in the flowchart and / or block diagram. The program code can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package, or entirely on a remote machine or server.

[0131] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0132] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0133] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0134] The computer system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0135] It should be understood that the various forms of flow shown above can be used to reorder, add, or delete steps. For example, the steps described in the present disclosure can be performed in parallel, in series, or in a different order, without limitation herein, as long as the desired results of the technology disclosed in the present disclosure can be achieved.

[0136] The specific implementation described above does not constitute a limitation on the protection scope of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A data collection method of an edge device, the method comprising: collecting first type data by running a first collection program, and converting the first type data into target data in a preset format, wherein the first type data is data that a user customizes to need to collect for the edge device, and the first collection program is installed into the edge device based on a program deployment operation of the user; collecting second type data by running a second collection program, and obtaining the target data, wherein the second type data is data that a server corresponding to the edge device pre-configures to be collectable, and the second collection program is issued to the edge device by the server; sending the second type data and the target data to the server by running the second collection program.

2. The method of claim 1, wherein, The collecting first type data by running a first collection program, and converting the first type data into target data in a preset format comprises: collecting first type data by running a first collection program, converting the first type data into target data in a preset format, and exposing to a preset port.

3. The method of claim 2, wherein, The collecting second type data by running a second collection program, and obtaining the target data comprises: collecting the second type data in the preset format in at least one candidate data by running the second collection program; obtaining the target data in the preset port by running the second collection program.

4. The method of claim 1, wherein, The first collection program is installed into the edge device based on a program deployment operation of the user.

5. The method of claim 1, wherein, The second collection program is issued to the edge device by the server.

6. The method of claim 1, wherein, The first type data comprises at least one of: device index data of the edge device that the user customizes to need to collect; service index data of an application service that the user customizes to need to collect, wherein the application service is installed into the edge device based on an application service deployment operation of the user.

7. The method of claim 1, wherein, The second type data comprises at least one of: device index data of the edge device that the server pre-configures to be collectable; service index data of an application service that the server pre-configures to be collectable, wherein the application service is issued to the edge device by the server.

8. A data collection method of an edge device, the method comprising: issuing a second collection program to an edge device, wherein the second collection program is issued to the edge device by a server; receiving second type data and target data collected by the edge device by running the second collection program, wherein the second type data is data that a server corresponding to the edge device pre-configures to be collectable, and the target data is obtained by the edge device by collecting first type data by running a first collection program and converting the first type data into a preset format, wherein the first type data is data that a user customizes to need to collect for the edge device, and the first collection program is installed into the edge device based on a program deployment operation of the user; performing a preset function based on the second type data and the target data.

9. A data collection apparatus of an edge device, the apparatus comprising: The first collection module is configured to collect first type data by running a first collection program, and convert the first type data into target data in a preset format, wherein the first type data is user-defined data that needs to be collected by an edge device, and the first collection program is installed on the edge device based on a program deployment operation of a user. The second collection module is configured to collect second type data by running a second collection program, and obtain the target data, wherein the second type data is pre-configurable data of the edge device that can be collected by a server, and the second collection program is delivered to the edge device by the server. The data uploading module is configured to send the second type data and the target data to the server by running the second collection program.

10. The apparatus of claim 9, wherein, When the first collection module is configured to collect first type data by running a first collection program, and convert the first type data into target data in a preset format, the first collection module is specifically configured to collect first type data by running a first collection program, convert the first type data into target data in a preset format, and expose the target data to a preset port.

11. The apparatus of claim 10, wherein, When the second collection module is configured to collect second type data by running a second collection program, and obtain the target data, the second collection module is specifically configured to: collect the second type data in the preset format from at least one candidate data by running the second collection program; and obtain the target data from the preset port by running the second collection program.

12. The apparatus of claim 9, wherein, The first collection program is installed on the edge device based on a program deployment operation of a user.

13. The apparatus of claim 9, wherein, The second collection program is delivered to the edge device by the server.

14. The apparatus of claim 9, wherein, The first type data includes at least one of the following: device index data of the edge device that needs to be collected by a user; service index data of an application service that needs to be collected by a user, wherein the application service is installed on the edge device based on an application service deployment operation of the user.

15. The apparatus of claim 9, wherein, The second type data includes at least one of the following: device index data of the edge device that is pre-configurable by the server; service index data of an application service that is pre-configurable by the server, wherein the application service is delivered to the edge device by the server.

16. A data collection device of an edge device, the device comprising: a program delivery device configured to deliver a second collection program to an edge device, wherein the second collection program is delivered to the edge device by a server; a data receiving device configured to receive second type data and target data collected by the edge device by running the second collection program, wherein the second type data is pre-configurable data of the edge device that can be collected by a server, and the target data is obtained by collecting first type data by running a first collection program and converting the first type data into a preset format, the first type data is user-defined data that needs to be collected by an edge device, and the first collection program is installed on the edge device based on a program deployment operation of a user. a function execution module, configured to execute a preset function based on the second type of data and the target data.

17. An electronic device comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7, or perform the method of claim 8.

18. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-7, or perform the method of claim 8.

19. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-7, or implements the method of claim 8.

Citation Information

Patent Citations

  • Information output method and device thereof

    CN107168676A

  • Method and apparatus for realizing preset demand by collecting user terminal data, and storage medium

    CN108334651A