Multilayer communication methods, devices, systems, and media

The method optimizes multi-layer communication systems by enabling direct processing or encryption of command data based on layer-specific needs, improving efficiency and reducing resource consumption while maintaining protocol compatibility.

JP2026516469APending Publication Date: 2026-05-25BEIJING ROBOROCK INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
BEIJING ROBOROCK INNOVATION TECH CO LTD
Filing Date
2024-04-30
Publication Date
2026-05-25

AI Technical Summary

Technical Problem

Existing multi-layer communication systems suffer from inefficiencies in data transmission due to the middle-layer components acting as distributors and adjusters, consuming significant time and resources.

Method used

A method where each layer communication component determines if command data needs processing, executing it directly if necessary or encrypting and transmitting it to the next layer otherwise, with protocol compatibility ensured through pre-stored communication protocols.

Benefits of technology

This approach enhances execution efficiency and reduces resource consumption by allowing direct processing or encryption based on layer-specific needs, ensuring reliable and compatible data transmission across layers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026516469000001_ABST
    Figure 2026516469000001_ABST
Patent Text Reader

Abstract

This application discloses a multilayer communication method, apparatus, system, and medium applicable to a multilayer communication system comprising N layer communication components, where N is a natural number greater than 1, the method comprising the steps of: a target layer communication component of the N layer communication components receiving command data, determining whether the command data is command data that needs to be processed by the layer communication component; if so, the target layer communication component executing the command data; otherwise, the target layer communication component encrypting the command data and transmitting the encrypted command data to the next layer communication component of the target layer communication component.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] [Related Application] This application was filed with the Chinese Patent Office on May 6, 2023, claiming the priority of a Chinese patent application with application number 2023105074509 and invention title "Multi - layer Communication Method, Device, System and Medium", and all of its contents are incorporated herein by reference.

[0002] This disclosure relates to a multi - layer communication method, device, system and medium.

Background Art

[0003] With the development of communication technologies such as Internet of Things, the application of multi - layer communication is becoming increasingly widespread. Various electronic devices are connected to a multi - layer communication system, enabling better coordination and control.

[0004] However, in existing multi - layer communication systems, often the top - layer component receives and transmits command data, the middle - layer functions as a distributor, adjuster, and transmission path for command data, and the bottom - layer component executes commands. Therefore, a large amount of time and resources are consumed in the data transmission process of the middle - layer, and there is a problem of insufficient efficiency.

Summary of the Invention

[0005] As a first aspect, embodiments of the present disclosure provide a multilayer communication method, the method being applied to a multilayer communication system, the system comprising N layer communication components, where N is greater than 1, the method comprising: a step of determining whether, after a target layer communication component of the N layer communication components has received command data, the command data is command data that needs to be processed by the layer communication component; if so, the step of the target layer communication component executing the command data; otherwise, the step of the target layer communication component encrypting the command data and transmitting the encrypted command data to the next layer communication component of the target layer communication component.

[0006] In a second aspect, embodiments of the present disclosure provide electronic equipment comprising a target layer communication component in a multilayer communication system, the target layer communication component comprising: a determination module for determining whether, after receiving command data, the command data is command data that needs to be processed by the layer communication component; an execution module for executing the command data if the determination result of the determination module is "yes"; and a transmission module for encrypting the command data and transmitting the encrypted command data to the next layer communication component if the determination result of the determination module is "no".

[0007] In a third aspect, embodiments of the present disclosure provide a multilayer communication system, wherein at least one layer of communication components in the system is the target layer communication component in the electronic device described in the second aspect.

[0008] In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium in which a computer program is stored, and when the program is executed by a processor, steps corresponding to the method described in the first aspect are realized. [Brief explanation of the drawing]

[0009] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings that may be used in the description of the embodiments are briefly described below. However, obviously, the accompanying drawings described below represent only a few embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these without any creative work.

[0010] [Figure 1] This is a schematic flowchart of the multi-layer communication method of the embodiment of the present disclosure. [Figure 2] This is a schematic diagram of the structure of a multi-layer communication system according to an embodiment of the present disclosure. [Figure 3] This is a schematic diagram of a communication instance of a multi-layer communication system according to an embodiment of the present disclosure. [Figure 4] Figure 1 shows a schematic diagram illustrating the compatibility of different communication protocols for multi-layer communication in the embodiments of this disclosure. [Figure 5] Figure 2 shows a schematic diagram illustrating the compatibility of different communication protocols for multi-layer communication in the embodiments of this disclosure. [Figure 6] This is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. [Modes for carrying out the invention]

[0011] To better understand the above technical solution, it will be described in detail below with reference to the accompanying drawings and specific embodiments of the specification. The embodiments and specific features within the embodiments of this disclosure are for the purpose of describing the technical solution of this disclosure and do not limit the technical solution of this disclosure. The embodiments and technical features within the embodiments of this disclosure can be combined with each other, provided they do not contradict each other.

[0012] First, it should be understood that the terms "and / or" as used herein merely describe the relationship between related objects, and there are three possible relationships. For example, A and / or B can mean that A exists alone, A and B exist together, or B exists alone. Furthermore, the letter " / " in this specification generally means that the preceding and succeeding related objects have an "or" relationship.

[0013] Embodiments of this disclosure provide a multilayer communication method applied to a multilayer communication system, the multilayer communication system comprising N layer communication components, where N is a natural number greater than 1, and as shown in Figure 1, the method comprises the following steps: Step S101: After the target layer communication component among the N-layer communication components receives the command data, it is determined whether the command data is command data that needs to be processed by the layer communication component. Step S102, if so, the target layer communication component executes the command data. Step S103, otherwise, the target layer communication component encrypts the command data and transmits the encrypted command data to the next layer communication component of the target layer communication component.

[0014] As shown in Figure 2, each layer of the multi-layer communication system 200 includes one or more communication components 201, and each communication component 201 establishes a communication connection according to a pre-defined communication layer relationship. The target layer communication component is a communication component capable of processing command data according to the method of steps S101 to S103. The target layer communication component has at least the following functions: it can receive command data, it can determine whether the command data should be processed by the communication component of that layer, it can execute the corresponding command data, and it can encrypt the specified data and transmit it to the next layer. All communication components in each layer of the multi-layer communication system 200 may be target layer communication components, or some of the communication components in some layers of the multi-layer communication system 200 may be target layer communication components, and are not limited to these.

[0015] The implementation steps of the multi-layer communication method provided in this disclosure will be described in detail below with reference to Figure 1: In step S101, after the target layer communication component among the N-layer communication components receives the command data, it is determined whether the command data is command data that needs to be processed by that layer communication component.

[0016] In selectable embodiments, the target layer communication component may be a communication component of any layer among the N-layer communication components. The command data may be transmitted to the target layer communication component from an external device, transmitted to the target layer communication component from a communication component in a layer preceding the target layer communication component, or generated by the target layer communication component triggered by a timer or sensor, but is not limited to these, and no further enumeration is given.

[0017] In selectable embodiments, there may be multiple methods for determining whether command data is command data that needs to be processed by the layer communication component. For example, the command data may contain a corresponding execution target identifier, and after the target layer communication component receives the command data, it may obtain the execution target identifier and determine whether it needs to be processed by the layer communication component based on that identifier. Alternatively, the target layer communication component may analyze the execution content of the command data and determine whether it needs to be processed by the layer communication component by analyzing whether the execution content falls within the execution scope of the layer communication component, but this is not limited to these methods.

[0018] In an optional embodiment, after receiving command data, the target layer communication component may first analyze the command data and determine whether processing is required by the layer communication component based on the analyzed command data. Here, the step of analyzing the command data includes first decoding the command data, then verifying the validity of the decoded command data and ensuring the accuracy of the data.

[0019] Regarding step S102, when it is determined that the command data is command data that needs to be processed by the layer communication component, the target layer communication component executes the command data.

[0020] Specifically, regardless of whether the target layer communication component is located in the middle layer or the top layer of the multi-layer communication system, if it is determined as "yes", the command data can be directly executed, and there is no need to send the command data to the lowest layer component for execution, effectively improving the execution efficiency and reducing the consumption of communication resources.

[0021] For example, assuming that the multi-layer communication system includes five layers of communication components, namely the top layer component, the upper layer component, the middle layer component, the lower layer component, and the lowest layer component in order from top to bottom, each layer of component except the lowest layer component can be set to have the data determination, data processing, and data transmission functions of the target layer communication component. Assuming that the execution layer corresponding to the command data is the lower layer component, after the lower layer component receives the command data, it can directly execute the command data without sending it to the lowest layer component for processing, effectively improving the efficiency.

[0022] For example, assume that the target layer communication component in the multi-layer communication system is located in the middle layer, the target layer communication component includes the power supply component of the projector, and the content to be executed included in the command data is to control the power of the projector to be turned off. When the target layer communication component determines that the command data is command data to be executed by the layer communication component, the controller in the power supply component executes the data command and directly turns off the power.

[0023] In an alternative embodiment, after the target layer communication component executes the command data, it can also return the result data obtained by executing the command data to the source layer communication component that sent the command data (the source layer communication component refers to the communication component of the layer that first obtained the command data in the multi-layer communication system). Here, the source layer communication component may be the top layer of the multi-layer communication system, or another intermediate layer of the multi-layer communication system, or the source layer communication component may be the target layer communication component (at this time the result data is returned to this layer), and is not limited thereto.

[0024] Regarding step S103, if it is determined that the command data is not the command data that needs to be processed by the layer communication component, the target layer communication component encrypts the command data and sends the encrypted command data to the communication component of the next layer of the target layer communication component.

[0025] Here, encrypting the command data includes performing packaging processing on the analyzed command data and encrypting the packaged command data.

[0026] In an alternative embodiment, after the communication component of the next layer of the target layer communication component receives the command data, it determines the command data in the same manner as steps S101 to S103, and based on the determination result, can decide whether to directly execute the command data or send the command data to the communication component of the next layer.

[0027] Specifically, in a multi-layer communication system, all components of each layer except the lowest layer component can be configured to have data determination, data processing, and data transmission functions for the target layer communication component. That is, all components of each layer except the lowest layer component can determine the command data according to the same method as in steps S101 to S103, and based on the determination result, decide whether to execute the command data directly or transmit the command data to the communication component of the next layer.

[0028] Referring to Figure 3, we assume that the multilayer communication system includes four layer communication components, which are, from top to bottom, the top layer component, upper layer component, lower layer component, and lowest layer component. After the top layer component receives command data, it first determines the command data and executes it directly if it is a command data that needs to be processed by that layer; otherwise, it is configured to send it to the upper layer component for processing. After the upper layer component receives command data, it first determines the command data and executes it directly if it is a command data that needs to be processed by that layer; otherwise, it is configured to send it to the lower layer component for processing. After the lower layer component receives command data, it first determines the command data and executes it directly if it is a command data that needs to be processed by that layer; otherwise, it is configured to send it to the lowest layer component for processing. In this way, all communication components in each layer execute the command data directly, and execution efficiency can be guaranteed even in different control scenarios.

[0029] In an optional embodiment, to ensure the transmission reliability of command data and avoid execution omissions, the target communication component may enter a timeout waiting state after transmitting encrypted command data to the next layer's communication component. In this timeout waiting state, the system may be configured to continuously monitor whether the target layer's communication component has received result data obtained by executing the command data within a predetermined timeout period. If received, it exits the timeout waiting state; otherwise, it retransmits the encrypted command data to the next layer's communication component. Of course, in a multi-layer communication system, to avoid multiple layers' communication components entering a timeout waiting state based on the same command data, the system can be configured so that only the originating layer's communication component enters the timeout waiting state after transmitting the command data, thereby saving system resources.

[0030] In the specific implementation process, it is necessary to consider that different layers of a multi-layer communication system may adopt different communication protocols due to reasons such as different communication component devices in different layers, development by different manufacturers in cooperation, or different progress in updating communication protocols. Even in the case of different communication protocols, in order to guarantee the reliability of data transmission and data processing of communication components in each layer and improve compatibility, other communication protocols other than the communication protocol of that layer can be stored in the target layer communication component, and a different communication protocol can be selected according to the source or target of the command data during decryption and encryption, thereby achieving compatibility between different communication protocols. For example, compatibility of communication protocols can be achieved using at least the following two methods.

[0031] Firstly, the target layer communication component is configured to pre-store the communication protocol corresponding to the upper layer communication component of the target layer communication component, as well as the communication protocol corresponding to the target layer communication component itself. This ensures that when received command data is transmitted from its upper layer communication component, even if the communication protocols are not the same, the received command data can be accurately analyzed using the pre-stored upper layer communication protocol, guaranteeing data accuracy. Furthermore, each layer communication component in a multi-layer communication system is configured to pre-store the communication protocol corresponding to its upper layer communication component, as well as the communication protocol corresponding to the target layer communication component itself. This allows for accurate analysis of command data transmitted from the upper layer communication component using the pre-stored upper layer communication protocol, and the analyzed command data can be encrypted and retransmitted to the next layer using the pre-stored layer communication protocol. The lower layer communication component can then accurately analyze the received command data using the pre-stored layer communication protocol. This ensures compatibility by analyzing command data transmitted from the previous layer's communication component, even if the communication protocols corresponding to each layer communication component are not the same.

[0032] For example, referring to Figure 4, assuming that a multi-layer communication system includes four layer communication components, arranged from top to bottom as the top-tier component, upper-tier component, lower-tier component, and lowest-tier component, the detailed execution steps are as follows: After the top-level component receives the command data, it first evaluates the command data. If it is command data that needs to be processed by that layer, it executes it directly. Otherwise, it packages and encrypts the command data using the top-level communication protocol corresponding to the top-level component and sends it to the upper-level component for processing.

[0033] After an upper-layer component receives command data, it first decrypts and validates the command data using a pre-stored top-layer communication protocol. Then it evaluates the command data and, if it is command data that needs to be processed by that layer, executes it directly. Otherwise, it packages and encrypts the command data using the upper-layer communication protocol corresponding to the upper-layer component and sends it to the lower-layer component for processing.

[0034] After a lower-layer component receives command data, it first decrypts and validates the command data using a pre-stored upper-layer communication protocol. Then it evaluates the command data and, if it is command data that needs to be processed by that layer, executes it directly. Otherwise, it packages and encrypts the command data using the lower-layer communication protocol corresponding to the lower-layer component, and sends it to the lowest-layer component for processing.

[0035] After the lowest layer component receives the command data, it first decodes and validates the command data using a pre-stored lower-layer communication protocol, and then executes the command data.

[0036] Secondly, the target layer communication component may be configured to pre-store communication protocols corresponding to lower layer communication components and communication protocols corresponding to the target layer communication component. This allows the command data to be analyzed using the pre-stored layer communication protocol, and the analyzed command data to be encrypted using the pre-stored lower layer communication protocol and transmitted to the next layer. The communication component of the next layer can then accurately analyze the received command data even if the communication protocol is not the same, ensuring data accuracy. Furthermore, each layer communication component in a multi-layer communication system may be configured to pre-store communication protocols corresponding to lower layer communication components and communication protocols corresponding to the layer communication component. This allows the command data transmitted from the upper layer communication component to be analyzed using the current communication protocol, and the analyzed command data to be encrypted using the pre-stored lower layer communication protocol and transmitted to the next layer, ensuring that the lower layer communication component accurately analyzes the received command data. Even if the communication protocols corresponding to each layer's communication component are not the same, the command data transmitted from the previous layer's communication component can be analyzed, achieving compatibility.

[0037] For example, referring to Figure 5, assuming that a multi-layer communication system includes four layer communication components, arranged from top to bottom as the top-level component, upper-level component, lower-level component, and lowest-level component, the detailed execution steps are as follows: After the top-level component receives command data, it first evaluates the command data. If it is command data that needs to be processed by that layer, it executes it directly. Otherwise, it packages and encrypts the command data using the upper-level communication protocol corresponding to the upper-level component, and sends it to the upper-level component for processing. After an upper-layer component receives command data, it first decrypts and validates the command data using its own layer communication protocol. Then it evaluates the command data and, if it is command data that needs to be processed by that layer, executes it directly. Otherwise, it packages and encrypts the command data using the lower-layer communication protocol corresponding to the lower-layer component, and sends it to the lower-layer component for processing. After a lower-layer component receives command data, it first decrypts and validates the command data using its own layer communication protocol, then evaluates the command data. If it is command data that needs to be processed by that layer, it executes it directly; otherwise, it packages and encrypts the command data using the lowest-layer communication protocol corresponding to the lowest-layer component, and sends it to the lowest-layer component for processing. After the lowest layer component receives the command data, it first decodes and validates the command data using the corresponding layer's communication protocol, and then executes the command data.

[0038] Of course, the methods for achieving communication protocol compatibility are not limited to the two methods described above. Multiple communication protocols can be stored in the target layer communication component, and a corresponding communication protocol can be selected based on the source of the received command data to perform decryption and validity checks, or a corresponding communication protocol can be selected based on the target to be transmitted to perform encryption.

[0039] In selectable embodiments, the multi-layer communication system can have a flexible configuration. For example, in a floor cleaning machine product with a combined vacuum cleaner component, the top layer communication component may be an Internet of Things chip or router, the upper layer communication component may include the main controller of the floor cleaning machine, the lower layer communication component may include controllers for the dust collection component on the floor cleaning machine and the charging pile of the floor cleaning machine, and the lowest layer communication component may include controllers for the fan on the floor cleaning machine and the battery on the floor cleaning machine.

[0040] Combined with the above example of a multi-layer communication system for a floor cleaning machine, and assuming that the command data is a battery status query, the specific communication steps are as follows: The Internet of Things chip receives an external trigger, generates command data to query the battery status, and sends it to the main controller of the floor cleaning machine. The main controller of the floor cleaning machine analyzes the command data using the pre-stored communication protocol of the Internet of Things chip, encrypts it, and retransmits it to the dust collection component controller. The dust collection component controller analyzes the command data using the pre-stored communication protocol of the floor cleaning machine's main controller, encrypts it, and sends it to the battery controller. The battery controller analyzes the command data using the pre-stored communication protocol of the dust collection component controller, performs a battery status query, returns the query result to the dust collection component controller, and then sequentially returns it to the Internet of Things chip, completing the battery status query.

[0041] Of course, each communication component of a multi-layer communication system is not limited to being located within a single electronic device; a multi-layer communication system can be constructed from multiple electronic devices. For example, the top-layer communication component may be a router or voice robot, the upper-layer communication component may be a projector controller, and the lowest-layer communication component may be an audio device. These are not the only possible configurations, and can be set as needed.

[0042] Based on the same concept, embodiments of the present disclosure provide electronic equipment, and as shown in Figure 6, the electronic equipment 600 includes a target layer communication component 610 in a multi-layer communication system, and the target layer communication component 610 is A determination module 611 for determining whether the command data is command data that needs to be processed by the layer communication component after receiving the command data, If the determination result of the determination module is "yes", the execution module 612 for executing the command data, The system includes a transmission module 613 for encrypting the command data and transmitting the encrypted command data to the next layer's communication component if the determination result of the determination module is "no".

[0043] The electronic device may include one or more target layer communication components 610, and may be, but is not limited to, a handheld cleaning device, a cleaning robot, a projector, or a washing machine.

[0044] In an optional embodiment, the target layer communication component 610 further includes an analysis module for analyzing the command data using a pre-stored upper layer communication protocol, wherein the upper layer communication protocol is a communication protocol corresponding to a communication component in a layer preceding the target layer communication component. The transmitting module 610 is further used to encrypt the analyzed command data using a pre-stored layer communication protocol, which is the communication protocol corresponding to the target layer communication component.

[0045] In an optional embodiment, the target layer communication component 610 further includes an analysis module for analyzing the command data using a pre-stored layer communication protocol, wherein the layer communication protocol is a communication protocol corresponding to the target layer communication component. The transmitting module 601 is further used to encrypt the analyzed command data using a pre-stored lower-layer communication protocol, the lower-layer communication protocol being a communication protocol corresponding to the communication component of the next layer after the target layer communication component.

[0046] Based on the same concept, embodiments of the present disclosure provide a multilayer communication system, and as shown in Figure 2, at least one layer communication component 201 in the multilayer communication system 200 is a target layer communication component 610 in an electronic device 600 provided in embodiments of the present disclosure.

[0047] In an optional embodiment, in the multilayer communication system 200, all communication components in each layer except the lowest layer communication component are the target layer communication components 610.

[0048] Based on the same concept, embodiments of the present disclosure provide a computer-readable storage medium in which a computer program is stored, and when the program is executed by a processor, steps corresponding to a multi-layer communication method provided by the present disclosure are realized.

[0049] The devices, systems, and media described in this embodiment are for implementing the multi-layer communication method of the embodiment of this disclosure. Therefore, a person skilled in the art can understand the specific embodiments of the devices, systems, and media of this embodiment and their various variations based on the multi-layer communication method described in this embodiment. Thus, it is not necessary to describe in detail here how the devices, systems, and media implement the methods in the embodiment of this disclosure. All devices, systems, and media used by a person skilled in the art to implement the multi-layer communication method of the embodiment of this disclosure are covered by this disclosure.

[0050] Those skilled in the art will understand that embodiments of the present disclosure may be provided as methods, systems, or computer program products. Accordingly, the present disclosure may take the form of complete hardware embodiments, complete software embodiments, or embodiments combining software and hardware. The present disclosure may also take the form of a computer program product implemented on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) containing computer-executable program code.

[0051] This disclosure will be described with reference to flowcharts and / or block diagrams of the methods, devices (systems), and computer program products of the embodiments of this disclosure. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be realized by computer program directives. These computer program directives can be provided to a general-purpose computer, a dedicated computer, an embedded processor, or a processor of another programmable data processing device to generate a device that realizes the functions specified in one or more flows and / or blocks in a flowchart and / or block diagram.

[0052] These computer program instructions can be stored in a computer-readable storage device that can guide a computer or other programmable data processing device to operate in a particular manner, and the instructions stored in the computer-readable storage device generate a product including a instruction device, which implements a function specified in one or more flows of a flowchart and / or one or more blocks of a block diagram.

[0053] These computer program instructions can also be loaded into a computer or other programmable data processing device, and a series of operational steps can be executed on the computer or other programmable device to realize computer processing, thereby providing steps that realize the functions specified in one or more flows of a flowchart and / or one or more blocks of a block diagram.

[0054] While preferred embodiments of this disclosure have been described, those skilled in the art, knowing the basic inventive concept, may make additional changes and modifications to these embodiments. Accordingly, the appended claims are intended to include all changes and modifications that fall within the scope of the preferred embodiments and this disclosure.

[0055] Clearly, any modifications and variations made to the Disclosure by a person skilled in the art will not deviate from the spirit and scope of the Disclosure. Thus, if such modifications and variations of the Disclosure fall within the claims of the Disclosure and their equivalent technical scope, the Disclosure is intended to include such modifications and variations.

[0056] One embodiment of the present disclosure provides a multi-layer communication method, which is applied to a multi-layer communication system, the system comprising N-layer communication components, where N is greater than 1, and the method comprises the following steps: After the target layer communication component among the N-layer communication components receives command data, it determines whether the command data is command data that needs to be processed by the layer communication component. If so, the target layer communication component executes the command data, Otherwise, the target layer communication component encrypts the command data and transmits the encrypted command data to the next layer communication component of the target layer communication component.

[0057] In an optional embodiment, the step of analyzing the command data using a pre-stored upper-layer communication protocol before determining whether the command data is command data that needs to be processed by the layer communication component is further included, wherein the upper-layer communication protocol is a communication protocol corresponding to a communication component of a layer preceding the target layer communication component, and the encryption of the command data includes encrypting the command data after analysis using the pre-stored layer communication protocol, wherein the layer communication protocol is a communication protocol corresponding to the target layer communication component.

[0058] In an optional embodiment, the step of analyzing the command data using a pre-stored layer communication protocol before determining whether the command data is command data that needs to be processed by the layer communication component is further included, wherein the layer communication protocol is a communication protocol corresponding to the target layer communication component, and encrypting the command data includes encrypting the analyzed command data using a pre-stored lower layer communication protocol, wherein the lower layer communication protocol is a communication protocol corresponding to the communication component of the next layer after the target layer communication component.

[0059] In an optional embodiment, the step of analyzing the command data includes decrypting the command data and verifying the validity of the decrypted command data, and the step of encrypting the command data includes packaging the analyzed command data and encrypting the packaged command data.

[0060] In an optional embodiment, the target layer communication component further includes the step of returning the result data obtained from executing the command data to the originating layer communication component that originated the command data, after the target layer communication component has executed the command data.

[0061] In an optional embodiment, after transmitting the encrypted command data to the next layer communication component of the target communication component, the system enters a timeout waiting state, and in the timeout waiting state, monitors whether the target layer communication component has received result data obtained by executing the command data within a predetermined timeout period; if so, exits the timeout waiting state; otherwise, retransmits the encrypted command data to the next layer communication component of the target layer communication component.

[0062] Another embodiment of the present disclosure provides an electronic device comprising a target layer communication component in a multi-layer communication system, the target layer communication component is A determination module for determining whether the command data received is command data that needs to be processed by the layer communication component, If the determination result of the determination module is "yes", an execution module for executing the command data is provided, The system includes, if the determination result of the determination module is "no", a transmission module for encrypting the command data and transmitting the encrypted command data to the next layer's communication component.

[0063] In an optional embodiment, the target layer communication component further includes an analysis module for analyzing the command data using a pre-stored upper layer communication protocol, the upper layer communication protocol being a communication protocol corresponding to a communication component in a layer preceding the target layer communication component, and the transmission module further uses the pre-stored layer communication protocol to encrypt the analyzed command data, the layer communication protocol being a communication protocol corresponding to the target layer communication component.

[0064] In an optional embodiment, the target layer communication component further includes an analysis module for analyzing the command data using a pre-stored layer communication protocol, the layer communication protocol being a communication protocol corresponding to the target layer communication component, and the transmission module further uses a pre-stored lower layer communication protocol to encrypt the analyzed command data, the lower layer communication protocol being a communication protocol corresponding to the communication component of the next layer after the target layer communication component.

[0065] Another embodiment of the present disclosure provides a multilayer communication system in which at least one layer of communication components in the system is the target layer communication component in the electronic device.

[0066] In one of the selectable embodiments, in the multi-layer communication system, all communication components in each layer except the lowest layer communication component are the target layer communication components.

[0067] Another embodiment of the present disclosure provides a computer-readable storage medium in which a computer program is stored, and which, when executed by a processor, realizes steps corresponding to the multi-layer communication method described above.

Claims

1. A multilayer communication method applicable to a multilayer communication system, wherein the multilayer communication system includes N-layer communication components, where N is a natural number greater than 1, and the multilayer communication method is The steps include: determining whether the target layer communication component among the N-layer communication components receives command data and then determines whether the command data is command data that needs to be processed by the layer communication component; If so, the step of the target layer communication component executing the command data, A multilayer communication method comprising, otherwise, the step of the target layer communication component encrypting the command data and transmitting the encrypted command data to the next layer communication component of the target layer communication component.

2. Before determining whether the aforementioned command data is command data that needs to be processed by the layer communication component, The step further includes analyzing the command data using a pre-stored upper-layer communication protocol, wherein the upper-layer communication protocol is a communication protocol corresponding to a communication component of the layer preceding the target layer communication component. The multilayer communication method according to claim 1, wherein encrypting the command data includes encrypting the command data after analysis using a pre-stored layer communication protocol, and the layer communication protocol is a communication protocol corresponding to the target layer communication component.

3. Before determining whether the aforementioned command data is command data that needs to be processed by the layer communication component, The step further includes analyzing the command data using a pre-stored layer communication protocol, wherein the layer communication protocol is a communication protocol corresponding to the target layer communication component. The multi-layer communication method according to claim 1, wherein encrypting the command data includes encrypting the command data after analysis using a pre-stored lower-layer communication protocol, the lower-layer communication protocol being a communication protocol corresponding to the communication component of the next layer after the target layer communication component.

4. The step of analyzing the command data includes decoding the command data and verifying the validity of the decoded command data. The multi-layer communication method according to claim 2 or 3, wherein encrypting the command data includes performing a packaging process on the analyzed command data and encrypting the packaged command data.

5. After the target layer communication component executes the command data, The multi-layer communication method according to claim 1, further comprising the step of returning result data obtained by executing the command data to the transmitting layer communication component that transmitted the command data.

6. After transmitting the encrypted command data to the next layer communication component of the target communication component, The steps include entering a timeout waiting state, and in the timeout waiting state, monitoring whether the target layer communication component has received result data obtained by executing the command data within a predetermined timeout period, If so, the step is to exit the timeout waiting state, The multi-layer communication method according to claim 1, further comprising the step of otherwise retransmitting the encrypted command data to the next layer communication component of the target layer communication component.

7. An electronic device comprising a target layer communication component in a multi-layer communication system, the target layer communication component is A determination module for determining whether the command data received is command data that needs to be processed by the layer communication component, If the determination result of the determination module is "yes", an execution module for executing the command data is provided, An electronic device comprising: a transmission module for encrypting the command data and transmitting the encrypted command data to a communication component of the next layer if the determination result of the determination module is "no".

8. The target layer communication component further includes an analysis module for analyzing the command data using a pre-stored upper layer communication protocol, wherein the upper layer communication protocol is a communication protocol corresponding to the communication component of the layer preceding the target layer communication component. The electronic device according to claim 7, wherein the transmitting module is further used to encrypt the analyzed command data using a pre-stored layer communication protocol, the layer communication protocol being a communication protocol corresponding to the target layer communication component.

9. The target layer communication component further includes an analysis module for analyzing the command data using a pre-stored layer communication protocol, wherein the layer communication protocol is a communication protocol corresponding to the target layer communication component. The electronic device according to claim 7, wherein the transmitting module is further used to encrypt the analyzed command data using a pre-stored lower-layer communication protocol, the lower-layer communication protocol being a communication protocol corresponding to the communication component of the next layer after the target layer communication component.

10. A multilayer communication system in which at least one layer of communication components is the target layer communication component in the electronic device according to any one of claims 7 to 9.

11. The multilayer communication system according to claim 10, wherein all communication components in each layer except for the lowest layer communication component are target layer communication components.

12. A computer-readable storage medium in which a computer program is stored, wherein when the program is executed by a processor, steps corresponding to the method according to any one of claims 1 to 6 are realized.