Interactive information processing method, device, equipment and storage medium

By receiving and saving the interactive information of the device in the proxy server and sending it when the device is online, using the storage path of the preset theme to store the interactive information, the problem of low interaction efficiency between the cloud and the device in the Internet of Things scenario is solved, and more efficient and accurate information transmission is achieved.

CN114731340BActive Publication Date: 2025-03-28SENSETIME INT PTE LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202180006123.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-04-30
Filing Date
2021-09-15
Publication Date
2025-03-28
Estimated Expiration
2041-09-15

AI Technical Summary

Technical Problem

In the Internet of Things scenario, the interactive information transmission efficiency between the cloud and the device is low, and the quality of the network connection fluctuates, resulting in poor interaction effect.

Method used

By receiving and saving interactive information published by the device with a predetermined topic in a proxy server, and sending the interactive information to the device when the device subscribed to the topic is online, the interactive information is stored using the storage path of the preset topic.

Benefits of technology

It reduces the dependence of information interaction between devices and cloud servers on network connection quality, improves interaction efficiency, and improves the accuracy of transmission of interactive information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114731340B_ABST
    Figure CN114731340B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method, apparatus, device and storage medium for processing interactive information. According to an example of the processing method, after receiving interactive information published by a first device with a predetermined topic, the proxy server saves the interactive information to a storage path corresponding to the predetermined topic. Then, in response to the second device subscribing to the predetermined topic being online, the proxy server reads the interactive information from the storage path corresponding to the predetermined topic and sends the interactive information read to the second device. The first device and the second device respectively represent one and the other of the cloud server and the terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references to related publications

[0002] The present disclosure is a national phase application of a PCT application with application number PCT / IB2021 / 058389 filed on September 15, 2021, and the PCT application claims priority to a Singapore patent invention with application number 10202104505S filed on April 30, 2021, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present disclosure relates to the field of Internet of Things communication technology, and in particular to a method, device, equipment and storage medium for processing interactive information. Background Art

[0004] In the distributed system of the Internet of Things scenario, the cloud needs to manage a large number of devices in a unified manner, so the cloud and devices need to transmit interactive information. However, the network connection between the device and the cloud is not always connected, and the connection quality also fluctuates, so the interaction between the cloud and the device is not satisfactory. Summary of the invention

[0005] The present disclosure provides a method, device, equipment and storage medium for processing interactive information to solve the deficiencies in the related art.

[0006] According to a first aspect of an embodiment of the present disclosure, a method for processing interaction information is provided, which is applicable to a proxy server, and includes: receiving interaction information published by a first device with a predetermined topic, wherein the first device represents one of a cloud server and an end-side device; saving the interaction information to a storage path corresponding to the predetermined topic; in response to a second device subscribed to the predetermined topic being online, wherein the second device represents the other of the cloud server and the end-side device, reading the interaction information from the storage path corresponding to the predetermined topic, and sending the read interaction information to the second device.

[0007] According to a second aspect of an embodiment of the present disclosure, a method for processing interaction information is provided, which is applicable to a cloud server and includes:

[0008] Publishing the desired configuration information to the proxy server with a predetermined topic, wherein the desired configuration information is saved by the proxy server to a storage path corresponding to the predetermined topic, so as to be sent to the end-side device by the proxy server when the end-side device subscribed to the predetermined topic is in an online state; and

[0009] Receive first response information returned by the proxy server after saving the expected configuration information to the storage path corresponding to the predetermined topic, wherein the first response information indicates that the expected configuration information is successfully sent.

[0010] According to a third aspect of an embodiment of the present disclosure, a method for processing interaction information is provided, which is applicable to a terminal side device, including:

[0011] In a case where the end-side device subscribes to a first topic, receiving the desired configuration information sent by the proxy server, wherein the first topic includes an identifier of the end-side device, the desired configuration information is published by the cloud server in the first topic, and is saved by the proxy server to a storage path corresponding to the first topic;

[0012] A second response message is published to the proxy server with a second topic, wherein the second topic includes a wildcard identifier or an identifier of the end-side device, the wildcard identifier is a wildcard identifier of multiple end-side devices including the end-side device, and the second response message represents a response to the received expected configuration information. The second response message is saved by the proxy server to a storage path corresponding to the second topic and sent by the proxy server to the cloud server when the cloud server subscribed to the second topic is online.

[0013] According to a fourth aspect of an embodiment of the present disclosure, there is provided a device for processing interaction information, which is applicable to a proxy server and includes:

[0014] A first receiving module, configured to receive interaction information published by a first device with a predetermined topic, wherein the first device represents one of a cloud server and a terminal device;

[0015] A saving module, used for saving the interaction information to a storage path corresponding to the predetermined topic;

[0016] A sending module is used to respond to a second device subscribing to the predetermined topic being online, wherein the second device represents the other of the cloud server and the terminal device, read the interaction information from the storage path corresponding to the predetermined topic, and send the read interaction information to the second device.

[0017] According to a fifth aspect of an embodiment of the present disclosure, there is provided a device for processing interaction information, which is applicable to a cloud server and includes:

[0018] a first publishing module, configured to publish the desired configuration information to the proxy server with a predetermined topic, wherein the desired configuration information is saved by the proxy server to a storage path corresponding to the predetermined topic, so as to be sent to the end-side device by the proxy server when the end-side device subscribed to the predetermined topic is in an online state; and

[0019] The second receiving module is used to receive first response information returned by the proxy server after the expected configuration information is saved in the storage path corresponding to the predetermined topic, wherein the first response information indicates that the expected configuration information is successfully sent.

[0020] According to a sixth aspect of an embodiment of the present disclosure, a device for processing interaction information is provided, which is applicable to a terminal side device, including:

[0021] A third receiving module is used to receive the expected configuration information sent by the proxy server when the terminal device subscribes to the first topic, wherein the first topic includes the identifier of the terminal device, and the expected configuration information is published by the cloud server with the first topic and saved by the proxy server to the storage path corresponding to the first topic;

[0022] A second publishing module is used to publish a second response message to the proxy server with a second topic, wherein the second topic includes a wildcard identifier or an identifier of the terminal device, the wildcard identifier is a wildcard identifier of multiple terminal devices including the terminal device, and the second response message represents a response to the received expected configuration information. The second response message is saved by the proxy server to a storage path corresponding to the second topic, and is sent by the proxy server to the cloud server when the cloud server subscribed to the second topic is online.

[0023] According to a seventh aspect of an embodiment of the present disclosure, a system for processing interaction information is provided, comprising:

[0024] A proxy server, configured to receive interaction information published by a first device with a predetermined topic, wherein the first device represents one of a cloud server and a terminal device, save the interaction information to a storage path corresponding to the predetermined topic, and in response to a second device subscribing to the predetermined topic being in an online state, wherein the second device represents the other of the cloud server and the terminal device, read the interaction information from the storage path corresponding to the predetermined topic, and send the read interaction information to the second device;

[0025] The cloud server is used to publish the expected configuration information to the proxy server with a first topic, and receive a first response information returned by the proxy server after saving the expected configuration information to the storage path corresponding to the predetermined topic;

[0026] The terminal device is used to receive the expected configuration information sent by the proxy server, and publish second response information to the proxy server with a second topic, wherein the second response information represents a response to the received expected configuration information.

[0027] According to an eighth aspect of an embodiment of the present disclosure, an electronic device is provided, the device comprising a memory and a processor, the memory being used to store computer instructions executable on the processor, the processor being used to implement the method described in the first aspect, the second aspect or the third aspect when executing the computer instructions.

[0028] According to a ninth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method described in the first aspect, the second aspect or the third aspect is implemented.

[0029] According to the above embodiments, by receiving the interactive information published by one of the cloud server and the terminal device with a predetermined topic, and saving the interactive information to the storage path corresponding to the predetermined topic, in response to the other of the cloud server and the terminal device subscribing to the predetermined topic being online, the interactive information is read from the storage path corresponding to the predetermined topic, and the interactive information read is sent to the other of the cloud server and the terminal device, so that the interactive information can be stored using the storage path corresponding to the preset topic, and then the other of the cloud server and the device can obtain the interactive information after going online, reducing the dependence of the information interaction between the device and the cloud server on the quality of the network connection, so that the information interaction between the cloud server and the device does not need to be retried due to the network connection problem between the two, thereby improving the interaction efficiency. In addition, the transmission of interactive information is realized by combining the predetermined topic with the publish-subscribe mechanism, which improves the accuracy of the transmission of interactive information.

[0030] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0032] Figure 1 is a flowchart of a method for processing interaction information shown in an exemplary embodiment of the present disclosure;

[0033] Figure 2 is a flowchart of a method for processing interaction information shown in another exemplary embodiment of the present disclosure;

[0034] Figure 3 is a flowchart of a method for processing interaction information shown in yet another exemplary embodiment of the present disclosure;

[0035] Figure 4A is a schematic diagram of a configuration delivery process shown in yet another exemplary embodiment of the present disclosure;

[0036] Figure 4B is a schematic diagram of a status reporting process shown in another exemplary embodiment of the present disclosure;

[0037] Figure 5 is a structural diagram of a device for processing interactive information shown in an exemplary embodiment of the present disclosure;

[0038] Figure 6 is a structural schematic diagram of a device for processing interaction information shown in another exemplary embodiment of the present disclosure;

[0039] Figure 7 is a structural diagram of a device for processing interaction information shown in yet another exemplary embodiment of the present disclosure;

[0040] Figure 8 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0041] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0042] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0043] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0044] At least one embodiment of the present disclosure provides a method for processing interactive information. Figure 1 , which shows the process of the method, including steps S101 to S103.

[0045] Among them, the processing method can be applied to distributed systems in the Internet of Things scenario, so the interactive information targeted by the processing method can be the interactive information within the above-mentioned distributed system. The above-mentioned distributed system may include a cloud server, a proxy server and multiple end-side devices, and the proxy server and the cloud server may be separately set up, or they may be persistently combined into one; wherein, the interactive information may be sent by the cloud server to the end-side device, such as the expected configuration information, or it may be sent by the end-side device to the cloud server, such as the actual configuration status information. When describing the processing method of the interactive information below, the present disclosure takes the information interaction between an end-side device and a cloud server as an example for description, but the present disclosure does not intend to limit the number of end-side devices.

[0046] in addition, Figure 1 The interactive information processing method shown can be applied to the proxy server in the above-mentioned distributed system.

[0047] In step S101, the interactive information published by one of the cloud server and the terminal device (hereinafter referred to as the first device, and the other of the cloud server and the terminal device is referred to as the second device) with a predetermined topic is received. The interactive information may include the expected configuration information of the cloud server for the terminal device, the response of the terminal device to the received expected configuration information, or the actual configuration status information of the terminal device.

[0048] The cloud server and the proxy server can realize network connection through wired or wireless means, and the end-side device and the proxy server can also realize network connection through wired or wireless means. The first device can be a cloud server, and the corresponding second device is an end-side device. Alternatively, the first device can be an end-side device, and the corresponding second device is a cloud server. The cloud server can publish the expected configuration information of the end-side device to the proxy server, so the proxy server can receive the expected configuration information of the end-side device sent by the cloud server; the end-side device can publish the actual configuration status information of the end-side device to the proxy server, so the proxy server can receive the actual configuration status information published by the end-side device.

[0049] The topics corresponding to the expected configuration information and the actual configuration status information are different. Therefore, when the proxy server or the end-side device publishes the interactive information, it is necessary to select the corresponding topic for publication based on the content or type of the interactive information to be published. The proxy server can define multiple topics corresponding to the content or type of the interactive message in advance.

[0050] In step S102, the interaction information is saved to a storage path corresponding to the predetermined topic.

[0051] Among them, the interactive information published with a predetermined topic may have an identifier of the topic. The proxy server may pre-store the mapping relationship between each predetermined topic and its identifier in advance, and after receiving the interactive information, it may find the topic corresponding to the interactive information from the above mapping relationship by identifying the identifier of the topic in the interactive information. In addition, the interactive information may have a unified message format, for example, a fixed character position of the message is used to store the identifier of the corresponding topic, so as to facilitate the identification of the proxy server.

[0052] Different storage paths may be different storage partitions in the proxy server, different storage disks in the proxy server, or different folders in the proxy server. A storage path may be set for each predetermined topic and a corresponding storage address may be assigned. When saving the interactive information, the storage path corresponding to the topic of the interactive information is found by matching the topic of the interactive information with the topic corresponding to each pre-set storage path. Alternatively, a corresponding storage path may be established when saving the interactive information, that is, a new corresponding storage path is established for each interactive information with a new topic added. Specifically, when saving the interactive information, the topics corresponding to all storage paths in the proxy server may be traversed according to the topic of the interactive information. If there is a storage path that matches the topic of the interactive information, the interactive information is directly saved to the matching storage path. If there is no storage path that matches the topic of the interactive information, a new storage path is established, and the topic corresponding to the storage path is marked as the topic of the interactive information, and the interactive information is saved to the newly established storage path.

[0053] In step S103, in response to the cloud server and the other of the terminal devices (hereinafter referred to as the second device) that subscribe to the predetermined topic being online, the interaction information is read from the storage path corresponding to the predetermined topic, and the read interaction information is sent to the second device.

[0054] Among them, if the interaction information received in step S101 comes from the cloud server, the interaction information can be sent to the terminal device in this step; if the interaction information received in step S101 comes from the terminal device, the interaction information can be sent to the cloud server in this step.

[0055] Among them, being in an online state may mean that there is a valid network connection with the proxy server, and being in an offline state (ie, an offline state) may mean that there is no valid network connection with the proxy server.

[0056] The cloud server is in an online state, which means that there is an effective network connection between the cloud server and the proxy server, and data can be transmitted between the cloud server and the proxy server in this state; the cloud server is in a non-online state (i.e., offline state), which means that there is no effective network connection between the cloud server and the proxy server, such as a complete disconnection or a poor quality connection. When the proxy server determines whether the cloud server is in an online state, it can send a detection signal to the cloud server, such as sending a heartbeat signal according to a predetermined time period, and determine whether a response signal to the detection signal is received within a certain period of time after the detection signal is sent. If a response signal to the detection signal is received, it can be determined that the cloud server is in an online state.

[0057] Similarly, the terminal device being in an online state may mean that there is an effective network connection between the terminal device and the proxy server, in which case data can be transmitted between the terminal device and the proxy server, and the terminal device being in a non-online state (i.e., an offline state) may mean that there is no effective network connection between the terminal device and the proxy server, such as a complete disconnection or a connection of poor quality. When the proxy server determines whether the terminal device is in an online state, it may send a detection signal to the terminal device, such as sending a heartbeat signal according to a predetermined time period, and determine whether a response signal to the detection signal is received within a certain period of time after the detection signal is sent. If a response signal to the detection signal is received, it can be determined that the terminal device is in an online state. There may be multiple terminal devices, and each terminal device may be determined one by one according to the above-mentioned determination method to determine whether it is in an online state. It may also be possible to uniformly send a detection signal to multiple terminal devices in a broadcasting manner, detect whether a response signal to the detection signal is received within a certain period of time, and determine that the terminal device corresponding to the ID information carried by the detected response signal is in an online state.

[0058] In addition, when the interactive information is released in step S101, it is also released when the cloud server or the terminal device is online.

[0059] Among them, the cloud server and / or the end-side device can subscribe to a specific topic from the proxy server, and the subscribed topic can represent the information needs of the cloud server and / or the end-side device. Therefore, the cloud server and / or the end-side device can monitor the interactive information in the proxy server in a targeted manner according to the information needs, that is, monitor the interactive information of the topic to which it has subscribed. Among them, it can monitor in real time or at a specific time point according to a certain frequency. The cloud server and / or the end-side device can monitor whether there is a new message in the storage path corresponding to the topic to which it has subscribed. If a new message is found in the path, it requests the proxy server to obtain the message, and the proxy server can send the message to the cloud server and / or the end-side device that requested to obtain the message.

[0060] According to the above analysis, after the proxy server saves the interaction information to the storage path corresponding to the predetermined topic according to step S102, it can verify whether the requesting party (i.e., the cloud server and / or the terminal device that sends the acquisition request) is online and subscribed to the subject of the interaction information based on the acquisition request for the interaction information from the cloud server and / or the terminal device. If the verification result is that the requesting party is online and subscribed to the subject of the interaction information, the interaction information is sent to the requesting party.

[0061] According to the above embodiments, by receiving the interactive information published by one of the cloud server and the terminal device with a predetermined topic, and saving the interactive information to the storage path corresponding to the predetermined topic, in response to the other of the cloud server and the terminal device subscribing to the predetermined topic being online, the interactive information is read from the storage path corresponding to the predetermined topic, and the interactive information read is sent to the other of the cloud server and the terminal device, so that the interactive information can be stored using the storage path corresponding to the preset topic, and then the other of the cloud server and the device can obtain the interactive information after going online, reducing the dependence of the information interaction between the device and the cloud server on the quality of the network connection, so that the information interaction between the cloud server and the device does not need to be retried due to the network connection problem between the two, thereby improving the interaction efficiency. In addition, the transmission of interactive information is realized by combining the predetermined topic with the publish-subscribe mechanism, which improves the accuracy of the transmission of interactive information.

[0062] In some embodiments of the present disclosure, the proxy server may process the interaction information in the following manner: first, receive the first expected configuration information published by the cloud server with the first topic; next, save the first expected configuration information to the storage path corresponding to the first topic; finally, in response to the end-side device subscribed to the first topic being online, read the first expected configuration information from the storage path corresponding to the first topic, and send the read first expected configuration information to the end-side device.

[0063] Among them, the interactive information starts from the cloud server, passes through the proxy server and reaches the end-side device, that is, the transmission direction is cloud server-proxy server-end-side device, the cloud server is the sender of the interactive information, and the end-side device is the receiver of the interactive information; the content of the interactive information is the first expected configuration information; that is, this process is the process of the cloud server sending the configuration to the end-side device.

[0064] After the first expected configuration information is sent to the proxy server, the proxy server will save the first expected configuration information, and after the end-side device that subscribes to the first topic (i.e., the device targeted by the first expected configuration information) comes online, it will be automatically sent to the end-side device. Therefore, although the cloud server does not directly send the first expected configuration information to the end-side device, sending it to the proxy server can be regarded as successfully sending it to the end-side device. Therefore, after the proxy server saves the first expected configuration information to the storage path corresponding to the first topic, it can return the first response information to the cloud server, wherein the first response information indicates that the first expected configuration information has been successfully sent. By saving the proxy server, the cloud server sending configuration information to the end-side device does not depend on the end-side device being online all the time and the network connection quality. Therefore, the cloud server can send configuration information at any time, reducing the difficulty of sending configuration information.

[0065] The first expected configuration information can represent the target expected state of the configuration items of the end-side device, that is, the first expected configuration information can be the configuration state that the cloud server hopes the end-side device that receives the information will reach. The cloud server can obtain the configuration change information of the end-side device and the real-time configuration information of the end-side device, merge the configuration change information with the real-time configuration information, and obtain the first expected configuration information, that is, the configuration state obtained by applying the configuration change information to the real-time configuration information. The target expected state is a declarative configuration information, that is, it declares the state expected by the cloud server. After receiving the declarative configuration information, the end-side device can check the difference with its actual configuration state and make corresponding configuration adjustments according to the difference items, avoiding the interactive configuration information from specifically listing various specific adjustment items, realizing the simplification of interactive information, saving the traffic of interactive information transmission, and improving the transmission efficiency of interactive information.

[0066] The first topic may include the identifier of the end-side device, and the end-side device may subscribe to a topic including its own identifier. For example, the first topic may include the identifier of the corresponding storage path, such as / device / {device_id} / config, where device_id is a wildcard identifier for multiple end-side devices. For a specific end-side device, "id" can be adaptively modified to the identifier of the specific end-side device. In other words, the first topic includes the identifier of the end-side device to which the first expected configuration information is directed. When the proxy server determines the recipient of the interactive information, it can determine it according to the identifier of the end-side device included in the first topic, that is, it is determined that the end-side device indicated by the identifier of the end-side device included in the first topic is the recipient of the interactive message, and therefore the above-mentioned first expected configuration information is sent to the end-side device as the recipient. By setting the identifier of the terminal device that subscribes to the first topic in the first topic, the pertinence of the first expected configuration information can be improved, so that the first expected configuration information can be accurately sent to the terminal device to be configured, thereby improving the accuracy of the configuration issuance of the terminal device; at the same time, by setting the identifier of the terminal device in the first topic, different terminal devices subscribe to different first topics, which can help achieve communication channel isolation of different terminal devices and authority management based on terminal devices.

[0067] In some embodiments of the present disclosure, after saving the interaction information to the storage path corresponding to the predetermined topic, it also includes: marking the first expected configuration information as the reserved information of the first topic with a retention information tag; based on the above-mentioned marking operation, the interaction information can be sent in the following manner: in response to the end-side device subscribed to the first topic being online, reading the expected configuration information with the retention information tag from the storage path corresponding to the first topic and sending the read expected configuration information with the retention information tag to the end-side device.

[0068] Among them, the reserved information can be valid information of the corresponding topic, that is, information with the highest importance level or priority. When sending interactive information of a topic, the interactive information with the reserved information mark of the topic can be sent. When new interactive information is saved in the storage path corresponding to the topic, the new interactive information can be marked as reserved information, and the reserved information mark of the original interactive information in the storage path corresponding to the topic is deleted. That is, only one latest interactive information under the same topic is marked as a reserved message (that is, a valid message), and other messages are expired invalid messages. In this way, when the end-side device reads a message from the storage path corresponding to the topic it subscribes to, it can successfully read the latest interactive information. In addition, the proxy server needs to send interactive information to the end-side device when the end-side device is online. In the case that the cloud server sends the expected configuration information of the end-side device to the proxy server multiple times when the end-side device is offline, the proxy server can only mark the latest expected configuration information sent as reserved information. In this way, after the end-side device goes online, it receives the latest expected configuration information sent by the proxy server without receiving multiple interactive information. Furthermore, the above-mentioned interactive information can be issued in a declarative manner. For example, the target expected state of the configuration items of the terminal side device is declared in the first expected configuration information. Then, through the method of this embodiment, after the terminal side device goes online, it only needs to receive the latest first expected configuration information to update the configuration items of the terminal side device to the latest state based on the first expected configuration information, thereby simplifying the configuration update of the terminal side device.

[0069] In addition, unique expected configuration information for delivery can be determined by retaining the information, thereby improving the accuracy of delivering the expected configuration information.

[0070] For multiple expected configuration information stored in the first topic, if one of them needs to be marked as the reserved information of the first topic, the expected configuration information can be sorted by importance level or priority first, and finally the one with the highest level can be marked as the reserved information of the first topic. Optionally, the timestamp of the newly received expected configuration information can be compared with the timestamp of the original expected configuration information with the reserved information mark, and when the timestamp of the newly received expected configuration information is larger (that is, the generation time of the newly received expected configuration information is later), the original reserved information mark is deleted, and the newly received expected configuration information is marked as the reserved information.

[0071] After saving the first expected configuration information to the storage path corresponding to the first topic, the method also includes: first, in response to receiving the second expected configuration information published by the cloud server with the first topic, saving the second expected configuration information to the storage path corresponding to the first topic; next, marking the second expected configuration information as the reserved information of the first topic with the retention information mark, and deleting the retention information mark of the first expected configuration information.

[0072] The second expected configuration information is the expected configuration information received after the first expected configuration information. For the second expected configuration information, in addition to saving it to the storage path corresponding to the first theme, it also replaces the first expected configuration information and is marked as the reserved information of the first theme. That is to say, after the second expected configuration information is saved to the storage path corresponding to the first theme, the mark of the reserved information of the first theme is transferred from the first expected configuration information to the second expected configuration information.

[0073] In the application scenario of the embodiment of the present disclosure, the cloud server can uniformly manage the configurations of multiple end-side devices. The cloud server can update the configurations of multiple end-side devices on a regular basis or on demand, generate expected configuration information, and send it to the proxy server as a topic subscribed by the end-side device to be updated. When the cloud server sends new expected configuration information, the proxy server transfers the reserved message tag of the topic subscribed by each end-side device to the new expected configuration information, and each end-side device can successfully obtain the latest expected configuration information after going online.

[0074] It can be understood that the transfer process of the retention information mark of the above-mentioned first topic is only an example. After receiving the second expected configuration information, the proxy server will continue to receive other expected configuration information, such as the third expected configuration information, the fourth expected configuration information, etc. Therefore, each time a new expected configuration information is received, the retention information mark of the first topic is transferred once, that is, it is transferred from other expected configuration information to the latest received expected configuration information.

[0075] In addition, each time the retention information tag of the first topic is transferred, it is also possible to re-determine whether the end-side device subscribed to the first topic is in an online state. If it is in an online state, new expected configuration information with the retention information tag of the first topic is re-issued to the end-side device; if the retention information tag of the first topic is transferred during the process of determining whether the end-side device subscribed to the first topic is in an online state, then after determining that the end-side device subscribed to the first topic is in an online state, the latest expected configuration information with the retention information tag is directly sent to the end-side device.

[0076] In some embodiments of the present disclosure, after sending the first expected configuration information or the second expected configuration information, the proxy server may also process the interaction information in the following manner: first, receive the second response information published by the end-side device with the second topic, wherein the second response information represents the response of the end-side device to the received expected configuration information; next, save the second response information to the storage path corresponding to the second topic; finally, in response to the cloud server subscribed to the second topic being online, read the second response information from the storage path corresponding to the second topic and send it to the cloud server.

[0077] Among them, the second response information represents the response of the terminal device to the received expected configuration information, that is, the response of the terminal device after receiving the first expected configuration information or the response after receiving the second expected configuration information. The content of the second response information may include information indicating the status of the expected configuration information being sent (for example, "successfully received the expected configuration information"), or the configuration update status (for example, "configuration update completed"). Optionally, the second response information can be issued by the terminal device to different processing nodes of the received expected configuration information. For example, after the terminal device receives the first expected configuration information, it reports the second response information once, and the status represented by the second response information is "configuration received". Next, the terminal device determines whether the configuration information is legal, and reports the judgment result as the response content again after the judgment is completed. After that, the configuration is updated according to the configuration information, and the progress of the configuration update (such as the configuration has taken effect) is reported again as the response content. By setting up a proxy server, the cloud server can view the response information of the terminal device at any time without having to rely on the online status of the terminal device and the quality of the network connection.

[0078] In addition, the second response information is issued for the expected configuration information most recently received by the end-side device, that is, after the end-side device receives the first expected configuration information, it starts to report the second response information for the first expected configuration information. Optionally, the cloud server and / or the proxy server can choose whether to send new configuration information (such as the second expected configuration information) according to actual needs. Moreover, after receiving the new expected configuration information (such as the second expected configuration information), the end-side device starts to report the second response information for the new expected configuration information (such as the second expected configuration information).

[0079] Among them, the second topic includes the identifier of the end-side device, that is, the second topic includes the identifier of the end-side device that performs the response report. For example, the second topic can be in the form of / device / {device_id} / config_ack, where device_id is a wildcard identifier of multiple end-side devices. Specifically for a specific end-side device, "id" can be adaptively modified to the id of the specific end-side device. When the cloud server receives the second response information of the second topic, it can be determined that it is the second response information of the end-side device, thereby improving the accuracy and pertinence of the cloud server in obtaining the responses of each end-side device. In the scenario of unified configuration management of multiple end-side devices, the cloud server can receive the second response information reported by multiple end-side devices, and can subscribe to multiple second topics including the identifiers of the end-side devices through the wildcard identifier to monitor the configuration delivery status or configuration update status of multiple end-side devices.

[0080] In some embodiments of the present disclosure, the interaction information may be sent by the end-side device, and the target recipient of the interaction information is the cloud server. The interaction information may be the actual configuration status information reported by the end-side device. The proxy server may process the interaction information in the following manner: receiving the actual configuration status information published by the end-side device in a third topic; saving the actual configuration status information to a storage path corresponding to the third topic; in response to the cloud server subscribing to the third topic being online, reading the actual configuration status information from the storage path corresponding to the third topic and sending the read actual configuration status information to the cloud server.

[0081] Among them, the interactive information is triggered from the end-side device, and reaches the cloud server through the proxy server, that is, the transmission direction is end-side device-proxy server-cloud server, the end-side device is the sender of the interactive information, and the cloud server is the receiver of the interactive information; the content of the interactive information is the actual configuration status information of the end-side device. This process is the process of the end-side device reporting the configuration status to the cloud server. The end-side device can report the configuration status at a certain time interval, or be triggered by a specific event to report the configuration status, such as a configuration change, or a configuration status query request initiated by the cloud. By forwarding the actual configuration status information of the end-side device through the proxy server, the cloud server can view the end-side device status information at any time without having to rely on the online status of the end-side device and the quality of the network connection.

[0082] Among them, the third topic includes the identifier of the end-side device that reports the actual configuration status information. For example, the third topic can be " / device / {device_id} / state", which corresponds to the storage path of the third topic. Among them, "device_id" is a wildcard identifier for the identifiers of multiple end-side devices. Specifically for a specific end-side device, "id" can be adaptively modified to the id of the specific end-side device. When the cloud server receives the actual configuration status information published in the third topic, it can determine the end-side device that issued the actual configuration status information based on the third topic, so as to accurately synchronize the actual configuration status information of the end-side device to the cloud database. In the scenario where the configuration status of multiple end-side devices is managed in the cloud, the cloud server can obtain the actual configuration status information reported by multiple end-side devices, and can subscribe to multiple third topics through wildcard identifiers, thereby realizing the monitoring and management of the status of multiple end-side devices.

[0083] It should be noted that after receiving the actual configuration status information, the cloud server can also store the actual configuration status information in the cloud database, and in response to the calling object's instruction to query the configuration status of the terminal device, send the actual configuration status information of the queried terminal device to the calling object.

[0084] The calling object can be a user, or other devices connected to the cloud server that need to call or read the configuration status of the end-side device. The calling object can issue a call instruction to the cloud server to obtain the actual configuration status information of the end-side device. Since the actual configuration status information of the end-side device has been persistently stored in the cloud database, the calling object can obtain the actual status information of the end-side device in real time, regardless of whether the end-side device is online, which improves the flexibility of querying the actual configuration status information of the end-side device.

[0085] In some embodiments of the present disclosure, in response to the second device subscribing to the predetermined topic being online, before reading the interaction information from the storage path corresponding to the predetermined topic and sending it to the second device, subscription information for the predetermined topic sent by the second device can also be received.

[0086] In this embodiment, before the cloud server or the terminal device receives the interactive information published with the predetermined topic for the first time, it may send subscription information for the predetermined topic to the proxy server to subscribe to the predetermined topic to the proxy server; the cloud server or the terminal device may not repeatedly subscribe to the predetermined topic before receiving the interactive information published with the predetermined topic for a non-first time.

[0087] The cloud server or the end-side device can subscribe to the corresponding predetermined topic in advance according to the information requirements. For example, the end-side device can send subscription information for the first topic to the proxy server in advance to subscribe to the interactive information of the first topic from the proxy server; further, the end-side device can subscribe to the interactive information of the first topic including its identifier from the proxy server, so that the configuration can be accurate and targeted when it is issued. For another example, the cloud server can send subscription information for the second topic to the proxy server in advance to subscribe to the interactive information of the second topic from the proxy server; further, the cloud server can subscribe to the interactive information of the second topic including the identifier of any end-side device from the proxy server, that is, subscribe to the second response information reported by all end-side devices. Optionally, the cloud server can subscribe to the interactive information of the second topic including the identifier of any end-side device from the proxy server through a wildcard identifier. For another example, the cloud server can also send subscription information for the third topic to the proxy server in advance to subscribe to the interactive information of the third topic from the proxy server. The cloud server can subscribe to the interactive information of the third topic including the identifier of any end-side device from the proxy server, that is, subscribe to the actual configuration status information reported by all end-side devices. For example, the cloud server can subscribe to the interactive information of the third topic including the identifier of any end-side device from the proxy server through a wildcard identifier.

[0088] In a second aspect, at least one embodiment of the present disclosure provides a method for processing interactive information. Figure 2 , which shows the process of the method, including step S201 to step S202.

[0089] The application scenarios of the processing method have been described in detail in the first aspect, and will not be repeated here. Figure 2 The interactive information processing method shown can be applied to the cloud server in the above-mentioned distributed system.

[0090] In step S201, the expected configuration information is published to the proxy server with a predetermined topic, wherein the expected configuration information is saved by the proxy server to a storage path corresponding to the predetermined topic and is sent to the end-side device when the end-side device subscribed to the predetermined topic is online.

[0091] This step is the process of the cloud server sending configurations to the end device. Please refer to the description of the relevant content in the first aspect.

[0092] In step S202, first response information returned by the proxy server after the expected configuration information is saved in the storage path corresponding to the predetermined topic is received, wherein the first response information indicates that the expected configuration information is successfully sent.

[0093] This step is the process of the proxy server returning the first response information to the cloud server. Please refer to the description of the relevant content of the first aspect.

[0094] In some embodiments of the present disclosure, the desired configuration information may be published to the proxy server in a predetermined topic in the following manner: the first desired configuration information may be published to the proxy server in a first topic subscribed by the end-side device to be configured, wherein the first topic may include an identifier of the end-side device subscribed to the first topic.

[0095] The above content has been described in detail in the first aspect and will not be repeated here. Please refer to the description of the relevant content of the first aspect.

[0096] In some embodiments of the present disclosure, after publishing first expected configuration information to a proxy server with a first topic subscribed by an end-side device to be configured, second expected configuration information may also be published to the proxy server with the first topic, wherein the second expected configuration information is saved by the proxy server to a storage path corresponding to the first topic and marked as retained information of the first topic, and is sent to the end-side device when the end-side device subscribed to the predetermined topic is online.

[0097] The above content is the process of continuously sending the expected configuration information. Please refer to the description of the relevant content of the first aspect.

[0098] It should be noted that the first expected configuration information and the second expected configuration information may be generated according to a configuration instruction, and the configuration instruction may be input directly or indirectly by a user to the cloud server. For example, the first expected configuration information may be generated according to the first configuration instruction, and the second expected configuration information may be generated according to the second configuration instruction. In addition, since there may be a situation where multiple users input configuration instructions at the same time, a concurrent protection mechanism may be set so that the expected configuration information is generated according to the configuration instruction under the concurrent protection mechanism, wherein the concurrent protection mechanism may be formed by optimistic locking, etc.

[0099] In some embodiments of the present disclosure, after publishing the expected configuration information to the proxy server, a second response message sent by the proxy server to the cloud server that subscribes to the second topic through the wildcard identifier can also be received, wherein the second response information represents the response of the end-side device to the received expected configuration information, and the second response information is published by the end-side device to the proxy server with the second topic, and saved by the proxy server to the storage path corresponding to the second topic.

[0100] The above content is the process of the terminal device reporting the second response information. Please refer to the description of the relevant content of the first aspect.

[0101] In some embodiments of the present disclosure, after publishing the expected configuration information to the proxy server, actual configuration status information sent by the proxy server to a cloud server that subscribes to a third topic through a wildcard identifier can also be received, wherein the actual configuration status information is published by the end-side device to the proxy server using the third topic and saved to a storage path corresponding to the third topic.

[0102] The above content is the process of the end-side device reporting the actual configuration status information. Please refer to the description of the relevant content in the first aspect.

[0103] It should be noted that after receiving the actual configuration status information, the cloud server can also store the actual configuration status information in the cloud database, and in response to the calling object's instruction to query the configuration status of the terminal device, send the actual configuration status information of the queried terminal device to the calling object.

[0104] In some embodiments of the present disclosure, the cloud server may also send subscription information for the second topic to the proxy server in advance, so as to subscribe to the interactive information of the second topic from the proxy server; the cloud server may also send subscription information for the third topic to the proxy server in advance, so as to subscribe to the interactive information of the third topic from the proxy server. The above-mentioned process of subscribing to the topic has been described in detail in the first aspect, and will not be repeated here. Please refer to the relevant content of the first aspect.

[0105] Figure 2 For other details in each process of the method shown, please refer to the description of the relevant content of the first aspect.

[0106] In a third aspect, at least one embodiment of the present disclosure provides a method for processing interactive information. Figure 3 , which shows the process of the method, including step S301 to step S302.

[0107] The application scenarios of the processing method have been described in detail in the first aspect, and will not be repeated here. Figure 3 The illustrated method for processing interactive information can be applied to the terminal side device in the above-mentioned distributed system.

[0108] In step S301, the expected configuration information sent by the proxy server is received, wherein the expected configuration information is published by the cloud server with a first topic, saved by the proxy server to a storage path corresponding to the first topic, and sent in response to an end-side device subscribed to the first topic being online.

[0109] This step is the process of the cloud server sending configurations to the end device. Please refer to the description of the relevant content in the first aspect.

[0110] In step S302, a second response message is published to the proxy server with a second topic, wherein the second response message represents a response to the received expected configuration information, and the second response message is saved by the proxy server to a storage path corresponding to the second topic and sent to the cloud server when the cloud server subscribed to the second topic is online.

[0111] This step is the process of the terminal device reporting the second response information. Please refer to the description of the relevant content of the first aspect.

[0112] In some embodiments of the present disclosure, the terminal device may also publish actual configuration status information to the proxy server in a third topic, wherein the actual configuration status information is saved by the proxy server to a storage path corresponding to the third topic and sent to the cloud server when the cloud server subscribed to the third topic is online.

[0113] The above content is the process of the terminal device reporting status. Please refer to the description of the relevant content in the first aspect.

[0114] Figure 3 For other details in each process of the method shown, please refer to the description of the relevant content of the first aspect.

[0115] In a fourth aspect, at least one embodiment of the present disclosure provides a method for processing interactive information, which is applied to the distributed system mentioned in the first aspect. Figure 4A and Figure 4B The processing method is described in detail.

[0116] Please refer to the attached Figure 4A, which shows the process of the cloud server sending configuration information to the terminal device through the proxy server. First, in S411, the first expected configuration information is generated, that is, the user inputs the first configuration instruction to the cloud server to generate the first expected configuration information according to the first configuration instruction. Then, in S412, the cloud server publishes the first expected configuration information to the proxy server with the first topic, and the proxy server saves the first expected configuration information and marks it as the reserved information of the first topic. At this time, the terminal device may be in an offline state, so the first expected configuration information is not actually sent, but it can be regarded as successfully sent, and the first response information is returned in S413 to indicate that the first expected configuration information is successfully sent. The terminal device executes S414 in the online state to subscribe to the first topic. Then, when the terminal device monitors that there is a new message under the first topic, S415 is executed, that is, the proxy server sends the first expected configuration information to the terminal device. When the user expects to update the configuration state of the terminal device, S416 is executed to generate the second expected configuration information. For example, the user inputs the second configuration instruction to the cloud server to generate the second expected configuration information according to the second configuration instruction. The cloud server can execute S417 to verify the legitimacy of the second expected configuration information using optimistic locking, and execute S418 when the verification result shows that the second expected configuration information is legal configuration information, that is, the cloud server publishes the second expected configuration information to the proxy server with the first topic, and the proxy server saves the second expected configuration information and marks it as the reserved information of the first topic, and deletes the reserved information mark of the first expected configuration information. Then, in S419, the cloud server returns the first response information to indicate that the second expected configuration information is successfully sent. When the end-side device is online, the proxy server executes S410 to send the second expected configuration information to the end-side device.

[0117] In addition, if Figure 4A As shown, the cloud server can pre-subscribe to the second topic from the proxy server in S431, for example, it can subscribe to all second topics including the terminal device identifier through a wildcard identifier. Accordingly, the terminal device can publish the second response information representing its response to the received expected configuration information to the proxy server in the second topic in S432 when it is online, so that the proxy server can save the second response information. Then, in S433, the proxy server uploads the second response information to the cloud server in the online state.

[0118] Please refer to the attached Figure 4B, which shows the process of the end-side device reporting status information to the cloud server through the proxy server. In S421, the cloud server pre-subscribes to the third topic to the proxy server, and can subscribe to all third topics including the end-side device identifier through the wildcard identifier. In S422, the end-side device can publish the actual configuration status information to the proxy server with the third topic, so that the proxy server can save the actual configuration status information. Then, in S423, the proxy server uploads the actual configuration status information to the cloud server that is online. Next, in S424, the cloud server updates the status information of the end-side device to the latest received actual configuration status information. In S425, the calling object such as the user inputs a calling instruction to the cloud server. In S426, based on the calling instruction in S425, the cloud server returns the actual configuration status information to the calling object such as the user.

[0119] Understandably, Figure 4A The configuration delivery process shown and Figure 4B The status reporting processes shown are all examples of the interactive information processing method provided by the present disclosure, and are not intended to limit the specific manner, application scenario, and step sequence of the interactive information processing method provided by the present disclosure.

[0120] Please refer to the attached Figure 5 According to a fourth aspect of an embodiment of the present disclosure, a device for processing interaction information is provided, which is applicable to a proxy server, and includes: a first receiving module 501, used to receive interaction information published by a first device with a predetermined topic, wherein the first device represents one of a cloud server and an end-side device; a saving module 502, used to save the interaction information to a storage path corresponding to the predetermined topic; a sending module 503, used to respond to a second device subscribed to the predetermined topic being online, wherein the second device represents the other of the cloud server and the end-side device, read the interaction information from the storage path corresponding to the predetermined topic, and send the read interaction information to the second device.

[0121] In combination with any implementation manner provided by the present disclosure, in the case where the first device represents a cloud server and the second device represents a terminal device, the interaction information includes first expected configuration information published by the cloud server with a first topic, the first topic includes an identifier of the terminal device, and the first expected configuration information represents a target expected state of a configuration item of the terminal device;

[0122] When the saving module is used to save the interaction information to the storage path corresponding to the predetermined topic, it is specifically used to:

[0123] Saving the first desired configuration information to a storage path corresponding to the first topic;

[0124] The sending module is used for reading the interaction information from the storage path corresponding to the predetermined topic in response to the second device subscribing to the predetermined topic being in an online state, and sending the read interaction information to the second device, specifically for:

[0125] In response to the end-side device subscribing to the first topic being online, the first expected configuration information is read from a storage path corresponding to the first topic, and the read first expected configuration information is sent to the end-side device.

[0126] In combination with any embodiment provided in the present disclosure, the device further includes a first response module, which is used to:

[0127] After saving the first expected configuration information to the storage path corresponding to the first topic, first response information is returned to the cloud server, wherein the first response information indicates that the first expected configuration information is successfully sent.

[0128] In combination with any embodiment provided in the present disclosure, the device further includes a marking module, which is used to:

[0129] After saving the first desired configuration information to the storage path corresponding to the first topic, marking the first desired configuration information as reserved information of the first topic with a reserved information mark;

[0130] The sending module is used for reading the interaction information from the storage path corresponding to the predetermined topic in response to the second device subscribing to the predetermined topic being in an online state, and sending the read interaction information to the second device, specifically for:

[0131] In response to the end-side device subscribing to the first topic being online, the desired configuration information with a reserved information mark is read from the storage path corresponding to the first topic, and the read desired configuration information with the reserved information mark is sent to the end-side device.

[0132] In combination with any embodiment provided in the present disclosure, the device further includes a replacement module, which is used to:

[0133] After saving the first expected configuration information to the storage path corresponding to the first topic, in response to receiving the second expected configuration information published by the cloud server with the first topic, saving the second expected configuration information to the storage path corresponding to the first topic;

[0134] The second expected configuration information is marked as the reserved information of the first topic by using the reserved information mark; and the reserved information mark of the first expected configuration information is deleted.

[0135] In combination with any implementation manner provided by the present disclosure, when the first device represents the terminal device and the second device represents the cloud server, the interaction information includes second response information published by the terminal device with a second topic, wherein the second response information represents the response of the terminal device to the received expected configuration information, and the second topic includes a wildcard identifier or an identifier of the terminal device, and the wildcard identifier is a wildcard identifier of multiple terminal devices including the terminal device, and the apparatus further includes a second response module, which is used to:

[0136] Saving the second response information to a storage path corresponding to the second topic;

[0137] In response to the cloud server subscribing to the second topic being online, the second response information is read from the storage path corresponding to the second topic, and the read second response information is sent to the cloud server.

[0138] In combination with any implementation manner provided by the present disclosure, when the first device represents the terminal device and the second device represents the cloud server, the interaction information includes the actual configuration status information published by the terminal device in a third topic, the third topic includes a wildcard identifier or an identifier of the terminal device, the wildcard identifier is a wildcard identifier of multiple terminal devices including the terminal device, and the saving module is used to save the interaction information to the storage path corresponding to the predetermined topic, specifically for:

[0139] Saving the actual configuration status information to the storage path corresponding to the third theme;

[0140] The sending module is used for reading the interaction information from the storage path corresponding to the predetermined topic in response to the second device subscribing to the predetermined topic being in an online state, and sending the read interaction information to the second device, specifically for:

[0141] In response to the cloud server subscribing to the third topic being online, the actual configuration status information is read from the storage path corresponding to the third topic, and the read actual configuration status information is sent to the cloud server.

[0142] In combination with any implementation manner provided in the present disclosure, the device further includes a subscription module, which is used to:

[0143] In response to the second device subscribing to the predetermined topic being online, before reading the interaction information from the storage path corresponding to the predetermined topic and sending it to the second device, receiving subscription information for the predetermined topic sent by the second device.

[0144] Please refer to the attached Figure 6 According to a fifth aspect of an embodiment of the present disclosure, there is provided a device for processing interaction information, which is applicable to a cloud server and includes:

[0145] A first publishing module 601 is used to publish the desired configuration information to the proxy server with a predetermined topic, wherein the desired configuration information is saved by the proxy server to a storage path corresponding to the predetermined topic, so as to be sent to the end-side device by the proxy server when the end-side device subscribed to the predetermined topic is in an online state; and

[0146] The second receiving module 602 is used to receive first response information returned by the proxy server after the expected configuration information is saved in the storage path corresponding to the predetermined topic, wherein the first response information indicates that the expected configuration information is successfully sent.

[0147] In combination with any implementation manner provided in the present disclosure, the first publishing module is specifically configured to:

[0148] The first desired configuration information is published to the proxy server with a first topic, wherein the first topic includes an identifier of the end-side device to be configured.

[0149] In combination with any embodiment provided in the present disclosure, the device further includes a third response module, configured to:

[0150] In the case that the cloud server subscribes to the second topic, a second response message sent by the proxy server is received, wherein the second topic includes a wildcard identifier or an identifier of the terminal device, the wildcard identifier is a wildcard identifier of multiple terminal devices including the terminal device, and the second response message represents the response of the terminal device to the received expected configuration information, and the second response message is published by the terminal device to the proxy server with the second topic, and saved by the proxy server to the storage path corresponding to the second topic.

[0151] In combination with any implementation manner provided in the present disclosure, the device further includes a first state module, configured to:

[0152] In the case where the cloud server subscribes to the third topic, receiving actual configuration status information sent by the proxy server, wherein the third topic includes a wildcard identifier or an identifier of the terminal device, the wildcard identifier is a wildcard identifier of multiple terminal devices including the terminal device, and the actual configuration status information is published by the terminal device to the proxy server in the third topic, and is saved by the proxy server to a storage path corresponding to the third topic;

[0153] The actual configuration status information is stored in a cloud database.

[0154] In combination with any implementation manner provided in the present disclosure, the device further includes a calling module, which is used to:

[0155] After the actual configuration status information is stored in the cloud database, in response to an instruction of the calling object to query the configuration status of the terminal device, the actual configuration status information of the queried terminal device is sent to the calling object.

[0156] Please refer to the attached Figure 7 According to a sixth aspect of an embodiment of the present disclosure, a device for processing interaction information is provided, which is applicable to a terminal side device, including:

[0157] The third receiving module 701 is used to receive the expected configuration information sent by the proxy server when the terminal device subscribes to the first topic, wherein the first topic includes the identifier of the terminal device, and the expected configuration information is published by the cloud server in the first topic and saved by the proxy server to the storage path corresponding to the first topic;

[0158] The second publishing module 702 is used to publish a second response message to the proxy server with a second topic, wherein the second topic includes a wildcard identifier or an identifier of the terminal device, and the wildcard identifier is a wildcard identifier of multiple terminal devices including the terminal device. The second response message represents a response to the received expected configuration information. The second response message is saved by the proxy server to a storage path corresponding to the second topic, and is sent by the proxy server to the cloud server when the cloud server subscribed to the second topic is online.

[0159] According to a seventh aspect of an embodiment of the present disclosure, a system for processing interaction information is provided, comprising:

[0160] A proxy server, configured to receive interaction information published by a first device with a predetermined topic, wherein the first device represents one of a cloud server and a terminal device, save the interaction information to a storage path corresponding to the predetermined topic, and in response to a second device subscribing to the predetermined topic being in an online state, wherein the second device represents the other of the cloud server and the terminal device, read the interaction information from the storage path corresponding to the predetermined topic, and send the read interaction information to the second device;

[0161] The cloud server is used to publish the expected configuration information to the proxy server with a first topic, and receive a first response information returned by the proxy server after saving the expected configuration information to the storage path corresponding to the predetermined topic;

[0162] The terminal device is used to receive the expected configuration information sent by the proxy server, and publish second response information to the proxy server with a second topic, wherein the second response information represents a response to the received expected configuration information.

[0163] Regarding the apparatus and system in the above-mentioned embodiments, the specific manner in which each module performs operations has been described in detail in the embodiment of the method in the first aspect, and will not be elaborated here.

[0164] Please refer to the attached Figure 8 According to the eighth aspect of an embodiment of the present disclosure, an electronic device is provided, the device comprising a memory and a processor, the memory being used to store computer instructions executable on the processor, the processor being used to implement the method described in the first aspect, the second aspect or the third aspect when executing the computer instructions.

[0165] According to a ninth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method described in the first aspect, the second aspect or the third aspect is implemented.

[0166] In the present disclosure, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The term "plurality" refers to two or more than two, unless otherwise clearly defined.

[0167] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

Claims

1. A method for processing interactive information, applicable to a proxy server, comprising: Receiving interaction information published by a first device with a predetermined topic, wherein the first device represents one of a cloud server and a terminal device; Saving the interaction information to a storage path corresponding to the predetermined topic; In response to a second device subscribing to the predetermined topic being in an online state, wherein the device being in an online state means that there is a valid network connection between the device and the proxy server, and the second device represents the other of the cloud server and the terminal device, Read the interaction information from the storage path corresponding to the predetermined topic, and Sending the read interaction information to the second device; Wherein, in a case where the first device represents a cloud server and the second device represents a terminal device, the interaction information includes first expected configuration information published by the cloud server with a first topic, the first topic includes an identifier of the terminal device, and the first expected configuration information represents a target expected state of a configuration item of the terminal device; The step of storing the interaction information in a storage path corresponding to the predetermined topic includes: Saving the first expected configuration information to a storage path corresponding to the first topic, and marking the first expected configuration information as reserved information of the first topic with a reserved information mark; In response to receiving the second desired configuration information published by the cloud server using the first topic, Saving the second desired configuration information to a storage path corresponding to the first topic; Using the reserved information tag to mark the second desired configuration information as reserved information of the first topic; and Deleting a reserved information mark of the first desired configuration information; Wherein, each time the reserved information mark of the first topic is transferred, the proxy server sends a detection signal to re-determine whether the terminal side device subscribed to the first topic is in an online state; In response to the second device subscribing to the predetermined topic being in an online state, reading the interaction information from a storage path corresponding to the predetermined topic, and sending the read interaction information to the second device, including: In response to the end-side device subscribing to the first topic being online, Read the desired configuration information with the reserved information mark from the storage path corresponding to the first topic, and Sending the read desired configuration information with the reserved information mark to the terminal side device; In a case where the first device represents the terminal device and the second device represents the cloud server, the interaction information includes second response information published by the terminal device with a second topic, wherein the second response information represents a response of the terminal device to the received expected configuration information, and the second topic includes a wildcard identifier or an identifier of the terminal device, and the wildcard identifier is a wildcard identifier of multiple terminal devices including the terminal device; The step of storing the interaction information in a storage path corresponding to the predetermined topic includes: Saving the second response information to a storage path corresponding to the second topic; In response to the second device subscribing to the predetermined topic being in an online state, reading the interaction information from a storage path corresponding to the predetermined topic, and sending the read interaction information to the second device, including: In response to the cloud server subscribing to the second topic being online, Reading the second response information from the storage path corresponding to the second topic, and sending the read second response information to the cloud server; In a case where the first device represents the terminal device and the second device represents the cloud server, the interaction information includes actual configuration status information published by the terminal device in a third topic, the third topic includes a wildcard identifier or an identifier of the terminal device, and the wildcard identifier is a wildcard identifier of multiple terminal devices including the terminal device; The step of storing the interaction information in a storage path corresponding to the predetermined topic includes: Saving the actual configuration status information to the storage path corresponding to the third theme; In response to the second device subscribing to the predetermined topic being in an online state, reading the interaction information from a storage path corresponding to the predetermined topic, and sending the read interaction information to the second device, including: In response to the cloud server subscribing to the third topic being online, The actual configuration status information is read from the storage path corresponding to the third topic, and the read actual configuration status information is sent to the cloud server.

2. The method according to claim 1, wherein: After saving the first desired configuration information to the storage path corresponding to the first topic, the method further includes: Returning first response information to the cloud server, wherein the first response information indicates that the first expected configuration information is successfully delivered.

3. The method according to claim 1 or 2, wherein: In response to the second device subscribing to the predetermined topic being in an online state, before reading the interaction information from the storage path corresponding to the predetermined topic and sending it to the second device, the method further includes: Receive subscription information for the predetermined topic sent by the second device.

4. A system for processing interactive information, comprising: Proxy server for receiving interaction information published by a first device with a predetermined topic, wherein the first device represents one of a cloud server and a terminal device, saving the interaction information to a storage path corresponding to the predetermined topic, and In response to a second device subscribing to the predetermined topic being in an online state, wherein the device being in an online state means that there is a valid network connection between the device and the proxy server, and the second device represents the other of the cloud server and the terminal device, Read the interaction information from the storage path corresponding to the predetermined topic, and Sending the read interaction information to the second device; The cloud server is used to publishing the desired configuration information to the proxy server in a first topic, and Receiving first response information returned by the proxy server after saving the desired configuration information to the storage path corresponding to the predetermined topic; The terminal side device is used to receiving the desired configuration information sent by the proxy server, and Publishing a second response message to the proxy server with a second topic, wherein the second response message represents a response to the received expected configuration information; Wherein, in a case where the first device represents a cloud server and the second device represents a terminal device, the interaction information includes first expected configuration information published by the cloud server with a first topic, the first topic includes an identifier of the terminal device, and the first expected configuration information represents a target expected state of a configuration item of the terminal device; When the proxy server is used to store the interaction information in the storage path corresponding to the predetermined topic, it is specifically used to: Saving the first expected configuration information to a storage path corresponding to the first topic, and marking the first expected configuration information as reserved information of the first topic with a reserved information mark; In response to receiving the second desired configuration information published by the cloud server using the first topic, Saving the second desired configuration information to a storage path corresponding to the first topic; Using the reserved information tag to mark the second desired configuration information as reserved information of the first topic; and Deleting a reserved information mark of the first desired configuration information; Wherein, each time the reserved information mark of the first topic is transferred, the proxy server sends a detection signal to re-determine whether the terminal side device subscribed to the first topic is in an online state; The proxy server is used to, in response to the second device subscribing to the predetermined topic being in an online state, read the interaction information from the storage path corresponding to the predetermined topic, and send the read interaction information to the second device, specifically to: In response to the end-side device subscribing to the first topic being online, Read the desired configuration information with the reserved information mark from the storage path corresponding to the first topic, and Sending the read desired configuration information with the reserved information mark to the terminal side device; In a case where the first device represents the terminal device and the second device represents the cloud server, the interaction information includes second response information published by the terminal device with a second topic, wherein the second response information represents a response of the terminal device to the received expected configuration information, and the second topic includes a wildcard identifier or an identifier of the terminal device, and the wildcard identifier is a wildcard identifier of multiple terminal devices including the terminal device; When the proxy server is used to store the interaction information in the storage path corresponding to the predetermined topic, it is specifically used to: Saving the second response information to a storage path corresponding to the second topic; The proxy server is used to, in response to the second device subscribing to the predetermined topic being in an online state, read the interaction information from the storage path corresponding to the predetermined topic, and send the read interaction information to the second device, specifically to: In response to the cloud server subscribing to the second topic being online, Reading the second response information from the storage path corresponding to the second topic, and sending the read second response information to the cloud server; In a case where the first device represents the terminal device and the second device represents the cloud server, the interaction information includes actual configuration status information published by the terminal device in a third topic, the third topic includes a wildcard identifier or an identifier of the terminal device, and the wildcard identifier is a wildcard identifier of multiple terminal devices including the terminal device; When the proxy server is used to store the interaction information in the storage path corresponding to the predetermined topic, it is specifically used to: Saving the actual configuration status information to the storage path corresponding to the third theme; The proxy server is used to, in response to the second device subscribing to the predetermined topic being in an online state, read the interaction information from the storage path corresponding to the predetermined topic, and send the read interaction information to the second device, specifically to: In response to the cloud server subscribing to the third topic being online, The actual configuration status information is read from the storage path corresponding to the third topic, and the read actual configuration status information is sent to the cloud server.

5. An electronic device comprising: Memory for storing computer instructions, and A processor, configured to implement the method according to any one of claims 1 to 3 when executing the computer instructions.

6. A computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Multi-container-based asymmetric processing system suitable for ubiquitous power Internet of Things edge terminal

    CN111600936A

  • Intelligent cloud gateway, automobile digital detection system and data processing method

    CN111770016A

  • Configuring system resources for different reference architectures

    US20170346684A1

  • Publishing to a data warehouse

    US20200026711A1