Multi-level communication method, electronic devices, multi-level communication system and media
Patent Information
- Application Number
- TW113116738
- Authority / Receiving Office
- TW · TW
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2023-05-06
- Filing Date
- 2024-05-06
- Publication Date
- 2026-09-21
- Estimated Expiration
- 2044-05-05
AI Technical Summary
Existing multi-level communication systems suffer from inefficiencies and resource consumption due to the middle layer handling instruction data distribution and transmission, leading to insufficient efficiency.
A multi-level communication method where each layer's communication component determines if it needs to process the instruction data, executing it directly if applicable, or encrypting and sending it to the next layer if not, thereby optimizing data processing and reducing resource consumption.
This approach enhances execution efficiency and reduces communication resource consumption by allowing layers to directly process or encrypt data as needed, improving overall system performance.
Smart Images

Figure TWG2TB001911863_001 
Figure TWG2TB001911863_002 
Figure TWG2TB001911863_003
Abstract
Description
Technical Field
[0001] The present disclosure relates to a multi-level communication method, electronic equipment, a multi-level communication system and a medium. Prior Art
[0002] With the development of communication technologies such as the Internet of Things, the application of multi-level communication is becoming more and more widespread. Various electronic devices are connected in multi-level communication systems for better coordination and control.
[0003] However, in existing multi-level communication systems, the top-level components often receive and initiate command data, the middle layer serves as the distribution, coordination and transmission channel for command data, and the bottom-level components execute the commands, resulting in a large amount of time and resources being consumed in the data transmission process of the middle layer, resulting in insufficient efficiency. Summary of the Invention
[0004] In a first aspect, an embodiment of the present disclosure provides a multi-level communication method, which is applied to a multi-level communication system, the system including N-layer communication components, N being greater than 1, the method comprising: after receiving instruction data, a target layer communication component in the N-layer communication components determines whether the instruction data is instruction data that needs to be processed by the communication component of this layer; if so, the target layer communication component executes the instruction data; if not, the target layer communication component encrypts the instruction data and sends the encrypted instruction data to the communication component of the next layer of the target layer communication component.
[0005] In a second aspect, an embodiment of the present disclosure provides an electronic device, which includes a target layer communication component in a multi-level communication system, and the target layer communication component includes: a judgment module, which is used to judge whether the command data is command data that needs to be processed by the communication component of this layer after receiving the command data; an execution module, which is used to execute the command data if the judgment result of the judgment module is yes; and a sending module, which is used to encrypt the command data if the judgment result of the judgment module is no, and send the encrypted command data to the communication component of the next layer.
[0006] In a third aspect, an embodiment of the present disclosure provides a multi-level 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.
[0007] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps corresponding to the method described in the first aspect. Simple diagram description
[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0009] Figure 1 is a schematic flow chart of a multi-level communication method according to an embodiment of the present disclosure; Figure 2 is a schematic diagram of the structure of the multi-level communication system in the present disclosure embodiment; Figure 3 is a schematic diagram of a communication example of a multi-level communication system according to an embodiment of the present disclosure; Figure 4 is a schematic diagram of different communication protocols compatible with multi-level communications in an embodiment of the present disclosure; Figure 5 is a schematic diagram of different communication protocols compatible with multi-level communications in the present disclosure embodiment II; FIG6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. Implementation Method
[0010] This application claims priority to the Chinese patent application filed with the China Patent Office on May 6, 2023, with application number 2023105074509, and invention name “A multi-level communication method, device, system and medium”, the entire contents of which are incorporated by reference into this application.
[0011] To better understand the above technical solution, the following detailed description of the above technical solution is provided in conjunction with the accompanying drawings and specific implementation methods. It should be understood that the embodiments of the present disclosure and the specific features therein are detailed descriptions of the technical solution of the present disclosure, rather than limitations of the technical solution of the present disclosure. The embodiments of the present disclosure and the technical features therein may be combined with each other unless there is a conflict.
[0012] First, the term "and / or" used in this document simply describes a relationship between related entities, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates an "or" relationship between the related entities.
[0013] In an embodiment of the present disclosure, a multi-level communication method is provided. The method is applied to a multi-level communication system. The multi-level communication system includes N layers of communication components, where N is a natural number greater than 1. As shown in FIG1 , the method includes:
[0014] Step S101, after the target layer communication component in the N-layer communication component receives the instruction data, it determines whether the instruction data is instruction data that needs to be processed by the communication component of this layer;
[0015] Step S102, if yes, then the target layer communication component executes the instruction data;
[0016] Step S103: If not, the target layer communication component encrypts the instruction data and sends the encrypted instruction data to the next layer communication component of the target layer communication component.
[0017] It should be noted that, as shown in Figure 2, each layer of communication components in the multi-level communication system 200 may include one or more communication components 201, each of which has pre-established communication connections according to the configured communication hierarchy. A target-level communication component is a communication component capable of processing instruction data in accordance with steps S101-S103. A target-level communication component includes at least the following functions: receiving instruction data, determining whether instruction data is intended for processing by a communication component at that layer, executing the corresponding instruction data, and encrypting and forwarding designated data to the next level. Each layer of communication components in the multi-level communication system 200 may be a target-level communication component, or even just some of the layers within the multi-level communication system 200, without limitation.
[0018] The following describes in detail the implementation steps of the multi-level communication method provided by the present disclosure in conjunction with FIG1:
[0019] Regarding step S101, after receiving the instruction data, the target layer communication component in the N-layer communication components determines whether the instruction data is instruction data that needs to be processed by the communication component of the current layer.
[0020] In an optional embodiment, the target layer communication component can be any of the N layers of communication components. The instruction data can be sent to the target layer communication component by an external device, sent to the target layer communication component by a communication component above the target layer communication component, or generated by the target layer communication component in response to a timer or sensor. This is not limited here and will not be listed one by one.
[0021] In alternative implementations, there are various ways to determine whether instruction data requires processing by the communication component at the current layer. For example, the instruction data may include a corresponding executable object identifier. Upon receiving the instruction data, the target communication component obtains the executable object identifier and, based on this identifier, determines whether processing by the communication component at the current layer is required. Alternatively, the target communication component may parse the execution content of the instruction data and analyze whether it falls within the execution scope of the communication component at the current layer, thereby determining whether processing by the communication component at the current layer is required. This is not intended to be limiting.
[0022] In an optional embodiment, after receiving the instruction data, the target layer communication component may first parse the instruction data and then determine whether the target layer communication component needs to process it based on the parsed instruction data. Parsing the instruction data may include first decrypting the instruction data and then verifying the validity of the decrypted instruction data to ensure data accuracy.
[0023] Regarding step S102, if it is determined that the instruction data is instruction data that needs to be processed by the communication component of the current layer, the communication component of the target layer executes the instruction data.
[0024] Specifically, regardless of whether the target layer communication component is located in the middle layer or the top layer of the multi-level communication system, it can directly execute the instruction data if it is judged to be yes, without sending the instruction data to the underlying components for execution, which effectively improves the execution efficiency and reduces the consumption of communication resources.
[0025] For example, consider a multi-layered communication system consisting of five layers of communication components: top, upper, middle, lower, and bottom. Each layer except the bottom layer can be configured to perform data judgment, data processing, and data distribution functions similar to those of the target layer's communication components. Assuming the execution level corresponding to instruction data is a lower-layer component, upon receiving the instruction data, the lower-layer component can directly execute it without sending it to the lower-layer component for processing, effectively improving efficiency.
[0026] For another example, suppose the target layer communication component in a multi-layer communication system is located in the middle layer. The target layer communication component includes the power supply component of a projector. The command data contains the content to be executed, which is to control the projector to power off. The target layer communication component determines that the data is the command data that the communication component in the target layer needs to execute. The controller in the power supply component executes the data instruction and directly turns off the power.
[0027] In an optional embodiment, after the target layer communication component executes the instruction data, it may also return result data obtained by executing the instruction data to the initiating layer communication component that originated the instruction data (the initiating layer communication component may refer to the communication component at the layer in a multi-level communication system that first obtains the instruction data). The initiating layer communication component may be the top layer of the multi-level communication system, or another intermediate layer of the multi-level communication system, or the initiating layer communication component may be the target layer communication component (in which case the result data is returned to the current layer), without limitation.
[0028] Regarding step S103, if it is determined that the instruction data is not instruction data that needs to be processed by the communication component of the current layer, the communication component of the target layer encrypts the instruction data and sends the encrypted instruction data to the communication component of the next layer of the target layer.
[0029] The step of encrypting the instruction data may include: packaging the parsed instruction data and encrypting the packaged instruction data.
[0030] In an optional embodiment, after receiving the instruction data, the next-layer communication component of the target-layer communication component can judge the instruction data in the same manner as steps S101 to S103, and determine whether to directly execute the instruction data or continue to send the instruction data to the next-layer communication component based on the judgment result.
[0031] Specifically, each component in a multi-layer communication system, except for the bottom-layer component, can be configured to have the data judgment, data processing, and data delivery functions of the target-layer communication component. In other words, each component in each layer, except for the bottom-layer component, can judge the instruction data in the same manner as steps S101-S103 and, based on the judgment result, determine whether to directly execute the instruction data or continue to deliver the instruction data to the next lower-layer communication component.
[0032] Refer to Figure 3. Assume a multi-layered communication system consists of four layers of communication components: top-level, upper-level, lower-level, and bottom-level. Upon receiving command data, the top-level component can first evaluate the command data. If it is a command data that needs to be processed by this layer, it is directly executed; otherwise, it is sent to the upper-level component for processing. Upon receiving command data, the upper-level component can first evaluate the command data. If it is a command data that needs to be processed by this layer, it is directly executed; otherwise, it is sent to the lower-level component for processing. Upon receiving command data, the lower-level component can first evaluate the command data. If it is a command data that needs to be processed by this layer, it is directly executed; otherwise, it is sent to the lower-level component for processing. This allows each communication component to directly execute command data, ensuring efficient execution for different control scenarios.
[0033] In an optional embodiment, to ensure the reliability of instruction data transmission and prevent missed execution, the target communication component can be configured to enter a timeout waiting state after sending encrypted instruction data to the next-level communication component. During this timeout waiting state, the target-level communication component continuously monitors whether it has received the result data obtained by executing the instruction data within a preset timeout period. If it has received the result data, it exits the timeout waiting state; if not, it resends the encrypted instruction data to the next-level communication component. Of course, to prevent multiple communication components in a multi-level communication system from entering a timeout waiting state based on the same instruction data, it can also be configured to have only the communication component at the initiating level of the instruction data enter a timeout waiting state after sending the instruction data, thereby conserving system resources.
[0034] During implementation, different communication protocols may be used at different layers within a multi-layered communication system, potentially due to differences in communication component equipment, development collaborations between different vendors, or varying protocol version updates. To ensure data transmission and processing reliability and improve compatibility across communication components at each layer, the target layer's communication component can store protocols other than the one at its current layer. When decrypting and encrypting command data, different protocols can be selected to ensure compatibility with the command data source or the object being sent, thereby achieving compatibility across different communication protocols. For example, at least the following two approaches can be used to achieve communication protocol compatibility.
[0035] First, the target layer communication component can be configured to pre-store the communication protocol corresponding to the target layer communication component's upper-layer communication component and the communication protocol corresponding to the current layer communication component. This allows the received command data to be accurately parsed using the pre-stored upper-layer communication protocol, even if the communication protocols differ, ensuring data accuracy. Furthermore, each layer of the communication component in a multi-level communication system can be configured to pre-store the communication protocol corresponding to the upper-layer communication component and the communication protocol corresponding to the current layer communication component. This allows each layer to accurately parse the command data issued by the upper-layer communication component using the pre-stored upper-layer communication protocol. The parsed command data can also be encrypted using the pre-stored current layer communication protocol before being sent to the next layer, allowing the lower-layer communication component to accurately parse the received command data using the pre-stored current layer communication protocol. This ensures that even if the communication protocols of each layer's communication components differ, they can still parse the command data issued by the upper-layer communication component, achieving compatibility.
[0036] For example, refer to Figure 4. Assume that a multi-layer communication system includes four layers of communication components, namely the top component, upper component, lower component, and bottom component from top to bottom. The detailed execution steps are as follows:
[0037] After receiving the instruction data, the top-level component first judges the instruction data. If it is the instruction data that needs to be processed by this layer, it will be executed directly. If not, the top-level communication protocol corresponding to the top-level component will be used to package and encrypt the instruction data, and then send it to the upper-level component for processing.
[0038] After the upper-layer component receives the instruction data, it first uses the pre-stored top-level communication protocol to decrypt and check the validity of the instruction data, and then judges the instruction data. If it is the instruction data that needs to be processed by this layer, it is executed directly. If not, the upper-layer communication protocol corresponding to the upper-layer component is used to package and encrypt the instruction data, and then send it to the lower-layer component for processing.
[0039] After the lower-level component receives the instruction data, it first uses the pre-stored upper-level communication protocol to decrypt and check the validity of the instruction data, and then judges the instruction data. If it is the instruction data that needs to be processed by this layer, it is executed directly. If not, the lower-level communication protocol corresponding to the lower-level component is used to package and encrypt the instruction data, and then send it to the underlying component for processing.
[0040] After receiving the instruction data, the bottom layer component first uses the pre-stored lower layer communication protocol to decrypt and check the validity of the instruction data, and then executes the instruction data.
[0041] Secondly, the target layer communication component can also be configured to pre-store the communication protocol corresponding to the target layer communication component's lower layer communication component and the communication protocol corresponding to the current layer communication component. This allows the command data to be parsed using the pre-stored current layer communication protocol, and then encrypted using the pre-stored lower layer communication protocol before being sent to the next layer. This allows the next layer communication component to accurately parse the received command data even if the communication protocols differ, ensuring data accuracy. Furthermore, each layer communication component in a multi-level communication system can be configured to pre-store the communication protocol corresponding to the lower layer communication component and the communication protocol corresponding to the current layer communication component. This allows each layer communication component to parse the command data sent by the upper layer communication component using the current communication protocol, and then encrypt the parsed command data using the pre-stored lower layer communication protocol before sending it to the next layer, ensuring that the lower layer communication component can accurately parse the received command data. This ensures that even if the communication protocols of each layer communication component differ, the command data sent by the upper layer communication component can still be parsed, achieving compatibility.
[0042] For example, refer to Figure 5. Assume that a multi-layer communication system includes four layers of communication components, namely the top layer component, the upper layer component, the lower layer component, and the bottom layer component. The detailed execution steps are as follows:
[0043] After receiving the instruction data, the top-level component first judges the instruction data. If it is the instruction data that needs to be processed by this layer, it will be executed directly. If not, the instruction data will be packaged and encrypted using the upper-level communication protocol corresponding to the upper-level component, and sent to the upper-level component for processing.
[0044] After the upper-layer component receives the instruction data, it first uses the communication protocol of this layer to decrypt and check the validity of the instruction data, and then judges the instruction data. If it is the instruction data that needs to be processed by this layer, it is executed directly. If not, the lower-layer communication protocol corresponding to the lower-layer component is used to package and encrypt the instruction data, and then send it to the lower-layer component for processing.
[0045] After the lower-level component receives the instruction data, it first uses the communication protocol of this layer to decrypt and check the validity of the instruction data, and then judges the instruction data. If it is the instruction data that needs to be processed by this layer, it is executed directly. If not, the lower-level communication protocol corresponding to the lower-level component is used to package and encrypt the instruction data, and then send it to the lower-level component for processing.
[0046] After receiving the instruction data, the bottom layer component first uses the communication protocol of this layer to decrypt and check the validity of the instruction data, and then executes the instruction data.
[0047] Of course, the methods of achieving compatibility of communication protocols are not limited to the above two. It is also possible that multiple communication protocols are stored in the target layer communication component, and the corresponding communication protocol is selected for decryption and validity check based on the source of the received instruction data, or the corresponding communication protocol is selected for encryption based on the object that needs to be sent. There is no restriction here.
[0048] In alternative implementations, a multi-level communication system can be flexibly constructed. For example, in a floor scrubber product with a combined vacuum cleaner component, the top-level communication component could be an IoT chip or router. The upper-level communication component would include the overall controller of the floor scrubber, the lower-level communication components would include the controllers for the vacuum component and the charging station, and the bottom-level communication components would include the controllers for the fan and battery.
[0049] Using the example of the multi-level communication system for a floor scrubber as an example, assuming the command data is to query the battery status, the specific communication steps may be as follows: The IoT chip, upon external triggering, generates the command data for querying the battery status and sends it to the floor scrubber's main controller. The floor scrubber's main controller parses the command data using the pre-stored IoT chip communication protocol, encrypts it, and then sends it to the vacuum unit controller. The vacuum unit controller parses the command data using the pre-stored floor scrubber's main controller communication protocol, encrypts it, and sends it to the battery controller. The battery controller parses the command data using the pre-stored vacuum unit controller communication protocol, executes the battery status query, and returns the query result to the vacuum unit controller, which in turn returns it to the IoT chip, completing the battery status query.
[0050] Of course, the communication components of a multi-level communication system are not limited to being installed in a single electronic device. Multiple electronic devices can also form a multi-level communication system. For example, the top-level communication component could be a router or voice robot, the upper-level communication component could be a projector controller, and the bottom-level communication component could be an audio device. This is not a limitation and can be configured as needed.
[0051] Based on the same concept, an embodiment of the present disclosure provides an electronic device, as shown in FIG6 , wherein the electronic device 600 includes a target layer communication component 610 in a multi-level communication system, and the target layer communication component 610 includes:
[0052] Determination module 611, for receiving the command data, determining whether the command data is the command data that needs to be processed by the communication component of this layer;
[0053] Execution module 612, for executing the instruction data if the judgment result of the judgment module is yes;
[0054] The sending module 613 is used to encrypt the instruction data and send the encrypted instruction data to the next layer communication component if the judgment result of the judgment module is no.
[0055] It should be noted that the electronic device may include one or more target layer communication components 610. The electronic device may be a handheld cleaning device, a cleaning robot, a projector, or a washing machine, etc., which is not limited here.
[0056] In an optional embodiment, the target layer communication component 610 further includes: a parsing module for parsing the instruction data using a pre-stored upper layer communication protocol, wherein the upper layer communication protocol is a communication protocol corresponding to the upper layer communication component of the target layer communication component;
[0057] The sending module 610 is also used to: encrypt the parsed instruction data using a pre-stored current layer communication protocol, where the current layer communication protocol is the communication protocol corresponding to the target layer communication component.
[0058] In an optional embodiment, the target layer communication component 610 further includes: a parsing module for parsing the instruction data using a pre-stored local layer communication protocol, wherein the local layer communication protocol is a communication protocol corresponding to the target layer communication component;
[0059] The sending module 601 is further used to: encrypt the parsed instruction data using a pre-stored lower-layer communication protocol, where the lower-layer communication protocol is a communication protocol corresponding to a communication component at a lower layer than the target layer communication component.
[0060] Based on the same concept, an embodiment of the present disclosure provides a multi-level communication system, as shown in FIG2 , wherein at least one layer of communication component 201 in the multi-level communication system 200 is a target layer communication component 610 in the electronic device 600 provided in the embodiment of the present disclosure.
[0061] In an optional embodiment, in the multi-level communication system 200 , each communication component except the bottom-level communication component is the target-level communication component 610 .
[0062] Based on the same concept, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps corresponding to the multi-level communication method provided by the present disclosure.
[0063] Since the devices, systems, and media described in this embodiment are used to implement the multi-level communication method in the embodiments of the present disclosure, those skilled in the art will be able to understand the specific implementations and various variations of the devices, systems, and media in this embodiment based on the multi-level communication method described in this embodiment. Therefore, the details of how these devices, systems, and media implement the method in the embodiments of the present disclosure will not be described in detail here. As long as those skilled in the art can implement the devices, systems, and media used in the multi-level communication method in the embodiments of the present disclosure, they are within the scope of protection of this disclosure.
[0064] Those skilled in the art will appreciate that embodiments of the present disclosure may be provided as methods, systems, or computer program products. Thus, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.
[0065] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as combinations of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more blocks in the block diagram.
[0066] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more blocks in the block diagram.
[0067] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0068] Although preferred embodiments of the present disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic inventive concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present disclosure.
[0069] Obviously, those skilled in the art can make various changes and modifications to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the patent application of the present disclosure and its equivalents, the present disclosure is intended to include such modifications and variations.
[0070] An embodiment of the present disclosure provides a multi-level communication method, which is applied to a multi-level communication system, wherein the system includes N layers of communication components, where N is greater than 1, and the method includes:
[0071] After receiving the instruction data, the target layer communication component in the N-layer communication component determines whether the instruction data is instruction data that needs to be processed by the communication component of this layer;
[0072] If yes, the target layer communication component executes the instruction data;
[0073] If not, the target layer communication component encrypts the instruction data and sends the encrypted instruction data to the next layer communication component of the target layer communication component.
[0074] In an optional example, before determining whether the instruction data is instruction data that needs to be processed by the current layer communication component, the method further includes: parsing the instruction data using a pre-stored upper layer communication protocol, where the upper layer communication protocol is the communication protocol corresponding to the upper layer communication component of the target layer communication component; and encrypting the instruction data includes: encrypting the parsed instruction data using a pre-stored current layer communication protocol, where the current layer communication protocol is the communication protocol corresponding to the target layer communication component.
[0075] In an optional example, before determining whether the instruction data is instruction data that needs to be processed by the current layer communication component, the method further includes: parsing the instruction data using a pre-stored current layer communication protocol, where the current layer communication protocol is the communication protocol corresponding to the target layer communication component; and encrypting the instruction data includes: encrypting the parsed instruction data using a pre-stored lower layer communication protocol, where the lower layer communication protocol is the communication protocol corresponding to the next layer communication component of the target layer communication component.
[0076] In an optional example, parsing the instruction data includes: decrypting the instruction data and verifying the validity of the decrypted instruction data; encrypting the instruction data includes: packaging the parsed instruction data and encrypting the packaged instruction data.
[0077] In an optional example, after the target layer communication component executes the instruction data, it also includes: returning result data obtained by executing the instruction data to the initiating layer communication component that initiated the instruction data.
[0078] In an optional example, after sending the encrypted instruction data to the next layer communication component of the target communication component, it also includes: entering a timeout waiting state, in which the target layer communication component monitors whether the result data obtained by executing the instruction data is received within a preset timeout period; if so, exiting the timeout waiting state; if not, resending the encrypted instruction data to the next layer communication component of the target layer communication component.
[0079] Another embodiment of the present disclosure provides an electronic device, the electronic device including a target layer communication component in a multi-level communication system, the target layer communication component including:
[0080] A judgment module is used to determine whether the command data is command data that needs to be processed by the communication component of this layer after receiving the command data;
[0081] an execution module, configured to execute the instruction data if the judgment result of the judgment module is yes;
[0082] The sending module is used to encrypt the instruction data if the judgment result of the judgment module is no, and send the encrypted instruction data to the next layer of communication components.
[0083] In an optional example, the target layer communication component further includes: a parsing module for parsing the instruction data using a pre-stored upper layer communication protocol, where the upper layer communication protocol is the communication protocol corresponding to the upper layer communication component of the target layer communication component; the sending module is further used to encrypt the parsed instruction data using a pre-stored current layer communication protocol, where the current layer communication protocol is the communication protocol corresponding to the target layer communication component.
[0084] In an optional example, the target layer communication component further includes: a parsing module for parsing the instruction data using a pre-stored current layer communication protocol, wherein the current layer communication protocol is a communication protocol corresponding to the target layer communication component; the sending module is further used to encrypt the parsed instruction data using a pre-stored lower layer communication protocol, wherein the lower layer communication protocol is a communication protocol corresponding to the next layer communication component of the target layer communication component.
[0085] Yet another embodiment of the present disclosure provides a multi-layer communication system, wherein at least one layer of communication components in the system is the target layer communication component in the above-mentioned electronic device.
[0086] In an optional example, in the multi-level communication system, each communication component except the bottom-level communication component is the target-level communication component.
[0087] Another embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the program implements the steps corresponding to the above-mentioned multi-level communication method.
[0088] S101~S103: Steps 200:Multi-level communication system 201: Communication components 600: Electronic equipment 610: Target layer communication component 611: Judgment module 612:Execute module 613: Send module
Claims
1. A multi-level communication method, the method being applied to a multi-level communication system, the multi-level communication system comprising N layers of communication components, where N is a natural number greater than 1, the method comprising: After receiving the instruction data, the target layer communication component in the N-layer communication component determines whether the instruction data is instruction data that needs to be processed by this layer communication component. If yes, the target layer communication component executes the instruction data; if no, the target layer communication component encrypts the instruction data and sends the encrypted instruction data to the next layer communication component of the target layer communication component; wherein, before determining whether the instruction data is instruction data that needs to be processed by the current layer communication component, the method further includes: parsing the instruction data using a pre-stored upper-layer communication protocol, wherein the upper-layer communication protocol is the communication protocol corresponding to the communication component above the target layer communication component; the encryption of the instruction data includes: encrypting the parsed instruction data using a pre-stored local layer communication protocol, wherein the local layer communication protocol is the communication protocol corresponding to the target layer communication component; or, before determining whether the instruction data is instruction data that needs to be processed by the current layer communication component, the method further includes: parsing the instruction data using a pre-stored local layer communication protocol, wherein the local layer communication protocol is the communication protocol corresponding to the target layer communication component; the encryption of the instruction data includes: encrypting the parsed instruction data using a pre-stored lower-layer communication protocol, wherein the lower-layer communication protocol is the communication protocol corresponding to the communication component below the target layer communication component.
2. The method as described in request item 1, wherein: The step of parsing the instruction data includes: decrypting the instruction data and verifying the validity of the decrypted instruction data; the step of encrypting the instruction data includes: packaging the parsed instruction data and encrypting the packaged instruction data.
3. The method as described in claim 1, further comprising, after the target layer communication component executes the instruction data: Return the result data obtained from executing the instruction data to the initiating layer communication component that initiated the instruction data.
4. The method described in claim 1 further includes: After sending the encrypted instruction data to the next layer communication component of the target communication component, the method further includes: entering a timeout waiting state, in which the target layer communication component monitors whether it receives the result data obtained from executing the instruction data within a preset timeout period; if yes, it exits the timeout waiting state; if no, it resends the encrypted instruction data to the next layer communication component of the target layer communication component.
5. An electronic device, the electronic device comprising a target layer communication component in a multi-level communication system, the target layer communication component comprising: The judgment module is used to determine whether the instruction data received is instruction data that needs to be processed by the communication component at this layer. An execution module is configured to execute the instruction data if the judgment result of the judgment module is yes; a sending module is configured to encrypt the instruction data and send the encrypted instruction data to the next-layer communication component if the judgment result of the judgment module is no; wherein: the target layer communication component further includes: a parsing module, configured to parse the instruction data using a pre-stored upper-layer communication protocol, wherein the upper-layer communication protocol is the communication protocol corresponding to the communication component above the target layer communication component; the sending module is further configured to: encrypt the parsed instruction data using a pre-stored local-layer communication protocol, wherein the local-layer communication protocol is the communication protocol corresponding to the target layer communication component; or, the target layer communication component further includes: a parsing module, configured to parse the instruction data using a pre-stored local-layer communication protocol, wherein the local-layer communication protocol is the communication protocol corresponding to the target layer communication component; the sending module is further configured to: encrypt the parsed instruction data using a pre-stored lower-layer communication protocol, wherein the lower-layer communication protocol is the communication protocol corresponding to the communication component below the target layer communication component.
6. A multi-level communication system, wherein at least one layer of the communication component is the target layer communication component in the electronic device described in claim 5.
7. The multi-level communication system as described in claim 6, wherein: In the multi-level communication system, each communication component except for the lowest-level communication component is the target-level communication component.
8. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps corresponding to the method described in any one of claims 1 to 4.
Citation Information
Patent Citations
Cascade-extendable chain control system, chain control module and realizing method
CN102662383A
Secure communication method facing wireless communication network of power transmission lines
CN104902469A
Apparatuses and methods for adding offset delays to signal lines of multi-level communication architectures
US20180278447A1
