Digital control method, chip and system for networking system
By using digital control methods in the networking system, responding to mode switching instructions and confirming the status of sub-nodes based on the chain building information, the problem of high cost of simulation control schemes is solved, and efficient and accurate networking system control is achieved.
Patent Information
- Application Number
- CN202311792779.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2043-12-22
AI Technical Summary
In the prior art, the control scheme of the networking system mainly uses analog schemes, which have weak anti-interference ability, resulting in high requirements for wiring harness between nodes and high costs, and urgently need a digital control scheme to reduce costs.
Provide a digital control method for networking system, sending control instructions to the child nodes at the next level by responding to the mode switching instructions, so that the target child nodes that have not performed mode switching can perform mode switching, and build a chain based on the feedback from the nodes at the previous level. Information determines whether the child node completes the mode switching to ensure that the master node can effectively control the child node at any time.
It realizes digital control of the networking system, reduces control costs, saves wiring harnesses, improves control efficiency and accuracy, and is suitable for multi-child node scenarios, ensuring that the networking system operates stably in different modes.
Smart Images

Figure CN117768261B_ABST
Abstract
Description
Background Art
[0002] Stereo refers to sound with a sense of three-dimensionality. Stereo means that in addition to the loudness, pitch and timbre of the sound, the user can also feel the direction and level of the sound. Therefore, in the current related technology, multiple speakers are usually configured for the networking system, and the position of each speaker is different. To ensure that the audio played through multiple speakers has a sense of three-dimensionality. Thereby achieving stereo and panoramic sound field effects to enhance the user's audio experience. For example, most networking systems in vehicles include multiple speakers. In order to reduce the power consumption of the networking system, the mode of the networking system will be controlled, that is, when the networking system enters sleep mode, the power consumption of the networking system will be reduced.
[0003] In the prior art, the control scheme for the networking system mainly uses an analog scheme, and the analog scheme mainly controls at least one sub-node connected to it through the main node in the networking system. However, since the analog scheme has weak anti-interference ability, the analog scheme has high requirements for the wiring harness between nodes, and shielded wires must be used for connection. Therefore, the cost of the analog scheme in the prior art is high. However, the digital solution has higher anti-interference ability than the analog solution, so the connection between the nodes of the digital solution can use an ordinary wiring harness, which will reduce the control cost of the networking system. Therefore, there is an urgent need for a digital control solution for the networking system. Summary of the invention
[0004] In an exemplary embodiment of the present disclosure, a digital control method, chip and system of a networking system are provided to implement digital control of a networking system based on networking, thereby reducing the cost of the digital control method of the networking system.
[0005] A first aspect of the present disclosure provides a digital control method for a networking system, wherein the networking system includes a plurality of nodes communicating with peripheral devices, the plurality of nodes include a master node and at least one sub-node, the master node and the at least one sub-node are connected in a networking manner, the method is applied to the master node, and the method includes:
[0006] In response to the mode switching instruction, a control instruction is sent to at least one child node in the next layer; the control instruction is used to instruct a target child node that has not performed mode switching in this mode switching to perform mode switching, and the target child node is a child node corresponding to the mode switching instruction in the at least one child node;
[0007] Whether the target subnode completes mode switching is determined according to link building information fed back by a node located in an upper layer of the target subnode and connected to the target subnode.
[0008] In this embodiment, by responding to the mode switching instruction, a control instruction is sent to at least one sub-node in the next level of the networking, so that the target sub-node that has not performed the mode switching in this mode switching performs the mode switching, and according to the link establishment information fed back by the node located in the upper level of the target sub-node and connected to the target sub-node, it is determined whether the target sub-node has completed the mode switching. Therefore, in the embodiment of the present application, digital control of the networking system based on networking is realized, and the control cost of the networking system is reduced.
[0009] In one embodiment, if the networking system includes multiple sub-nodes;
[0010] After determining whether the target subnode has completed mode switching according to the link establishment information fed back by the node located in the upper layer of the target subnode and connected to the target subnode, the method further includes:
[0011] If it is determined that there are target sub-nodes that have not undergone mode switching in this mode switching, the control instruction continues to be sent to at least one sub-node in the next level until all target sub-nodes complete the mode switching.
[0012] In the embodiment of the present application, if the networking system includes multiple sub-nodes, and the connection mode between the nodes in the embodiment of the present application is to connect in a networking mode, when the number of nodes is the same, since each sub-node in the networking in the embodiment of the present application does not need to be connected to the main node, the networking connection mode will save more wiring harnesses than the node connection mode of the simulation solution, and reduce the control cost of the networking system.
[0013] In one embodiment, before determining that there is a target subnode that has not undergone mode switching in the current mode switching, the method further includes:
[0014] When the interval after each time a control instruction is sent to at least one child node in the next level reaches the first specified time, an instruction for obtaining link establishment information is sent to at least one child node in the next level, wherein the instruction for obtaining link establishment information is used to instruct the previous node of the target child node that has performed mode switching in this mode switching to send the link establishment information stored by the previous node to the target node; wherein the previous node of the target child node is a node connected to the target child node in the networking and located at the previous level of the target child node, and the target node is a node connected to the previous node in the networking and located at the previous level of the previous node;
[0015] Receive link building information returned by at least one child node in the next level based on the instruction to obtain link building information.
[0016] In this embodiment, when the interval after sending a control instruction to at least one child node in the next layer reaches the first specified time, a link establishment information acquisition instruction is sent to at least one child node in the next layer, and link establishment information returned by at least one child node in the next layer based on the link establishment information acquisition instruction is received. Therefore, in the embodiment of the present application, the link establishment information corresponding to the target child node can be acquired in time, so that it can be determined in time whether the target child node has completed the mode switching, and the control efficiency of the networking system is further improved.
[0017] In one embodiment, the method further comprises:
[0018] If the control instruction is a sleep instruction, and the mode switching instruction includes the identifier of the master node, after determining that all target sub-nodes have completed mode switching, the master node is controlled to perform mode switching; or,
[0019] If the control instruction is a wake-up instruction, and the mode switching instruction includes the identifier of the master node, then before sending the control instruction to at least one child node in the next level, the master node is controlled to perform mode switching.
[0020] In this embodiment, when the network includes multiple sub-nodes, the timing of the mode switching of the main node is determined by the type of control instruction to ensure that the main node can control the sub-nodes at any time, thereby improving the accuracy of digital control of the networking system.
[0021] In one embodiment, the target subnode is determined by:
[0022] According to the pre-stored sub-node identifiers of the plurality of sub-nodes, a target sub-node corresponding to the sub-node identifier in the mode switching instruction is determined.
[0023] In this embodiment, the target sub-node corresponding to the sub-node identifier in the mode switching instruction is determined according to the sub-node identifiers of the pre-stored plurality of sub-nodes, thereby ensuring the accuracy of the determined target sub-node.
[0024] In one embodiment, the control instruction includes a sleep instruction or a wake-up instruction;
[0025] Determine whether the target child node has completed mode switching by:
[0026] For a first target sub-node, the first target sub-node is any sub-node of the target sub-nodes; perform the following steps:
[0027] If the control instruction is a sleep instruction, and the link establishment information corresponding to the first target subnode is a first identifier, it is determined that the first target subnode has not completed the mode switching, wherein the link establishment information corresponding to the first target subnode is link establishment information stored in a node located in an upper layer of the target subnode and connected to the target subnode; or,
[0028] If the control instruction is a sleep instruction, and the link establishment information corresponding to the first target subnode is a second identifier, it is determined that the first target subnode has completed mode switching; or,
[0029] If the control instruction is a wake-up instruction, and the link establishment information corresponding to the first target sub-node is the first identifier, it is determined that the first target sub-node has completed mode switching; or,
[0030] If the control instruction is a wake-up instruction, and the link establishment information corresponding to the first target sub-node is the second identifier, it is determined that the first target sub-node has not completed the mode switching.
[0031] In this embodiment, whether the first target sub-node has completed the mode switching is determined by the type of control instruction and the identifier of the link establishment information of the previous node of the first target sub-node, thereby ensuring the accuracy of the result.
[0032] In one embodiment, the mode switching instruction is an instruction for switching from a normal mode to a sleep mode; the mode switching instruction is an instruction triggered by a user, or an instruction triggered by the master node after determining that the networking system has not sent or received data within a second specified time period; or,
[0033] The mode switching instruction is an instruction for switching from sleep mode to normal mode; the mode switching instruction is an instruction triggered by the user, or an instruction triggered by the master node after determining that the duration of the target subnode entering the sleep mode reaches a third specified duration.
[0034] In this embodiment, the mode switching instruction can be triggered by the user or by the master node after determining that the corresponding conditions are met, ensuring that the mode switching can meet a variety of scenarios and improving the efficiency of digital control of the networking system.
[0035] In one embodiment, if the networking system includes a sub-node;
[0036] After determining whether the target subnode has completed mode switching according to the link establishment information fed back by the node located in the upper layer of the target subnode and connected to the target subnode, the method further includes:
[0037] If the control instruction is a sleep instruction, and the mode switching instruction includes the identifier of the master node, after determining that the target sub-node completes the mode switching, the master node is controlled to perform the mode switching; or,
[0038] If the control instruction is a wake-up instruction, and the mode switching instruction includes the identifier of the master node, then before sending the control instruction to at least one child node in the next level, the master node is controlled to perform mode switching.
[0039] In the embodiment of the present application, when the networking system includes a sub-node, the timing of the main node mode switching is determined by the type of control instruction to ensure that the main node can control the sub-node at any time, thereby improving the accuracy of digital control of the networking system.
[0040] In one embodiment, after sending the control instruction to at least one sub-node in the next level, the method further includes:
[0041] If it is determined that the second target subnode in this mode switching has performed mode switching, and the current mode of the second target subnode is the normal mode, sending a first target control instruction to at least one subnode in the next level, wherein the first target control instruction is used to instruct the second target subnode to send an internal control parameter to the master node;
[0042] Receive the internal control parameter of the second target sub-node returned by at least one sub-node in the next level, and if the internal control parameter is a specified identifier, send a second target control instruction to at least one sub-node in the next level, wherein the second target control instruction is used to instruct a peripheral device connected to the second target sub-node to switch modes.
[0043] This embodiment obtains the pre-configured internal control parameter of the second target sub-node that has undergone mode switching, and determines that if the obtained internal control parameter is a specified identifier, mode switching is performed on the peripheral device connected to the second target sub-node to further reduce the power consumption of the networking system.
[0044] A second aspect of the present disclosure provides a digital control method for a networking system, wherein the networking system includes a plurality of nodes for communicating with peripheral devices, the plurality of nodes include a main node and at least one sub-node, the main node and the at least one sub-node are connected in a networking manner, and the method is applied to any sub-node of the at least one sub-node, including:
[0045] receiving a control instruction sent by an upper node; the upper node is a node in the network that is connected to any of the child nodes and is located at an upper level of any of the child nodes; the control instruction is sent by the master node in response to a mode switching instruction;
[0046] If it is determined that the control instruction is used to instruct any of the sub-nodes to perform a mode switch, the mode switch is performed based on the control instruction.
[0047] In the embodiment of the present application, after each sub-node receives a control instruction sent by a node connected to any sub-node in the networking and located at the upper level of any sub-node, if it is determined that the control instruction is used to instruct any sub-node to switch modes, the mode switching is performed based on the control instruction. Thus, any sub-node in the present application will receive the control instruction of the main node forwarded by the previous node, and when it is determined that the control instruction is used for mode switching itself, the mode switching is performed based on the control instruction. Therefore, in the embodiment of the present application, digital control of a networking system based on networking is realized, reducing the cost of controlling the networking system.
[0048] In one embodiment, if the number of the child nodes is multiple;
[0049] After receiving the control instruction sent by the previous node, the method further includes:
[0050] If the control instruction is a sleep instruction, the control instruction is sent to at least one child node in the next level, and if it is determined that the control instruction is used to instruct any child node to switch modes, the step of switching modes based on the control instruction is performed;
[0051] If the control instruction is a wake-up instruction, and it is determined that the current mode of any child node is the normal mode, the control instruction is sent to at least one child node in the next layer, and it is determined whether the control instruction is used to instruct the target child node in the next layer of any child node that has not performed mode switching in this mode switching to perform mode switching; if so, a control instruction for waking up the target child node is sent to the target child node based on the control instruction, wherein the target child node is the child node among the multiple child nodes corresponding to the mode switching instruction.
[0052] In the embodiment of the present application, after receiving the control instruction sent by the previous node, the control instruction is directly sent to at least one child node in the next level, and at the same time, it is judged whether the control instruction is used for mode switching itself. Therefore, the method of directly forwarding the control instruction received in the embodiment of the present application can save time and improve the digital control efficiency of the networking system. Moreover, when there are multiple child nodes in the networking system, the networking system in the embodiment of the present application is connected based on the form of networking. Therefore, when the number of nodes is the same, since each child node in the networking in the embodiment of the present application does not need to be connected to the main node. Therefore, the connection method of the networking will save more wiring harnesses than the node connection method of the analog solution, further reducing the digital control cost of the networking system.
[0053] In one embodiment, the target subnode indicated by the control instruction is determined in the following manner:
[0054] According to the pre-stored sub-node identifiers of the plurality of sub-nodes, a target sub-node corresponding to the sub-node identifier in the control instruction is determined.
[0055] In the embodiment of the present application, the target sub-node corresponding to the sub-node identifier in the mode switching instruction is determined according to the sub-node identifiers of the pre-stored plurality of sub-nodes, thereby ensuring the accuracy of the determined target sub-node.
[0056] In one embodiment, the method further comprises:
[0057] Receiving a link establishment information acquisition instruction sent by the previous node;
[0058] If it is determined that the instruction to obtain link establishment information is not used to instruct any child node to send link establishment information stored by itself, sending the instruction to obtain link establishment information to at least one child node in a next layer of the any node;
[0059] If it is determined that the instruction to obtain link establishment information is used to instruct any node to send link establishment information stored by itself, then the link establishment information stored by itself is sent to the previous node.
[0060] In the embodiment of the present application, if it is determined that the instruction to obtain link establishment information is used to instruct at least one target child node in the lower level of any child node to send its own stored link establishment information, then the instruction to obtain link establishment information sent by the previous node is sent to at least one child node in the next level, so as to ensure that at least one target child node can send its own link establishment information after receiving the instruction to obtain link establishment information, thereby ensuring that the master node can obtain the link establishment information in a timely manner. If it is determined that the instruction to obtain link establishment information is used to instruct any node to send its own stored link establishment information, then the link establishment information stored by itself is sent to the previous node, thereby ensuring that the master node can obtain the link establishment information of any node in a timely manner, thereby improving the digital control efficiency of the networking system.
[0061] In one embodiment, the method further comprises:
[0062] Receiving a link establishment information acquisition instruction sent by the previous node;
[0063] Sending the instruction for obtaining link establishment information to at least one child node in a next level of any one of the nodes; and
[0064] If it is determined that the instruction to obtain link establishment information is used to instruct any node to send the link establishment information stored by itself, the link establishment information stored by itself is sent to the previous node.
[0065] In the embodiment of the present application, after receiving the instruction to obtain link building information, any child node directly forwards the instruction to obtain link building information, and at the same time determines whether the instruction to obtain link building information is used to instruct any node to send the link building information stored by itself. Therefore, in the embodiment of the present application, time can be saved and the digital control efficiency of the networking system can be improved.
[0066] In one embodiment, the method further comprises:
[0067] If link establishment information sent by at least one child node in a lower layer of any child node is received, the link establishment information is sent to the upper node.
[0068] In the embodiment of the present application, if the link establishment information sent by at least one child node in the next layer of any child node is received, the link establishment information is sent to the previous node. In this way, it is ensured that the main node can receive the link establishment information of at least one child node in the next layer in time, further improving the digital control efficiency of the networking system.
[0069] In one embodiment, after receiving the control instruction sent by the previous node, the method further includes:
[0070] If it is determined that the control instruction is not used to instruct any of the sub-nodes to switch modes, the control instruction is sent to at least one sub-node in the next level.
[0071] In the embodiment of the present application, when it is determined that the control instruction is used to indicate the target sub-node in the lower level, the control instruction is sent to the next sub-node, so that the target sub-node switches the mode based on the control instruction set after receiving the control instruction. Therefore, the embodiment of the present application realizes the digital control of the networking system based on networking, that is, realizes the digital control of the networking system in one-to-many scenarios.
[0072] In one embodiment, after sending the control instruction to at least one sub-node in the next level, the method further includes:
[0073] Receiving a first target control instruction sent by the previous node;
[0074] If it is determined that the first target control instruction is not used to instruct any of the sub-nodes to send an internal control parameter to the master node, the first target control instruction is sent to at least one sub-node in a lower level of the any of the sub-nodes, wherein the internal control parameter is used by the master node to determine whether it is necessary to control a peripheral device connected to at least one target sub-node in a lower level of the any of the sub-nodes to perform mode switching; or,
[0075] If it is determined that the first target control instruction is used to instruct any child node to send the internal control parameter, then the internal control parameter stored in the node is sent to the previous node;
[0076] receiving a second target control instruction sent by the upper node, and if it is determined that the second target control instruction is not used to instruct a mode switch of a peripheral device connected to any of the child nodes, sending the second target control instruction to at least one child node in a lower layer of the any of the child nodes, wherein the second target control instruction is used by the main node to control a mode switch of a peripheral device connected to at least one target child node in a lower layer of the any of the child nodes; or,
[0077] If it is determined that the second target control instruction is used to instruct the peripheral device connected to any of the sub-nodes to switch modes, the second target control instruction is sent to the peripheral device connected to any of the sub-nodes.
[0078] In the embodiment of the present application, the target sub-node indicated by the internal control instruction determines whether to send the received first target control instruction to the sub-node in the next level or to send the internal control parameter stored by itself to the previous node, so as to ensure that the main node can obtain the internal control parameter of the target sub-node in time, and if the main node determines that the internal control parameter is a specified identifier, the second control instruction is sent to the corresponding target sub-node, so that the peripheral device connected to the target sub-node performs mode switching. Therefore, the power consumption of the networking system is further reduced.
[0079] In one embodiment, after sending the control instruction to at least one sub-node in the next level, the method further includes:
[0080] Receiving a first target control instruction sent by the previous node;
[0081] Sending the first target control instruction to at least one sub-node in a next-level layer of any sub-node;
[0082] If it is determined that the first target control instruction is used to instruct any of the child nodes to send the internal control parameter, the internal control parameter stored in the master node is sent to the previous node, wherein the internal control parameter is used by the master node to determine whether it is necessary to control the peripheral device connected to any of the child nodes to switch modes;
[0083] Receiving a second target control instruction sent by the previous node;
[0084] Sending the second target control instruction to at least one sub-node in a next-level layer to the any sub-node;
[0085] If it is determined that the second target control instruction is used to instruct the peripheral device connected to any of the sub-nodes to switch modes, the second target control instruction is sent to the peripheral device connected to any of the sub-nodes.
[0086] In the embodiment of the present application, while reducing the power consumption of the networking system, time is saved and the digital control efficiency of the networking system is improved by directly forwarding the target control instructions.
[0087] In one embodiment, the method further comprises:
[0088] If an internal control parameter sent by at least one child node in the next layer of any child node is received, the internal control parameter sent by the at least one child node is sent to the previous node.
[0089] In the embodiment of the present application, when any child node receives an internal control parameter sent by at least one child node in the next level, the internal parameter is sent to the previous node to ensure that the main node can receive the internal control parameter in time.
[0090] In one embodiment, the mode switching based on the control instruction includes:
[0091] If the control instruction is the sleep instruction, switching from the normal mode to the sleep mode; or,
[0092] If the control instruction is the wake-up instruction, the sleep mode is switched to the normal mode.
[0093] In the embodiment of the present application, the corresponding mode switching is achieved by controlling the type of instruction, thereby ensuring the accuracy of the mode switching.
[0094] According to a third aspect of an embodiment of the present disclosure, a chip is provided, including:
[0095] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executed by the at least one processor; the instructions are executed by the at least one processor so that the at least one processor can execute the method as described in the first aspect and / or the second aspect.
[0096] According to a fourth aspect provided by an embodiment of the present disclosure, a computer storage medium is provided, wherein the computer storage medium stores a computer program, and the computer program is used to execute the method described in the first aspect and / or the second aspect.
[0097] According to a fifth aspect of an embodiment of the present disclosure, a chip system is provided, which includes a chip and a peripheral device, wherein the chip is used to call stored program instructions and execute the method described in the first aspect and / or the second aspect according to the obtained program instructions; and the peripheral device is connected to the chip and used to communicate with the chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0098] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0099] Figure 1 A schematic diagram of a digital control method of a networking system in the prior art according to an embodiment of the present disclosure;
[0100] Figure 2A This is one of the schematic diagrams of networking according to an embodiment of the present disclosure;
[0101] Figure 2B This is a second schematic diagram of a network according to an embodiment of the present disclosure;
[0102] Figure 3 This is a third schematic diagram of a network according to an embodiment of the present disclosure;
[0103] Figure 4 A schematic diagram of the structure of a networking system according to an embodiment of the present disclosure;
[0104] Figure 5 This is one of the flow charts of a digital control method of a networking system according to an embodiment of the present disclosure;
[0105] Figure 6 A schematic diagram of a connection method of each node according to an embodiment of the present disclosure;
[0106] Figure 7 The second flowchart of the digital control method of the networking system according to an embodiment of the present disclosure;
[0107] Figure 8 The third flowchart of the digital control method of the networking system according to an embodiment of the present disclosure;
[0108] Fig. 9 This is a fourth flow chart of a digital control method for a networking system according to an embodiment of the present disclosure;
[0109] Fig.10 This is a fourth schematic diagram of a network according to an embodiment of the present disclosure;
[0110] Fig.11 This is a fourth flow chart of a digital control method for a networking system according to an embodiment of the present disclosure;
[0111] Fig.12 This is one of the schematic diagrams of a digital control device of a networking system according to an embodiment of the present disclosure;
[0112] Fig.13 This is a second schematic diagram of a digital control device of a networking system according to an embodiment of the present disclosure;
[0113] Fig.14 FIG. 4 is a schematic diagram of the structure of a chip according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0114] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0115] In the embodiments of the present disclosure, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0116] The application scenarios described in the embodiments of the present disclosure are intended to more clearly illustrate the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. It is known to those skilled in the art that with the emergence of new application scenarios, the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems. In the description of the present disclosure, unless otherwise specified, the meaning of "multiple" is two or more.
[0117] In the prior art, the control scheme for the networking system mainly uses an analog scheme. The analog scheme mainly controls at least one sub-node connected to it through a main node in the networking system. However, since the analog scheme has weak anti-interference ability, the analog scheme has high requirements for the wiring harness between nodes, and shielded wires must be used for connection. Therefore, the cost of the analog scheme in the prior art is high. However, the digital scheme has higher anti-interference ability than the analog scheme, so the connection between the nodes of the digital scheme can use an ordinary wiring harness, which will reduce the control cost of the networking system. Therefore, there is an urgent need for a digital control scheme for the networking system.
[0118] Therefore, the present disclosure provides a digital control method for a networking system. The digital control of the networking system in the embodiment of the present application is performed based on the vehicle-mounted Ethernet. By responding to the mode switching instruction, a control instruction is sent to at least one sub-node in the next level of the networking, so that at least one target sub-node that has not performed the mode switching in this mode switching performs the mode switching, and determines whether the target sub-node has completed the mode switching based on the link establishment information fed back by the node located in the upper level of the target sub-node and connected to the target sub-node. Therefore, in the embodiment of the present application, digital control of the networking system based on networking is realized, and the control cost of the networking system is reduced. In addition, when there are multiple sub-nodes in the networking system, the networking system in the embodiment of the present application is connected based on the form of networking. Therefore, when the number of nodes is the same, since each sub-node in the networking in the embodiment of the present application does not need to be connected to the main node like the simulation scheme, the connection method of multiple sub-nodes in the simulation scheme is as follows. Figure 1 Therefore, the networking connection method will save more wiring harnesses than the node connection method of the analog solution, further reducing the digital control cost of the networking system. Below, the solution of the present disclosure is introduced in detail in conjunction with the accompanying drawings.
[0119] In the embodiment of the present application, the number of sub-nodes in the networking system includes two situations: one is that the networking system includes one sub-node, and the other is that the networking system includes multiple sub-nodes.
[0120] Below, the situation where a networking system includes multiple sub-nodes is first described. First, the connection method of the networking of the networking system when there are multiple sub-nodes in the present application is introduced. The types of each node in the networking are first described. The networking includes a root node (i.e., the main node in the embodiment of the present application), an intermediate node (a sub-node in the embodiment of the present application), and a tail node (a sub-node in the embodiment of the present application). Among them, the root node is a node located in the first level of the networking. The tail node is a node located in the last level of the networking. The intermediate node is other nodes in the networking except the node and the tail node. Any intermediate sub-node in the networking in the embodiment of the present application includes an input and at least one output. Moreover, the number of layers of the networking in the embodiment of the present application is greater than 2. Below, the structure of the networking in the embodiment of the present application is described. The structure of the networking in the embodiment of the present application may include the following two types:
[0121] Structure 1: Any intermediate node in the network includes one input and one output.
[0122] like Figure 2A As shown, it is one of the schematic diagrams of the structure of the network. Figure 2AAs can be seen from the figure, any intermediate node in the network includes one input and one output. This connection mode is a daisy chain connection mode.
[0123] like Figure 2B As shown in the figure, it is the second schematic diagram of the structure of the network. Figure 2B It can be seen from the figure that this connection mode is a ring network connection mode. Any intermediate node in this connection mode includes an input and an output.
[0124] Structure 2: There is an intermediate node with one input and multiple outputs in the network (in the embodiment of the present application, the multiple is greater than 1).
[0125] like Figure 3 As shown, it is a schematic diagram of the second network structure. Figure 3 Subnode 1 and subnode 2 in are intermediate nodes with one input and multiple outputs.
[0126] It should be noted that: Figure 3 It is only used for illustration, but does not limit the number of outputs of any intermediate node in the embodiment of the present application. The number of outputs of any intermediate node in the networking of the embodiment of the present application can be set according to actual conditions, and the number of corresponding outputs between different intermediate nodes can be the same or different, and can be set according to actual conditions.
[0127] Before introducing the digital control method of the networking system corresponding to the case where the networking system includes multiple sub-nodes in the present invention, the structure of the networking system in the present invention is first described. Figure 4 FIG. 1 is a schematic diagram of the structure of the networking system of the present invention. Figure 4 The connection mode of each node in the network is connected by taking the structure 2 in the network as an example. The networking system in the present invention includes multiple nodes for communicating with peripheral devices, and each node in the present invention represents a processor. And the multiple nodes include a main node 401 and multiple sub-nodes 402, and each of the multiple nodes is used to control one or more peripheral devices 403 corresponding to the node, and examples of peripheral devices can be microphones, speakers, display screens, external power amplifiers, speakers, radars, cameras, sensors, positioning systems, etc. The networking system in the embodiment of the present application can be an audio playback system, etc., and the peripheral device 403 in the embodiment of the present application can be an audio playback device, such as a speaker, etc. It can also be an audio acquisition device, such as a microphone, etc. To meet the needs of playing audio in the car and collecting audio data.
[0128] The sub-nodes in the embodiment of the present application include two types: one is a sub-node connected to the main node, which is referred to as the first sub-node in the present application, for example, Figure 3The other type is a subnode that is not connected to the main node, which is referred to as the second subnode in this application. For example, Figure 3 In the following, we combine Figure 3 The digital control method of the networking system in this application is briefly described as a whole, which mainly includes the following two methods:
[0129] Method 1: The master node responds to the mode switching instruction and sends a control instruction to the first child node. After receiving the control instruction, the first child node determines whether the control instruction is used to instruct itself to switch modes based on the control instruction. If so, the first child node performs mode switching. If not, the first child node sends the control instruction to at least one second child node in the next level of the first child node. After receiving the control instruction, the second child node returns to execute the step of determining whether the control instruction is used to instruct itself to switch modes based on the control instruction, until there is a second child node that determines that the control instruction is an instruction for instructing itself to switch modes, and the second child node completes the mode switching based on the control instruction, and then completes the response to the control instruction. Then, if the master node determines that there is a target child node that has not performed mode switching in this mode switching, it continues to send control instructions to the first child node until all target child nodes complete the mode switching.
[0130] For example, Figure 3 The main node-subnode 1-subnode 3-subnode 5 in is used as an example for explanation. The target subnode is subnode 5. That is, subnode 1 is the first subnode mentioned above. Subnode 3-subnode 5 are the second subnodes mentioned above. The specific digital control process is as follows:
[0131] The master node responds to the mode switching instruction and sends a control instruction to the child node 1. After receiving the control instruction, the child node 1 determines based on the control instruction that the control instruction is not used to instruct itself to switch modes. Then the child node 1 sends the control instruction to the child node 3. After receiving the control instruction, the child node 3 determines based on the control instruction that the control instruction is not used to instruct itself to switch modes, and then the child node 3 sends the control instruction to the child node 5. After receiving the control instruction, the child node 5 determines that the control instruction is used to instruct itself to switch modes, and then switches modes based on the control instruction.
[0132] It should be noted that: the master node in the embodiment of the present application is pre-configured. After the networking system is powered on, the host in the networking system will set the master node according to the identifier in the preset configuration file. After the master node is set, the master node will actively establish a link with at least one child node in the next layer. After at least one child node in the next layer has established a link with the master node, at least one child node will establish a link with at least one child node in the next layer until all nodes have completed the link establishment. Then, the networking system can be used normally, that is, data can be transmitted normally between nodes. In this embodiment, the way to establish a link between every two nodes is set based on the vehicle Ethernet 100base-T1, that is, an Ethernet link can be established between nodes based on the vehicle Ethernet, thereby transmitting Ethernet data packets to enable data transmission between nodes. The embodiment of the present application will not be repeated.
[0133] Method 2: The main node responds to the mode switching instruction and sends a control instruction to the first child node. After receiving the control instruction, the first child node sends the control instruction to at least one child node in the next level, and determines based on the control instruction whether the control instruction is used to instruct itself to switch modes. If so, the first child node performs mode switching. Similarly, after each second child node receives the control instruction, it returns to execute the step of determining based on the control instruction whether the control instruction is used to instruct itself to switch modes. Then, if the main node determines that there are target child nodes that have not switched modes in this mode switch, it continues to send control instructions to the first child node until all target child nodes complete the mode switch.
[0134] For example, Figure 3 The main node-subnode 1-subnode 3-subnode 5 in is used as an example for explanation. The target subnode is subnode 3. That is, subnode 1 is the first subnode mentioned above. Subnode 3-subnode 5 are the second subnodes mentioned above. The specific digital control process is as follows:
[0135] The master node responds to the mode switching instruction and sends a control instruction to the child node 1. After receiving the control instruction, the child node 1 sends the control instruction to the child node 3. And based on the control instruction, it is determined that the control instruction is not used to instruct itself to switch modes. After receiving the control instruction, the child node 3 sends the control instruction to the child node 5, and based on the control instruction, it is determined that the control instruction is used to instruct itself to switch modes, and the child node 3 switches modes based on the control instruction. Therefore, compared with the method of first judging and then sending, this method saves time, improves the digital control efficiency of the networking system, and saves the control time of the system.
[0136] The following is a detailed description of the digital control method of the networking system in the embodiment of the present application. Figure 5FIG. 1 is a flow chart of a digital control method for a networking system in an embodiment of the present application. The digital control method corresponds to the method 1 described above and may include the following steps:
[0137] Step 501: the master node sends a control instruction to at least one first sub-node in response to a mode switching instruction;
[0138] In the embodiment of the present application, the mode switching instruction includes the identifiers of all target subnodes, so all target subnodes can be determined by the identifiers in the mode switching instruction. However, each control instruction in the embodiment of the present application only includes the identifier of one target subnode. However, the master node can send multiple control instructions each time. The number of control instructions sent each time can be set according to actual conditions, and the embodiment of the present application does not limit the number of control instructions sent each time.
[0139] In one embodiment, the mode switching instruction in the embodiment of the present application includes an instruction to switch from normal mode to sleep mode or an instruction to switch from sleep mode to normal mode. The sleep mode in the embodiment of the present application is to power off the designated area of the corresponding node. The normal mode is to power on the designated area of the corresponding node. Each node in the embodiment of the present application includes a non-power-off area, which is used to receive an instruction to switch from sleep mode to normal mode after the node enters sleep mode, so as to perform mode switching. The instruction to switch from sleep mode to normal mode sent between the main node and the child node or between the child node and the child node in the embodiment of the present application is based on the wake-up format of TC10. The TC10 protocol stipulates random data, that is, the random data in the instruction to switch from sleep mode to normal mode in the embodiment of the present application is generated based on the TC10 protocol, that is, the switching instruction in the embodiment of the present application does not rely on the Ethernet link to send or receive.
[0140] Next, the method for determining the mode switching instruction in step 501 in the embodiment of the present application is described:
[0141] (1) The mode switching instruction is an instruction to switch from the normal mode to the sleep mode;
[0142] The mode switching instruction is an instruction triggered by the user, or an instruction triggered by the master node after determining that the networking system has not sent or received data within the second specified time period.
[0143] (2) The mode switching instruction is an instruction for switching from the sleep mode to the normal mode;
[0144] The mode switching instruction is an instruction triggered by a user, or an instruction triggered by the master node after determining that the duration for the target sub-node to enter the sleep mode reaches a third specified duration.
[0145] It should be noted that: in the embodiment of the present application, each node performs mode switching based on the sleep wake-up process specified by the TC10 protocol. The embodiment of the present application will not be repeated here. And the values of the second specified duration and the third specified duration in the embodiment of the present application may be the same or different. The specific value can be set according to the actual situation, and the embodiment of the present application does not limit the specific values of the second specified duration and the third specified duration.
[0146] Step 502: The first subnode determines whether the control instruction is used to instruct itself to switch modes based on the received control instruction. If not, step 503 is executed; if yes, step 507 is executed;
[0147] The control instruction in the embodiment of the present application includes an identifier of a target sub-node that needs to switch modes. The first sub-node can determine which sub-node the control instruction is used to indicate based on the identifier in the control instruction.
[0148] In order to ensure the accuracy of the target subnode, in one embodiment, the target subnode is determined in the following manner: according to the pre-stored subnode identifiers of the plurality of subnodes, the target subnode corresponding to the subnode identifier in the mode switching instruction is determined.
[0149] Step 503: The first sub-node sends the control instruction to the second sub-node in the next level;
[0150] Step 504: after receiving the control instruction, the second subnode determines whether the control instruction is used to instruct itself to switch modes based on the control instruction. If not, step 505 is executed. If yes, step 506 is executed.
[0151] The judgment method in the embodiment of the present application is the same as that in step 502, and is based on the identifier in the control instruction. The embodiment of the present application will not be described in detail here.
[0152] Step 505: The second sub-node sends the control instruction to at least one second sub-node in the next level;
[0153] It should be noted that any second sub-node in the embodiment of the present application will execute the method in step 504 after receiving the control instruction.
[0154] Step 506: the second sub-node switches the mode based on the control instruction;
[0155] In one embodiment, step 506 may be specifically implemented as follows: if the control instruction is the sleep instruction, switching from the normal mode to the sleep mode; or if the control instruction is the wake-up instruction, switching from the sleep mode to the normal mode. It should be noted that before the current node is in the sleep mode or is not awakened, the Ethernet link between the current node and the node connected to it and at the upper level is not established, that is, the Ethernet data packet cannot be transmitted normally.
[0156] Step 507: the first sub-node performs mode switching based on the control instruction;
[0157] The mode switching method of the first sub-node in the embodiment of the present application is the same as the mode switching method of the second sub-node in step 506. The specific mode switching method can be seen in the mode switching method of the second sub-node mentioned above. The embodiment of the present application will not be described in detail here.
[0158] If the first subnode and the second subnode in the embodiment of the present application switch from normal mode to sleep mode, it is necessary to store the key parameters in normal mode to the non-power-off area corresponding to the subnode, so that the subnode can quickly configure itself based on the key parameters when switching to normal mode, so that the subnode can quickly work normally without the need to re-initialize the configuration after the node switches to normal mode, thereby improving the efficiency of the node work. The key parameters include the node number, etc. The key parameters can be set according to the specific actual situation, and the embodiment of the present application is not limited here.
[0159] Step 508: The master node determines that when the interval after sending the control instruction to the first sub-node reaches the first specified time, it obtains its own link establishment information;
[0160] In the embodiment of the present application, if the control instruction sent this time is used to control the first child node to switch modes, the master node obtains its own link establishment information. If the control instruction sent this time is used to control the second child node to switch modes, a link establishment information acquisition instruction is sent to the first child node, and the corresponding specific method can be seen in steps 510 to 515.
[0161] In the embodiment of the present application, each node will store the corresponding link building information in its own register, and the link building information is used to identify whether the node can communicate with the next node connected to the node. Each node updates the link building information once every specified time. The specified time in the embodiment of the present application can be 0.1 seconds, 1 second, 2 seconds, etc. The specific specified time can be set according to the actual situation. The embodiment of the present application does not limit the specified time here. The way in which each node determines the link building information is determined by using the Ethernet 100Base-T1 standard protocol, and the implementation of this application will not be repeated here.
[0162] It should be noted that the first specified duration in the embodiment of the present application can be set according to actual conditions, and the embodiment of the present application does not limit the specific value of the first specified duration.
[0163] Step 509: the master node determines whether the first child node has completed mode switching according to the link establishment information, and if so, executes step 518; if not, returns to step 501;
[0164] In one embodiment, whether the first sub-node has completed the mode switching is determined in the following manner, mainly including the following four situations:
[0165] Case 1: If the control instruction is a sleep instruction, and it is determined that the link establishment information is a first identifier, it is determined that the first sub-node has not completed mode switching.
[0166] Case 2: If the control instruction is a sleep instruction, and it is determined that the link establishment information is a second identifier, it is determined that the first sub-node has completed the mode switching.
[0167] In the embodiment of the present application, the first identifier is 1 and the second identifier is 0, but the embodiment of the present application does not limit the specific values of the first identifier and the second identifier. In the embodiment of the present application, the first identifier and the second identifier can be set according to actual conditions.
[0168] Case 3: If the control instruction is a wake-up instruction, and it is determined that the link establishment information is a first identifier, it is determined that the first sub-node has completed mode switching.
[0169] Case 4: If the control instruction is a wake-up instruction, and it is determined that the link establishment information is a second identifier, it is determined that the first sub-node has not completed the mode switching.
[0170] It should be noted that: if it is determined that the mode switching of the first sub-node fails, the first sub-node enters an abnormal process. The abnormal process in the embodiment of the present application is to report an alarm. Then, the corresponding operation is performed using the sub-node that has completed the mode switching. The specific abnormal process can be set according to the actual situation, and the embodiment of the present application is not limited here.
[0171] Step 510: The master node determines that when the interval after sending the control instruction to the first sub-node reaches the first specified time, it sends an instruction to obtain link establishment information to the first sub-node;
[0172] Step 511: after receiving the instruction to obtain link establishment information, the first child node determines whether to instruct to send the link establishment information stored in itself based on the instruction to obtain link establishment information. If not, execute step 512; if yes, execute step 516;
[0173] The instruction for obtaining link building information in the embodiment of the present application also includes the identifier of the child node for which link building information needs to be obtained. The first child node can determine which node's link building information the instruction for obtaining link building information is used to obtain according to the identifier in the instruction for obtaining link building information.
[0174] Step 512: The first sub-node sends the instruction for obtaining link establishment information to at least one second sub-node in the next layer;
[0175] Step 513: after receiving the instruction to obtain link establishment information, the second child node determines whether to instruct to send the link establishment information stored in itself based on the instruction to obtain link establishment information. If not, execute step 514; if yes, execute step 515;
[0176] The judgment method in the embodiment of the present application is the same as the judgment method in step 511 described above, and the embodiment of the present application will not be repeated here.
[0177] Step 514: the second sub-node sends the instruction for obtaining link establishment information to the second sub-node in the next layer of the second sub-node;
[0178] In the embodiment of the present application, each second child node except the root node will execute the method in step 514 after receiving the instruction to obtain link establishment information.
[0179] Step 515: The second child node sends the link building information stored in itself to the child node at the upper level of the second child node;
[0180] The upper-level child node of the second child node is the first child node or the second child node.
[0181] For any second sub-node, if link establishment information sent by at least one sub-node in a lower layer of the any second sub-node is received, the link establishment information is sent to the sub-node in an upper layer of the any second node.
[0182] For example, Figure 3 As shown, if child node 3 receives the link establishment information sent by child node 5, it sends the link establishment information to child node 1.
[0183] Step 516: The first child node sends the chain building information stored in itself to the master node;
[0184] Step 517: the master node determines whether the second child node has completed the mode switching according to the link establishment information sent by the first child node. If so, execute step 518; if not, return to execute step 501;
[0185] The method of determining whether the second sub-node has completed the mode switching in the embodiment of the present application is the same as the method of determining whether the first sub-node has completed the mode switching described in step 509 described above, and the embodiment of the present application will not be repeated here.
[0186] Step 518: The master node determines whether there is any target child node that has not switched modes based on the received link establishment information. If so, the process returns to step 501; if not, the process ends.
[0187] Since the master node in the embodiment of the present application obtains all target sub-nodes that need to perform mode switching this time based on the mode switching instruction, and the master node can obtain the target sub-nodes that have completed mode switching based on the link building information obtained by the obtain link building information instruction sent after each control instruction is sent. Therefore, the master node can obtain the target sub-node that has not performed mode switching based on the difference set of each target sub-node that has completed mode switching and all target sub-nodes that need to perform mode switching this time. The embodiment of the present application determines whether the target sub-node has completed mode switching based on the link building information fed back by the node located in the upper layer of the target sub-node and connected to the target sub-node, making the mode switching more reliable and less prone to error, ensuring that each node can perform mode switching as required.
[0188] For example, all target subnodes that need to switch modes this time include subnode 1, subnode 2, subnode 4, and subnode 5. If it is determined that subnode 1 and subnode 2 have completed mode switching, then subnode 4 and subnode 5 can be determined as target subnodes that have not undergone mode switching.
[0189] In order to ensure the accuracy of digital control of the networking system, in one embodiment, if the control instruction is a sleep instruction and the mode switching instruction includes the identifier of the master node, then after determining that all target sub-nodes have completed the mode switching, the master node is controlled to perform the mode switching.
[0190] If the control instruction is a wake-up instruction and the mode switching instruction includes the identifier of the master node, then after the master node determines that there is still a target child node that has not performed mode switching, and before returning to execute step 501 to send the control instruction to the first child node, the master node is controlled to perform mode switching.
[0191] It should be noted that: in the embodiment of the present application, the target sub-nodes corresponding to the multiple control instructions sent at the same time point must be sub-nodes at the same level in the network. The target sub-nodes corresponding to the multiple control instructions sent at different time points need to comply with the following rules:
[0192] Rule 1: If the mode switching instruction is to switch from normal mode to sleep mode, then for any two control instructions in each control instruction, the distance between the target sub-node corresponding to the previous control instruction and the main node in the network is greater than the distance between the target sub-node corresponding to the next control instruction and the main node in the network.
[0193] Rule 2: If the mode switching instruction is to switch from sleep mode to normal mode, then for any two control instructions in each control instruction, the distance between the target sub-node corresponding to the previous control instruction and the main node in the network is less than the distance between the target sub-node corresponding to the next control instruction and the main node in the network.
[0194] For example, Figure 6 As shown, if it is necessary to control subnode 4 and subnode 5 to switch from normal mode to sleep mode, two control instructions need to be sent: control instruction 1 and control instruction 2. And the sending time of control instruction 1 is earlier than the sending time of control instruction 2. Then the target subnode identifier included in control instruction 1 is the identifier of subnode 5. The target subnode identifier included in control instruction 2 is the identifier of subnode 4.
[0195] If it is necessary to control subnode 4 and subnode 5 to switch from sleep mode to normal mode, the target subnode identifier included in control instruction 1 is the identifier of subnode 4. The target subnode identifier included in control instruction 2 is the identifier of subnode 5.
[0196] Therefore, in the embodiment of the present application, method 1 realizes a digital control method for the networking system, which is more efficient than the analog control method, saves control costs, and enables the node to work normally and quickly when switched to the normal mode, improves the efficiency of the node work, and realizes a more reliable control method. In addition, the digital control method in method 1 realizes the digital control of the networking system in one-to-many scenarios, that is, when there are multiple sub-nodes in the networking system, the networking system in the embodiment of the present application is connected based on the form of networking, so, when the number of nodes is the same, since each sub-node in the networking in the embodiment of the present application does not need to be connected to the main node separately. Therefore, the connection method of the networking will save more wiring harnesses than the node connection method of the analog solution, further reducing the digital control cost of the networking system.
[0197] Based on the same inventive concept, the present invention also provides a digital control method for a networking system, which corresponds to the second control method described above. Figure 7 FIG. 1 is a flow chart of a digital control method for a networking system, which may include the following steps:
[0198] Step 701: the master node sends a control instruction to at least one first sub-node in response to a mode switching instruction;
[0199] Step 702: The first sub-node sends the control instruction to the second sub-node in the next level;
[0200] Step 703: the first child node determines whether the control instruction is used for mode switching based on the received control instruction. If not, the process ends. If yes, the process proceeds to step 704.
[0201] Step 704: the first sub-node performs mode switching based on the control instruction;
[0202] Step 705: After receiving the control instruction, the second sub-node sends the control instruction to at least one second sub-node in the next layer;
[0203] Step 706: the second subnode determines whether the control instruction is used to instruct itself to switch modes based on the control instruction. If not, the process ends. If yes, the process proceeds to step 707.
[0204] It should be noted that step 705 and step 706 in the embodiment of the present application can be executed simultaneously, or step 705 can be executed first and then step 706. The specific implementation depends on the actual situation and is not limited in the embodiment of the present application.
[0205] Step 707: the second sub-node switches the mode based on the control instruction;
[0206] Step 708: The master node determines that when the interval after sending the control instruction to the first sub-node reaches the first specified time, it obtains its own link establishment information;
[0207] Step 709: the master node determines whether the first child node has completed mode switching according to the link establishment information, and if so, executes step 718; if not, returns to step 701;
[0208] Step 710: The master node determines that when the interval after sending the control instruction to the first sub-node reaches the first specified time, it sends an instruction to obtain link establishment information to the first sub-node;
[0209] Step 711: After receiving the instruction to obtain link establishment information, the first sub-node sends the instruction to obtain link establishment information to at least one second sub-node in the next layer;
[0210] Step 712: the first child node determines whether to instruct to send the link establishment information stored in itself based on the instruction for obtaining link establishment information, if not, then the process ends; if yes, then execute step 713;
[0211] It should be noted that step 711 and step 712 in the embodiment of the present application can be executed simultaneously, or step 711 can be executed first and then step 712. The specific details are based on the actual situation and the embodiment of the present application is not limited here.
[0212] Step 713: The first child node sends the link establishment information stored in itself to the master node;
[0213] Step 714: After receiving the instruction for obtaining link establishment information, the second sub-node sends the instruction for obtaining link establishment information to the second sub-node in the next layer of the second sub-node;
[0214] Step 715: the second child node determines whether to instruct to send the link establishment information stored in itself based on the instruction for obtaining link establishment information. If not, the process ends. If yes, the process proceeds to step 716.
[0215] It should be noted that step 714 and step 715 in the embodiment of the present application can be executed simultaneously, or step 714 can be executed first and then step 715. The specific details are based on the actual situation and the embodiment of the present application is not limited here.
[0216] Step 716: The second child node sends the link establishment information stored in itself to the child node at the upper level of the second child node;
[0217] Step 717: the master node determines whether the second subnode has completed the mode switching according to the link establishment information sent by the first subnode. If yes, execute step 718; if no, return to execute step 701;
[0218] Step 718: The master node determines whether there is any target child node that has not switched modes based on the received link establishment information. If so, the process returns to step 701; if not, the process ends.
[0219] It should be noted that the digital control method of the networking system in steps 701 to 718 in the embodiment of the present application is roughly the same as the digital control method of the networking system in steps 501 to 518, except that the execution timing of some steps is different. Therefore, the specific control method of the networking system in steps 701 to 718 will not be repeated in the embodiment of the present application.
[0220] Therefore, method 2 in the embodiment of the present application also realizes a digital control method for the networking system, saving control costs, and the digital control method in method 2 also realizes digital control of the networking system in one-to-many scenarios, further reducing the control costs. After any node in the digital control method in method 2 receives the corresponding instruction, it directly forwards the instruction to the next child node and determines whether the instruction is used to instruct itself. Thus, the control time of the networking system is saved, the control efficiency of the networking system is improved, and the node can work normally and quickly when switching to normal mode, thereby improving the efficiency of node work and realizing a more reliable control method.
[0221] In order to further reduce the power consumption of the networking system, and to enable the peripheral devices in the control networking system to switch modes, so as to achieve more efficient control of the networking system and further improve the control efficiency of the networking system. In one embodiment, after determining that any child node has completed the mode switching, the embodiment of the present application also provides a digital control method for the networking system, such as Figure 8 FIG. 1 is a flow chart of a digital control method of the networking system, which may include the following steps:
[0222] Step 801: The master node sends a first target control instruction to at least one first child node;
[0223] Step 802: The first child node receives the first target control instruction, and determines whether the first target control instruction is used to send internal control parameters to the master node based on the first target control instruction. If not, execute step 803; if yes, execute step 807;
[0224] The first target control instruction in the embodiment of the present application includes the identifier of the target subnode that needs to send the internal control parameter to the main node. Therefore, the first subnode can determine the target subnode that needs to send the internal control parameter to the main node indicated in the first target control instruction based on the identifier in the first target control instruction.
[0225] Step 803: The first child node sends a first target control instruction to the second child node in the next layer;
[0226] Step 804: after receiving the first target control instruction, the second child node determines whether the first target control instruction is used to instruct itself to send internal control parameters to the master node based on the first target control instruction; if not, execute step 805; if yes, execute step 806;
[0227] The method for determining the target child node that needs to send internal control parameters to the main node in the embodiment of the present application is the same as the method in step 802 described above, and the embodiment of the present application will not be repeated here.
[0228] Step 805: The second child node sends a first target control instruction to the second child node of the next layer;
[0229] In the embodiment of the present application, each second sub-node will execute the method in step 804 after receiving the first target control instruction.
[0230] Step 806: the second sub-node sends the internal control parameters stored in itself to at least one sub-node at the upper level;
[0231] In the embodiment of the present application, at least one sub-node of the upper level is at least one second sub-node or at least one first sub-node.
[0232] In one embodiment, for any first sub-node, if an internal control parameter sent by at least one second sub-node in the next layer of the any sub-node is received, the internal control parameter sent by the at least one second sub-node is sent to the previous node.
[0233] The previous node in the embodiment of the present application is one of the main node, the first child node and the second child node.
[0234] Step 807: The first child node sends the internal control parameters stored in itself to the master node;
[0235] Step 808: After receiving the internal control parameter sent by the first child node, the master node determines whether the internal control parameter is a designated identifier. If so, step 809 is executed; if not, the process ends.
[0236] It should be noted that: the internal control parameter in the embodiment of the present application is a designated identifier, which means that the peripheral device connected to the first sub-node also needs to be controlled. The designated identifier in the embodiment of the present application is 1 or 0, and the specific value of the designated identifier can be set according to the actual situation. The embodiment of the present application does not limit the specific value of the designated identifier. In addition, the internal control parameters of each node in the embodiment of the present application are pre-configured and can be configured according to the needs of the user to enhance the personalized experience.
[0237] Step 809: the master node sends a second target control instruction to at least one first child node;
[0238] Step 810: after receiving the second target control instruction, the first subnode determines whether the second target control instruction is used to instruct the peripheral device connected to itself to switch modes based on the second target control instruction. If not, execute step 811; if yes, execute step 815;
[0239] In the embodiment of the present application, the second target control instruction includes an identifier of a target subnode that needs to be connected to the peripheral device that performs mode switching. The first subnode can determine the target subnode based on the identifier in the second target control instruction.
[0240] Step 811: The first child node sends the second target control instruction to the second child node in the next level;
[0241] Step 812: after receiving the second target control instruction, the second subnode determines whether the second target control instruction is used to instruct the peripheral device connected to itself to switch modes based on the second target control instruction. If not, step 813 is executed. If yes, step 814 is executed.
[0242] The judgment method in the embodiment of the present application is the same as the judgment method in step 810, and will not be repeated in the embodiment of the present application.
[0243] Step 813: the second sub-node sends the second target control instruction to the second sub-node of the next layer;
[0244] Each second sub-node in the embodiment of the present application will execute the method in step 812 after receiving the second target control instruction.
[0245] Step 814: the second sub-node sends the second target control instruction to a peripheral device connected to the second sub-node, so that the peripheral device performs mode switching based on the second target control instruction;
[0246] Step 815: The first sub-node sends the second target control instruction to a peripheral device connected to the first sub-node, so that the peripheral device performs mode switching based on the second target control instruction.
[0247] Wherein, in the embodiment of the present application, the mode switching of the peripheral device is indicated by the INH pin. The high and low levels of the INH pin in the embodiment of the present application are changed based on the mode of the child node connected thereto. For example, if the mode of the child node connected to the INH pin is sleep mode, the INH pin is low level. If the mode of the child node connected to the INH pin is normal mode, the INH pin is high level. After any peripheral device in the embodiment of the present application receives the second target control instruction forwarded by the child node connected thereto, the level signal of the INH pin connected thereto is obtained, and if the level signal of the pin of the INH is a specified level signal, the peripheral device itself performs mode switching. For example, if the level signal of the pin representing INH in the second target control instruction received by the peripheral device is high level, the peripheral device itself switches to normal mode, and if the level signal of the pin representing INH in the second target control instruction received by the peripheral device is low level, the peripheral device itself switches to sleep mode.
[0248] The premise for the first sub-node and each second sub-node in steps 801 to 815 described above in the present application to forward instructions or to judge instructions is that their own mode is a normal mode.
[0249] Because if the mode of the sub-node connected to the peripheral device that needs to switch modes is in sleep mode, the sub-node cannot forward instructions, which will cause the peripheral device to fail to receive instructions for mode switching. Therefore, in order to ensure that the peripheral device can switch modes in a timely manner in an embodiment of the present application, the embodiment of the present application also provides another mode switching method for the peripheral device. In one embodiment, the peripheral device obtains the level signal of the INH pin connected to it at specified time intervals. If the level signal of the INH pin is a specified level signal, the peripheral device itself switches modes.
[0250] The designated level signal in the embodiment of the present application is a high level signal or a low level signal, which can be set according to the actual situation. The embodiment of the present application does not limit the designated level signal. In addition, the mode switching method of the peripheral device itself in the embodiment of the present application is not limited in the embodiment of the present application, and can be set according to the specific actual situation.
[0251] The present application also provides a Figure 8 The digital control method of the networking system corresponding to the method in Fig. 9 FIG. 1 is a flow chart of a digital control method for a networking system, which may include the following steps:
[0252] Step 901: The master node sends a first target control instruction to at least one first child node;
[0253] Step 902: After receiving the first target control instruction, the first sub-node sends the first target control instruction to the second sub-node in the next layer;
[0254] Step 903: the first child node determines, based on the first target control instruction, whether the first target control instruction is used to instruct itself to send internal control parameters to the master node. If not, the process ends; if yes, the process proceeds to step 904.
[0255] Step 904: The first child node sends the internal control parameters stored in itself to the master node;
[0256] Step 905: After receiving the first target control instruction, the second sub-node sends the first target control instruction to the second sub-node of the next layer;
[0257] In the embodiment of the present application, each second sub-node except the node will execute the method in step 905 after receiving the first target control instruction.
[0258] Step 906: the second child node determines, based on the first target control instruction, whether the first target control instruction is used to instruct itself to send internal control parameters to the master node; if not, the process ends; if yes, the process proceeds to step 907;
[0259] Step 907: the second sub-node sends the internal control parameters stored in itself to at least one sub-node at the upper level;
[0260] Step 908: After receiving the internal control parameter sent by the first child node, the master node determines whether the internal control parameter is a designated identifier. If so, step 909 is executed; if not, the process ends.
[0261] Step 909: the master node sends a second target control instruction to at least one first child node;
[0262] Step 910: After receiving the second target control instruction, the first sub-node sends the second target control instruction to the second sub-node in the next layer;
[0263] Step 911: the first subnode determines whether the second target control instruction is used to instruct the peripheral device connected to itself to switch modes based on the second target control instruction. If not, the process ends. If yes, the process proceeds to step 912.
[0264] Step 912: the first sub-node sends the second target control instruction to the peripheral device connected to the first sub-node, so that the peripheral device performs mode switching based on the second target control instruction;
[0265] Step 913: After receiving the second target control instruction, the second sub-node sends the second target control instruction to the second sub-node of the next layer;
[0266] Step 914: the second subnode determines, based on the second target control instruction, whether the second target control instruction is used to instruct the peripheral device connected to itself to switch modes. If not, the process ends. If yes, the process proceeds to step 915.
[0267] Step 915: The second sub-node sends the second target control instruction to a peripheral device connected to the second sub-node, so that the peripheral device performs mode switching based on the second target control instruction.
[0268] It should be noted that the digital control method of the networking system in steps 801 to 815 in the embodiment of the present application is roughly the same as the digital control method of the networking system in steps 901 to 915, except that the execution timing of some steps is different. Therefore, the specific control method of the networking system in steps 901 to 915 will not be repeated in the embodiment of the present application.
[0269] The following describes the situation where the networking system includes only one child node. Fig.10 As shown in the figure, it is a schematic diagram of the corresponding network structure. Fig.10 As can be seen from the figure, the network includes a master node and a sub-node.
[0270] Next, the digital control method of the networking system in the embodiment of the present application is described in conjunction with the structure of the networking system. Fig.11 As shown, it is a flowchart of a digital control method of a networking system corresponding to a case where the networking system includes one sub-node, which may include the following steps:
[0271] Step 1101: the master node sends a control instruction to the subnode in response to the mode switching instruction;
[0272] Step 1102: After receiving the control instruction, the subnode switches the mode based on the control instruction;
[0273] Step 1103: The master node determines whether the subnode has completed the mode switching based on the link establishment information stored in the master node.
[0274] Step 1101, step 1102, and step 1103 in the embodiment of the present application can refer to the specific implementation methods and related processes of step 501, step 507, and step 509 described above, and the embodiment of the present application will not be repeated here. If it is determined that the child node has not completed the mode switch, that is, the mode switch of the child node fails, the child node enters the abnormal process. The abnormal process in the embodiment of the present application is to report an alarm, and the child node can work normally quickly when switching to the normal mode, which improves the efficiency of the node work and realizes a more reliable control method.
[0275] In order to ensure the accuracy of digital control of the networking system, in one embodiment, if the control instruction is a sleep instruction and the mode switching instruction includes the identifier of the master node, then after determining that all sub-nodes have completed the mode switching, the master node is controlled to perform the mode switching. If the control instruction is a wake-up instruction and the mode switching instruction includes the identifier of the master node, before executing step 1101 to send the control instruction to the sub-node, the master node is controlled to perform the mode switching.
[0276] In the present application, the function corresponding to controlling each node to enter the sleep mode or controlling each node to enter the normal mode is a reset function.
[0277] Based on the same disclosed concept, the digital control method of the networking system disclosed above can also be implemented by a digital control device of the networking system. The effect of the digital control device of the networking system is similar to that of the aforementioned method, which will not be described in detail here.
[0278] Fig.12 FIG. 1 is a schematic diagram of a digital control device of a networking system according to an embodiment of the present disclosure. Fig.12 As shown, the digital control device 1200 of the networking system of the present disclosure may include a first control instruction sending module 1210 and a mode switching determination module 1220 .
[0279] A first control instruction sending module 1210 is used to send a control instruction to at least one sub-node in the next layer in response to the mode switching instruction; the control instruction is used to instruct a target sub-node that has not performed mode switching in this mode switching to perform mode switching, and the target sub-node is a sub-node corresponding to the mode switching instruction in the at least one sub-node;
[0280] The mode switching determination module 1220 is used to determine whether the target subnode has completed the mode switching according to the link establishment information fed back by the node located in the upper layer of the target subnode and connected to the target subnode.
[0281] In one embodiment, if the networking system includes multiple sub-nodes; the device further includes:
[0282] The control slave node mode switching module 1230 is used to determine whether the target sub-node has completed the mode switching based on the link establishment information fed back by the node located in the upper layer of the target sub-node and connected to the target sub-node. If it is determined that there are target sub-nodes that have not performed the mode switching in this mode switching, then continue to send control instructions to at least one sub-node in the next layer until all target sub-nodes complete the mode switching.
[0283] In one embodiment, the apparatus further comprises:
[0284] The first acquisition instruction sending module 1240 is used for, if it is determined that there is a target sub-node that has not performed mode switching in this mode switching according to the link establishment information fed back by at least one sub-node in the next layer, when the interval time after each control instruction is sent to at least one sub-node in the next layer reaches the first specified time, then sending an acquisition link establishment information instruction to at least one sub-node in the next layer, wherein the acquisition link establishment information instruction is used to instruct the upper node of the target sub-node that has performed mode switching in this mode switching to send the link establishment information stored in the upper node to the target node; the upper node of the target sub-node is a node connected to the target sub-node in the networking and located at the upper level of the target sub-node; the target node is a node connected to the upper node in the networking and located at the upper level of the upper node;
[0285] The link building information receiving module 1250 is used to receive the link building information returned by at least one child node in the next layer based on the instruction to obtain the link building information.
[0286] In one embodiment, the apparatus further comprises:
[0287] The first master node mode switching module 1260 is configured to control the master node to perform mode switching after determining that all target sub-nodes have completed mode switching if the control instruction is a sleep instruction and the mode switching instruction includes the identifier of the master node; or
[0288] If the control instruction is a wake-up instruction, and the mode switching instruction includes the identifier of the master node, then before sending the control instruction to at least one child node in the next level, the master node is controlled to perform mode switching.
[0289] In one embodiment, the apparatus further comprises:
[0290] The first target subnode determination module 1270 is configured to determine the target subnode in the following manner:
[0291] According to the pre-stored sub-node identifiers of the plurality of sub-nodes, a target sub-node corresponding to the sub-node identifier in the mode switching instruction is determined.
[0292] In one embodiment, the control instruction includes a sleep instruction or a wake-up instruction; the device further includes:
[0293] The judgment module 1280 is used to determine whether the target subnode has completed the mode switching in the following manner:
[0294] For a first target sub-node, the first target sub-node is any sub-node of the target sub-nodes; perform the following steps:
[0295] If the control instruction is a sleep instruction, and the link establishment information corresponding to the first target subnode is a first identifier, it is determined that the first target subnode has not completed the mode switching, wherein the link establishment information corresponding to the first target subnode is link establishment information stored in a node located in an upper layer of the target subnode and connected to the target subnode; or,
[0296] If the control instruction is a sleep instruction, and the link establishment information corresponding to the first target subnode is a second identifier, it is determined that the first target subnode has completed mode switching; or,
[0297] If the control instruction is a wake-up instruction, and the link establishment information corresponding to the first target sub-node is the first identifier, it is determined that the first target sub-node has completed mode switching; or,
[0298] If the control instruction is a wake-up instruction, and the link establishment information corresponding to the first target sub-node is the second identifier, it is determined that the first target sub-node has not completed the mode switching.
[0299] In one embodiment, the mode switching instruction is an instruction for switching from a normal mode to a sleep mode; the mode switching instruction is an instruction triggered by a user, or an instruction triggered by the master node after determining that the networking system has not sent or received data within a second specified time period; or,
[0300] The mode switching instruction is an instruction for switching from sleep mode to normal mode; the mode switching instruction is an instruction triggered by the user, or an instruction triggered by the master node after determining that the duration of the target subnode entering the sleep mode reaches a third specified duration.
[0301] In one embodiment, if the networking system includes a sub-node; the device further includes:
[0302] The second master node mode switching module 1290 is used for, after determining whether the target subnode has completed the mode switching according to the link establishment information fed back by the node located in the upper layer of the target subnode and connected to the target subnode, if the control instruction is a sleep instruction and the mode switching instruction includes the identifier of the master node, then controlling the master node to perform the mode switching after determining that the target subnode has completed the mode switching; or,
[0303] If the control instruction is a wake-up instruction, and the mode switching instruction includes the identifier of the master node, then before sending the control instruction to at least one child node in the next level, the master node is controlled to perform mode switching.
[0304] In one embodiment, the apparatus further comprises:
[0305] A first target control instruction sending module 1291 is used for sending a first target control instruction to at least one sub-node in the next layer after sending a control instruction to at least one sub-node in the next layer, if it is determined that the second target sub-node in this mode switching has performed a mode switch and the current mode of the second target sub-node is a normal mode, sending a first target control instruction to at least one sub-node in the next layer, wherein the first target control instruction is used to instruct the second target sub-node to send an internal control parameter to the master node;
[0306] The second target control instruction sending module 1290 is used to receive the internal control parameter of the second target sub-node returned by at least one sub-node in the next layer, and if the internal control parameter is a specified identifier, send the second target control instruction to at least one sub-node in the next layer, wherein the second target control instruction is used to instruct the peripheral device connected to the second target sub-node to switch mode.
[0307] Fig.13 It is a structural schematic diagram of a digital control device of another networking system according to an embodiment of the present disclosure.
[0308] like Fig.13 As shown, the digital control device 1300 of the networking system of the present disclosure may include a control instruction receiving module 1310 and a slave node mode switching module 1320 .
[0309] The control instruction receiving module 1310 is used to receive a control instruction sent by a previous node; the previous node is a node in the network that is connected to any of the child nodes and is located at an upper level of any of the child nodes; the control instruction is sent by the master node in response to a mode switching instruction;
[0310] The slave node mode switching module 1320 is configured to perform mode switching based on the control instruction if it is determined that the control instruction is used to instruct any of the sub-nodes to perform mode switching.
[0311] In one embodiment, if the number of the sub-nodes is multiple; the device further includes:
[0312] A first control instruction sending module 1330 is configured to send the control instruction to at least one child node in the next level if the control instruction is a sleep instruction, and to perform a step of performing a mode switch based on the control instruction if it is determined that the control instruction is used to instruct any child node to perform a mode switch;
[0313] If the control instruction is a wake-up instruction, and it is determined that the current mode of any child node is the normal mode, the control instruction is sent to at least one child node in the next layer, and it is determined whether the control instruction is used to instruct the target child node in the next layer of any child node that has not performed mode switching in this mode switching to perform mode switching; if so, a control instruction for waking up the target child node is sent to the target child node based on the control instruction, wherein the target child node is the child node among the multiple child nodes corresponding to the mode switching instruction.
[0314] In one embodiment, the apparatus further comprises:
[0315] The first target subnode determination module 1340 is configured to determine the target subnode indicated by the control instruction in the following manner:
[0316] According to the pre-stored sub-node identifiers of the plurality of sub-nodes, a target sub-node corresponding to the sub-node identifier in the control instruction is determined.
[0317] In one embodiment, the apparatus further comprises:
[0318] The link establishment information acquisition instruction receiving module 1350 is used to receive the link establishment information acquisition instruction sent by the previous node;
[0319] The second acquisition instruction sending module 1360 is configured to send the acquisition link establishment information instruction to at least one child node in the next layer of the any node if it is determined that the acquisition link establishment information instruction is used to instruct at least one child node in the next layer of the any child node to send the link establishment information stored by itself, wherein the link establishment information is used by the master node to determine whether there is a target child node that has not performed mode switching in this mode switching;
[0320] The link establishment information sending module 1370 is used to send the link establishment information stored by itself to the previous node if it is determined that the instruction to obtain the link establishment information is used to instruct any node to send the link establishment information stored by itself.
[0321] In one embodiment, the apparatus further comprises:
[0322] The link establishment information acquisition instruction receiving module 1350 is further configured to receive a link establishment information acquisition instruction sent by the previous node;
[0323] The second acquisition instruction sending module 1360 is further configured to send the acquisition link establishment information instruction to at least one child node in a next layer of the any node;
[0324] The link establishment information sending module 1370 is also used to send the link establishment information stored by itself to the previous node if it is determined that the instruction to obtain the link establishment information is used to instruct any node to send the link establishment information stored by itself, wherein the link establishment information is used by the main node to determine whether there is a target child node that has not performed the mode switch in this mode switch.
[0325] In one embodiment, the link establishment information sending module 1370 is further used to:
[0326] If link establishment information sent by at least one child node in a lower layer of any child node is received, the link establishment information is sent to the upper node.
[0327] In one embodiment, the first control instruction sending module 1330 is further configured to:
[0328] After receiving the control instruction sent by the previous node, if it is determined that the control instruction is not used to instruct any of the child nodes to switch modes, the control instruction is sent to at least one child node in the next level.
[0329] In one embodiment, the apparatus further comprises:
[0330] A first target control instruction receiving module 1380 is configured to receive a first target control instruction sent by the previous node after sending the control instruction to at least one child node in the next layer;
[0331] The second target control instruction sending module 1390 is used to send the first target control instruction to at least one sub-node in the next level of any sub-node if it is determined that the first target control instruction is not used to instruct any sub-node to send an internal control parameter to the main node, wherein the internal control parameter is used by the main node to determine whether it is necessary to control a peripheral device connected to at least one target sub-node in the next level of any sub-node to switch modes; or
[0332] A first internal control parameter sending module 1391 is configured to send the internal control parameter stored in the first node to the previous node if it is determined that the first target control instruction is used to instruct any child node to send the internal control parameter;
[0333] The third target control instruction sending module 1392 is used to receive the second target control instruction sent by the upper node, and if it is determined that the second target control instruction is not used to instruct the peripheral device connected to any of the child nodes to switch the mode, then send the second target control instruction to at least one child node in the next layer of the any of the child nodes, wherein the second target control instruction is used by the main node to control the peripheral device connected to at least one target child node in the next layer of the any of the child nodes to switch the mode; or,
[0334] The third target control instruction sending module 1392 is further used to send the second target control instruction to the peripheral device connected to any sub-node if it is determined that the second target control instruction is used to instruct the peripheral device connected to any sub-node to switch modes.
[0335] In one embodiment, the apparatus further comprises:
[0336] The first target control instruction receiving module 1380 is further configured to receive the first target control instruction sent by the previous node after sending the control instruction to at least one child node in the next layer;
[0337] The second target control instruction sending module 1390 is further configured to send the first target control instruction to at least one sub-node in a next layer of any sub-node;
[0338] The first internal control parameter sending module 1391 is further configured to send the internal control parameter stored in the master node to the previous node if it is determined that the first target control instruction is used to instruct any of the child nodes to send the internal control parameter, wherein the internal control parameter is used by the master node to determine whether it is necessary to control the peripheral device connected to any of the child nodes to switch modes;
[0339] The second target control instruction receiving module 1393 is used to receive the second target control instruction sent by the previous node;
[0340] The third target control instruction sending module 1392 is further used to send the second target control instruction to a peripheral device connected to at least one sub-node in a next layer of any sub-node;
[0341] The third target control instruction sending module 1392 is further used to send the second target control instruction to the peripheral device connected to any sub-node if it is determined that the second target control instruction is used to instruct the peripheral device connected to any sub-node to switch modes.
[0342] In one embodiment, the apparatus further comprises:
[0343] The second internal control parameter sending module 1394 is used to send the internal control parameter sent by at least one child node in the next layer of any child node to the previous node if the internal control parameter sent by the at least one child node is received.
[0344] In one embodiment, the slave node mode switching module 1320 is specifically configured to:
[0345] If the control instruction is the sleep instruction, switching from the normal mode to the sleep mode; or,
[0346] If the control instruction is the wake-up instruction, the sleep mode is switched to the normal mode.
[0347] After introducing a digital control method and device for a networking system according to an exemplary embodiment of the present disclosure, next, a chip according to another exemplary embodiment of the present disclosure is introduced.
[0348] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0349] In some possible implementations, the chip according to the present disclosure may include at least one processor and at least one computer storage medium. The computer storage medium stores program code, and when the program code is executed by the processor, the processor executes the steps of the digital control method of the networking system according to various exemplary embodiments of the present disclosure described above in this specification. For example, the processor may execute the following steps: Figure 5Steps 501-518 and / or steps 701-718 shown in .
[0350] Fig.14 FIG. 1 shows a schematic diagram of the structure of a chip 1400. Fig.14 The chip 1400 shown includes at least one processor 1401 (for any node in the embodiments of the present application), a memory 1403 , and optionally, a communication interface 1402 .
[0351] The memory 1403 may be a volatile memory, such as a random access memory; the memory may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or the memory 1402 may be any other medium capable of carrying or storing desired program codes in the form of instructions or data structures and accessible by a computer, but is not limited thereto. The memory 1403 may be a combination of the above memories.
[0352] The specific connection medium between the processor 1401 and the memory 1403 is not limited in the embodiments of the present application. The processor 1401 may be a CPU, or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, artificial intelligence chips, chips on chips, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. In the example Fig.14 In the embodiment, an independent data transceiver module, such as a communication interface 1402, may also be provided for sending and receiving data; when the processor 1401 communicates with other devices, data may be transmitted through the communication interface 1402.
[0353] In one possible application scenario, the chip uses Fig.14 The form shown, Fig.14 The processor 1401 in the chip can call the computer execution instructions stored in the memory 1403 so that the chip can execute the digital control method of the networking system in any of the above method embodiments.
[0354] Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, which is not specifically limited in the embodiments of the present application.
[0355] Based on the same inventive concept, the embodiment of the present application provides a computer-readable storage medium, and the computer program product includes: computer program code, when the computer program code is run on a computer, the computer executes the digital control method of the networking system as discussed above. Since the principle of solving the problem by the above-mentioned computer-readable storage medium is similar to that of the digital control method of the networking system, the implementation of the above-mentioned computer-readable storage medium can refer to the implementation of the method, and the repeated parts will not be repeated.
[0356] Based on the same inventive concept, the embodiment of the present application also provides a computer program product, which includes: computer program code, when the computer program code is run on a computer, the computer executes the digital control method of the networking system discussed above. Since the principle of solving the problem by the above computer program product is similar to the digital control method of the networking system, the implementation of the above computer program product can refer to the implementation of the method, and the repeated parts will not be repeated.
[0357] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0358] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0359] These computer program instructions may also be stored in a computer-readable memory capable of directing 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 an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0360] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of user-operated steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0361] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A digital control method for a networking system, characterized in that: The networking system includes a plurality of nodes for communicating with peripheral devices, the plurality of nodes include a main node and at least one sub-node, the main node and the at least one sub-node are connected in a networking manner, and the method is applied to the main node, including: In response to the mode switching instruction, a control instruction is sent to at least one child node in the next layer; the control instruction is used to instruct a target child node that has not performed mode switching in this mode switching to perform mode switching, the target child node is a child node corresponding to the mode switching instruction in the at least one child node, and the control instruction includes a sleep instruction or a wake-up instruction; Determine whether the target subnode has completed mode switching according to link building information fed back by a node located in an upper layer of the target subnode and connected to the target subnode, wherein determining whether the target subnode has completed mode switching is performed in the following manner: For a first target subnode, the first target subnode is any subnode of the target subnode; performing the following steps: if the control instruction is a sleep instruction, and the link establishment information corresponding to the first target subnode is a first identifier, determining that the first target subnode has not completed mode switching, wherein the link establishment information corresponding to the first target subnode is link establishment information stored in a node located in an upper layer of the target subnode and connected to the target subnode; or, If the control instruction is a sleep instruction, and the link establishment information corresponding to the first target subnode is a second identifier, it is determined that the first target subnode has completed mode switching; or, If the control instruction is a wake-up instruction, and the link establishment information corresponding to the first target sub-node is the first identifier, it is determined that the first target sub-node has completed mode switching; or, If the control instruction is a wake-up instruction, and the link establishment information corresponding to the first target sub-node is the second identifier, it is determined that the first target sub-node has not completed the mode switching.
2. The method according to claim 1, characterized in that If the networking system includes multiple sub-nodes; After determining whether the target subnode has completed mode switching according to the link establishment information fed back by the node located in the upper layer of the target subnode and connected to the target subnode, the method further includes: If it is determined that there are target sub-nodes that have not undergone mode switching in this mode switching, the control instruction continues to be sent to at least one sub-node in the next level until all target sub-nodes complete the mode switching.
3. The method according to claim 2, characterized in that If it is determined that there is a target subnode that has not undergone mode switching in the current mode switching, the method further includes: When the interval after each time a control instruction is sent to at least one child node in the next level reaches the first specified time, an instruction for obtaining link establishment information is sent to at least one child node in the next level, wherein the instruction for obtaining link establishment information is used to instruct the previous node of the target child node that has performed mode switching in this mode switching to send the link establishment information stored by the previous node to the target node, wherein the previous node of the target child node is a node connected to the target child node in the networking and located at the previous level of the target child node, and the target node is a node connected to the previous node in the networking and located at the previous level of the previous node; Receive link building information returned by at least one child node in the next level based on the instruction to obtain link building information.
4. The method according to claim 2, characterized in that: The method further comprises: If the control instruction is a sleep instruction, and the mode switching instruction includes the identifier of the master node, after determining that all target sub-nodes have completed mode switching, the master node is controlled to perform mode switching; or, If the control instruction is a wake-up instruction, and the mode switching instruction includes the identifier of the master node, then before sending the control instruction to at least one child node in the next level, the master node is controlled to perform mode switching.
5. The method according to claim 2, characterized in that: The target child node is determined by: According to the pre-stored sub-node identifiers of the plurality of sub-nodes, a target sub-node corresponding to the sub-node identifier in the mode switching instruction is determined.
6. The method according to claim 1, characterized in that The mode switching instruction is an instruction for switching from a normal mode to a sleep mode; the mode switching instruction is an instruction triggered by a user, or an instruction triggered by the master node after determining that the networking system has not sent or received data within a second specified time period; or, The mode switching instruction is an instruction for switching from sleep mode to normal mode; the mode switching instruction is an instruction triggered by the user, or an instruction triggered by the master node after determining that the duration of the target subnode entering the sleep mode reaches a third specified duration.
7. The method according to claim 1, characterized in that If the networking system includes a sub-node; After determining whether the target subnode has completed mode switching according to the link establishment information fed back by the node located in the upper layer of the target subnode and connected to the target subnode, the method further includes: If the control instruction is a sleep instruction, and the mode switching instruction includes the identifier of the master node, after determining that the target sub-node completes the mode switching, the master node is controlled to perform the mode switching; or, If the control instruction is a wake-up instruction, and the mode switching instruction includes the identifier of the master node, then before sending the control instruction to at least one child node in the next level, the master node is controlled to perform mode switching.
8. The method according to claim 1, characterized in that After sending the control instruction to at least one sub-node in the next level, the method further includes: If it is determined that the second target subnode in this mode switching has performed mode switching, and the current mode of the second target subnode is the normal mode, sending a first target control instruction to at least one subnode in the next level, wherein the first target control instruction is used to instruct the second target subnode to send an internal control parameter to the master node; Receive the internal control parameter of the second target sub-node returned by at least one sub-node in the next level, and if the internal control parameter is a specified identifier, send a second target control instruction to at least one sub-node in the next level, wherein the second target control instruction is used to instruct a peripheral device connected to the second target sub-node to switch modes.
9. A digital control method for a networking system, characterized in that: The networking system includes a plurality of nodes for communicating with peripheral devices, the plurality of nodes include a main node and at least one sub-node, the main node and the at least one sub-node are connected in a networking manner, and the method is applied to any sub-node of the at least one sub-node, including: receiving a control instruction sent by an upper node; the upper node is a node in the network that is connected to any of the child nodes and is located at an upper level of any of the child nodes; the control instruction is sent by the master node in response to a mode switching instruction; If there are multiple child nodes and the control instruction is a sleep instruction, the control instruction is sent to at least one child node in the next level, and if it is determined that the control instruction is used to instruct any child node to switch modes, the mode is switched based on the control instruction; If there are multiple child nodes, and the control instruction is a wake-up instruction, and it is determined that the current mode of any child node is the normal mode, the control instruction is sent to at least one child node in the next layer, and it is determined whether the control instruction is used to instruct the target child node in the next layer of any child node that has not performed mode switching in this mode switching to perform mode switching; if so, a control instruction for waking up the target child node is sent to the target child node based on the control instruction, wherein the target child node is the child node corresponding to the mode switching instruction among the multiple child nodes.
10. The method according to claim 9, characterized in that The target subnode indicated by the control instruction is determined by: According to the pre-stored sub-node identifiers of the plurality of sub-nodes, a target sub-node corresponding to the sub-node identifier in the control instruction is determined.
11. The method according to claim 9, characterized in that The method further comprises: Receiving a link establishment information acquisition instruction sent by the previous node; If it is determined that the instruction to obtain link establishment information is not used to instruct any child node to send link establishment information stored by itself, sending the instruction to obtain link establishment information to at least one child node in a next layer of the any node; If it is determined that the instruction to obtain link establishment information is used to instruct any node to send link establishment information stored by itself, then the link establishment information stored by itself is sent to the previous node.
12. The method according to claim 9, characterized in that The method further comprises: Receiving a link establishment information acquisition instruction sent by the previous node; Sending the instruction for obtaining link establishment information to at least one child node in a next level of any one of the nodes; and If it is determined that the instruction to obtain link establishment information is used to instruct any node to send the link establishment information stored by itself, the link establishment information stored by itself is sent to the previous node.
13. The method according to claim 11 or 12, characterized in that: The method further comprises: If link establishment information sent by at least one child node in a lower layer of any child node is received, the link establishment information is sent to the upper node.
14. The method according to claim 9, characterized in that After receiving the control instruction sent by the previous node, the method further includes: If it is determined that the control instruction is not used to instruct any of the sub-nodes to switch modes, the control instruction is sent to at least one sub-node in the next level.
15. The method according to claim 14, characterized in that After sending the control instruction to at least one sub-node in the next level, the method further includes: Receiving a first target control instruction sent by the previous node; If it is determined that the first target control instruction is not used to instruct any of the sub-nodes to send an internal control parameter to the master node, the first target control instruction is sent to at least one sub-node in a lower level of the any of the sub-nodes, wherein the internal control parameter is used by the master node to determine whether it is necessary to control a peripheral device connected to at least one target sub-node in a lower level of the any of the sub-nodes to perform mode switching; or, If it is determined that the first target control instruction is used to instruct any child node to send the internal control parameter, then the internal control parameter stored in the node is sent to the previous node; receiving a second target control instruction sent by the upper node, and if it is determined that the second target control instruction is not used to instruct a peripheral device connected to any of the child nodes to switch modes, sending the second target control instruction to at least one child node in a lower layer of the any of the child nodes, wherein the second target control instruction is used by the main node to control a peripheral device connected to at least one target child node in a lower layer of the any of the child nodes to switch modes; or, If it is determined that the second target control instruction is used to instruct the peripheral device connected to any of the sub-nodes to switch modes, the second target control instruction is sent to the peripheral device connected to any of the sub-nodes.
16. The method according to claim 14, characterized in that After sending the control instruction to at least one sub-node in the next level, the method further includes: Receiving a first target control instruction sent by the previous node; Sending the first target control instruction to at least one sub-node in a next-level layer of any sub-node; If it is determined that the first target control instruction is used to instruct any of the child nodes to send the internal control parameter, the internal control parameter stored in the master node is sent to the previous node, wherein the internal control parameter is used by the master node to determine whether it is necessary to control the peripheral device connected to any of the child nodes to switch modes; Receiving a second target control instruction sent by the previous node; Sending the second target control instruction to at least one sub-node in a next-level layer to the any sub-node; If it is determined that the second target control instruction is used to instruct the peripheral device connected to any of the sub-nodes to switch modes, the second target control instruction is sent to the peripheral device connected to any of the sub-nodes.
17. The method according to claim 15 or 16, characterized in that The method further comprises: If an internal control parameter sent by at least one child node in the next layer of any child node is received, the internal control parameter sent by the at least one child node is sent to the previous node.
18. The method according to claim 9, characterized in that The mode switching based on the control instruction includes: If the control instruction is the sleep instruction, switching from the normal mode to the sleep mode; or, If the control instruction is the wake-up instruction, the sleep mode is switched to the normal mode.
19. A chip, characterized in that: include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the steps included in any one of claims 1-18 according to the obtained program instructions.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method according to any one of claims 1 to 18.
