Network architecture for information transmission method and device
Patent Information
- Application Number
- CN202310961822.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-01
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2043-08-01
AI Technical Summary
然而,在一些实际应用场景中,网络中的节点数量与静态白名单中的节点数量可能并不相同(例如网络不稳定造成的节点断连或重连),导致中央协调器CCO根据白名单确定的信息交互的目的节点与网络中的实际节点存在偏差,造成信号的错误传输,或将导致一些数据交互功能不能正常实现
[0027] This invention provides an information synchronization interface between the application layer and data link layer of the master node. This interface synchronizes the online list, maintained in real-time by the data link layer based on the online status of each slave node in the network, to the application layer. This allows the application layer of the master node to send task messages based on the online list. By synchronizing the real-time online list of slave nodes to the application layer, this invention enables the application layer to determine the network topology based on the online list, thereby accurately sending various messages to online nodes. This allows for multiple interactive functions within the application layer and improves the flexibility of application layer development.
Smart Images

Figure CN116846672B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and more specifically, to a network architecture for an information transmission method and device. Background Technology
[0002] Broadband carrier communication networks define a whitelist function. This whitelist function involves the host computer (concentrator or analog concentrator software) sending a static whitelist containing information on multiple nodes to the Central Coordinator (CCO). The CCO then uses this static whitelist to configure the network and interact with other nodes in the network. However, in some practical applications, the number of nodes in the network may not match the number of nodes in the static whitelist (e.g., due to network instability causing node disconnections or reconnections). This can lead to a discrepancy between the destination node determined by the CCO based on the whitelist and the actual node in the network, resulting in incorrect signal transmission or preventing some data interaction functions from functioning correctly. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a network architecture for an information transmission method and device to improve the accuracy of information interaction, meet the requirements for the implementation of multiple interactive functions at the application layer, and improve the flexibility of application layer development.
[0004] In a first aspect, embodiments of the present invention provide an information transmission method, the method comprising:
[0005] The master node's data link layer maintains the online list in real time based on the online status of each slave node in the network;
[0006] The online list is synchronized to the application layer of the master node via the information synchronization interface;
[0007] The application layer determines the target node set based on the online list;
[0008] The corresponding message is sent to the slave node in the set of destination nodes through the data link layer.
[0009] Optionally, the online list includes node information for each of the online slave nodes, wherein the node information is a combination of one or more of the following: node name, node ID, node device type, device manufacturer, and device phase.
[0010] Optionally, the data link layer of the master node maintains the online list in real time based on the online status of each slave node in the network, including:
[0011] The online status of each slave node in the network is detected;
[0012] In response to the detection of a new slave node in the network, the new slave node is recorded in the online list;
[0013] In response to detecting that a slave node in the network has gone offline, the offline slave node is removed from the online list.
[0014] Optionally, the message is a query for slave node registration information, and the method further includes:
[0015] Receive the slave node registration information from the corresponding slave node.
[0016] Optionally, the message is a message querying child node ID information, and the method further includes:
[0017] Receive and store the response ID information from the corresponding slave node.
[0018] Optionally, the message may be a meter reading command, a concurrent meter reading command, a broadcast time synchronization command, or a child node upgrade command.
[0019] Secondly, embodiments of the present invention provide a network architecture for a device, the network architecture including at least an application layer, a data link layer, and a physical layer;
[0020] An information synchronization interface is provided between the application layer and the data link layer. The information synchronization interface is used to synchronize the online list, which is used to represent the real-time online status of each slave node in the network.
[0021] Optionally, the data link layer is used to implement network management and maintain the online list in real time according to the network topology, and the application layer is used to transmit information with each slave node in the network through the data link layer according to the online list;
[0022] The data link layer is divided into a network management sublayer and a media access control sublayer.
[0023] The network management sublayer is used to realize the networking, network maintenance, routing management, and aggregation and distribution of application messages in the high-speed carrier communication network;
[0024] The media access control sublayer is used to compete for physical channels through a channel access mechanism to achieve reliable transmission of data packets.
[0025] Thirdly, embodiments of the present invention provide an electronic device, the electronic device including a memory and a processor, the memory being used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method as described in any one of the first aspects of the present invention.
[0026] Fourthly, embodiments of the present invention provide a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the method as described in any one of the first aspects of the present invention.
[0027] This invention provides an information synchronization interface between the application layer and data link layer of the master node. This interface synchronizes the online list, maintained in real-time by the data link layer based on the online status of each slave node in the network, to the application layer. This allows the application layer of the master node to send task messages based on the online list. By synchronizing the real-time online list of slave nodes to the application layer, this invention enables the application layer to determine the network topology based on the online list, thereby accurately sending various messages to online nodes. This allows for multiple interactive functions within the application layer and improves the flexibility of application layer development. Attached Figure Description
[0028] The above and other objects, features and advantages of the present invention will become clearer from the following description of embodiments of the invention with reference to the accompanying drawings, in which:
[0029] Figure 1 This is a network topology diagram of the information transmission system according to an embodiment of the present invention;
[0030] Figure 2 This is a network architecture diagram of the device according to an embodiment of the present invention;
[0031] Figure 3 This is a flowchart of an information transmission method according to an embodiment of the present invention;
[0032] Figure 4 This is a schematic diagram illustrating the maintenance of the online list in the information transmission method according to an embodiment of the present invention;
[0033] Figure 5 This is a schematic diagram of signal transmission for the node registration function;
[0034] Figure 6 This is a schematic diagram of the signal transmission for the ID information query function;
[0035] Figure 7 This is a schematic diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0036] The present application is described below based on embodiments, but it is not limited to these embodiments. In the detailed description of the present application below, certain specific details are described in detail. Those skilled in the art can fully understand the present application without these details. To avoid obscuring the substance of the present application, well-known methods, processes, flows, elements, and circuits are not described in detail.
[0037] Furthermore, those skilled in the art should understand that the accompanying drawings provided herein are for illustrative purposes only and are not necessarily drawn to scale.
[0038] Unless the context explicitly requires it, words such as "including" or "contains" throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, meaning "including but not limited to".
[0039] In the description of this application, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0040] The solutions described in this specification and embodiments, if involving the processing of personal information, will be processed only under the premise of having a legal basis (such as obtaining the consent of the personal information subject, or being necessary for the performance of a contract), and will only be processed within the scope stipulated or agreed upon. A user's refusal to process personal information beyond what is necessary for basic functions will not affect the user's use of basic functions.
[0041] The data transmission system of this invention can be applied to a power user electricity consumption information collection system. This system collects, processes, and monitors power user electricity consumption information in real time. It consists of three layers: a master station layer, a communication channel layer, and a device acquisition layer. The device acquisition layer is responsible for collecting user electricity consumption information, processing data, and interacting with the master station. The electricity consumption information collection system typically has a tree structure, including a concentrator, multiple electricity meters, and a communication system. The communication system is used to realize information transmission between the concentrator and each electricity meter, and includes a Central Coordinator (CCO), multiple Proxy Coordinators (PCOs), and Stations (STAs). The Central Coordinator (CCO) is responsible for initiating meter reading services, sending meter reading entries, receiving electricity consumption data, and sending it to the concentrator. The Proxy Coordinators (PCOs) are used to receive or forward information sent by the Central Coordinator (CCO) or the Stations (STAs). The Stations (STAs) are used to collect electricity consumption information from their corresponding meters and send it to the Central Coordinator (CCO).
[0042] Figure 1 This is a network topology diagram of the information transmission system according to an embodiment of the present invention. For example... Figure 1As shown, the communication network of the information transmission system in this embodiment of the invention includes one master node and multiple slave nodes. The master node is a central coordinator (CCO), and the slave nodes are proxy coordinators (PCO1 to PCO3) and stations (STA1 to STA9). The central coordinator (CCO) is responsible for network control, network maintenance, and issuing work commands. The proxy coordinators (PCOs) are responsible for forwarding data sent by the central coordinator (CCO) and the stations (STAs). The stations (STAs) are responsible for collecting and transmitting terminal data.
[0043] In this embodiment of the invention, the Central Coordinator (CCO) maintains an online list in real time based on the online status of each slave node in the network. When executing a business operation, the CCO determines the set of destination nodes for the information transmission of the business operation based on the maintained online list, and then issues the operation command in the form of unicast or broadcast according to the set of destination nodes. Each node performs the relevant operation according to the command of the Central Coordinator and completes the information transmission of the business operation.
[0044] Figure 2 This is a network architecture diagram of a device according to an embodiment of the present invention, wherein the device is applied to the aforementioned Central Coordinator (CCO). Figure 2 As shown, the network architecture of the information transmission device in this embodiment of the invention includes at least an application layer 21, a data link layer 24, and a physical layer 27. The data link layer 24 includes a network management sublayer 25 and a media access control sublayer 26. Optionally, a transport layer 22 and a network layer 23 may also be included between the application layer 21 and the data link layer 24.
[0045] In this embodiment of the invention, an information synchronization interface is provided between the application layer 21 and the data link layer 24. This information synchronization interface is a code interface used to synchronize an online list that reflects the real-time online status of each slave node in the network.
[0046] Optionally, the application layer 21 is used to execute various user-defined functions, such as meter reading, concurrent meter reading, slave node active registration, broadcast time synchronization, and slave node upgrades. When executing these functions, the application layer 21 facilitates business data interaction between local communication units, such as the business data interaction between the central coordinator (CCO) and the concentrator, and can interact with other nodes in the network via the data link layer 24 based on the online list. Thus, by synchronizing the real-time online list, the application layer 21 can accurately know the status of each slave node in the network and quickly and accurately distribute business messages.
[0047] The data link layer 24 is responsible for network management, enabling data interaction between nodes in the network. Simultaneously, the data link layer 24 maintains an online list in real time based on the network topology. When the network topology of a node changes (a node disconnects or a new node joins the network), the latest network topology list is updated to the online list and synchronized to the application layer 21. The network management sublayer 25 is used for network topology, network maintenance, routing management, and the aggregation and distribution of application messages in the high-speed carrier communication network. The media access control sublayer 26 is used to compete for physical channels through channel access mechanisms to achieve reliable transmission of data packets.
[0048] Physical layer 27 is used to encode and modulate the data packets of media access control sublayer 26 into high-speed carrier signals and send them to the power line medium, as well as to receive the high-speed carrier signals of the power line medium and demodulate them into data packets for transmission to media access control sublayer 26 for processing.
[0049] In an alternative implementation, a transport layer 22 and a network layer 23 may be set between the application layer 21 and the data link layer 24 to enable the transmission of business data between different applications and different networks.
[0050] In this embodiment of the invention, the data link layer 24 maintains the online list in real time based on the online status of each slave node in the network, and sets up an information synchronization interface to synchronize the online list to the application layer 21. This enables the application layer 21 to accurately send various messages based on the online list when performing business functions, thereby satisfying the implementation of multiple interactive functions of the application layer 21 and improving the flexibility of application layer 21 development.
[0051] Figure 3 This is a flowchart of an information transmission method according to an embodiment of the present invention. Figure 3 As shown, the information transmission method of this invention includes the following steps:
[0052] Step S100: The data link layer of the master node maintains the online list in real time based on the online status of each slave node in the network.
[0053] In this embodiment of the invention, the online list reflects the actual node information in the network and is a dynamic list that changes in real time according to the network configuration. Optionally, depending on the specific application scenario, the online list can be used in conjunction with an existing whitelist or used alone. Optionally, the whitelist can be a pre-configured list that includes information on all STAs (Stations, Stations, and Sites) included in the area to which the Central Coordinator (CCO) belongs.
[0054] Specifically, the implementation of the whitelist function includes: the host computer (concentrator or simulated concentrator software) sends the function of adding child node information to the central coordinator (CCO). Then, the application layer of the central coordinator (CCO) receives the corresponding child node information and records it as whitelist information. After recording the whitelist, the application layer sends the whitelist information to the data link layer, which then performs the subsequent network networking steps.
[0055] Figure 4 This is a schematic diagram illustrating the maintenance of the online list in the information transmission method of this invention, as shown in the embodiment of the invention. Figure 4 As shown, the data link layer of the master node in this embodiment of the invention maintains the online list in real time based on the online status of each slave node in the network, including the following steps:
[0056] Step S110: Detect the online status of each slave node in the network.
[0057] Optionally, the online status detection of each slave node in the network is divided into detection during the node joining phase and detection during the network maintenance phase after node joining. During the node joining phase, the slave node sends an association request to the master node. After the master node agrees to the slave node joining the network, it sends an association confirmation message to the slave node to enable the slave node to join the network. The data link layer of the master node records the successfully joined node in the online list. Optionally, after a node joins the network, the master node can periodically send query messages to each node in the online list. Based on whether it receives a response message from the corresponding node, it determines the online status of each node in the network. Then, the data link layer of the master node maintains the online list based on the online status of each node.
[0058] Step S120: In response to the detection of a new slave node in the network, the new slave node is recorded in the online list.
[0059] Optionally, after a node successfully joins the network, the master node's data link layer obtains the node information of the newly added node and records it in the online list. Optionally, the node information mentioned above is a combination of one or more of the following: node name, node ID, node device type, device manufacturer, and device phase.
[0060] Step S130: In response to detecting that a slave node in the network has gone offline, the offline slave node is removed from the online list.
[0061] In one alternative implementation, the master node can periodically send query messages to each slave node in the online list. If no response signal is received from the corresponding slave node, it can be determined that the slave node is offline, and the offline slave node can be removed from the online list.
[0062] In this embodiment of the invention, the online list synchronized by the application layer and the data link layer can be used to detect the online status of each slave node in the network. Optionally, the application layer can make relevant task decisions based on the online status of the slave nodes, so that abnormally online nodes can be online normally, and further maintain the online list, thus achieving joint maintenance of the online list by the application layer and the data link layer.
[0063] Step S200: Synchronize the online list to the application layer of the master node through the information synchronization interface.
[0064] In one alternative implementation, when the online list is updated, the data link layer can synchronize the updated online list to the application layer through an information synchronization interface.
[0065] In another alternative implementation, when the application layer needs to send messages to slave nodes in the network, it can obtain the online list maintained in real time in the data link layer through the information synchronization interface to achieve synchronization.
[0066] Step S300: The application layer determines the target node set based on the online list.
[0067] In this embodiment of the invention, when the application layer needs to perform functions that require information interaction with slave nodes, such as meter reading, upgrades, event reporting, and active registration, it can determine the online status of each slave node in the network based on the online list, and then determine the target node for the information interaction corresponding to the specific function. For example, when performing the meter reading function, the corresponding target node can be all stations in the network, and the application layer can determine the set of target nodes based on the node information in the online list.
[0068] Step S400: Send the corresponding message to the slave node in the destination node set through the data link layer.
[0069] In this embodiment of the invention, after the application layer of the Central Coordinator (CCO) determines the destination node, it transmits information with the destination node through the data link layer. Optionally, depending on the specific application scenario, the data link layer can send corresponding messages to the slave nodes in the set of destination nodes in the form of unicast or broadcast.
[0070] In this embodiment of the invention, the data link layer of the master node maintains the online list in real time based on the online status of each slave node in the network. The online list is synchronized between the data link layer and the application layer through the information synchronization interface. This solves the problem of mismatch between the status of the nodes in the list and the actual status of the nodes in the network in the traditional whitelist function. This allows the application layer to know the network status of the nodes in the network in real time, thereby quickly and accurately transmitting information with the nodes in the network. This satisfies the implementation of various interactive functions of the application layer and improves the flexibility of application layer development.
[0071] The following will illustrate the beneficial effects of the online list jointly maintained by the data link layer and application layer in this embodiment of the invention with specific examples.
[0072] Figure 5 This is a schematic diagram of the signal transmission for the slave node registration function. The slave node registration function is initiated by the host computer (concentrator or analog concentrator software) sending an activation slave node registration command to the central coordinator (CCO). The CCO broadcasts the registration command signal, causing all STAs that can detect the signal to register into the network. Then, the CCO queries the registration information of each STA in turn and reports the query results to the host computer based on the slave node registration information replied by the slave nodes.
[0073] like Figure 5 As shown, in the above process, the information interaction between the Central Coordinator (CCO) and the Station (STA) includes: the CCO sending a signal to the Station (STA) to start slave node registration; the CCO sending a signal to the Station (STA) to query slave node registration information; the Station (STA) reporting slave node registration information to the CCO; and the CCO sending a signal to the Station (STA) to stop slave node registration.
[0074] Optionally, when the Central Coordinator (CCO) sends a signal to a site STA to query slave node registration information, it may do so after a predetermined time period following the sending of the signal to initiate slave node registration, to ensure that each site STA has sufficient time to join the network. Alternatively, it may send the signal multiple times at predetermined time intervals until it receives the slave node registration information from the corresponding site STA.
[0075] Optionally, the Central Coordinator (CCO) may send a signal to the corresponding STA to stop registering with the node after receiving node registration information from the corresponding STA, or after a predetermined time period if it does not receive node registration information from the corresponding STA.
[0076] Optionally, the above-mentioned slave node registration information includes one or more of the following: slave node ID, registration result, registration time, slave node device name, device type, device manufacturer, etc.
[0077] During the above query process, querying the registration information of slave nodes based on the existing whitelist cannot be successfully performed in the following two situations:
[0078] (1) When the registration of a slave node is activated, the central coordinator (CCO) will network all STAs that can detect the network signal. This may include STAs that do not belong to this area or STAs that are not recorded in the whitelist. This results in M STAs in the network, but N STAs in the CCO's whitelist. M>N. At this time, when the central coordinator (CCO) sends out queries based on the whitelist, it will not be able to find all the network STAs, which will cause the registration information of some STAs to be unable to be queried normally.
[0079] (2) When the host computer does not send the sub-node information to the central coordinator (CCO), the whitelist of the central coordinator (CCO) is 0. At this time, the slave node is activated to actively register. According to the characteristics of this function, after the CCO sets up the network of all STAs that have detected the network signal within a time limit, the CCO has no stored whitelist information. Therefore, the CCO cannot send the query registration result.
[0080] The real-time online list jointly maintained by the application layer and data link layer of this invention can realize the application of the above-mentioned slave node registration function in various scenarios. Specifically, the implementation includes: the host computer sends an activation command for slave node registration to the Central Coordinator (CCO); the CCO's data link layer connects all stations (STAs) capable of detecting network signals to the network, and forms a real-time online slave node list based on the network configuration. This real-time online list is then synchronized to the application layer. The application layer then issues a command to query the registration results based on the online list and reports the query status to the host computer based on the slave node registration results returned by the slave nodes. Therefore, the online list in this invention reflects the real-time online status of each slave node in the network, and the application layer can use this online list to query and realize the application of the above-mentioned slave node registration function in various scenarios.
[0081] Figure 6 This is a signal transmission flowchart for the ID information query function. The ID information query function is for the Central Coordinator (CCO) to collect and store the ID information of all nodes in the local area and provide batch ID query or single node ID query services to the concentrator.
[0082] like Figure 6 As shown, in the above process, the information exchange between the Central Coordinator (CCO) and the Station (STA) includes: the CCO sending a signal to the Station (STA) to query ID information, and the Station (STA) sending a signal to the CCO to respond with ID information.
[0083] In one optional implementation, the Central Coordinator (CCO) initiates a network formation signal. After receiving the network entry signal, the station (STA) applies to the CCO for network access. The CCO uses a whitelist to determine whether to allow the applying station to join the network. If the whitelist contains the station's information, the station STA is allowed to join the network, thus enabling all stations STAs within the area to join the network. Furthermore, the CCO sequentially sends a query ID information signal to each station STA, and the station STA sends a response ID information signal to the CCO.
[0084] In the above process, a signal to query ID information is sent to the STA through the whitelist. Since the application layer of the Central Coordinator (CCO) cannot know the actual network topology based on the whitelist, the following situations may occur: When the number of nodes in the whitelist is M, but some nodes have not successfully joined the network, resulting in the actual number of nodes in the network being N, and M>N, the CCO may cause query failure when sending query messages to the STA that is not in the network, thus preventing the query task from continuing to execute. Alternatively, when the concentrator performs batch queries, the CCO may report the child node information with empty ID information to the concentrator, causing the concentrator to make an incorrect judgment.
[0085] In this scenario, a real-time online list jointly maintained by the application layer and the data link layer can solve the above problem. In one optional implementation, the ID information query is implemented as follows: During the network setup process, the whitelist function enables the STAs in this area to join the network. After the STAs successfully join the network, the data link layer of the central coordinator (CCO) dynamically maintains the real-time online list of slave nodes according to the network setup and synchronizes the real-time online list to the application layer. The application layer then sends a query signal to the STAs based on the real-time online list.
[0086] Optionally, the above online list can be compared with the whitelist to determine whether all STAs in the area have joined the network, and the network access information can be generated and reported to the concentrator to facilitate subsequent troubleshooting and maintenance.
[0087] The real-time online list in this embodiment of the invention can also fulfill the implementation of some other customized application layer functions, such as satisfying the information transmission between the Central Coordinator (CCO) and the online station (STA) under the station identification code function.
[0088] The area identification code function eliminates the traditional whitelist-based networking method. Its networking principle is to configure the same area identification code for the central coordinator (CCO) and the station STA within a area. During networking, only the station STA with the same area identification code as the central coordinator (CCO) can successfully join the network.
[0089] Since the whitelist function has been removed from the transformer area identification code function, but other services still need to be implemented, such as meter reading, concurrent meter reading, active registration, broadcast time synchronization, and sub-node upgrades, which require joint operation by the Central Coordinator (CCO) and the Stations (STAs), the real-time online list jointly maintained by the application layer and data link layer of the CCO can meet the requirements for the rapid and accurate implementation of these functions.
[0090] The real-time online list in this embodiment of the invention enables rapid communication between the Central Coordinator (CCO) and each Station (STA) in the network when the whitelist function is disabled, thereby satisfying the implementation of various interactive functions at the application layer and improving the flexibility of application layer development.
[0091] Figure 7 This is a schematic diagram of an electronic device according to an embodiment of the present invention. The electronic device of this embodiment can be applied to the aforementioned Central Coordinator (CCO). For example... Figure 7 As shown, Figure 7 The illustrated electronic device is a general address lookup device, comprising a general computer hardware architecture, including at least a processor 71 and a memory 72. The processor 71 and memory 72 are connected via a bus 73. The memory 72 is adapted to store instructions or programs executable by the processor 71. The processor 71 can be a standalone microprocessor or a collection of one or more microprocessors. Thus, the processor 71 executes the instructions stored in the memory 72, thereby performing the method flow of the embodiments of the present invention as described above to process data and control other devices. The bus 73 connects the aforementioned components together, and also connects these components to a display controller 74, a display device, and an input / output (I / O) device 75. The input / output (I / O) device 75 can be a mouse, keyboard, modem, network interface, touch input device, motion-sensing input device, printer, and other devices known in the art. Typically, the input / output device 75 is connected to the system via an input / output (I / O) controller 76.
[0092] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus (devices), or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0093] This application is described with reference to flowchart illustrations of methods, apparatus (devices), and computer program products according to embodiments of this application. It should be understood that each step in the flowchart can be implemented by computer program instructions.
[0094] These computer program instructions may be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including an instruction means, the implementation process of which is described in the instruction means. Figure 1 The function specified in one or more processes.
[0095] These computer program instructions may also be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing device, produce instructions for implementing processes. Figure 1 A device for a function specified in one or more processes.
[0096] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program for use by a computer to execute some or all of the above-described method embodiments.
[0097] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program specifying the relevant hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0098] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. An information transmission method, characterized in that, The method includes: The master node's data link layer maintains an online list in real time based on the online status of each slave node in the network. This online list reflects the actual network node information and is a dynamic list that changes in real time according to the network configuration. The online list is synchronized to the application layer of the master node through the information synchronization interface set between the application layer and the data link layer. The application layer determines the target node set based on the online list; The corresponding message is sent to the slave node in the set of destination nodes through the data link layer; The master node's data link layer maintains an online list in real time based on the online status of each slave node in the network, including: The online status of each slave node in the network is detected, including detection during the node's network entry phase and detection during the network maintenance phase after the node enters the network; In response to the detection of a new slave node in the network, the new slave node is recorded in the online list; In response to detecting that a slave node in the network has gone offline, the offline slave node is removed from the online list.
2. The method according to claim 1, characterized in that, The online list includes node information for each of the online slave nodes, and the node information is a combination of one or more of the following: node name, node ID, node device type, device manufacturer, and device phase.
3. The method according to claim 1, characterized in that, The message is a query for slave node registration information, and the method further includes: Receive the slave node registration information from the corresponding slave node.
4. The method according to claim 1, characterized in that, The message is a query for child node ID information, and the method further includes: Receive and store the response ID information from the corresponding slave node.
5. The method according to claim 1, characterized in that, The message can be a meter reading command, a concurrent meter reading command, a broadcast time synchronization command, or a child node upgrade command.
6. A network architecture for a device, characterized in that, The network architecture includes at least the application layer, data link layer, and physical layer; An information synchronization interface is provided between the application layer and the data link layer. The information synchronization interface is used to synchronize the online list, which is used to represent the real-time online status of each slave node in the network. The data link layer is used to implement network management and maintain the online list in real time according to the network topology. The application layer is used to transmit information with each slave node in the network through the data link layer according to the online list. The online list is used to reflect the actual network node information and is a dynamic list that changes in real time according to the network topology. The data link layer is divided into a network management sublayer and a media access control sublayer. The network management sublayer is used to realize the networking, network maintenance, routing management, and aggregation and distribution of application messages in the high-speed carrier communication network; The media access control sublayer is used to compete for physical channels through a channel access mechanism to achieve reliable transmission of data packets; The step of maintaining the online list in real time according to the network topology includes: The online status of each slave node in the network is detected, including detection during the node's network entry phase and detection during the network maintenance phase after the node enters the network; In response to the detection of a new slave node in the network, the new slave node is recorded in the online list; In response to detecting that a slave node in the network has gone offline, the offline slave node is removed from the online list.
7. An electronic device, the electronic device comprising a memory and a processor, characterized in that, The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method as described in any one of claims 1-5.
8. A computer-readable storage medium storing computer program instructions thereon, characterized in that, The computer program instructions, when executed by a processor, implement the method as described in any one of claims 1-5.
Citation Information
Patent Citations
Low voltage power line broadband carrier communication network fault diagnostic device and method
CN105591826A