Network communication method, device and system
By performing time synchronization and service information processing in the self-organizing network system, and allocating static time slots to legal nodes, the problem of low network communication efficiency in the existing technology is solved, and more efficient network self-organization and communication efficiency are achieved.
Patent Information
- Application Number
- CN202111536940.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-15
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-12-15
AI Technical Summary
The existing ad hoc network system structure is bloated and the network self-organization efficiency is low, resulting in low network communication efficiency and a waste of communication resources.
The first node initiates time synchronization to the second node, and when receiving the service information of the second node, allocates static time slots to legal nodes to achieve network communication and improve the flexibility of time slot allocation and communication efficiency.
It improves the efficiency of network self-organization and networking communication, reduces the waste of communication resources, and enhances the communication performance of the networking system.
Smart Images

Figure CN114222369B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of networking communication technology, and in particular to a networking communication method, device and system. Background Art
[0002] Self-organizing networks have the characteristics of dynamically establishing new connections to other nodes, and can realize functions such as self-repair, multi-hop cascading, and node self-management, which can greatly reduce the cost and complexity of network deployment.
[0003] However, the current ad hoc network system has a bloated structure, low network self-organization efficiency, wastes communication resources, and reduces the communication efficiency of the entire network communication system. Therefore, how to improve the network self-organization efficiency and communication efficiency of the network communication system is a technical problem that needs to be solved urgently.
[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present invention is to provide a networking communication method, device, equipment and storage medium, aiming to solve the technical problem of low efficiency of current networking communication.
[0006] To achieve the above object, the present invention provides a networking communication method, which is used for a first node, wherein the first node is communicatively connected with at least one second node, and the method comprises the following steps:
[0007] When receiving the network access instruction, send synchronization information to at least one second node, so that the second node completes time synchronization with the first node according to the synchronization information;
[0008] If the service information sent by the second node is detected, judging whether the second node is a legitimate node according to the service information, and if so, adding the second node to the network and allocating a static time slot to the second node;
[0009] In the static time slot corresponding to the second node, communication data sent by the second node is received.
[0010] Optionally, the service information includes a source node identifier; and the step of determining whether the second node is a legal node according to the service information specifically includes:
[0011] Extracting the source node identifier in the service information, and calling the node identifier list corresponding to the legal sending node stored in the first node;
[0012] The node identifier list is traversed using the source node identifier. If the source node identifier matches any node identifier in the node identifier list, the second node is a legal node.
[0013] Optionally, the second node includes a subnode and a relay node, and the service information further includes networking identity information; if the service information sent by the second node is detected, the step of determining whether the second node is a legitimate node according to the service information specifically includes:
[0014] If service information sent by the second node is detected, extracting the networking identity information in the service information, and determining the type of the second node based on the networking identity information;
[0015] If the second node is a child node, executing the step of determining whether the second node is a legal node according to the service information;
[0016] If the second node is a relay node, it is determined whether the child node corresponding to the second node is a legitimate node according to the service information. If so, the child node corresponding to the second node is added to the network and a static time slot is allocated to the child node corresponding to the second node.
[0017] Optionally, the second node is a relay node; and the step of receiving, in a static time slot corresponding to the second node, communication data sent by the second node specifically includes:
[0018] In a static time slot of a subnode corresponding to the second node, communication data sent by the subnode corresponding to the second node and forwarded by the second node is received.
[0019] Optionally, the service information further includes service application information and service response information; and the method further includes:
[0020] If the service information sent by the second node is received, extracting the service application information in the service information;
[0021] A service response message is sent to the second node, and a dynamic time slot is allocated to the second node, so that the second node sends communication data to the first node within the dynamic time slot.
[0022] Optionally, the networking communication method further includes:
[0023] Determine whether the second node is an offline node; wherein the offline node is a second node that has not received synchronization information within a preset time;
[0024] If yes, clear the static time slot allocated by the first node to the second node.
[0025] In addition, in order to achieve the above object, the present invention also provides a networking communication method for a second node, wherein at least one of the second nodes is communicatively connected with a first node, and the method comprises the following steps:
[0026] When receiving synchronization information sent by the first node, completing time synchronization with the first node according to the synchronization information;
[0027] Sending service information to the first node to obtain a static time slot allocated by the first node;
[0028] In the static time slot, communication data is sent to the first node.
[0029] In addition, in order to achieve the above object, the present invention further provides a networking communication device, which is used for a first node, and the networking communication device includes:
[0030] A synchronization information sending module, configured to send synchronization information to at least one second node upon receiving a network access instruction, so that the second node completes time synchronization with the first node according to the synchronization information;
[0031] A static time slot allocation module, configured to, if the service information sent by the second node is detected, determine whether the second node is a legitimate node according to the service information, and if so, add the second node to the network and allocate a static time slot to the second node;
[0032] The communication data receiving module is used to receive the communication data sent by the second node in the static time slot corresponding to the second node.
[0033] In addition, in order to achieve the above object, the present invention also provides a networking communication device for a second node, the networking communication device comprising:
[0034] A synchronization information receiving module, configured to complete time synchronization with the first node according to the synchronization information when the synchronization information sent by the first node is received;
[0035] A service information sending module, used for sending service information to the first node to obtain a static time slot allocated by the first node;
[0036] A communication data sending module is used to send communication data to the first node in the static time slot.
[0037] In addition, in order to achieve the above-mentioned object, the present invention further provides a networking communication system, the networking communication system comprising a first node and at least one second node, the first node being communicatively connected with the at least one second node, wherein:
[0038] The first node includes: a memory, a processor, and a networking communication program stored in the memory and executable on the processor, wherein the networking communication program implements the steps of the networking communication method described above when executed by the processor;
[0039] The second node includes: a memory, a processor, and a networking communication program stored in the memory and executable on the processor, wherein the networking communication program implements the steps of the above-mentioned networking communication method when executed by the processor.
[0040] The embodiment of the present invention proposes a networking communication method, device and system, the method includes sending synchronization information to at least one second node upon receiving a network access instruction, so that the second node completes time synchronization with the first node according to the synchronization information; if the service information sent by the second node is detected, judging whether the second node is a legal node according to the service information, if so, adding the second node to the network and allocating a static time slot to the second node; receiving the communication data sent by the second node in the static time slot corresponding to the second node. The present invention initiates time synchronization to the second node through the first node, and when receiving the service information of the second node, allocates a static time slot for sending communication data to the second node that is a legal node, so that the second node communicates in the network, the second node applies for the time slot through the service information, and the first node realizes self-networking according to the application, thereby improving the flexibility of time slot allocation in networking communication and improving the efficiency of network self-organization and networking communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of the structure of a networking communication system in an embodiment of the present invention;
[0042] Figure 2 A schematic diagram of the structure of a first node and a second node in an embodiment of the present invention;
[0043] Figure 3 A schematic diagram of a flow chart of a first embodiment of a networking communication method of the present invention;
[0044] Figure 4 A schematic diagram of the structure of synchronization information in an embodiment of the present invention;
[0045] Figure 5 A schematic diagram of the structure of service information in an embodiment of the present invention;
[0046] Figure 6 This is a schematic diagram of a node accessing a network with a single hop according to an embodiment of the present invention;
[0047] Figure 7 A schematic diagram of a node relaying network access in an embodiment of the present invention;
[0048] Figure 8 A schematic diagram of the structure of communication data in an embodiment of the present invention;
[0049] Fig. 9 A schematic diagram of a flow chart of a second embodiment of a networking communication method of the present invention;
[0050] Fig.10 It is a structural block diagram of a first embodiment of a networking communication device in an embodiment of the present invention;
[0051] Fig.11 It is a structural block diagram of a second embodiment of a networking communication device in an embodiment of the present invention.
[0052] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0053] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0054] Self-organizing networks have the characteristics of dynamically establishing new connections to other nodes, and can realize functions such as self-repair, multi-hop cascading, and node self-management, which can greatly reduce the cost and complexity of network deployment.
[0055] However, the current ad hoc network system has a bloated structure, low network self-organization efficiency, wastes communication resources, and reduces the communication efficiency of the entire network communication system. Therefore, how to improve the network self-organization efficiency and communication efficiency of the network communication system is a technical problem that needs to be solved urgently.
[0056] In order to solve this problem, various embodiments of the networking communication method of the present invention are proposed. The networking communication method provided by the present invention initiates time synchronization from a first node to a second node, and when receiving the service information of the second node, allocates a static time slot for sending communication data to the second node, which is a legal node, so that the second node can communicate within the network, the second node applies for the time slot through the service information, and the first node realizes self-networking according to the application, thereby improving the flexibility of time slot allocation in networking communication and improving the efficiency of network self-organization and networking communication.
[0057] Reference Figure 1 , Figure 1 Schematic diagram of the structure of the networking communication system in an embodiment of the present invention.
[0058] In this embodiment, the networking communication system includes a first node 100 and at least one second node 200, wherein the first node 100 is communicatively connected with the at least one second node 200, wherein:
[0059] The first node 100 includes: a memory, a processor, and a networking communication program stored in the memory and executable on the processor, wherein the networking communication program implements the steps of the networking communication method for the first node 100 when executed by the processor;
[0060] The second node 200 includes: a memory, a processor, and a networking communication program stored in the memory and executable on the processor, wherein the networking communication program implements the steps of the networking communication method for the second node 200 when executed by the processor.
[0061] Reference Figure 2 , Figure 2 Schematic diagram of the structure of the first node and the second node in an embodiment of the present invention.
[0062] The first node and the second node may be user equipment (UE) such as a mobile phone, a smart phone, a laptop, a digital broadcast receiver, a personal digital assistant (PDA), a tablet computer (PAD), a handheld device, a vehicle-mounted device, a wearable device, a computing device or other processing device connected to a wireless modem, a mobile station (MS), etc. The first node and the second node may be referred to as a user terminal, a portable terminal, a desktop terminal, etc.
[0063] Typically, the first node and the second node include: at least one processor 301, a memory 302, and a networking communication program stored in the memory and executable on the processor, wherein the networking communication program is configured to implement the steps of the networking communication method as described above.
[0064] The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 301 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. The processor 301 may also include an AI (Artificial Intelligence) processor, which is used to process related networking communication operations so that the networking communication model can be trained and learned autonomously to improve efficiency and accuracy.
[0065] The memory 302 may include one or more computer-readable storage media, which may be non-transitory. The memory 302 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 302 is used to store at least one instruction, which is used to be executed by the processor 301 to implement the networking communication method provided in the method embodiment of the present application.
[0066] In some embodiments, the terminal may further optionally include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected via a bus or a signal line. Each peripheral device may be connected to the communication interface 303 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 304, a display screen 305 and a power supply 306.
[0067] The communication interface 303 can be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 301 and the memory 302. The communication interface 303 is used to receive the movement trajectories and other data of multiple mobile terminals uploaded by users through the peripheral device. In some embodiments, the processor 301, the memory 302 and the communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the communication interface 303 can be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0068] The radio frequency circuit 304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 304 communicates with the communication network and other communication devices through electromagnetic signals, so as to obtain the movement trajectory and other data of multiple mobile terminals. The radio frequency circuit 304 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 304 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 304 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0069] The display screen 305 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to collect touch signals on the surface or above the surface of the display screen 305. The touch signal can be input to the processor 301 as a control signal for processing. At this time, the display screen 305 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 305 can be one, the front panel of the electronic device; in other embodiments, the display screen 305 can be at least two, respectively arranged on different surfaces of the electronic device or in a folding design; in some further embodiments, the display screen 305 can be a flexible display screen, arranged on a curved surface or a folding surface of the electronic device. Even, the display screen 305 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 305 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0070] The power supply 306 is used to power various components in the electronic device. The power supply 306 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 306 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0071] Those skilled in the art will understand that Figure 2 The structure shown in the figure does not constitute a limitation on the first node and the second node, and may include more or less components than shown in the figure, or combine some components, or arrange the components differently.
[0072] The embodiment of the present invention provides a networking communication method, referring to Figure 3 , Figure 3 It is a flowchart of the first embodiment of the networking communication method of the present invention.
[0073] In this embodiment, the networking communication method is used for the first node, and the networking communication method includes the following steps:
[0074] Step S100: upon receiving a network access instruction, sending synchronization information to at least one second node, so that the second node completes time synchronization with the first node according to the synchronization information.
[0075] Specifically, in a networking communication system, if the first node sends a synchronization signal to the second node after the system is powered on and initialized to achieve time synchronization between the second node and the first node, at the same time, the first node waits for the second node to send service information and allocates time slots according to the service information.
[0076] Among them, the first node is usually the master node, and the second node is usually the slave node. After the first node is powered on and initialized, the internal time slot table of the first node is first configured, and synchronization information is cyclically sent to each second node, and service information is sent and received to the second node.
[0077] It should be noted that synchronization information such as Figure 4 As shown, it includes a preamble, a protection frame header, a data type TYPE, a data packet source node ID, a data packet destination node ID, a networking identity, and a data payload.
[0078] Among them, the preamble is a 255-bit PN code, which is used for frame synchronization. The protection frame header is a fixed fill of 0xFF. For the data type TYPE field, it indicates synchronization information and communication information. The data packet source node ID and the data packet destination node ID are parameters specified by the network or user, and are the unique identification numbers of each node in the network. The former indicates the address of the data packet sender, and the latter is the address of the data packet receiver. The smaller the number, the higher the priority of the node in the first node competition. The nodes in the network will initially synchronize to the node with a smaller ID number. The network identity indicates the status of the current synchronization data packet sender node. The network identity = 0x01 indicates that the node is the first node synchronization information broadcast, and the network identity = 0x03 indicates that the node is the initial power-on isolated node sending a HELLO packet to broadcast synchronization information. The data load mainly includes two parts: the time calibration RTT time, the working mode of the node, and the superframe number. Among them, the RTT time is the time slot moment record value sent by the node, which is used to estimate and compensate the transmission delay between the slave node or relay node and the first node, so as to achieve precise synchronization and synchronization maintenance of the whole network clock. The working mode information identifies whether the node has exited the network or silent operation, which will affect the change of network topology. The superframe number refers to the order of the current frame in the superframe. Only when the synchronization frame network identity = 0x01, the value from 1 to 5 indicates the second of the current frame in the 5-second superframe; when the network identity = 0x03, the value remains 1.
[0079] Step S200: If the service information sent by the second node is detected, determine whether the second node is a legitimate node based on the service information. If so, add the second node to the network and allocate a static time slot to the second node.
[0080] Specifically, the second node sends service information to the first node, and the first node detects whether the second node is a legitimate node. If so, the second node is added to the network to complete the network access.
[0081] Specifically, service information such as Figure 5 As shown, it includes a preamble, a protection frame header, a data type TYPE, a data packet source node ID, a data packet destination node ID, a networking identity, an application response, and a data payload.
[0082] Among them, the preamble is used for frame synchronization to realize synchronous reception from the node to the master node; the protection frame header is fixedly filled with 0xFF. For the data type TYPE field, it is used to distinguish between service information or communication data; the data packet source node ID and the data packet destination node ID are parameters specified by the network or user, and are the unique identification numbers of each node in the network. The former represents the address of the data packet sender, and the latter is the address of the data packet receiver; the networking identity indicates the network status of the current service data packet sender node as a master node, a slave node, a powered-on isolated node (synchronous information broadcast) or a relay subnode; the application response is mainly used to distinguish between the service application of the subnode and the service forwarding of the relay node, indicating that the frame is a service request frame (the network status of the sender is a slave node or a relay subnode) or a service request forwarding frame (the sender The network status is a relay node), service response frame (the network status of the sender is a master node) or service response forwarding frame (the network status of the sender is a relay node); the data load mainly includes six parts: ① node status, ② RTT time, ③ working mode information, ④ network access authentication, ⑤ superframe number, ⑥ HopNum represents the number of hops between the sending node and the destination node, ⑦ TSNum represents the position of the frame in 1 second, ⑧ NBTotal represents the total number of neighbor nodes that the node can monitor, and the minimum value is 1, ⑨ NBNum represents the ID number of the neighbor node that the node can monitor, listed from small to large, and each ID occupies 1 byte.
[0083] It is easy to understand that the service information includes the source node identifier, that is, the data packet source node ID. When the first node determines whether the second node is a legal node based on the service information, it can extract the source node identifier in the service information and call the node identifier list corresponding to the legal sending node stored in the first node; use the source node identifier to traverse the node identifier list, if the source node identifier matches any node identifier in the node identifier list, then the second node is a legal node.
[0084] After networking, the first node and the second node rely on the interaction of service information to achieve network clock synchronization, node time slot application, topology adjustment and routing information update. After the node successfully joins the network, the slave node will record the time of service competition and periodically send service at this time within the superframe. The time synchronization protocol, node network competition protocol, relay node discovery protocol, secondary relay-based routing protocol and service time slot allocation protocol are completed through the synchronization frame.
[0085] It should be noted that the second node can be a child node or a relay node, and the service information uses the networking identity information, that is, the networking identity bit, to judge the type of the second node. Therefore, when judging whether the second node is a legitimate node, the service information sent by the second node can be monitored. If the service information sent by the second node is detected, the networking identity information in the service information is extracted, and the type of the second node is determined based on the networking identity information; if the second node is a child node, the step of judging whether the second node is a legitimate node according to the service information is executed; if the second node is a relay node, the child node corresponding to the second node is judged according to the service information. If so, the child node corresponding to the second node is added to the network, and a static time slot is allocated to the child node corresponding to the second node.
[0086] Step S300: receiving communication data sent by the second node in a static time slot corresponding to the second node.
[0087] Specifically, if the second node is a child node, the first node receives the communication data sent by the second node within the static time slot corresponding to the second node; if the second node is a relay node, the first node receives the communication data sent by the second node, specifically, receives the communication data sent by the child node corresponding to the second node and forwarded by the second node within the static time slot of the child node corresponding to the second node.
[0088] Specifically, between the first node and the second node, the source address and the destination address are defined according to the ID number, and the service delivery capability is distinguished according to the network access structure. According to the reachability relationship between the nodes, it is divided into single-hop network access and relay network access.
[0089] (1) Any node in the single-hop access network can synchronize with the master node, sense each other, and send and receive data through one hop. Figure 6 As shown, nodes B and C communicate with node A via one hop, service competition, network access application, and dynamic time slot application; at the same time, node A performs service response. The single-hop scenario only supports data services, voice services, and image / video services.
[0090] (2) Relay access: The distance from a node in the network to the main node is more than one hop. This system only considers the secondary relay communication networking mode. A node in the network can communicate with other nodes in the network through two hops. Figure 7 As shown in the figure, A is the main node, nodes B and C are single-hop sub-nodes, and node K enters the network through the relay of node B. In this scenario, the first node also needs to establish a relay routing table to record the relay information of network members, so as to obtain the number of members in the entire network and realize time slot allocation control.
[0091] In some embodiments, the service information includes service application information and service response information, i.e., the application response bit, and the second node can apply for a dynamic time slot from the first node based on the service information. Therefore, if the service information sent by the second node is received, the service application information in the service information is extracted; the service response information is sent to the second node, and a dynamic time slot is allocated to the second node, so that the second node sends communication data to the first node within the dynamic time slot.
[0092] In addition, in the transmission time slot, each node sends communication data on the static time slot or dynamic time slot allocated by the master node. For the relay node or the first node, the transmission time slot is divided into the local service transmission time slot and the relay service forwarding time slot. The relay forwarding time slot occupies the local transmission time slot, and the local transmission service has a higher priority. Figure 8 As shown, the communication data includes a preamble, a protection frame header, a data type TYPE, a data packet source node ID, a data packet destination node ID, a networking identity, a HopNum, and service information.
[0093] Among them, the preamble is the synchronization information synchronization code frame synchronization, which realizes the alignment of the receiving node data; the protection frame header is a fixed fill of 0xFF; for the data type TYPE field, TYPE=0xB6, which means business information; the data packet source node ID and the data packet destination node ID are parameters specified by the network or user, which are the unique identification numbers of each node in the network, the former represents the data packet sending address, and the latter is the data packet receiving end address; the networking identity indicates the network status of the current service data packet sending node, and the isolated child node cannot transmit business information, and HopNum represents the number of hops between the sending node and the destination node.
[0094] In some embodiments, the second node may be disconnected. In order to reasonably integrate time slot resources, it is necessary to determine whether the second node is an offline node; wherein, the offline node is a second node that has not received synchronization information within a preset time; if so, clear the static time slot allocated by the first node to the second node.
[0095] Specifically, in a networking system, when the first node or the second node gradually loses line of sight of the network or is interfered with, the node may become disconnected from the network and then exit the network; when the first node or the second node fails to receive any node information within 15 seconds, it indicates that the node has been disconnected from the network, and the node state is transferred to an isolated node; when the second node fails to detect synchronization information within 15 seconds, but can detect information from other nodes, it indicates that the node has been disconnected from the first node and needs to find a relay node to re-enter the network; when the second node cannot detect the relay node information within 15 seconds, it indicates that the node has been disconnected from the relay node and needs to find a relay node to re-enter the network or listen to the synchronization frame to enter the network; the first node or the relay node responds to the disconnection event by reclaiming the node time slot and clearing its node ID information.
[0096] In this embodiment, when a node in the networking system actively exits the network or accidentally disconnects from the network, the node can be deleted and the time slot can be recovered in a quick response, thereby improving the overall communication efficiency of the networking system.
[0097] The networking communication method provided in this embodiment initiates time synchronization from a first node to a second node, and upon receiving service information from the second node, allocates a static time slot for sending communication data to the second node, which is a legitimate node, so that the second node can communicate within the network. The second node applies for a time slot through the service information, and the first node implements self-networking based on the application, thereby improving the flexibility of time slot allocation in networking communications and improving the efficiency of network self-organization and networking communications.
[0098] For easier understanding, see Fig. 9 , Fig. 9 It is a flowchart of the second embodiment of the networking communication method of the present invention.
[0099] Based on Figure 3 The first embodiment of the networking communication method shown in the figure, in this embodiment, the networking communication method is used for the second node, and the networking communication method includes the following steps:
[0100] Step S600: When synchronization information sent by a first node is received, time synchronization with the first node is completed according to the synchronization information.
[0101] Specifically, in a networking communication system, if the first node sends a synchronization signal to the second node after the system is powered on and initialized to achieve time synchronization between the second node and the first node, at the same time, the first node waits for the second node to send service information and allocates time slots according to the service information.
[0102] Among them, the first node is usually the master node, and the second node is usually the slave node. After the first node is powered on and initialized, the internal time slot table of the first node is first configured, and synchronization information is cyclically sent to each second node, and service information is sent and received to the second node.
[0103] It should be noted that the synchronization information has been recorded in the above embodiment and will not be repeated in this embodiment.
[0104] Step S700: Send service information to the first node to obtain a static time slot allocated by the first node.
[0105] Step S800: sending communication data to the first node in the static time slot.
[0106] It is easy to understand that after the second node is time synchronized with the first node, it sends service information to the first node to obtain the static time slot allocated by the first node, and sends communication data to the first node in the static time slot.
[0107] In some embodiments, if the amount of communication data sent by the second node is large, the second node may apply for a dynamic time slot from the first node.
[0108] Specifically, the service information includes service application information and service response information, i.e., the application response bit. The second node can apply for a dynamic time slot from the first node based on the service information. Therefore, if the first node receives the service information sent by the second node, it extracts the service application information from the service information; sends service response information to the second node, and allocates a dynamic time slot to the second node, so that the second node sends communication data to the first node within the dynamic time slot.
[0109] It should be noted that the service information and communication data have been recorded in the above embodiments and will not be repeated in this embodiment.
[0110] The networking communication method provided in this embodiment is that the second node sends service information to the first node after time synchronization with the first node, so that the first node allocates a static time slot or a dynamic time slot to the second node according to the service information, and then the second node sends communication data to the first node in the static time slot or the dynamic time slot. The second node applies for a time slot through the service information, and the first node implements self-organizing networking according to the application, thereby improving the flexibility of time slot allocation in networking communication and improving the efficiency of network self-organization and networking communication.
[0111] Reference Fig.10 , Fig.10 This is a structural block diagram of the first embodiment of the networking communication device of the present invention.
[0112] like Fig.10 As shown, the networking communication device proposed in the embodiment of the present invention includes:
[0113] A synchronization information sending module 10, configured to send synchronization information to at least one second node upon receiving a network access instruction, so that the second node completes time synchronization with the first node according to the synchronization information;
[0114] The static time slot allocation module 20 is used to determine whether the second node is a legitimate node according to the service information if the service information sent by the second node is detected, and if so, add the second node to the network and allocate a static time slot to the second node;
[0115] The communication data receiving module 30 is used to receive the communication data sent by the second node in the static time slot corresponding to the second node.
[0116] As an implementation method, the service information includes a source node identifier, and the static time slot allocation module 20 is also used to extract the source node identifier in the service information, and call the node identifier list corresponding to the legal sending node stored in the first node; using the source node identifier, traverse the node identifier list, if the source node identifier matches any node identifier in the node identifier list, then the second node is a legal node.
[0117] As an implementation mode, the second node includes a child node and a relay node, the service information also includes networking identity information, and the static time slot allocation module 20 is also used to extract the networking identity information in the service information if the service information sent by the second node is detected, and determine the type of the second node based on the networking identity information; if the second node is a child node, execute the step of judging whether the second node is a legal node according to the service information; if the second node is a relay node, judge whether the child node corresponding to the second node is a legal node according to the service information, and if so, add the child node corresponding to the second node to the network, and allocate a static time slot to the child node corresponding to the second node.
[0118] As an implementation manner, the second node is a relay node, and the communication data receiving module 30 is further used to receive communication data sent by a subnode corresponding to the second node and forwarded by the second node within a static time slot of the subnode corresponding to the second node.
[0119] As an implementation mode, the service information also includes service application information and service response information, and the networking communication device also includes a dynamic time slot allocation module 40, and the dynamic time slot allocation module 40 is also used to extract the service application information in the service information if the service information sent by the second node is received; send service response information to the second node, and allocate a dynamic time slot to the second node so that the second node sends communication data to the first node within the dynamic time slot.
[0120] As an embodiment, the networking communication device also includes a time slot clearing module 50, and the time slot clearing module 50 is also used to determine whether the second node is an offline node; wherein the offline node is a second node that has not received synchronization information within a preset time; if so, clear the static time slot allocated by the first node to the second node.
[0121] The networking communication device provided in this embodiment initiates time synchronization to the second node through the first node, and when receiving the service information of the second node, allocates a static time slot for sending communication data to the second node which is a legal node, so that the second node can communicate within the network. The second node applies for the time slot through the service information, and the first node realizes self-organizing network according to the application, thereby improving the flexibility of time slot allocation in networking communication and improving the efficiency of network self-organization and networking communication.
[0122] Reference Fig.11 , Fig.11 This is a structural block diagram of the second embodiment of the networking communication device of the present invention.
[0123] Based on Fig.10 The first embodiment of the networking communication device shown in the figure, the networking communication device proposed in the embodiment of the present invention includes:
[0124] A synchronization information sending module 60, configured to send synchronization information to at least one second node upon receiving a network access instruction, so that the second node completes time synchronization with the first node according to the synchronization information;
[0125] The static time slot allocation module 70 is used to determine whether the second node is a legitimate node according to the service information if the service information sent by the second node is detected, and if so, add the second node to the network and allocate a static time slot to the second node;
[0126] The communication data sending module 80 is used to receive the communication data sent by the second node in the static time slot corresponding to the second node.
[0127] The networking communication device provided in this embodiment sends service information to the first node after the second node is synchronized with the first node, so that the first node allocates a static time slot or a dynamic time slot to the second node according to the service information, and then the second node sends communication data to the first node in the static time slot or the dynamic time slot. The second node applies for a time slot through the service information, and the first node implements self-organizing networking according to the application, thereby improving the flexibility of time slot allocation in networking communication and improving the efficiency of network self-organization and networking communication.
[0128] Other embodiments or specific implementations of the networking communication device of the present invention may refer to the above-mentioned method embodiments and will not be described in detail here.
[0129] In addition, an embodiment of the present invention further proposes a storage medium, on which a networking communication program is stored, and when the networking communication program is executed by a processor, the steps of the networking communication method described above are implemented. Therefore, it will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the program instructions can be deployed to be executed on one computing device, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network.
[0130] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0131] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without creative work.
[0132] Through the description of the above implementation mode, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present invention, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
Claims
1. A networking communication method, It is characterized in that For a first node, the first node being communicatively connected to at least one second node, the method comprising the following steps: When receiving the network access instruction, send synchronization information to at least one second node, so that the second node completes time synchronization with the first node according to the synchronization information; If the service information sent by the second node is detected, judging whether the second node is a legitimate node according to the service information, and if so, adding the second node to the network and allocating a static time slot to the second node; receiving, in a static time slot corresponding to the second node, communication data sent by the second node; The service information includes a source node identifier; the step of determining whether the second node is a legal node according to the service information specifically includes: Extracting the source node identifier in the service information, and calling the node identifier list corresponding to the legal sending node stored in the first node; Using the source node identifier, traverse the node identifier list, if the source node identifier matches any node identifier in the node identifier list, the second node is a legal node; The second node includes a subnode and a relay node, and the service information also includes networking identity information; if the service information sent by the second node is detected, the step of determining whether the second node is a legitimate node according to the service information specifically includes: If service information sent by the second node is detected, extracting the networking identity information in the service information, and determining the type of the second node based on the networking identity information; If the second node is a child node, executing the step of determining whether the second node is a legal node according to the service information; If the second node is a relay node, it is determined whether the child node corresponding to the second node is a legitimate node according to the service information. If so, the child node corresponding to the second node is added to the network and a static time slot is allocated to the child node corresponding to the second node.
2. The networking communication method according to claim 1, It is characterized in that The second node is a relay node; and the step of receiving, in a static time slot corresponding to the second node, communication data sent by the second node specifically includes: In a static time slot of a subnode corresponding to the second node, communication data sent by the subnode corresponding to the second node and forwarded by the second node is received.
3. The networking communication method according to claim 1, It is characterized in that The service information also includes service application information and service response information; the method also includes: If the service information sent by the second node is received, extracting the service application information in the service information; A service response message is sent to the second node, and a dynamic time slot is allocated to the second node, so that the second node sends communication data to the first node within the dynamic time slot.
4. The networking communication method according to claim 1, It is characterized in that The method further comprises: Determine whether the second node is an offline node; wherein the offline node is a second node that has not received synchronization information within a preset time; If yes, clear the static time slot allocated by the first node to the second node.
5. A networking communication device, It is characterized in that The device is used to execute the networking communication method according to claim 1, and is used for a first node, and the networking communication device includes: A synchronization information sending module, configured to send synchronization information to at least one second node upon receiving a network access instruction, so that the second node completes time synchronization with the first node according to the synchronization information; A static time slot allocation module, configured to, if the service information sent by the second node is detected, determine whether the second node is a legitimate node according to the service information, and if so, add the second node to the network and allocate a static time slot to the second node; The communication data receiving module is used to receive the communication data sent by the second node in the static time slot corresponding to the second node.
6. A networking communication device, It is characterized in that The device is used to execute the networking communication method according to claim 1, and is used for a second node, and the networking communication device includes: A synchronization information receiving module, configured to complete time synchronization with the first node according to the synchronization information when the synchronization information sent by the first node is received; A service information sending module, used for sending service information to the first node to obtain a static time slot allocated by the first node; A communication data sending module is used to send communication data to the first node in the static time slot.
7. A networking communication system, It is characterized in that The networking communication system includes a first node and at least one second node, wherein the first node is communicatively connected with the at least one second node, wherein: The first node comprises: a memory, a processor, and a networking communication program stored in the memory and executable on the processor, wherein the networking communication program implements the steps of the networking communication method according to any one of claims 1 to 4 when executed by the processor; The second node includes: a memory, a processor, and a networking communication program stored in the memory and executable on the processor, wherein the networking communication program implements the steps of the networking communication method according to claim 1 when executed by the processor.
