Information processing method and system, electronic equipment and storage medium
By calling integrated instances in the edge cloud to process information processing requests and send orchestration information, the problem of low orchestration of business logic in the Internet of Things platform and edge cloud is solved, and efficient information processing and communication is achieved.
Patent Information
- Application Number
- CN202310738845.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-20
- Publication Date
- 2024-12-20
AI Technical Summary
The business logic orchestration method based on the Internet of Things platform and edge cloud leads to the fact that there are many requests for cloud services and high bandwidth losses, which cannot guarantee the efficiency of business logic orchestration.
By calling the integrated instance in the edge cloud, the information processing request from the source side is processed, the target side identification and orchestration information is generated, and the orchestration information is sent to the target side to perform corresponding service operations, reducing the number of requests and bandwidth requirements for cloud services. .
It improves the efficiency of information processing and the efficiency of business logic orchestration, reduces the load on cloud services, and improves the communication efficiency between the source and targets.
Smart Images

Figure CN119172741A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of communication technology and Internet of Things technology, and more specifically, to an information processing method, system, electronic device, and storage medium. Background Art
[0002] With the development of IoT technology, IoT platforms and edge clouds have been widely used in various fields. For example, business logic orchestration can be performed on terminal devices based on IoT platforms and edge clouds. Summary of the invention
[0003] In view of this, the present disclosure provides an information processing method, system, electronic device and storage medium.
[0004] According to one aspect of the present disclosure, there is provided an information processing method, comprising: in response to receiving an information processing request from a source end, calling an integration instance corresponding to the information processing request, wherein the integration instance supports a corresponding communication protocol and is deployed in an edge cloud; using the integration instance to process the information processing request to obtain processing information, wherein the processing information includes a target end identifier and orchestration information; and using the integration instance to send the orchestration information to a target end corresponding to the target end identifier, so that the target end performs a business operation corresponding to the orchestration information.
[0005] According to another aspect of the present disclosure, there is provided an information processing system, comprising: a source end, configured to send an information processing request to an edge cloud; the edge cloud, configured to: in response to receiving the information processing request, call an integration instance corresponding to the information processing request, wherein the integration instance supports a corresponding communication protocol; use the integration instance to process the information processing request to obtain processing information, wherein the processing information includes a target end identifier and orchestration information; use the integration instance to send the orchestration information to a target end corresponding to the target end identifier; and the target end, configured to execute a business operation corresponding to the orchestration information.
[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: one or more processors; and a memory for storing one or more instructions, wherein when the one or more instructions are executed by the one or more processors, the one or more processors implement the method described in the present disclosure.
[0007] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which executable instructions are stored. When the executable instructions are executed by a processor, the processor implements the method described in the present disclosure.
[0008] According to another aspect of the present disclosure, a computer program product is provided. The computer program product includes computer executable instructions. When the computer executable instructions are executed, they are used to implement the method described in the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0010] Figure 1A The following schematically shows an example diagram of the information processing system architecture according to an embodiment of the present disclosure;
[0011] Figure 1B Schematically shows an example diagram of an information processing system architecture according to another embodiment of the present disclosure;
[0012] Figure 1C Schematically shows an example diagram of an information processing system architecture according to another embodiment of the present disclosure;
[0013] Figure 2 The flowchart of the information processing method according to the embodiment of the present disclosure is schematically shown;
[0014] Figure 3 An example schematic diagram of a process of managing information processing requests using a message queue according to an embodiment of the present disclosure is schematically shown;
[0015] Figure 4 A schematic diagram schematically shows an example of a process of processing information by processing an information processing request using an integrated instance according to an embodiment of the present disclosure;
[0016] Figure 5 An example schematic diagram schematically shows a process of generating a first resource download request according to an embodiment of the present disclosure;
[0017] Figure 6 An example schematic diagram schematically shows an information processing process according to an embodiment of the present disclosure;
[0018] Figure 7 A block diagram schematically shows an information processing device according to an embodiment of the present disclosure; and
[0019] Figure 8 A block diagram of an electronic device suitable for implementing an information processing method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0020] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0021] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0022] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0023] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0024] In the technical solution disclosed in the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and do not violate public order and good morals.
[0025] In the technical solution of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.
[0026] The Internet of Things platform connects different types of terminal devices, collects data collected by the terminal devices, and processes the data to provide users with real-time monitoring, early warning, control, and analysis services.
[0027] Edge cloud provides reliable, efficient and secure computing and storage resources to meet business needs in edge computing scenarios.
[0028] However, since the business logic orchestration methods based on the Internet of Things platform and edge cloud usually need to obtain resources based on cloud services, it leads to a large number of requests for cloud services and high bandwidth loss, which makes it impossible to guarantee the efficiency of business logic orchestration.
[0029] To this end, an embodiment of the present disclosure proposes an information processing solution. For example, in response to receiving an information processing request from a source end, an integration instance corresponding to the information processing request is called. The integration instance supports the corresponding communication protocol, and the integration instance is deployed in the edge cloud. The information processing request is processed using the integration instance to obtain processing information. The processing information includes a target end identifier and orchestration information. The integration instance is used to send orchestration information to a target end corresponding to the target end identifier so that the target end performs a business operation corresponding to the orchestration information.
[0030] Figure 1A The following schematically shows an example of the information processing system architecture according to an embodiment of the present disclosure. It should be noted that: Figure 1A What is shown is merely an example of an information processing system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0031] like Figure 1A As shown, the information processing system 100A may include a source end 101 , an edge cloud 102 , and a target end 103 .
[0032] The source end 101 is configured to send an information processing request to the edge cloud 102 .
[0033] The edge cloud 102 is configured to, in response to receiving an information processing request, call an integration instance 102_1 corresponding to the information processing request, wherein the integration instance 102_1 supports the corresponding communication protocol; use the integration instance 102_1 to process the information processing request to obtain processing information, wherein the processing information includes a target end identifier and orchestration information; use the integration instance 102_1 to send the orchestration information to a target end 103 corresponding to the target end identifier.
[0034] The target end 103 is configured to execute a business operation corresponding to the orchestration information.
[0035] According to an embodiment of the present disclosure, the source end 101 can perform bidirectional communication with the edge cloud 102 through a first communication protocol, and the edge cloud 102 can perform bidirectional communication with the target end 103 through a second communication protocol. The source end 101 and the target end 103 can be decoupled by the edge cloud 102. The first communication protocol of the source end 101 and the second communication protocol of the target end 103 can be the same or different.
[0036] Figure 1BThe figure schematically shows an example diagram of the information processing system architecture according to another embodiment of the present disclosure.
[0037] like Figure 1B As shown, the information processing system 100B may include a source end 104, an edge cloud 105 and a target end 106. In this case, the source end 104 may be a terminal device and the target end 106 may be an Internet of Things platform.
[0038] The source end 104 may include a terminal device 104_1, a terminal device 104_2, ..., a terminal device 104_a, ..., a terminal device 104_A. A may be an integer greater than or equal to 1, a∈{1, 2, ..., (A-1), A}.
[0039] The edge cloud 105 may be deployed with integration instance 105_1, integration instance 105_2, ..., integration instance 105_b, ..., integration instance 105_B. B may be an integer greater than or equal to 1, b∈{1, 2, ..., (B-1), B}.
[0040] The target end 103 may include a server 106_1, a server 106_2, ..., a server 106_c, ..., a server 106_C. C may be an integer greater than or equal to 1, c∈{1, 2, ..., (C-1), C}.
[0041] In this case, in response to receiving an information processing request from the terminal device 104_1, the terminal device 104_2, ..., the terminal device 104_a, ..., the terminal device 104_A, the edge cloud 105 can call the integration instance 105_1, the integration instance 105_2, ..., the integration instance 105_b, ..., the integration instance 105_B corresponding to the information processing request. The edge cloud 105 can use the integration instance 105_1, the integration instance 105_2, ..., the integration instance 105_b, ..., the integration instance 105_B to process the information processing request and obtain processing information. The edge cloud 105 can use the integration instance 105_1, the integration instance 105_2, ..., the integration instance 105_b, ..., the integration instance 105_B to send the orchestration information to the server 106_1, the server 106_2, ..., the server 106_c, ..., the server 106_C.
[0042] Figure 1C The figure schematically shows an example diagram of the information processing system architecture according to another embodiment of the present disclosure.
[0043] like Figure 1C As shown, the information processing system 100C may include a source end 107, an edge cloud 108, and a target end 109. In this case, the source end 107 may be an Internet of Things platform, and the target end 109 may be a terminal device.
[0044] The source end 107 may include a server 107_1, a server 107_2, ..., a server 107_c, ..., a server 107_C. C may be an integer greater than or equal to 1, p∈{1, 2, ..., (P-1), P}.
[0045] The edge cloud 108 may be deployed with integration instance 108_1, integration instance 108_2, ..., integration instance 108_n, ..., integration instance 108_N. n may be an integer greater than or equal to 1, n∈{1, 2, ..., (N-1), N}.
[0046] The target end 109 may include a terminal device 109_1, a terminal device 109_2, ..., a terminal device 109_m, ..., a terminal device 109_M. M may be an integer greater than or equal to 1, m∈{1, 2, ..., (M-1), M}.
[0047] In this case, in response to receiving an information processing request from the server 107_1, the server 107_2, ..., the server 107_c, ..., the server 107_C, the edge cloud 108 may call the integration instance 108_1, the integration instance 108_2, ..., the integration instance 108_n, ..., the integration instance 108_N corresponding to the information processing request. The edge cloud 108 may process the information processing request using the integration instance 108_1, the integration instance 108_2, ..., the integration instance 108_n, ..., the integration instance 108_N to obtain processing information. The edge cloud 108 may send the orchestration information to the terminal device 109_1, the terminal device 109_2, ..., the terminal device 109_m, ..., the terminal device 109_M using the integration instance 108_1, the integration instance 108_2, ..., the integration instance 108_n, ..., the integration instance 108_N. It should be noted that the information processing method provided in the embodiment of the present disclosure can generally be executed by the edge cloud 102, the edge cloud 105 and / or the edge cloud 108. Accordingly, the information processing device provided in the embodiment of the present disclosure can generally be arranged in the edge cloud 102, the edge cloud 105 and / or the edge cloud 108. The information processing method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the edge cloud 102, the edge cloud 105 and / or the edge cloud 108 and can communicate with the source end 101, the source end 104 and / or the source end 107, the edge cloud 102, the edge cloud 105 and / or the edge cloud 108, the target end 103, the target end 106 and / or the target end 109. Correspondingly, the information processing device provided by the embodiment of the present disclosure may also be arranged in a server or server cluster that is different from edge cloud 102, edge cloud 105 and / or edge cloud 108 and is capable of communicating with source end 101, source end 104 and / or source end 107, edge cloud 102, edge cloud 105 and / or edge cloud 108, target end 103, target end 106 and / or target end 109.
[0048] Alternatively, the information processing method provided in the embodiment of the present disclosure may also be executed by the source end 101, the source end 104 and / or the source end 107, or the target end 103, the target end 106 and / or the target end 109, or may also be executed by other terminal devices different from the source end 101, the source end 104 and / or the source end 107, or the target end 103, the target end 106 and / or the target end 109. Accordingly, the information processing device provided in the embodiment of the present disclosure may also be arranged in the source end 101, the source end 104 and / or the source end 107, or the target end 103, the target end 106 and / or the target end 109, or in a device different from the source end 101, the source end 104 and / or the source end 107, or the target end 103, the target end 106 and / or the target end 109.
[0049] It should be understood that the number of source terminals, edge clouds, target terminals, terminal devices, servers, and integrated instances in Figure 1 is only illustrative. Any number of source terminals, edge clouds, target terminals, terminal devices, servers, and integrated instances may be provided as required.
[0050] It should be noted that the sequence numbers of the operations in the following method are only used as representations of the operations for the purpose of description, and should not be regarded as representing the execution order of the operations. Unless explicitly stated, the method does not need to be executed completely in the order shown.
[0051] Figure 2 The flowchart of the information processing method according to the embodiment of the present disclosure is schematically shown.
[0052] like Figure 2 As shown, the method 200 includes operations S210 to S230.
[0053] In operation S210, in response to receiving an information processing request from a source end, an integration instance corresponding to the information processing request is called.
[0054] In operation S220, the information processing request is processed using the integration instance to obtain processing information.
[0055] In operation S230, the orchestration information is sent to the target end corresponding to the target end identifier by using the integration instance, so that the target end performs the business operation corresponding to the orchestration information.
[0056] According to an embodiment of the present disclosure, the integration instance may support a corresponding communication protocol. The integration instance may be deployed in an edge cloud. The processing information may include a target end identifier and orchestration information.
[0057] According to an embodiment of the present disclosure, the information processing method provided by the present disclosure can be applied to an edge cloud. The edge cloud can run on an edge server. The edge cloud can refer to a cloud computing platform in which the core and edge computing capabilities of cloud computing are deployed on an edge infrastructure. The edge cloud can serve as a medium for interaction between the source end and the target end. For example, the edge cloud can process the device connection of the source end, thereby maintaining a two-way communication channel with the source end. Alternatively, the edge cloud can process the device connection of the target end, thereby maintaining a two-way communication channel with the target end.
[0058] According to an embodiment of the present disclosure, a plurality of different types of terminal devices can communicate with an Internet of Things (IoT) platform by accessing an integrated instance. The terminal device may refer to a demand side of a cloud computing service, such as a terminal or user side in the Internet. The type of the terminal device may include at least one of the following: a sensor, a smart home device, an industrial device, a medical device, and an Internet of Vehicles device.
[0059] According to an embodiment of the present disclosure, multiple integration instances may be pre-created and deployed on the edge cloud. For example, the integration instance may be pre-created based on instance configuration information. The integration instance may be used to process information processing requests from the source end to obtain processing information.
[0060] According to an embodiment of the present disclosure, a communication protocol can be used to specify a communication method between an integration instance and a source end. By adopting different information processing methods for different communication protocols, communication between different types of terminal devices and the Internet of Things platform can be supported. The communication protocol may include at least one of the following: Transmission Control Protocol (TCP), User Datagram Protocol (UDP), Message Queuing Telemetry Transport (MQTT), Hyper Text Transfer Protocol (HTTP), Constrained Application Protocol (CoAP) and other customized protocols.
[0061] According to an embodiment of the present disclosure, the integration instance may support the corresponding communication protocol. The integration instance may include at least one of the following: an integration instance for managing TCP protocol access terminal devices, an integration instance for managing UDP protocol access devices, an integration instance for managing MQTT protocol access devices, an integration instance for managing HTTP protocol access devices, and an integration instance for managing CoAP protocol access devices.
[0062] According to an embodiment of the present disclosure, since different types of terminal devices may be suitable for data in different formats, the data from the terminal device may be format converted according to the data protocol corresponding to the type of the terminal device to achieve data format unification. The data protocol may be used to specify the data exchange format between the integration instance and the terminal device. The data format may include at least one of the following: JavaScript Object Notation (JSON) format, Test Expression (test) format, and binary (i.e., Binary) format, etc.
[0063] According to an embodiment of the present disclosure, an information processing request may be used to request the execution of an information processing operation. The information processing request may include at least one of the following: information to be processed, an identifier of information to be processed, an information processing request identifier, a script identifier corresponding to the information processing request, and metadata for running the script corresponding to the information processing request.
[0064] According to an embodiment of the present disclosure, a first script for generating an information processing request may be pre-stored in a source end. In response to detecting an information processing operation initiated by a user, information to be processed corresponding to the information processing operation may be obtained. Using the first script, an information processing request is generated according to the information to be processed. After obtaining the information processing request, the source end may send the information processing request to the edge cloud. After receiving the information processing request, the edge cloud may call the integration instance corresponding to the information processing request according to the information processing request.
[0065] For example, when the source end is a terminal device, the target end is an IoT platform, the information processing request is an information acquisition request, the information to be processed may include information uploaded by the terminal device to the IoT platform, and the integration instance corresponding to the information acquisition request may be called. In this case, the integration instance corresponding to the information acquisition request may be used to process the information from the terminal device according to the requirements of the IoT platform.
[0066] Alternatively, when the source end is an IoT platform, the target end is a terminal device, and the information processing request is an Over-The-Air Upgrade (OTA) request, the information to be processed may include information sent by the IoT platform to the terminal device, and the integration instance corresponding to the OTA request may be called. In this case, the integration instance corresponding to the OTA request may be used to process the information from the IoT platform according to the needs of the terminal device.
[0067] According to an embodiment of the present disclosure, after obtaining an integrated instance, the integrated instance can be used to process the information processing request to obtain processing information. The integrated instance may include at least one candidate routine (ie, Example). The candidate routine may refer to a sample program or sample code for implementing a certain specific function. The functions that the candidate routine can implement may include at least one of the following: a learning reference function, a prototype development function, a function reuse function, a troubleshooting function, a parsing function, and a logic arrangement function, etc.
[0068] For example, in the case where a troubleshooting function needs to be implemented, the candidate routine may include a troubleshooting routine, in which case the troubleshooting routine may be used to troubleshoot the information processing request to obtain processing information. Alternatively, in the case where a parsing function needs to be implemented, the candidate routine may include a parsing routine, in which case the parsing routine may be used to parse the information processing request to obtain processing information. Alternatively, in the case where a logic arrangement function needs to be implemented, the candidate routine may include a logic arrangement routine, in which case the logic arrangement routine may be used to perform logic arrangement on the information processing request to obtain processing information.
[0069] According to an embodiment of the present disclosure, a specific processing method may include at least one of the following: communication protocol conversion processing and data format conversion processing. For example, when the data formats of the source end and the target end are consistent, the integrated instance can be used to perform communication protocol conversion processing to obtain processing information. Alternatively, when the data formats of the source end and the target end are inconsistent but the communication protocols are consistent, the integrated instance can be used to perform data format conversion processing to obtain processing information. Alternatively, when both the data formats and communication protocols of the source end and the target end are inconsistent, the integrated instance can be used to simultaneously perform communication protocol conversion processing and data format conversion processing to obtain processing information.
[0070] According to an embodiment of the present disclosure, processing information may include a target terminal identifier and orchestration information. The target terminal identifier may be used to characterize different target terminals. The target terminal may be maintained through an Internet of Things platform. An Internet of Things platform may refer to a cloud service platform designed based on cloud computing technology to support Internet of Things applications. The Internet of Things platform can provide multiple communication protocols, multiple data formats, and multiple types of device connections, data collection, device management, data analysis, device shadows, and application development.
[0071] According to an embodiment of the present disclosure, the orchestration information may be obtained by logically orchestrating the information processing request. Logical orchestration may refer to the process of organizing the execution action of the target end through the protocol script function. The orchestration information is used to control the target end to perform the business operation corresponding to the orchestration information. After obtaining the target end identifier and the orchestration information, the integration instance may be used to send the orchestration information to the target end corresponding to the target end identifier, so that the target end performs the business operation corresponding to the orchestration information.
[0072] According to the embodiments of the present disclosure, since the integration instance is called by the edge cloud in response to the information processing request received from the source end, the integration instance can correspond to the information processing request. On this basis, by utilizing the integration instance deployed on the edge cloud to process the information processing request, obtain the target end identifier and orchestration information, and use the integration instance to send the orchestration information to the target end corresponding to the target end identifier, data forwarding between the source end and the target end can be achieved, thereby reducing the number of requests for cloud services and bandwidth requirements, and improving the efficiency of information processing. By using the integration instance to send the orchestration information to the target end corresponding to the target end identifier, the target end can automatically execute the business operation corresponding to the orchestration information, thereby improving the efficiency of business logic orchestration, and further improving the communication efficiency between the source end and the target end.
[0073] Reference below Figure 3 to Figure 6 , the information processing method 200 according to the embodiment of the present invention is further explained.
[0074] According to an embodiment of the present disclosure, the information processing method 200 may further include the following operations.
[0075] In response to detecting a creation instruction for the integration instance, acquiring instance configuration information corresponding to the creation instruction, and creating the integration instance according to the instance configuration information.
[0076] According to an embodiment of the present disclosure, a second script for generating a creation instruction may be pre-stored in a source end. In response to detecting a user's creation operation for an integration instance, instance configuration information corresponding to the integration instance may be obtained. Using the second script, a creation instruction corresponding to the integration instance is generated according to the instance configuration information. After obtaining the creation instruction, the source end may send the creation instruction to the edge cloud. After receiving the creation instruction, the edge cloud may obtain the instance configuration information according to the creation instruction to create the integration instance.
[0077] According to an embodiment of the present disclosure, the creation operation for the integration instance may refer to the instance creation operation performed by the developer. For example, the developer may configure the instance parameters in the compilation interface and click on the instance creation, and the instance setting parameters may be determined as the instance configuration information. On this basis, the integration instance may be generated based on the instance configuration information compiled by the developer, and after the integration instance is generated, the integration instance may be run in response to the run operation performed by the developer.
[0078] According to an embodiment of the present disclosure, before creating an integrated instance, a developer may pre-compile a data conversion script corresponding to each communication protocol. For example, a data conversion script may be obtained by performing targeted compilation according to the data format of the data sent by the terminal corresponding to the communication protocol. The data conversion script may include an upstream data conversion script and a downstream data conversion script. The upstream data conversion script may be used to convert an information processing request sent from the source end to the target end into the data format required by the target end. The downstream data conversion script is used to convert an information processing request sent from the target end to the source end into the data format required by the source end.
[0079] According to an embodiment of the present disclosure, the instance configuration information may include the setting parameters of the instance. The setting parameters of the instance may include the instance name of the integration instance, the type of communication protocol, whether to enable (i.e., Enable), the upstream data conversion script, the downstream data conversion script, the port address, the maximum request length of the connection queue, the data receiving buffer size, the data sending buffer size, the instance description, the integration instance metadata and auxiliary information, and other configuration parameters related to the operation of the integration instance.
[0080] According to the embodiments of the present disclosure, different communication protocols may correspond to different integration instances. For example, the TCP protocol may correspond to an integration instance for managing TCP protocol access terminal devices, the UDP protocol may correspond to an integration instance for managing UDP protocol access terminal devices, the MQTT protocol may correspond to an integration instance for managing MQTT protocol access terminal devices, etc. The integration instance may be used to provide communication services to terminals using the communication protocol.
[0081] According to an embodiment of the present disclosure, operation S210 may include the following operations.
[0082] In response to the information processing request of the source end being monitored by the monitoring port, an integration instance corresponding to the monitoring port is determined from multiple integration instances, and the integration instance corresponding to the monitoring port is called.
[0083] According to an embodiment of the present disclosure, after multiple integration instances deployed on the edge cloud are started, for integration instances corresponding to different communication protocols, a listening port corresponding to the communication protocol can be created, and the information processing request can be listened to using the listening port. For example, for the TCP protocol, a listening port corresponding to the TCP protocol (i.e., a TCP server) can be created. Alternatively, for the HTTP protocol, a listening port corresponding to the HTTP protocol (i.e., an HTTP server) can be created.
[0084] According to an embodiment of the present disclosure, a port pool may refer to a set of available ports, and a port pool may maintain multiple ports for monitoring and binding of an integration instance. For each integration instance, when the integration instance is started, a target port corresponding to the integration instance may be determined from multiple ports included in the port pool. The method for determining the target port may be configured according to actual business needs and is not limited here. For example, the target port corresponding to the integration instance may be determined in sequence according to the sequential port number. Alternatively, the target port corresponding to the integration instance may be determined according to a predetermined condition.
[0085] According to an embodiment of the present disclosure, the plurality of ports may include a reserved port, a used port, and an idle port. The reserved port may refer to a port that has been reserved and not used among the plurality of ports. The used port may refer to a port that has been reserved and used among the plurality of ports. The idle port may refer to a port that has not been used and not reserved among the plurality of ports.
[0086] According to an embodiment of the present disclosure, the predetermined condition can be configured according to actual business needs and is not limited here. For example, the predetermined condition can be configured to give priority to selecting a free port among multiple ports, that is, a port that is not used and not reserved, and determine it as the target port corresponding to the integration instance. Alternatively, in the case where there are no free ports among the multiple ports, a reserved port among the multiple ports, that is, a reserved and unused port, can be given priority to determine it as the target port corresponding to the integration instance. Alternatively, in the case where there are no free ports and reserved ports among the multiple ports, it can be determined that the listening port allocation has failed.
[0087] According to an embodiment of the present disclosure, by enabling a multi-threaded mode, different listening ports are used to monitor multiple integration instances in parallel, thereby being able to work in a concurrent mode, thereby improving the sending and receiving throughput of the listening port.
[0088] According to an embodiment of the present disclosure, operation S210 may further include the following operations.
[0089] The information processing request monitored by the monitoring port is stored in the message queue, so as to obtain the information processing request from the message queue.
[0090] According to an embodiment of the present disclosure, a message queue (i.e., a Message Queue) may refer to a communication mechanism for transmitting messages between a sender and a receiver. A message queue may store and forward messages through a message server so that the sending and receiving of messages may be performed asynchronously without requiring an immediate response.
[0091] According to an embodiment of the present disclosure, the edge cloud may maintain multiple message queues. The specific number and specific purpose of the multiple message queues may be configured according to actual business needs and are not limited here. For example, the multiple message queues may include a first message queue and a second message queue. The first message queue may be used to manage information processing requests from the terminal to the Internet of Things platform. The second message queue may be used to manage information processing requests from the Internet of Things platform to the terminal.
[0092] According to an embodiment of the present disclosure, for example, after the listening port monitors an information processing request from the terminal to the Internet of Things platform, the information processing request can be added to the first message queue. In this case, the edge cloud can forward the information processing request stored in the first message queue to the Internet of Things platform. Alternatively, after the listening port monitors an information processing request from the Internet of Things platform to the terminal, the information processing request can be added to the second message queue. In this case, the edge cloud can forward the information processing request stored in the second message queue to the terminal.
[0093] According to an embodiment of the present disclosure, the first message queue and the second message queue can forward information processing requests by subscription. For example, the Internet of Things platform can send a first identifier of the first message queue to the edge cloud to subscribe to the first message queue to the edge cloud. After the monitoring port monitors the information processing request from the terminal to the Internet of Things platform, the information processing request can be added to the first message queue, and the information processing request in the first message queue is sent to the Internet of Things platform.
[0094] Alternatively, the terminal may send a second identifier of the second message queue to the edge cloud so as to subscribe to the second message queue to the edge cloud. After the monitoring port monitors the information processing request from the IoT platform to the terminal, the information processing request may be added to the second message queue, and the information processing request in the second message queue may be sent to the terminal.
[0095] According to an embodiment of the present disclosure, multiple information processing requests monitored by multiple listening ports can be delivered to a message queue concurrently through multiple first working threads, and the message queue can store the multiple information processing requests. On this basis, multiple information processing requests can be taken out concurrently through multiple second working threads for subsequent processing. Multiple first working threads and multiple second working threads can work independently of each other to ensure concurrent safety.
[0096] According to the embodiments of the present disclosure, since the source end and the target end can be independently deployed, expanded and maintained, the flexibility and maintainability of the information processing system can be improved. On this basis, by using the message queue to cache and manage the information processing requests monitored by the listening port, the orderliness of the information processing requests can be guaranteed. In addition, since the information processing requests cached in the message queue will not be deleted before the message queue is fully cached, the persistence of the information processing requests can be guaranteed.
[0097] According to an embodiment of the present disclosure, operation S210 may further include the following operations.
[0098] The listening ports corresponding to the multiple integration instances are monitored to obtain second monitoring information corresponding to the multiple integration instances. If a faulty integration instance is determined to exist according to the second monitoring information corresponding to the multiple integration instances, the faulty integration instance is repaired.
[0099] According to an embodiment of the present disclosure, the second monitoring information can be used to characterize the running state of the integration instance. The listening ports corresponding to each of the multiple integration instances can be monitored to obtain the second monitoring information corresponding to each of the multiple integration instances. On this basis, the faulty integration instance can be determined according to the second monitoring information corresponding to each of the multiple integration instances. The faulty integration instance can be repaired. The repair can include at least one of the following: stop, restart, and replace.
[0100] According to the embodiments of the present disclosure, the specific method of monitoring the integration instance can be configured according to the actual business needs, which is not limited here. For example, heartbeat packets can be sent to multiple integration instances respectively, and data packets returned by multiple integration instances can be received. According to the data packets returned by the multiple integration instances, the running status of the multiple integration instances is determined, and the integration instance whose running status indicates a fault is restarted. Alternatively, a monitoring program can be developed, and the monitoring program can be used to monitor the running status of each of the multiple integration instances and whether they are online, and restart the integration instance that is not online and whose running status indicates a fault.
[0101] According to an embodiment of the present disclosure, the operation status may include at least one of the following: operation status and business status. The operation status may refer to the operation status of the process of the integration instance, that is, whether the process is running normally. The business status may refer to whether the forwarding of the interactive data packets between the Internet of Things platform and the terminal is normal in the process of providing information processing services by the integration instance.
[0102] According to an embodiment of the present disclosure, monitoring the integration instance may include monitoring the running state of the integration instance. Alternatively, monitoring the integration instance may include monitoring the business state of the integration instance. Alternatively, monitoring the integration instance may include monitoring both the running state and the business state of the integration instance.
[0103] According to an embodiment of the present disclosure, the second monitoring information may include at least one of the following: a heartbeat data packet and an operation log during operation. For example, when the second monitoring information includes a heartbeat data packet, the instance object corresponding to the integration instance may be used to periodically capture the heartbeat data packet of the listening port during operation, and the operation status of the integration instance may be determined based on the captured heartbeat data packet.
[0104] According to an embodiment of the present disclosure, alternatively, in the case where the second monitoring information includes an operation log during the operation process, the instance object corresponding to the integration instance can be used to obtain the operation log of the integration instance during the operation process by listening to a specified channel, and the operation status and business status of the integration instance can be determined based on the obtained operation log during the operation process.
[0105] According to the embodiments of the present disclosure, it is possible to determine whether there is a fault in the running state of the integration instance by detecting whether the process is alive and whether the service is available. It is possible to determine whether there is a fault in the business state of the integration instance by detecting whether a fault code appears in the running log. In the case where it is determined that there is a faulty integration instance, the instance object can feedback the running state of the faulty integration instance to the access component, so as to determine the specific method of repairing the faulty integration instance based on the information fed back by the access component regarding the fault state.
[0106] According to an embodiment of the present disclosure, when it is determined that there is a faulty integration instance according to the second monitoring information corresponding to each of the plurality of integration instances, the following operations may be included.
[0107] A target integration instance corresponding to the faulty integration instance is determined from at least one candidate integration instance, so as to replace the faulty integration instance with the target integration instance.
[0108] According to an embodiment of the present disclosure, when it is determined that there is a faulty integration instance according to the second monitoring information corresponding to each of the plurality of integration instances and the faulty integration instance needs to be repaired, the operation of the original integration instance can be stopped. Since the integration instances of different communication protocols can correspond to different objects in the memory, when it is necessary to stop the operation of the original integration instance, the operation of the original integration instance can be stopped by the corresponding object in the memory.
[0109] According to an embodiment of the present disclosure, for the same communication protocol, there may be multiple alternative integration instances for invocation. Different alternative integration instances may be deployed in different operating environments. Multiple alternative integration instances may respond to the connection of a terminal through a unified external interface. When the terminal is connected, the terminal may be dispatched to any one of the multiple alternative integration instances to provide communication services for the terminal through the dispatched alternative integration instance.
[0110] According to an embodiment of the present disclosure, the specific method of determining the target integration instance corresponding to the faulty integration instance from at least one candidate integration instance can be configured according to actual business needs and is not limited here. For example, the method of determining the target integration instance may include at least one of the following: determining the target integration instance based on operating environment parameters and determining the target integration instance based on terminal access frequency.
[0111] According to an embodiment of the present disclosure, the candidate integration instance to be scheduled can be determined based on the operating environment parameters of each of the multiple candidate integration instances. The operating environment parameters can be used to characterize the current software and hardware performance of the operating environment in which the candidate integration instance is running, such as the remaining computing resources of the hardware, the version and running rate of the software, etc. In this case, the candidate integration instance running in the operating environment with better performance can be determined based on the operating environment parameters, and the candidate integration instance can be determined as the target integration instance for replacing the failed integration instance and providing communication services for the terminal, so as to facilitate scheduling the terminal to the target integration instance.
[0112] According to an embodiment of the present disclosure, since different alternative integration instances can provide different ports to the outside for terminal access, when the terminal is scheduled to the target integration instance, the terminal can be connected to the port provided to the outside by the target integration instance, so that the subsequent terminal can communicate with the Internet of Things platform through the port.
[0113] According to an embodiment of the present disclosure, the candidate integration instance to be scheduled can be determined according to the access frequency of the terminal. The access frequency can be used to characterize the frequency of the terminal accessing the IoT platform. The access frequency can be determined according to the frequency of the terminal accessing the IoT platform within a preset period before the current time.
[0114] According to an embodiment of the present disclosure, the higher the access frequency, the more the terminal needs to be scheduled to an alternative integrated instance with a higher performance configuration of the operating environment. For example, if the access frequency exceeds a first predetermined threshold, the terminal can be scheduled to an alternative integrated instance with a performance configuration of the operating environment exceeding a preset performance configuration.
[0115] According to an embodiment of the present disclosure, the higher the access frequency, the more the terminal needs to be scheduled to an alternative integration instance with fewer external terminals. For example, if the access frequency exceeds a second predetermined threshold, the terminal can be scheduled to an alternative integration instance with fewer access terminals than a preset number.
[0116] According to an embodiment of the present disclosure, the alternative integration instance to be scheduled can be jointly determined based on the access frequency and operating environment parameters of the terminal. For example, different levels of access frequency can be pre-divided, including high-level frequency, medium-level frequency and low-level frequency, and the lower the level, the lower the access frequency, so as to determine the target integration instance from at least one alternative integration instance according to the level of the access frequency. Alternatively, different levels of operating environment parameters can be pre-divided, including high-level environment parameters, medium-level environment parameters and low-level environment parameters, and the lower the level, the lower the performance of the current operating environment, so as to determine the level of at least one alternative integration instance according to the operating environment parameters of at least one alternative integration instance.
[0117] According to the embodiments of the present disclosure, since the second monitoring information is obtained by monitoring the listening ports corresponding to each of the multiple integration instances, the faulty integration instance can be discovered in time by continuously performing health monitoring on the listening ports corresponding to each of the multiple integration instances. On this basis, when it is determined that there is a faulty integration instance in the second monitoring information corresponding to each of the multiple integration instances, the faulty integration instance can be repaired to automatically clear the faulty integration instance and re-start a new integration instance, thereby ensuring the high availability of the integration instance.
[0118] Figure 3 An example schematic diagram of a process of managing information processing requests by using a message queue according to an embodiment of the present disclosure is schematically shown.
[0119] like Figure 3 As shown, in 300, the source end 301 may be deployed with gateways 301_1, ..., terminals 301_e, ..., and terminals 301_E. Gateway 301_1 may include terminals 301_11 and 301_12. E may be an integer greater than or equal to 1, e∈{1, 2, ..., (E-1), E}.
[0120] TCP Server 302 may run listening ports 302_1, 302_2, ..., 302_f, ..., and 302_F. F may be an integer greater than or equal to 1, f∈{1, 2, ..., (F-1), F}.
[0121] The message queue 303 may store information processing requests 303_1, information processing requests 303_2, ..., information processing requests 303_g, ..., information processing requests 303_G. G may be an integer greater than or equal to 1, g∈{1, 2, ..., (G-1), G}.
[0122] The listening ports 302_1, 302_2, ..., 302_f, ..., and 302_F in the TCP Server 302 can be used to monitor the gateways 301_1, ..., the terminals 301_e, ..., and the terminals 301_E. In response to the information processing requests from the source end monitored by the listening ports 302_1, 302_2, ..., 302_f, ..., and 302_F, the information processing requests 303_2, ..., 303_g, ..., and 303_G can be stored in the message queue 303.
[0123] According to an embodiment of the present disclosure, operation S220 may include the following operations.
[0124] The information processing request is parsed using the parsing routine to obtain parsed information. The parsed information is logically arranged using the logic arrangement routine to obtain processed information.
[0125] According to an embodiment of the present disclosure, an integration instance may include a parsing routine and a logic orchestration routine.
[0126] According to an embodiment of the present disclosure, a parsing routine may refer to a sample program or sample code for implementing a parsing function. The parsing routine may be used to parse an information processing request to obtain parsed information. A logic arrangement routine may refer to a sample program or sample code for implementing a logic arrangement function. The logic arrangement routine may be used to perform logic arrangement on parsed information to obtain processing information.
[0127] Figure 4 The example schematic diagram of the information processing process is schematically shown in which an information processing request is processed by using an integrated instance according to an embodiment of the present disclosure to obtain information processing information.
[0128] like Figure 4 As shown, in 400, after receiving the information processing request 401, the information processing request 401 can be parsed by using the parsing routine 402 to obtain parsed information 403. The parsed information 403 is logically arranged by using the logic arrangement routine 404 to obtain processing information 405.
[0129] According to an embodiment of the present disclosure, the information processing method 200 may further include the following operations.
[0130] In response to determining that the first resource corresponding to the first resource identifier does not exist in the resource set, the integrated instance generates a first resource download request according to the first resource identifier. In response to receiving the first resource from the Internet of Things platform, the integrated instance sends the first resource download request to the Internet of Things platform so that the Internet of Things platform obtains the first resource corresponding to the first resource identifier. In response to receiving the first resource from the Internet of Things platform, the integrated instance sends the first resource to the terminal device.
[0131] According to an embodiment of the present disclosure, the source end may be a terminal device, the information processing request may be an information acquisition request, and the parsed information may include a first resource identifier.
[0132] According to an embodiment of the present disclosure, a resource set may include at least one candidate first resource identifier. At least one candidate first resource identifier may each correspond to a first resource. When the source end is a terminal device and the target end is an Internet of Things platform, the information acquisition request may be parsed using a parsing routine to obtain the first resource identifier.
[0133] According to an embodiment of the present disclosure, after obtaining the first resource identifier, the first resource identifier can be matched with at least one candidate first resource identifier respectively to obtain a first matching result corresponding to each of the at least one candidate first resource identifiers. In response to determining that at least one first matching result indicates that the first resource identifier and at least one candidate first resource identifier are both successfully matched, that is, determining that there is no first resource corresponding to the first resource identifier in the resource set, a first resource download request can be generated based on the first resource identifier.
[0134] According to an embodiment of the present disclosure, after obtaining the first resource download request, the first resource download request can be sent to the Internet of Things platform using the integration instance. After receiving the first resource download request, the Internet of Things platform can determine the first resource identifier in the first resource download request. The Internet of Things platform can obtain the first resource corresponding to the first resource identifier based on the first resource identifier.
[0135] According to an embodiment of the present disclosure, after obtaining the first resource corresponding to the first resource identifier, the IoT platform can send the first resource to the edge cloud. In response to receiving the first resource from the IoT platform, the edge cloud can send the first resource to the terminal device using the integrated instance.
[0136] According to an embodiment of the present disclosure, the information processing method 200 may further include the following operations.
[0137] The first resource and the first resource identifier are associated and stored in a resource set by using the integration instance.
[0138] According to an embodiment of the present disclosure, in response to receiving a first resource from an Internet of Things platform, the edge cloud can also utilize the integration instance to associate the first resource identifier with the first resource and store it in a resource set so that subsequent terminals can obtain the first resource of the Internet of Things platform via the edge cloud.
[0139] According to an embodiment of the present disclosure, the first resource identifier may include a message digest algorithm (Message-DigestAlgorithm 5, MD5) value. The resource set deployed by the edge cloud can be used to manage files required for the integration instance. For example, the file may include an OTA upgrade package and a configuration file. The same file only occupies one storage space in the resource set.
[0140] According to an embodiment of the present disclosure, in response to determining that a first resource corresponding to a first resource identifier does not exist in a resource set, generating a first resource download request according to the first resource identifier using an integration instance may include the following operations.
[0141] In response to determining that the resource set does not contain the first resource corresponding to the first resource identifiers corresponding to the multiple information acquisition requests, the integrated instance generates a first resource download request according to the first resource identifier when it is determined that the multiple first resource identifiers are consistent.
[0142] According to an embodiment of the present disclosure, the information acquisition request may include multiple information acquisition requests, and the terminal device may include at least one terminal device.
[0143] According to an embodiment of the present disclosure, when the source end is a terminal device and the target end is an Internet of Things platform, a parsing routine can be used to parse multiple information acquisition requests separately to obtain first resource identifiers corresponding to each of the multiple information acquisition requests.
[0144] According to an embodiment of the present disclosure, after obtaining the first resource identifiers corresponding to each of the multiple information acquisition requests, the first resource identifiers corresponding to each of the multiple information acquisition requests can be matched with at least one candidate first resource identifier in the resource set to obtain a second matching result. In response to determining that the second matching result indicates that the first resource corresponding to each of the multiple information acquisition requests does not exist in the resource set, and the multiple first resource identifiers are consistent, the requests for the same first resource can be merged into one request, that is, a first resource download request is generated according to the first resource identifier.
[0145] According to an embodiment of the present disclosure, after obtaining the first resource download request, the first resource download request can be sent to the Internet of Things platform using the integration instance. After receiving the first resource download request, the Internet of Things platform can determine the first resource identifier in the first resource download request. The Internet of Things platform can obtain the first resource corresponding to the first resource identifier based on the first resource identifier, that is, only one public network download is performed.
[0146] According to an embodiment of the present disclosure, after obtaining the first resource corresponding to the first resource identifier, the IoT platform can send the first resource to the edge cloud. In response to receiving the first resource from the IoT platform, the edge cloud can send the first resource to at least one terminal device respectively using the integrated instance.
[0147] According to the embodiments of the present disclosure, since it is determined that there is no first resource corresponding to the first resource identifiers corresponding to each of the multiple information acquisition requests in the resource set and the multiple first resource identifiers are consistent, the requests for the same first resource can be merged into one request, that is, a first resource download request is generated according to the first resource identifier. On this basis, the first resource corresponding to the first resource identifier can be obtained by performing a public network download using the first resource download request, avoiding the technical problem that multiple concurrent requests put a lot of pressure on the server, reducing the number of requests to the cloud service and the bandwidth requirements, which is conducive to improving the efficiency of subsequent business logic orchestration.
[0148] Figure 5 An example schematic diagram of a process of generating a first resource download request according to an embodiment of the present disclosure is schematically shown.
[0149] like Figure 5 As shown, in 500, the source end 501 may include a terminal 501_1, a terminal 501_2, ..., a terminal 501_q, ..., and a terminal 501_Q. The terminal 501_1, the terminal 501_2, ..., the terminal 501_q, ..., and the terminal 501_Q may send an information acquisition request to the edge cloud to request to acquire the file 503_1.
[0150] When the edge cloud 502 uses the integrated instance to respond to determining that the resource set of the edge cloud 502 does not contain the file 503_1 corresponding to the first resource identifier corresponding to each of the multiple information acquisition requests from the terminal 501_1, the terminal 501_2, ..., the terminal 501_q, ..., and the terminal 501_Q, the edge cloud 502 can generate an information acquisition request and send the information acquisition request to the target terminal 503 to request to obtain the file 503_1.
[0151] The target end 503 may store files 503_1, 503_2, ..., 503_t, ..., and 503_T. The edge cloud 502 may obtain the file 503_1 from the target end 503 via an information acquisition request to complete the public network download. The terminals 501_1, 501_2, ..., 501_q, ..., and 501_Q may obtain the file 503_1 from the edge cloud 502 via an information acquisition request to complete the local area network download.
[0152] According to an embodiment of the present disclosure, the information processing method 200 may further include the following operations.
[0153] The integration instance is used to generate a second resource download request according to the second resource identifier. The integration instance is used to send the second resource download request to the Internet of Things platform so that the Internet of Things platform obtains the second resource corresponding to the second resource identifier. The integration instance is used to store the second resource and the second resource identifier in association with each other in response to receiving the second resource from the Internet of Things platform.
[0154] According to an embodiment of the present disclosure, the source end may be an Internet of Things platform. The information processing request may include an over-the-air upgrade OTA request. The parsed information may include a second resource identifier. The second resource identifier may represent an OTA resource identifier.
[0155] According to an embodiment of the present disclosure, an over-the-air upgrade OTA request may refer to over-the-air download, i.e., remote wireless upgrade technology. When the source end is an IoT platform and the target end is a terminal, the edge cloud may parse the over-the-air upgrade OTA request using a parsing routine to obtain a second resource identifier. The second resource identifier may represent an OTA resource identifier. The OTA resource identifier may include an MD5 value of an OTA resource and address information of an OTA resource.
[0156] According to an embodiment of the present disclosure, after obtaining the second resource identifier, a second resource download request can be generated according to the second resource identifier. After obtaining the second resource download request, the second resource download request can be sent to the Internet of Things platform using the integration instance. After receiving the second resource download request, the Internet of Things platform can determine the second resource identifier in the second resource download request. The Internet of Things platform can obtain the second resource corresponding to the second resource identifier according to the second resource identifier.
[0157] According to an embodiment of the present disclosure, after obtaining the second resource corresponding to the second resource identifier, the IoT platform can send the second resource to the edge cloud. Using the integrated instance, in response to receiving the second resource from the IoT platform, the edge cloud can associate and store the second resource identifier with the second resource so as to store the two resources in the edge storage.
[0158] According to an embodiment of the present disclosure, in the case where the source end is a terminal device, the target end is an Internet of Things platform, and the information processing request is a current OTA reporting request, the parsed information includes the current OTA reporting information, and the orchestration information is used to control the Internet of Things platform to perform a business operation of generating the next OTA instruction issuance request according to the current OTA reporting information, wherein the next OTA instruction issuance request includes the next OTA instruction. In the case where the source end is an Internet of Things platform, the target end is a terminal device, and the information processing request is a current OTA instruction issuance request, the parsed information includes the current OTA instruction, and the orchestration information is used to control the terminal device to perform a business operation corresponding to the current OTA instruction, and generate the next OTA reporting request when the business operation is completed, wherein the next OTA reporting request includes the next OTA reporting information.
[0159] According to an embodiment of the present disclosure, an information processing request may include an OTA reporting request and an OTA instruction sending request. An OTA instruction sending request may refer to an OTA command sent from the cloud. An OTA reporting request may refer to an OTA command fed back by a terminal device. An uplink parsing script and a downlink parsing script may be pre-defined, and the OTA process of the terminal device may be defined in the script in a Function as a Service (FaaS) manner. Function as a Service may refer to splitting the business logic of an application into independent small functions, each of which is responsible for a specific function, and automatically calling and running the function through event-driven or API gateway methods. OTA downlink parsing is performed on the OTA instruction sending request using a downlink parsing script. For example, the information processing method may be applied to define the OTA process of a terminal device in a Function as a Service manner to achieve management and control of screen display.
[0160] According to the embodiments of the present disclosure, when the source end is a terminal device, the target end is an IoT platform, and the information processing request is a current OTA reporting request, an uplink parsing script can be used to perform OTA uplink parsing on the OTA reporting request. The parsing routine can be used to parse and process the information reported by each terminal device, and map the key content in the information reported by each terminal device to a fixed system reserved field to obtain the current OTA reporting information corresponding to each terminal device.
[0161] According to the embodiments of the present disclosure, on this basis, a logic orchestration routine can be used to perform logic orchestration processing on the current OTA reporting information corresponding to each terminal device respectively, and obtain orchestration information for controlling the Internet of Things platform to execute the business operation of generating the next OTA instruction issuance request based on the current OTA reporting information, so as to realize the mapping and binding of the terminal device uplink data to the device shadow in the Internet of Things platform.
[0162] According to an embodiment of the present disclosure, a device shadow (i.e., Device Shadow) may refer to a "shadow" device virtualized for each terminal device, which may be used to record and store information such as the status, configuration, and metadata of the terminal device, so as to facilitate the application to control and manage the terminal device through cloud services. The device shadow may include a device status, a shadow status, a version number, and an API interface. The device status may be used to characterize the current status of the terminal device. The shadow status may be used to characterize the shadow status of the terminal device. The version number may be used to characterize the version number of the device status and the shadow status. The API interface may be used to read and write the device shadow through cloud services, thereby synchronizing with the actual status of the terminal device.
[0163] According to the embodiments of the present disclosure, when the source end is an IoT platform, the target end is a terminal device, and the information processing request is a current OTA instruction sending request, a downlink parsing script can be used to perform OTA downlink parsing on the current OTA instruction sending request. The parsing routine can be used to parse and process the device commands sent by the IoT platform, assemble the key content into a message format recognized by the terminal device, and map the assembled message to a fixed system reserved field to obtain the current OTA instruction.
[0164] According to the embodiments of the present disclosure, on this basis, a logic orchestration routine can be used to perform logic orchestration processing on the current OTA instruction to obtain orchestration information for controlling the terminal device to perform the service operation corresponding to the current OTA instruction, so as to facilitate command issuance.
[0165] According to the embodiments of the present disclosure, by pre-writing the uplink parsing script and the downlink parsing script, there is no need to worry about the differences between the standard protocol of the IoT platform and the protocol implemented by the terminal, as well as the differences between the process of the IoT platform and the process implemented by the terminal, and a complete over-the-air upgrade process can be implemented.
[0166] Figure 6 An example schematic diagram of an information processing process according to an embodiment of the present disclosure is schematically shown.
[0167] like Figure 6 As shown, in 600, when the source end is the terminal device 601, the target end is the Internet of Things platform 603, and the information processing request is the current OTA reporting request, the edge cloud 602 can use the uplink converter 602_1 to convert the current OTA reporting request, and use the parsing routine 602_2 to parse the current OTA reporting request to obtain the current OTA reporting information. On this basis, the edge cloud 602 can use the logic arrangement routine 6023 to perform logic arrangement processing on the current OTA reporting information to obtain processing information 6024.
[0168] When the source end is the IoT platform 603, the target end is the terminal device 601, and the information processing request is the current OTA instruction sending request, the edge cloud 602 can use the downstream converter 6025 to convert the current OTA instruction sending request, and use the parsing routine 6026 to parse the current OTA reporting request to obtain the current OTA instruction. On this basis, the edge cloud 602 can use the logic arrangement routine 6027 to perform logic arrangement processing on the current OTA instruction to obtain processing information 6028.
[0169] According to an embodiment of the present disclosure, when the source end is an Internet of Things platform and the target end is a terminal device, the orchestration information includes a control instruction group, and at least one control instruction included in the control instruction group has an association relationship.
[0170] According to an embodiment of the present disclosure, when the source end is an Internet of Things platform and the target end is a terminal device, the edge cloud can use the JS engine to parse the information processing request to obtain a parsing result. On this basis, the edge cloud can use a logic orchestration routine to logically orchestrate the parsing result to obtain a control instruction group to achieve the conversion from a simple command to a complex command group, thereby supporting the orchestration of complex terminal device actions. The control instruction group may include multiple control instructions. The edge cloud can use a logic orchestration routine to sequentially issue at least one control instruction in the control instruction group at predetermined time intervals. Multiple control instructions each correspond to a device action, and multiple control instructions each correspond to a device action that can be combined to achieve a complex action. For example, the information processing method can be applied to define a control instruction group of a terminal device in a function-as-a-service manner to achieve asset project management.
[0171] According to an embodiment of the present disclosure, the edge cloud can send the control instruction to a specific terminal device according to the parsing result. The edge cloud can execute the control instruction group logic according to the parsing result, and send at least one control instruction in the control instruction group to the corresponding terminal device in sequence according to a predetermined time interval.
[0172] According to an embodiment of the present disclosure, at least one control instruction included in the control instruction group has an association relationship, and may include at least one of the following.
[0173] At least one of the control instructions has a time sequence relationship. At least one of the control instructions has a dependency relationship.
[0174] According to an embodiment of the present disclosure, the association relationship may include at least one of the following: a timing relationship and a dependency relationship. The timing relationship may refer to the time sequence relationship between different control instructions in at least one control instruction, that is, which control instruction should be started or ended before another control instruction. The dependency relationship may refer to the logical relationship between different control instructions in at least one control instruction, that is, which control instruction needs to be started or completed, that is, the precondition needs to be satisfied.
[0175] According to an embodiment of the present disclosure, the information processing method 200 may further include the following operations.
[0176] The parsing routine is used to authenticate the parsed information to obtain authentication information.
[0177] According to an embodiment of the present disclosure, logical arrangement of parsed information using a logic arrangement routine to obtain processing information may include the following operations.
[0178] In response to determining that the authentication information corresponding to the parsed information indicates that the authentication is passed, the integrated instance is used to perform logic arrangement on the parsed information to obtain processing information.
[0179] According to the embodiments of the present disclosure, the identity authentication of the terminal device can be achieved by authenticating the parsed information using the parsing routine. An authentication script can be predefined, and after obtaining the parsed information, the parsing routine can be used to authenticate the parsed information based on the authentication script to obtain the authentication information. The specific method of authenticating the parsed information can be configured according to actual business needs and is not limited here.
[0180] For example, the parsed information may be subjected to field detection processing according to the target field name to obtain a field detection result. When the field detection result indicates that there is a target field value corresponding to the target field name in the parsed information, it is possible to determine the authentication information indicating that the authentication has passed, and the terminal device can go online normally. When the field detection result indicates that there is no target field value corresponding to the target field name in the parsed information, it is possible to determine the authentication information indicating that the authentication has not passed, and the terminal device is refused to provide services.
[0181] According to the embodiments of the present disclosure, the target field name can be configured according to actual business needs and is not limited here. For example, the target field name can include at least one of the following: sequence number (ie, sn), category (ie, category), and message type (ie, msgType).
[0182] According to the embodiments of the present disclosure, when it is determined that the authentication information corresponding to the parsed information indicates that the authentication is passed, the parsed information can be delivered to the logic arrangement, and the parsed information can be logically arranged using the logic arrangement routine to obtain processing information. The logic arrangement can be used to implement the arrangement and combination of device actions, such as device registration and online, device data reporting, command issuance, and OTA upgrade.
[0183] According to the embodiments of the present disclosure, for downlink parsed data, the edge cloud does not need to authenticate it and can directly return the parsed information to the terminal. For uplink parsed data, when it is determined that the authentication information corresponding to the parsed information indicates that the authentication is passed, the edge cloud can notify the logical device to report shadow data, report events, and report command replies based on the parsing results.
[0184] According to an embodiment of the present disclosure, parsing an information processing request using a parsing routine to obtain parsed information may include the following operations.
[0185] The information processing request is parsed using a parsing routine to obtain at least one parsed field. The at least one parsed field is added to a predetermined template using the parsing routine to obtain parsed information.
[0186] According to an embodiment of the present disclosure, the edge cloud may be deployed with a converter. The converter may be used to convert the data format of differentiated terminal devices into the data format of a unified IoT platform. The converter may include an uplink data converter and a downlink data converter. The converter may include a JS engine. The JS engine may parse and execute JavaScript script logic at runtime. The JS engine includes multiple script execution units, and the multiple script execution units may work in parallel to improve the overall throughput of the JS engine.
[0187] According to an embodiment of the present disclosure, among multiple terminals using the same communication protocol, the data formats required by different terminals may be different. For the same integration instance, since it is necessary to deal with data conversion of multiple data formats, a set of converters can be configured for each data format to perform conversion processing on the terminals that communicate using the data format. An integration instance can be associated with one or more sets of converters, and a set of converters corresponds to the conversion between the data format required by the Internet of Things platform and a data format of the terminal. The information processing request can be parsed using a parsing routine to obtain at least one parsed field.
[0188] According to an embodiment of the present disclosure, a predetermined template may include a predetermined uplink parsing template and a predetermined downlink parsing template. The predetermined uplink parsing template may be used to perform conversion processing on data that needs to be uplinked to the Internet of Things platform, that is, to convert an information processing request sent by the terminal to the Internet of Things platform into a data format adapted to the Internet of Things platform. The predetermined downlink parsing template may be used to perform conversion processing on data that the Internet of Things platform needs to send down to the terminal, that is, to convert an information processing request sent by the Internet of Things platform to the terminal into a data format adapted to the terminal.
[0189] According to an embodiment of the present disclosure, after obtaining at least one uplink parsing field and at least one downlink parsing field, a parsing routine can be used to add at least one uplink parsing field to a predetermined uplink parsing template to obtain uplink parsing information. A parsing routine can be used to add at least one downlink parsing field to a predetermined downlink parsing template to obtain downlink parsing information.
[0190] According to an embodiment of the present disclosure, operation S230 may include the following operations.
[0191] The orchestration information is sent to the target end by using the logical device corresponding to the logical device identifier and according to the communication protocol of the target end corresponding to the target end identifier, wherein the logical device is deployed in the integration instance.
[0192] According to an embodiment of the present disclosure, the processing information may further include a logical device identification.
[0193] According to an embodiment of the present disclosure, a logical device identifier can be used to characterize different logical devices. The logical device identifier can include at least one of the following: a device serial number (SN), a universally unique identifier (UUID), and a terminal media access control address (MAC).
[0194] According to an embodiment of the present disclosure, a logical device may refer to a virtual module corresponding to a terminal and connected to an IoT platform. A logical device may establish a one-to-one correspondence with a terminal's direct-connected terminal device or a gateway sub-terminal device, or a device shadow of an IoT platform. Each logical device may create an MQTT connection, and each MQTT connection may subscribe to the corresponding terminal's receiving data sent by the IoT platform to the terminal. A logical device may be deployed in an integration instance. An integration instance may be used to manage all logical devices deployed on the integration instance.
[0195] According to the embodiments of the present disclosure, when the source end is a terminal and the target end is an Internet of Things platform, that is, an uplink, a directly connected terminal device or a gateway sub-terminal device can be mapped to a device serial number through a connection address, and then mapped to a logical device through the device serial number, and then mapped to a device shadow through the logical device, so as to enable the terminal device or gateway sub-terminal device to send data to the Internet of Things platform and update the device shadow.
[0196] According to the embodiments of the present disclosure, when the source end is an Internet of Things platform and the target end is a terminal, that is, a downlink, it can be mapped to a logical device through a device shadow, and then mapped to a device serial number through the logical device, and then mapped to a connection address through the device serial number, and then mapped to a connection through the connection address, so as to implement sending commands from the Internet of Things platform to the terminal device or gateway sub-terminal device through the connection.
[0197] According to an embodiment of the present disclosure, the parsed information further includes a source end identifier, and the logical device identifier is determined according to the source end identifier using the integration instance.
[0198] According to the embodiments of the present disclosure, the edge cloud can maintain a mapping relationship between connections and logical devices. For example, when the source end is a terminal and the target end is an IoT platform, that is, when the terminal device or gateway reports data, the logical device can be found through the connection, that is, the logical device identifier is determined according to the source end identifier using the integration instance, and the final data reporting is completed by the logical device corresponding to the logical device identifier.
[0199] Alternatively, when the source end is the IoT platform and the target end is the terminal, that is, when the IoT platform issues a command, the connection can be found through the logical device, that is, the integration instance is used to determine the logical device identifier according to the source end identifier, and the command is sent to the terminal device or gateway through the connection.
[0200] According to an embodiment of the present disclosure, operation S230 may further include the following operations.
[0201] The integrated instance is used to monitor the logical device to obtain first monitoring information. The integrated instance is used to repair the logical device when it is determined that the logical device has a fault according to the first monitoring information.
[0202] According to an embodiment of the present disclosure, the first monitoring information can be used to characterize the operating state of the logical device. The integrated instance can be used to monitor the logical device to obtain the first monitoring information corresponding to the logical device. On this basis, the faulty logical device can be determined according to the first monitoring information corresponding to the logical device. The faulty logical device can be repaired. The repair can include at least one of the following: stop, restart, and replace.
[0203] According to the embodiments of the present disclosure, the specific method of monitoring the logical device can be configured according to the actual business needs, which is not limited here. For example, a heartbeat packet can be sent to the logical device, and a data packet returned by the logical device can be received. According to the data packet returned by the logical device, the operating status of the logical device is determined, and the logical device whose operating status indicates a fault is restarted. Alternatively, a monitoring program can be developed, and the monitoring program can be used to monitor the operating status of the logical device and whether it is online, and restart the logical device that is not online and whose operating status indicates a fault.
[0204] According to an embodiment of the present disclosure, the operating state may include at least one of the following: operating state and business state. The operating state may refer to the operating status of the logical device, that is, whether it is operating normally. The business state may refer to whether the logical device forwards the interactive data packets between the IoT platform and the terminal normally in the process of providing information processing services.
[0205] According to an embodiment of the present disclosure, monitoring the logical device may include monitoring the operating state of the logical device. Alternatively, monitoring the logical device may include monitoring the service state of the logical device. Alternatively, monitoring the logical device may include monitoring both the operating state and the service state of the logical device.
[0206] According to an embodiment of the present disclosure, the first monitoring information may include at least one of the following: a heartbeat data packet and an operation log during operation. For example, when the first monitoring information includes a heartbeat data packet, the instance object corresponding to the logical device may be used to periodically capture the heartbeat data packet of the logical device during operation, and the operation status of the logical device may be determined based on the captured heartbeat data packet.
[0207] According to an embodiment of the present disclosure, alternatively, in the case where the first monitoring information includes an operation log during operation, the instance object corresponding to the logical device can be used to obtain the operation log of the logical device during operation by listening to a specified channel, and the operation status and business status of the logical device can be determined based on the obtained operation log during operation.
[0208] According to the embodiments of the present disclosure, it is possible to determine whether there is a fault in the operation state of the logical device by detecting whether the process is alive and whether the service is available. It is possible to determine whether there is a fault in the service state of the logical device by detecting whether a fault code appears in the operation log. In the case of determining that there is a faulty logical device, the instance object can feedback the operation state of the faulty logical device to the access component, so as to determine the specific method of repairing the faulty logical device based on the information fed back by the access component regarding the fault state.
[0209] The above are only exemplary embodiments, but are not limited thereto and may also include other information processing methods known in the art, as long as they can improve the efficiency of information processing and the communication efficiency between the source end and the target end.
[0210] Figure 7 The block diagram schematically shows an information processing device according to an embodiment of the present disclosure.
[0211] like Figure 7 As shown, the information processing device 700 may include a calling module 710 , a processing module 720 and a first sending module 730 .
[0212] The calling module 710 is used to call the integration instance corresponding to the information processing request in response to receiving the information processing request from the source end, wherein the integration instance supports the corresponding communication protocol and the integration instance is deployed in the edge cloud.
[0213] The processing module 720 is used to process the information processing request using the integration instance to obtain processing information, wherein the processing information includes a target end identifier and orchestration information.
[0214] The first sending module 730 is configured to send the orchestration information to the target end corresponding to the target end identifier by using the integration instance, so that the target end executes the business operation corresponding to the orchestration information.
[0215] According to an embodiment of the present disclosure, the integration instance includes a parsing routine and a logic orchestration routine.
[0216] According to an embodiment of the present disclosure, the processing module 720 may include a parsing unit and a logic arrangement unit.
[0217] The parsing unit is used to parse the information processing request using a parsing routine to obtain parsed information.
[0218] The logic arrangement unit is used to perform logic arrangement on the parsed information by using the logic arrangement routine to obtain the processed information.
[0219] According to an embodiment of the present disclosure, the source end is a terminal device, the information processing request is an information acquisition request, and the parsed information includes a first resource identifier.
[0220] According to an embodiment of the present disclosure, the information processing device 700 may further include a first generating module, a second sending module and a third sending module.
[0221] The first generating module is configured to generate a first resource download request according to the first resource identifier in response to determining that the first resource corresponding to the first resource identifier does not exist in the resource set by using the integration instance.
[0222] The second sending module is used to send a first resource download request to the Internet of Things platform by using the integration instance, so that the Internet of Things platform obtains the first resource corresponding to the first resource identifier.
[0223] The third sending module is used to send the first resource to the terminal device in response to receiving the first resource of the Internet of Things platform by using the integration instance.
[0224] According to an embodiment of the present disclosure, the information processing device 700 may further include a first associated storage module.
[0225] The first association storage module is used to associate and store the first resource and the first resource identifier in a resource set by using the integration instance.
[0226] According to an embodiment of the present disclosure, the information acquisition request includes multiple ones and the terminal device includes at least one one.
[0227] According to an embodiment of the present disclosure, the first generating module may include a generating unit.
[0228] The generating unit is used to generate a first resource download request according to the first resource identifier in response to determining that there is no first resource corresponding to the first resource identifier corresponding to each of the multiple information acquisition requests in the resource set by using the integrated instance and when determining that the multiple first resource identifiers are consistent.
[0229] According to an embodiment of the present disclosure, the source end is an Internet of Things platform, the information processing request includes an over-the-air upgrade OTA request, and the parsed information includes a second resource identifier, and the second resource identifier represents an OTA resource identifier.
[0230] According to an embodiment of the present disclosure, the information processing device 700 may further include a second generating module, a fourth sending module and a second associated storage module.
[0231] The second generating module is used to generate a second resource download request according to the second resource identifier by using the integration instance.
[0232] The fourth sending module is used to send a second resource download request to the Internet of Things platform by using the integration instance, so that the Internet of Things platform obtains the second resource corresponding to the second resource identifier.
[0233] The second association storage module is used to store the second resource and the second resource identifier in association with each other in response to receiving the second resource of the Internet of Things platform by using the integration instance.
[0234] According to an embodiment of the present disclosure, when the source end is a terminal device, the target end is an Internet of Things platform, and the information processing request is a current OTA reporting request, the parsed information includes the current OTA reporting information, and the orchestration information is used to control the Internet of Things platform to perform a business operation of generating the next OTA instruction sending request based on the current OTA reporting information, wherein the next OTA instruction sending request includes the next OTA instruction.
[0235] According to an embodiment of the present disclosure, when the source end is an Internet of Things platform, the target end is a terminal device, and the information processing request is a current OTA instruction issuance request, the parsed information includes the current OTA instruction, the orchestration information is used to control the terminal device to perform the business operation corresponding to the current OTA instruction, and when the business operation is completed, the next OTA reporting request is generated, wherein the next OTA reporting request includes the next OTA reporting information.
[0236] According to an embodiment of the present disclosure, when the source end is an Internet of Things platform and the target end is a terminal device, the orchestration information includes a control instruction group, and at least one control instruction included in the control instruction group has an association relationship.
[0237] According to an embodiment of the present disclosure, at least one control instruction included in the control instruction group has an association relationship, including at least one of the following: at least one control instruction has a time sequence relationship. At least one control instruction has a dependent relationship.
[0238] According to an embodiment of the present disclosure, the information processing device 700 may further include an authentication module.
[0239] The authentication module is used to authenticate the parsed information using the parsing routine to obtain authentication information.
[0240] According to an embodiment of the present disclosure, a logical orchestration unit may include a logical orchestration sub-unit.
[0241] The logic arrangement subunit is used to use the integration instance to respond to the authentication information corresponding to the parsed information to indicate that the authentication is passed, and use the logic arrangement routine to perform logic arrangement on the parsed information to obtain processing information.
[0242] According to an embodiment of the present disclosure, the parsing unit may include a parsing subunit and an adding subunit.
[0243] The parsing subunit is used to parse the information processing request using a parsing routine to obtain at least one parsed field.
[0244] The adding subunit is used to add at least one parsing field to the predetermined template using a parsing routine to obtain parsing information.
[0245] According to an embodiment of the present disclosure, the processing information further includes a logical device identification.
[0246] According to an embodiment of the present disclosure, the first sending module 730 may include a sending unit.
[0247] The sending unit is used to send the orchestration information to the target end by using the logical device corresponding to the logical device identifier and according to the communication protocol of the target end corresponding to the target end identifier, wherein the logical device is deployed in the integration instance.
[0248] According to an embodiment of the present disclosure, the parsed information further includes a source end identifier, and the logical device identifier is determined according to the source end identifier using the integration instance.
[0249] According to an embodiment of the present disclosure, the first sending module 730 may further include a first monitoring unit and a first repairing unit.
[0250] The first monitoring unit is used to monitor the logical device by using the integrated instance to obtain first monitoring information.
[0251] The first repairing unit is used to repair the logical device by using the integrated instance when it is determined according to the first monitoring information that the logical device has a fault.
[0252] According to an embodiment of the present disclosure, the calling module 710 may include a first determining unit and a calling unit.
[0253] The first determining unit is configured to determine, in response to the listening port listening to an information processing request from a source end, an integration instance corresponding to the listening port from a plurality of integration instances.
[0254] The calling unit is used to call the integration instance corresponding to the listening port.
[0255] According to an embodiment of the present disclosure, the calling module 710 may include a storage unit.
[0256] The storage unit is used to store the information processing request monitored by the monitoring port into the message queue, so as to obtain the information processing request from the message queue.
[0257] According to an embodiment of the present disclosure, the calling module 710 may further include a second monitoring unit and a second repairing unit.
[0258] The second monitoring unit is used to monitor the listening ports corresponding to the multiple integration instances respectively, and obtain the second monitoring information corresponding to the multiple integration instances respectively.
[0259] The second repairing unit is used to repair the faulty integration instance when it is determined that there is a faulty integration instance according to the second monitoring information corresponding to each of the plurality of integration instances.
[0260] According to an embodiment of the present disclosure, the calling module 710 may further include a second determining unit.
[0261] The second determining unit is configured to determine a target integration instance corresponding to the faulty integration instance from at least one candidate integration instance, so as to replace the faulty integration instance with the target integration instance.
[0262] According to an embodiment of the present disclosure, the information processing device 700 may further include an acquisition module and a creation module.
[0263] The acquisition module is used to, in response to detecting a creation instruction for the integration instance, acquire instance configuration information corresponding to the creation instruction.
[0264] The creation module is used to create an integration instance based on the instance configuration information.
[0265] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0266] For example, any multiple of the calling module 710, the processing module 720, and the first sending module 730 can be combined in one module / unit / subunit for implementation, or any one of the modules / units / subunits can be split into multiple modules / units / subunits. Alternatively, at least part of the functions of one or more of these modules / units / subunits can be combined with at least part of the functions of other modules / units / subunits and implemented in one module / unit / subunit. According to an embodiment of the present disclosure, at least one of the calling module 710, the processing module 720, and the first sending module 730 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or by any one of the three implementation methods of software, hardware, and firmware, or by a suitable combination of any of them. Alternatively, at least one of the calling module 710, the processing module 720 and the first sending module 730 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.
[0267] It should be noted that the information processing device part in the embodiments of the present disclosure corresponds to the information processing method part in the embodiments of the present disclosure. The description of the information processing device part specifically refers to the information processing method part, which will not be repeated here.
[0268] Figure 8 A block diagram of an electronic device suitable for implementing an information processing method according to an embodiment of the present disclosure is schematically shown. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0269] like Figure 8 As shown, the computer electronic device 800 according to the embodiment of the present disclosure includes a processor 801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 802 or the program loaded from the storage part 809 to the random access memory (RAM) 803. The processor 801 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 801 may also include an onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.
[0270] In RAM 803, various programs and data required for the operation of electronic device 800 are stored. Processor 801, ROM 802 and RAM 803 are connected to each other via bus 804. Processor 801 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 802 and / or RAM 803. It should be noted that the program can also be stored in one or more memories other than ROM 802 and RAM 803. Processor 801 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0271] According to an embodiment of the present disclosure, the electronic device 800 may further include an input / output (I / O) interface 805, which is also connected to the bus 804. The electronic device 800 may further include one or more of the following components connected to the input / output (I / O) interface 805: an input portion 806 including a keyboard, a mouse, etc.; an output portion 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 808 including a hard disk, etc.; and a communication portion 809 including a network interface card such as a LAN card, a modem, etc. The communication portion 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output (I / O) interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage portion 808 as needed.
[0272] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the processor 801, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0273] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0274] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: 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), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.
[0275] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 802 and / or the RAM 803 described above and / or one or more memories other than the ROM 802 and the RAM 803 .
[0276] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains a program code for executing the method provided by the embodiment of the present disclosure. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the information processing method provided by the embodiment of the present disclosure.
[0277] When the computer program is executed by the processor 801, the above functions defined in the system / device of the embodiment of the present disclosure are executed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0278] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 809, and / or installed from a removable medium 811. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0279] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0280] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. It can be understood by those skilled in the art that the features recorded in the various embodiments and / or claims of the present disclosure can be combined and / or combined in a variety of ways, even if such a combination or combination is not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0281] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. An information processing method, include: In response to receiving an information processing request from a source end, calling an integration instance corresponding to the information processing request, wherein the integration instance supports a corresponding communication protocol and the integration instance is deployed in an edge cloud; Processing the information processing request using the integration instance to obtain processing information, wherein the processing information includes a target end identifier and orchestration information; and The orchestration information is sent to a target end corresponding to the target end identifier by using the integration instance, so that the target end executes a business operation corresponding to the orchestration information.
2. The method according to claim 1, in, The integration instance includes a parsing routine and a logic orchestration routine; The step of processing the information processing request using the integration instance to obtain processing information includes: parsing the information processing request using the parsing routine to obtain parsed information; and The parsed information is logically arranged using the logic arrangement routine to obtain the processing information.
3. The method according to claim 2, in, The source end is a terminal device, the information processing request is an information acquisition request, and the parsed information includes a first resource identifier; The method further comprises: In response to determining that a first resource corresponding to the first resource identifier does not exist in the resource set, generating a first resource download request according to the first resource identifier by using the integration instance; Using the integration instance, sending the first resource download request to the Internet of Things platform, so that the Internet of Things platform obtains the first resource corresponding to the first resource identifier; and In response to receiving a first resource of the Internet of Things platform, the first resource is sent to the terminal device using the integration instance.
4. The method according to claim 3, further comprising: include: The first resource and the first resource identifier are associated and stored in the resource set by using the integration instance.
5. The method according to claim 3, in, The information acquisition request includes multiple requests, and the terminal device includes at least one; The using the integration instance to generate a first resource download request according to the first resource identifier in response to determining that the first resource corresponding to the first resource identifier does not exist in the resource set includes: In response to determining that the resource set does not contain the first resource corresponding to the first resource identifiers corresponding to each of the multiple information acquisition requests, the integrated instance generates the first resource download request based on the first resource identifier when it is determined that the multiple first resource identifiers are consistent.
6. The method according to claim 2, in, The source end is an Internet of Things platform, the information processing request includes an over-the-air upgrade OTA request, and the parsed information includes a second resource identifier, where the second resource identifier represents an OTA resource identifier; The method further comprises: Generate a second resource download request using the integration instance according to the second resource identifier; Using the integration instance, sending the second resource download request to the Internet of Things platform, so that the Internet of Things platform obtains the second resource corresponding to the second resource identifier; and In response to receiving a second resource of the Internet of Things platform, the second resource and the second resource identifier are associated and stored using the integration instance.
7. The method according to claim 6, in, In a case where the source end is a terminal device, the target end is the Internet of Things platform, and the information processing request is a current OTA reporting request, the parsing information includes current OTA reporting information, and the orchestration information is used to control the Internet of Things platform to perform a business operation of generating a next OTA instruction sending request according to the current OTA reporting information, wherein the next OTA instruction sending request includes a next OTA instruction; and When the source end is the Internet of Things platform, the target end is the terminal device and the information processing request is the current OTA instruction issuance request, the parsed information includes the current OTA instruction, and the orchestration information is used to control the terminal device to perform the business operation corresponding to the current OTA instruction, and generate the next OTA reporting request when the business operation is completed, wherein the next OTA reporting request includes the next OTA reporting information.
8. The method according to any one of claims 1 to 6, in, In the case where the source end is the Internet of Things platform and the target end is the terminal device, the orchestration information includes a control instruction group, and at least one control instruction included in the control instruction group has an association relationship.
9. The method according to claim 8, in, At least one control instruction included in the control instruction group has an associated relationship, including at least one of the following: There is a time sequence relationship between the at least one control instruction; and Among the at least one control instruction, there is a control instruction having a dependency relationship.
10. The method according to any one of claims 2 to 7, further comprising: include: Authenticating the parsed information using the parsing routine to obtain authentication information; The step of using the logic arrangement routine to logically arrange the parsed information to obtain the processing information includes: In response to determining that the authentication information corresponding to the parsed information indicates that the authentication is successful, the integration instance is used to perform logic arrangement on the parsed information to obtain the processing information.
11. The method according to any one of claims 2 to 7, in, The step of parsing the information processing request using the parsing routine to obtain parsed information includes: parsing the information processing request using the parsing routine to obtain at least one parsed field; and The at least one parsing field is added to a predetermined template using the parsing routine to obtain the parsing information.
12. The method according to any one of claims 1 to 7, in, The processing information also includes a logical device identifier; The step of sending the orchestration information to a target end corresponding to the target end identifier by using the integration instance includes: The orchestration information is sent to the target end by using the logical device corresponding to the logical device identifier and according to the communication protocol of the target end corresponding to the target end identifier, wherein the logical device is deployed in the integration instance.
13. The method according to claim 12, in, The parsed information also includes a source end identifier, and the logical device identifier is determined according to the source end identifier using the integration instance.
14. The method according to claim 12, further comprising: include: Using the integrated instance to monitor the logical device to obtain first monitoring information; as well as When it is determined by the integrated instance that the logical device has a fault according to the first monitoring information, the logical device is repaired.
15. The method according to any one of claims 1 to 7, in, The step of invoking the integration instance corresponding to the information processing request in response to receiving the information processing request from the source end includes: In response to the listening port listening to the information processing request of the source end, determining an integration instance corresponding to the listening port from multiple integration instances; and Invoke the integration instance corresponding to the listening port.
16. The method according to claim 15, further comprising: include: The information processing request monitored by the monitoring port is stored in a message queue, so as to obtain the information processing request from the message queue.
17. The method according to claim 15, further comprising: include: Monitoring the listening ports corresponding to the multiple integration instances respectively to obtain second monitoring information corresponding to the multiple integration instances respectively; as well as When it is determined that there is a faulty integration instance according to the second monitoring information corresponding to each of the plurality of integration instances, the faulty integration instance is repaired.
18. The method according to claim 17, in, In the case where it is determined that there is a faulty integration instance according to the second monitoring information corresponding to each of the plurality of integration instances, the method further includes: A target integration instance corresponding to the faulty integration instance is determined from at least one candidate integration instance, so as to replace the faulty integration instance with the target integration instance.
19. The method according to any one of claims 1 to 7, further comprising include: In response to detecting a creation instruction for the integration instance, acquiring instance configuration information corresponding to the creation instruction; as well as The integration instance is created according to the instance configuration information.
20. An information processing system, include: The source end is configured to send information processing requests to the edge cloud; Edge cloud, configured as: In response to receiving the information processing request, calling an integration instance corresponding to the information processing request, wherein the integration instance supports a corresponding communication protocol; Processing the information processing request using the integration instance to obtain processing information, wherein the processing information includes a target end identifier and orchestration information; Using the integration instance, sending the orchestration information to a target end corresponding to the target end identifier; and The target end is configured to execute a business operation corresponding to the orchestration information.
21. An electronic device, include: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 19.
22. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method according to any one of claims 1 to 19.
23. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 19.
