An edge server, an internet of things edge computing platform and an edge computing method
By dynamically plugging and unplugging components on edge servers and building host services, the problem of resource waste on edge computing platforms is solved, realizing high-efficiency, low-traffic, and offline autonomous IoT edge computing, which is suitable for complex IoT device access scenarios and supports domestic replacement.
Patent Information
- Application Number
- CN202410593366.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2044-05-14
AI Technical Summary
Existing edge computing platforms cannot meet the requirements of high timeliness, low traffic, and offline autonomy, and the additional deployment of services leads to resource waste, which is unacceptable, especially on resource-constrained edge platforms.
An edge server is provided, including an edge core application module, an extended application module, and a third-party application module. It shares JVM content and service resources through a host application unit, supports multiple access methods and data routing, dynamically loads and unloads service components, and builds host services to save resources.
It achieves high-efficiency, low-traffic IoT edge computing, has offline autonomous capabilities, saves edge node resources, is suitable for complex IoT device access scenarios, and supports user-defined function expansion and domestic replacement.
Smart Images

Figure CN118827755B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of Internet of Things edge computing, and in particular to an edge server, an Internet of Things edge computing platform and an edge computing method. BACKGROUND
[0002] Edge computing is a technology that provides computing, storage and other infrastructure, which usually provides services close to data sources or users. Compared with cloud computing services deployed in a centralized manner, edge computing can well solve problems such as too long time delay and too large converged traffic, thereby providing better support for real-time and bandwidth-intensive businesses.
[0003] An Internet of Things platform is a complex and time-sensitive comprehensive platform. Existing edge computing platforms usually cannot meet the needs of high timeliness, low traffic and offline autonomous function, or in order to meet the needs of high timeliness, low traffic and offline autonomous function, an edge computing platform can only additionally deploy services as other components of the Internet of Things platform, which will cause waste of service resources, which is unacceptable for edge platforms that are often resource-constrained. SUMMARY
[0004] The purpose of the embodiments of the present application is to provide an edge server, an Internet of Things edge computing platform and an edge computing method, which can effectively meet the needs of high timeliness, low traffic and offline autonomous function, and effectively save service resources.
[0005] To achieve the above purpose, the embodiments of the present application provide an edge server, comprising: an edge core application module, an extended application module and a third-party application module.
[0006] The edge core application module comprises a host application unit, the host application unit is used for data distribution and transmission as a message bus, and installation and uninstallation of service plug-ins are performed; the extended application module is used for extending the application unit of the edge server; and the third-party application module is used for configuring the application unit of the edge server according to user's custom demand.
[0007] Other application units in the edge server run in a JVM program running container of the host application unit, and share JVM content and service resources through the host application unit.
[0008] As an improvement of the above scheme, the edge core application module further comprises a standard protocol access unit, a rule matching unit, a data analysis unit and a message routing unit.
[0009] The standard protocol access unit is used for accessing standard protocol devices and obtaining device messages of the standard protocol type.
[0010] The rule matching unit is used to match and filter the device messages according to preset rules;
[0011] The data parsing unit is used to parse the device messages according to the standard object model to perform data parsing.
[0012] The message routing unit is used to forward the device messages.
[0013] As an improvement to the above solution, the edge core application module also includes a cloud-edge proxy unit, an industrial protocol parsing unit, a device authentication unit, and a command issuing unit;
[0014] The cloud-edge proxy unit is used to obtain system information and report it to the host application unit, as well as to receive and parse the configuration information of the cloud server;
[0015] The industrial protocol parsing unit is used to access industrial protocol devices and to acquire, parse, and integrate device messages of industry protocols and industrial protocol classes;
[0016] The device authentication unit is used to perform access authentication and device online / offline processing for the standard protocol device and the industrial protocol device.
[0017] The command issuing unit is used to issue various protocol commands.
[0018] As an improvement to the above solution, the extended application module includes an API interface unit, a log analysis unit, an edge file management unit, and an offline autonomous unit;
[0019] The API interface unit is used to collect host machine information;
[0020] The log analysis unit is used to collect and analyze the log data of the host machine.
[0021] The edge file management unit is used to manage the file information of the edge server;
[0022] The offline autonomous unit is responsible for the offline autonomy, resume transmission after network outage, and cross-node collaboration functions of the edge server.
[0023] This invention also provides an IoT edge computing platform, comprising: a cloud server, an edge server, and a cloud-edge collaboration module, wherein the cloud server is used for managing the edge server and querying information; the cloud-edge collaboration module is used for message communication between the cloud server and the edge server; and the edge server is the edge server described above.
[0024] This invention also provides an edge computing method applied to the IoT edge computing platform described above; the method includes:
[0025] The cloud server receives the edge server information selected by the user equipment, provides a corresponding node registration command according to the edge server information, so that the user equipment performs node registration at the edge according to the node registration command; wherein the node registration command is used to register the edge server;
[0026] The cloud server pulls the application image of the edge core application module of the edge server and deploys the edge core application module;
[0027] The cloud server receives the edge server state information reported by the edge server after successful registration.
[0028] As an improvement of the above scheme, the method further comprises:
[0029] The cloud server obtains the application module deployment file issued by the user equipment; wherein the application model deployment file is generated according to the application image and configuration information of the third-party application module uploaded by the application equipment;
[0030] The cloud server sends the application module deployment file to the cloud edge agent unit, so that the edge core application module deploys and loads the third-party application module.
[0031] As an improvement of the above scheme, the method further comprises:
[0032] The standard protocol access unit obtains the first uplink message sent by the standard protocol equipment after accessing the standard protocol equipment, and performs message analysis and message packaging to generate a second uplink message;
[0033] The host application unit obtains the second uplink message and sends it to the rule matching unit;
[0034] The rule matching unit sends the second uplink message to the data analysis unit when it is judged that the second uplink message meets the preset rule; otherwise, the second uplink message is discarded;
[0035] The data analysis unit performs data analysis on the second uplink message according to the standard object model after receiving the second uplink message, and sends it to the cloud server or forwards it to an external server through the message routing unit after successful analysis and verification.
[0036] As an improvement of the above scheme, the method further comprises:
[0037] The command issuing unit parses and message matches the first command content after receiving the first command content issued by the cloud server, to generate second command content;
[0038] The host application unit acquires the second command content, and determines a corresponding target protocol device according to the second command content, the target protocol device being the standard protocol device or the industrial protocol device;
[0039] When the target protocol device is the standard protocol device, the second command content is sent to the standard protocol access unit; the standard protocol access unit sends the second command content to the standard protocol device;
[0040] When the target protocol device is the industrial protocol device, the second command content is sent to the industrial protocol analysis unit; the industrial protocol analysis unit sends the second command content to the industrial protocol device.
[0041] As an improvement of the above scheme, the method further comprises:
[0042] When the target protocol device is the standard protocol device, the standard protocol access unit receives a command execution response returned by the standard protocol device after executing the second command content, and sends the command execution response to the host application unit;
[0043] When the target protocol device is the industrial protocol device, the industrial protocol analysis unit receives a command execution response returned by the industrial protocol device after executing the second command content, and sends the command execution response to the host application unit;
[0044] The host application unit sends the command execution response to the command issuing unit;
[0045] The command issuing unit sends the command execution response to the cloud server.
[0046] Compared with the prior art, the edge server, the Internet of Things edge computing platform and the edge computing method disclosed by the application provide an edge server suitable for cloud edge interaction, the edge server provides the Internet of Things capability of core application, extended application and third-party application, supports multiple access modes and data routing modes, saves the valuable resources of edge nodes by constructing host services and dynamically loading and unloading various service components, meanwhile, users can freely select and match function modules or even develop by themselves, which is convenient for realizing service function extension, has important significance in the increasingly fierce international relations and the promotion of domestic technology, can effectively meet various complex Internet of Things device access scenarios, flexibly meet various operation environments of Internet of Things devices, meet the demand of high timeliness, low traffic and offline autonomous function. BRIEF DESCRIPTION OF DRAWINGS
[0047] Figure 1 is a structural schematic diagram of an edge server provided by an embodiment of the application;
[0048] Figure 2 is a structural schematic diagram of an edge server preferred in an embodiment of the application;
[0049] Figure 3 is a structural schematic diagram of an Internet of Things edge computing platform provided by an embodiment of the application;
[0050] Figure 4 is a first flow schematic diagram of an edge computing method provided by an embodiment of the application;
[0051] Figure 5 is a second flow schematic diagram of an edge computing method in an embodiment of the application;
[0052] Figure 6 is a third flow schematic diagram of an edge computing method in an embodiment of the application;
[0053] Figure 7 is a fourth flow schematic diagram of an edge computing method in an embodiment of the application. DETAILED DESCRIPTION
[0054] The technical solutions in the embodiments of the application will be described clearly and completely below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are only part of the embodiments of the application, rather than all the embodiments of the application. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the application.
[0055] In the description of the present application, it needs to be understood that the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer" and the like indicate the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation of the present application.
[0056] The terms "first", "second" are only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. In the description of the present application, unless otherwise specified, the meaning of "a plurality of" is two or more.
[0057] In the description of the present application, it needs to be explained that, unless otherwise explicitly specified and limited, the terms "mounting", "connecting", "connection" should be understood broadly, for example, it can be fixed connection, or detachable connection, or integrally connected; it can be mechanical connection, or electrical connection; it can be directly connected, or indirectly connected through intermediate medium, or the communication inside two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0058] Referring to Figure 1 is a structural schematic diagram of an edge server provided by an embodiment of the present application, the present application provides an edge server, also known as an edge node. The edge server comprises an edge core application module, an extended application module and a third-party application module.
[0059] The edge core application module is the core of the whole edge server, which supports the sinking of IoT capabilities such as protocol adaptation, digital integration, data analysis, data routing and scene linkage of the cloud to the edge node, to meet the needs of different application scenarios.
[0060] The extended application module is used to expand the application unit of the edge server, and the extended application module is an extension for edge node service, which can be selected and matched by users according to their own needs. The extended application module will also be updated and released through the application market, providing extended applications such as AI capability and Flink plug-in.
[0061] The third-party application module is configured according to the custom needs of the user, and is used for configuring the application unit of the edge server. The third-party application module is a user custom application, which is published by an application market, and the user can publish the application by himself. The third-party application module is integrated with an ecological business, and is matched with an application management module. The third-party application module is used for converging a city application ecology, and supports the edge application to be distributed through a cloud application warehouse. The third-party application module better supports various application scenarios, and meets the needs of different users.
[0062] The edge core application module includes a host application unit, which is used for distributing and transmitting data as a message bus, and installing and uninstalling a service plug-in. In the edge server, a plurality of application units (including other application units in the edge core application module, application units in the extension application module, and application units in the third-party application module) run in a JVM program running container of the host application unit, share JVM content and CPU service resources through the host application unit, so as to realize the function of the dynamically pluggable components of the edge server.
[0063] Specifically, the Internet of Things edge computing platform where the edge server in the embodiment of the application is located is an Internet of Things platform with dynamically pluggable components. The edge-broker host application unit reads the plug-in service configuration through the Nacos registration center, dynamically loads and unloads the ClassLoader of the component Plugin according to the user's will, realizes the loading and unloading of the component, and simultaneously performs process-level isolation management on all Beans of the component. In the runtime, the host application unit reads the pom file of each component, merges the dependent packages into a common pom, and punches the dependent file into the common dependent package warehouse common lib. The JVM and runtime container of the host application unit are used by each component unit, and corresponding class isolation capabilities are provided. At the same time, the atomic business dynamic arrangement capability, the dynamic loading, updating and unloading capability are realized through the Restful-API.
[0064] By using the technical means of the embodiment of the application, an edge server suitable for cloud-edge interaction is provided. The edge server provides the Internet of Things capabilities of the core application, the extension application and the third-party application, supports a plurality of access modes and data routing modes, dynamically loads and unloads each service component by constructing a host service, saves the valuable resources of the edge node, and simultaneously, the user can freely select and match the functional modules or even develop by himself, so that the service function extension is facilitated. The application has important significance in the increasingly fierce international relations and the promotion of domestic technology, can effectively meet various complex Internet of Things device access scenarios, flexibly meet various operating environments of the Internet of Things devices, meet the needs of high timeliness, low traffic and offline autonomous function.
[0065] Preferably, referring toFigure 2 is a structural schematic diagram of the edge server preferred in the embodiments of the present application, and the edge core application module includes a host application unit, a standard protocol access unit, a rule matching unit, a data analysis unit and a message routing unit. The host application unit is used as a message bus to distribute and transmit data, and to install and uninstall service plug-ins. The standard protocol access unit is used to access standard protocol devices and obtain device messages of the standard protocol type. The rule matching unit is used to match and filter the device messages according to preset rules. The data analysis unit is used to analyze the device messages according to standard thing models. The message routing unit is used to forward the device messages.
[0066] Specifically, the host application unit edge-broker is responsible for the installation and uninstallation of all service plug-ins, and also serves as a message bus to distribute and transmit data. The standard protocol access units edge-mqtt-acc, edge-lwm2m-acc, etc. are responsible for the access of various standard protocol devices. The data analysis unit edge-thing is mainly a device thing model module, and is responsible for analyzing device uplink data according to standard thing models. The rule matching unit edge-rule is a rule engine responsible for device data filtering and screening. The message routing unit edge-bridge is responsible for various bridge message routing.
[0067] As a preferred implementation, the edge core application module further includes a cloud edge agent unit, an industrial protocol analysis unit, a device authentication unit and a command issuing unit. The cloud edge agent unit is used to obtain system information and report it to the host application unit, and to receive and analyze configuration information of a cloud server. The industrial protocol analysis unit is used to access industrial protocol devices, and to obtain, analyze and integrate device messages of the industry protocol and industrial protocol types. The device authentication unit is used to perform access authentication and device online and offline processing on the standard protocol devices and the industrial protocol devices. The command issuing unit is used to issue various protocol commands.
[0068] Specifically, the cloud edge agent unit edge-agent is mainly responsible for providing device reporting message agent and cloud configuration analysis capability, when the edge device accesses, the cloud device synchronization uplink and downlink are carried out according to the two message hanging points of ON_CLIENT_CONNECTED and ON_CLIENT_DISCONNECTED, when the edge device reports the message, the data uplink processing is carried out through the ON_MESSAGE_PUBLISH hanging point; the industrial protocol analysis unit edge-gateway is responsible for the analysis and integration of various industry protocols and industrial protocols; the device authentication unit edge-auth is responsible for device access authentication and device online and offline processing; the command issuing unit edge-cmd is responsible for issuing commands of various protocols.
[0069] As a preferred embodiment, on the basis of the above embodiment, the expansion application module includes an API interface unit, a log analysis unit, an edge file management unit and an offline autonomous unit; wherein the API interface unit is used to collect host information; the log analysis unit is used to collect and analyze the log data of the host; the edge file management unit is used to manage the file information of the edge server; the offline autonomous unit is used to be responsible for the offline autonomy, network interruption and cross-node collaboration of the edge server.
[0070] Specifically, the expansion application module is an expansion for the edge node service, and users can select and match according to their own needs, wherein the API interface unit edge-sysapi is responsible for collecting host information, which is different from the cloud edge cooperation and is mainly used for third-party applications; the log analysis unit edge-logstash is responsible for collecting and processing the logs of each service of the host; the edge file management unit edge-file is responsible for edge small file management; the offline autonomous unit edge-self-governance is responsible for providing edge node offline autonomy, network interruption and cross-node collaboration functions, and guaranteeing the reliability and stability of the edge node.
[0071] Referring to Figure 3 The embodiment of the application provides a kind of structure schematic diagram of Internet of Things edge computing platform, and the embodiment of the application provides a kind of Internet of Things edge computing platform, it includes: cloud server, edge server and cloud edge cooperation module, wherein the cloud server is used to carry out the management and information inquiry of the edge server;The cloud edge cooperation module is used to carry out the message communication of the cloud server and the edge server;The edge server is the edge server as described in the above embodiment.
[0072] Specifically, the cloud server is responsible for the management of the edge server and the query of node information, the node information including CPU, memory, disk usage, operating system, network card, program version and other information of the host computer; the cloud server is also used for the query of cloud messages reported by the device, image management, application management and the like. The cloud-edge collaboration module performs reliable and efficient cloud-edge message communication through WebSocket or Quic protocol.
[0073] It should be noted that the edge application in the figure is a third-party application module, the Harbor private warehouse, data cache and edge message center are middleware, and are different according to different application scenarios.
[0074] The technical means of the embodiment of the application provides an Internet of Things edge platform architecture with cloud system management, cloud-edge collaborative management and edge node system, provides core application, extended application, third-party application and the like, and can flexibly meet various running environments of Internet of Things devices.
[0075] The embodiment of the application further provides an edge computing method applied to the Internet of Things edge computing platform as described in the above embodiment. The edge computing method is the implementation process of edge server registration, application module deployment and uplink and downlink data interaction of the Internet of Things edge computing platform.
[0076] Referring to Figure 4 is a first flowchart of an edge computing method provided by the embodiment of the application, and the following explains and describes the edge server registration process, and the method comprises steps S11 to S13:
[0077] S11, the cloud server receives edge server information selected by a user device, provides a corresponding node registration command according to the edge server information, so that the user device performs node registration at the edge end according to the node registration command; wherein the node registration command is used to register the edge server;
[0078] S12, the cloud server pulls the application image of the edge core application module of the edge server, and deploys the edge core application module;
[0079] S13, the cloud server receives edge server state information reported by the edge server after successful registration.
[0080] In the embodiment of the present application, the user equipment first fills in or selects the edge server information on the cloud server, and selects the corresponding configuration content through the edge server information. The cloud server provides the corresponding node registration command according to the corresponding edge server information, and the user equipment registers the node on the edge side according to the node registration command provided by the cloud server, deploys the basic framework required for edge computing. Pull the application image of the edge core application module of the edge server and deploy it. Start the daemon thread to listen to the container running state, and if it exits abnormally, restart and other operations. After the edge side registration is successful, the edge server state information is automatically reported, including the edge server name, edge server ID, edge server working state, registration time, activation time, and recent access time.
[0081] Referring to Figure 5 , which is a second flowchart of the edge computing method in the embodiment of the present application. After the edge server registration is completed, the application module deployment of the edge server is needed, and the application module deployment process includes deploying the edge core application module, deploying the extended application module, and deploying the third-party application module. Among them, the edge core application module is usually a built-in application module, which is completed in the edge server registration process. The extended application module can be selected and deployed in the extended application market through the user equipment. The third-party application module is deployed through the cloud server.
[0082] The process of deploying the third-party application module is explained as follows, which includes steps S21 to S23:
[0083] S21, the cloud server obtains the application module deployment file issued by the user equipment; wherein the application model deployment file is generated according to the application image and configuration information of the third-party application module uploaded by the application equipment;
[0084] S22, the cloud server sends the application module deployment file to the cloud edge agent unit, so that the edge core application module deploys and loads the third-party application module.
[0085] In the embodiment of the present application, the user equipment uploads the application image, uploads the own image to the Harbor private warehouse on a Linux host using the docker push command according to the image management page prompt step, and the user equipment configures the user application template according to the template page. The application module will generate an application deployment file according to the configuration of the application template. The cloud server issues a deployment configuration, the agent node pulls the module Docker image and starts, if the loading fails, the error log is printed and the program is exited. If the application deployment is successful, the application related information is collected, including the container name, image address, version, etc.
[0086] Referring to Figure 6is a third flow diagram of the edge computing method in the embodiment of the application, and the following explains the transmission process of the uplink data, and the method comprises steps S31 to S34:
[0087] S31, the standard protocol access unit obtains the first uplink message sent by the standard protocol device after accessing the standard protocol device, and performs message analysis and message packaging to generate a second uplink message;
[0088] S32, the host application unit obtains the second uplink message and sends it to the rule matching unit;
[0089] S33, the rule matching unit sends the second uplink message to the data analysis unit when judging that the second uplink message meets the preset rule; otherwise, the second uplink message is discarded;
[0090] S34, the data analysis unit performs data analysis on the second uplink message according to the standard thing model after receiving the second uplink message, and sends it to the cloud server or forwards it to an external server through the message routing unit after successful analysis and verification.
[0091] In the embodiment of the application, the cloud server issues deployment configuration, the proxy node pulls the Docker image and starts, registers the MQTT proxy device, if the loading fails, the error log is printed and the exit. The platform issues the rule and the forwarding strategy file, the rule and the message forwarding module initialize the rule. The device connects the edge platform of the thing, and reports the device message through the standard protocol access unit edge-mqtt-acc. After the standard protocol access unit edge-mqtt-acc receives the uplink message, the product ID, device name, attribute name and attribute value information are analyzed and obtained, and the information is re-packaged and pushed to the host application unit edge-broker message bus. The rule matching unit egde-rule matches the existing rules in turn, if there is no rule, it is checked whether there is in the data cache, if there is no rule in the data cache, it is checked whether there is a rule in the preset database, if there is a rule, it is indicated that the rule meets the triggering condition, then the rule is executed and the data forwarding action is executed, if there is no rule that meets the condition, the message is discarded. After the rule action triggering succeeds, the trigger quantity information is updated, the data analysis unit edge-thing is called to analyze the thing model, and the cloud server is reported through the proxy device after successful analysis and verification, or the third party service is forwarded through the message routing unit edge-bridge, the protocol and the rule of the third party service can be customized by the user.
[0092] Referring to Figure 7, is a fourth flow schematic diagram of the edge computing method in the embodiment of the application, and the following explains and describes the transmission process of the downlink command, the method comprises steps S41 to S44:
[0093] S41, the command issuing unit parses and message matches the first command content after receiving the first command content issued by the cloud server, and generates second command content;
[0094] S42, the host application unit acquires the second command content, and determines the corresponding target protocol device according to the second command content, wherein the target protocol device is the standard protocol device or the industrial protocol device;
[0095] S43, when the target protocol device is the standard protocol device, the second command content is sent to the standard protocol access unit; the standard protocol access unit sends the second command content to the standard protocol device;
[0096] S44, when the target protocol device is the industrial protocol device, the second command content is sent to the industrial protocol analysis unit; the industrial protocol analysis unit sends the second command content to the industrial protocol device.
[0097] Further, the method further comprises steps S45 to S48:
[0098] S45, when the target protocol device is the standard protocol device, the standard protocol access unit receives the command execution response returned by the standard protocol device after executing the second command content, and sends the command execution response to the host application unit;
[0099] S46, when the target protocol device is the industrial protocol device, the industrial protocol analysis unit; receives the command execution response returned by the industrial protocol device after executing the second command content, and sends the command execution response to the host application unit;
[0100] S47, the host application unit sends the command execution response to the command issuing unit;
[0101] S48, the command issuing unit sends the command execution response to the cloud server.
[0102] In the embodiment of the present application, the cloud server calls the command issuing interface, the command issuing single edge-cmd accepts the command content issued by the cloud and performs preliminary analysis and message matching. For the command content sent to the tag protocol device, the host application unit edge-broker serves as a message bus service and distributes the matched message to the corresponding standard protocol access unit edge-mqtt-acc through a topic defined in advance, the standard protocol access unit edge-mqtt-acc receives the issued command message and pushes the command to the corresponding tag protocol device, the tag protocol device receives the command and executes the corresponding command and returns the corresponding command execution response. For the command content sent to the industrial protocol device, the host application unit edge-broker distributes the matched message to the corresponding industrial protocol analysis unit edge-gateway, the industrial protocol analysis unit edge-gateway receives the issued command message and pushes the command to the corresponding industrial protocol device, the industrial protocol device receives the command and executes the corresponding command and returns the corresponding command execution response. The process of command reply is opposite to the process of command issuing, so as to complete the command downlink process.
[0103] As a preferred embodiment, the embodiment of the present application is further implemented on the basis of any one of the above embodiments, in the embodiment of the present application, the software further defines related mounting points for the plug-in to listen to the state events and published messages of the current device, for example, ON_CLIENT_CONNECTED and ON_CLIENT_DISCONNECTED for device connection, or ON_MESSAGE_PUBLISH for device message reporting, etc. After the plug-in is enabled, the hook function (service) is mounted on the pre-set mounting point, the hook function should be guaranteed to return as soon as possible and cannot be blocked, otherwise the overall service performance will be affected.
[0104] When the corresponding event EVENT is generated after the device is accessed, the host application unit edge-broker calls the hook function of the corresponding service, and delivers the event or message to the plug-in, in addition, for specific mounting points such as ON_MESSAGE_PUBLISH, the plug-in needs to set the specific topic to be listened to, which is used for the host application unit to match the corresponding plug-in service, such as rule engine plug-in, routing plug-in, access plug-in, etc.
[0105] The receiving and sending of the uplink and downlink data of the client are realized through the subscription and publishing mechanism between the plug-in services, supporting wildcard + or #, for example:
[0106] The subscribed data is obtained through the subscription topic:
[0107] $sys / edge / {nodeId} / {protocol} / {tag} / notify;
[0108] Get all the reported data by subscribing to the topic:
[0109] $sys / edge / + / + / + / notify;
[0110] Issue a command to the device by publishing data to the topic:
[0111] $sys / edge / {nodeId} / {protocol} / {tag} / cmd;
[0112] Get the response result of the command by subscribing to the topic:
[0113] $sys / edge / {nodeId} / {protocol} / {tag} / cmdReply.
[0114] The technical means of the embodiment of the application has the following beneficial effects:
[0115] The embodiment of the application provides a lightweight, dynamically pluggable component Internet of Things edge computing platform and system, supports multiple access modes, each component can be dynamically plugged in and out, users can select various protocol access modules, can dynamically select whether to need a thing model, can dynamically configure data routing, avoids the bloated architecture of the traditional Internet of Things platform which must be fully deployed, fully saves edge node resources, and has great significance for resource-limited edge nodes.
[0116] The embodiment of the application provides a dynamic packaging scheme, a host service is constructed, a ClassLoader of each service component is dynamically loaded and unloaded, each service can run in the JVM of the host service, memory and CPU resources of the shared JVM are shared, resource waste caused by starting an independent JVM for each application is avoided, and this has great significance for resource-limited edge nodes.
[0117] The Internet of Things edge computing platform of the embodiment of the application has perfect Internet of Things capability, avoids the technical defects of fixed use of Redis, InfluxDB or MySQL in the prior art, can be replaced by a plug-in mode at any time, and has important significance in the increasingly fierce international relations and the promotion of domestic technology. The device access, thing model analysis, third-party routing push and other functions can be independently performed, network bandwidth is effectively reduced, and response efficiency is improved.
[0118] The embodiment of the application realizes business loose coupling with each related service through the mode of hook function, reduces the complexity of the Internet of Things business, users can freely select and match function modules or even develop by themselves, and the service function expansion and flow limiting statistics are facilitated, and the complex Internet of Things device access scene is met.
[0119] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing relevant hardware, and the program can be stored in a computer readable storage medium. When the program is executed, the program can include the processes of the above-mentioned embodiments of each method. The storage medium can be a magnetic disc, an optical disc, a read-only memory (ROM), a random access memory (RAM), or the like.
[0120] The above is the preferred embodiment of the application. It should be noted that those skilled in the art can make several improvements and refinements without departing from the principles of the application. These improvements and refinements are also considered within the protection scope of the application.
Claims
1. An edge server, characterized by Comprise: Edge core application module, extended application module and third party application module; The edge core application module comprises a host application unit, which is used for data distribution and transmission as a message bus, and performs installation and uninstallation of service plug-ins; The extended application module is used to extend the application unit of the edge server; the third party application module is used to configure the application unit of the edge server according to the user's custom demand; Each unit in the edge server runs in the JVM program running container of the host application unit, and shares JVM content and service resources through the host application unit; the edge core application module further comprises a standard protocol access unit, a rule matching unit, a data analysis unit, a message routing unit, a cloud edge proxy unit, an industrial protocol analysis unit, a device authentication unit and a command issuing unit; The host application unit is connected with the standard protocol access unit, the industrial protocol analysis unit, the rule matching unit, the cloud edge proxy unit and the command issuing unit respectively, the device authentication unit is connected with the standard protocol access unit and the industrial protocol analysis unit respectively, the cloud edge proxy unit is further connected with the command issuing unit, and the rule matching unit is further connected with the message routing unit and the data analysis unit respectively.
2. The edge server of claim 1, wherein, The standard protocol access unit is used for accessing standard protocol devices and obtaining device messages of standard protocol type; The rule matching unit is used for matching and screening the device messages according to the preset rules; The data analysis unit is used for analyzing the device messages according to the standard object model for data analysis; The message routing unit is used for forwarding the device messages; The cloud edge proxy unit is used for obtaining system information and reporting to the host application unit, and receiving and analyzing the configuration information of the cloud server; The industrial protocol analysis unit is used for accessing industrial protocol devices, and obtaining, analyzing and integrating device messages of industry protocol and industrial protocol type; The device authentication unit is used for access authentication and device online and offline processing of the standard protocol devices and the industrial protocol devices; The command issuing unit is used for issuing various protocol commands.
3. The edge server of claim 2, wherein, The extended application module comprises an API interface unit, a log analysis unit, an edge file management unit and an offline autonomous unit; The API interface unit is used for collecting host computer information; The log analysis unit is used for collecting and analyzing log data of the host computer; The edge file management unit is used for managing file information of the edge server; The offline autonomous unit is used for the offline autonomy, network interruption and cross node cooperation of the edge server.
4. An Internet of Things edge computing platform, characterized by Comprise: Cloud server, edge server and cloud edge collaboration module, wherein the cloud server is used for managing and querying information of the edge server; the cloud edge collaboration module is used for message communication between the cloud server and the edge server; the edge server is the edge server of claim 2 or 3.
5. An edge computing method, characterized by, Applied to the Internet of Things edge computing platform of claim 4; the method comprises: The cloud server receives edge server information selected by the user equipment, provides a corresponding node registration command according to the edge server information, and enables the user equipment to register a node at an edge end according to the node registration command; wherein the node registration command is used to register the edge server; The cloud server pulls an application image of the edge core application module of the edge server and deploys the edge core application module; The cloud server receives edge server state information reported by the edge server after successful registration.
6. The edge computing method of claim 5, wherein, The method further comprises: The cloud server obtains an application module deployment file issued by the user equipment; wherein the application module deployment file is generated according to an application image and configuration information of a third-party application module uploaded by the application equipment; The cloud server sends the application module deployment file to the cloud edge proxy unit, so that the edge core application module deploys and loads the third-party application module.
7. The edge computing method of claim 5, wherein, The method further comprises: The standard protocol access unit obtains a first uplink message sent by the standard protocol equipment after accessing the standard protocol equipment, and performs message analysis and message encapsulation to generate a second uplink message; The host application unit obtains the second uplink message and sends it to the rule matching unit; The rule matching unit sends the second uplink message to the data analysis unit when it is determined that the second uplink message meets a preset rule; otherwise, the second uplink message is discarded; The data analysis unit performs data analysis on the second uplink message according to a standard object model after receiving the second uplink message, and sends it to the cloud server or forwards it to an external server through the message routing unit after successful analysis and verification. 8.The edge computing method of claim 5, wherein, The method further comprises: The command issuing unit analyzes and matches the first command content after receiving the first command content issued by the cloud server, and generates second command content; The host application unit obtains the second command content, determines a corresponding target protocol equipment according to the second command content, and the target protocol equipment is the standard protocol equipment or the industrial protocol equipment; When the target protocol equipment is the standard protocol equipment, the second command content is sent to the standard protocol access unit; the standard protocol access unit sends the second command content to the standard protocol equipment; When the target protocol equipment is the industrial protocol equipment, the second command content is sent to the industrial protocol analysis unit; the industrial protocol analysis unit sends the second command content to the industrial protocol equipment.
9. The edge computing method of claim 8, wherein, The method further comprises: When the target protocol equipment is the standard protocol equipment, the standard protocol access unit receives a command execution response returned by the standard protocol equipment after executing the second command content, and sends the command execution response to the host application unit; When the target protocol device is the industrial protocol device, the industrial protocol analysis unit receives a command execution response returned by the industrial protocol device after executing the second command content, and sends the command execution response to the host application unit; The host application unit sends the command execution response to the command issuing unit; The command issuing unit sends the command execution response to the cloud server.
Citation Information
Patent Citations
Intelligent edge equipment control platform based on KubeEdge and Edge X Foundry
CN112383416A
Smart gateway, smart gateway system and smart gateway device
CN115174612A