CN115550908A - 2.4G network communication system and method based on TDMA - Google Patents

2.4G network communication system and method based on TDMA Download PDF

Info

Publication number
CN115550908A
CN115550908A CN202211496225.1A CN202211496225A CN115550908A CN 115550908 A CN115550908 A CN 115550908A CN 202211496225 A CN202211496225 A CN 202211496225A CN 115550908 A CN115550908 A CN 115550908A
Authority
CN
China
Prior art keywords
network
node
terminal
central node
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211496225.1A
Other languages
Chinese (zh)
Other versions
CN115550908B (en
Inventor
盛立国
谢保松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Silent Communication Technology Co ltd
Original Assignee
Chengdu Silent Communication Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Silent Communication Technology Co ltd filed Critical Chengdu Silent Communication Technology Co ltd
Priority to CN202211496225.1A priority Critical patent/CN115550908B/en
Publication of CN115550908A publication Critical patent/CN115550908A/en
Application granted granted Critical
Publication of CN115550908B publication Critical patent/CN115550908B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0446Resources in time domain, e.g. slots or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention belongs to the technical field of network communication, and relates to a 2.4G network communication system and method based on TDMA (time division multiple access), wherein the method comprises the following steps: the central node establishes a network, allocates equipment IDs of all terminal nodes in the network according to the network access sequence of the terminal nodes, determines communication time slots of all the terminal nodes, and simultaneously monitors the online states of all the terminal nodes in the network; after the terminal node is powered on, the scanning unit scans the network of the central node and periodically sends a request to the central node for network access; the central node periodically sends synchronous broadcast frame data, all terminal nodes synchronize clocks after receiving the synchronous broadcast frame data, and equipment node information is updated. The invention divides all nodes in the network into a plurality of periods for communication by the time division multiple access principle, avoids channel conflict, improves the reliability of communication under the condition of multi-node networking and communication, and simultaneously, the central node quickly and stably detects the online condition of the nodes in the network.

Description

2.4G network communication system and method based on TDMA
Technical Field
The invention belongs to the technical field of network communication, and particularly relates to a 2.4G network communication system and method based on TDMA.
Background
2.4GHz is an ISM (Industrial Scientific Medical, industrial, scientific, medical) band. In urban environments, the transmission power cannot exceed 100mW. Wireless networks such as a wireless local area network (IEEE 802.11b/IEEE 802.11 g), bluetooth, zigBee and the like can work on a 2.4GHz frequency band.
Under the condition of multi-node networking and communication, channel communication is easy to conflict, the reliability of a communication system is poor, and meanwhile, the online condition of nodes in the network cannot be detected.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides a TDMA-based 2.4G network communication system and method.
In a first aspect, the present invention provides a TDMA-based 2.4G network communication system, comprising: the central node and a plurality of terminal nodes;
the central node is used for establishing a network, distributing the equipment ID of each terminal node in the network according to the network access sequence of the terminal nodes, determining the communication time slot of each terminal node and monitoring the online state of all the terminal nodes in the network;
the central node is provided with an equipment ID table and a first wireless data sending buffer area; the equipment ID table is used for storing equipment node information added into the network; the first wireless data sending buffer area is used for storing serial port transparent transmission data and heartbeat data;
the terminal node is provided with a second wireless data sending buffer area and a scanning unit; after the terminal node is powered on, the scanning unit scans the network of the central node and periodically sends a request to the central node for network access; after the network is accessed, each terminal node performs heartbeat detection in each communication time slot;
and the central node periodically sends synchronous broadcast frame data, and all the terminal nodes synchronize clocks after receiving the synchronous broadcast frame data and update the equipment node information.
In a second aspect, the present invention provides a TDMA-based 2.4G network communication method, including:
the method comprises the steps that a central node establishes a network, distributes equipment IDs of all terminal nodes in the network according to the network access sequence of the terminal nodes, determines communication time slots of all the terminal nodes, and simultaneously monitors the online states of all the terminal nodes in the network; the equipment ID table stores the node information of the equipment which joins the network;
the central node is provided with a first wireless data sending buffer area; the first wireless data sending buffer area stores serial port transparent transmission data and heartbeat data;
the terminal node is provided with a second wireless data sending buffer area and a scanning unit; after the terminal node is powered on, scanning the network of the central node and periodically sending a request to the central node for network access; after the network is accessed, each terminal node performs heartbeat detection in each communication time slot;
and the central node periodically sends synchronous broadcast frame data, and all the terminal nodes synchronize clocks after receiving the synchronous broadcast frame data and update the equipment ID table.
The invention has the beneficial effects that: the invention divides all nodes in the network into a plurality of periods for communication by the time division multiple access principle, avoids channel conflict and improves the reliability of communication under the condition of multi-node networking and communication, and meanwhile, the central node can quickly and stably detect the online condition of the nodes in the network.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, when the central node performs serial port transparent transmission of data, the central node stores the serial port transparent transmission data in the first wireless data sending buffer area, and when a broadcast time slot of the central node arrives, the central node sends the serial port transparent transmission data in the first wireless data sending buffer area; when the terminal node conducts serial port transparent transmission data transparent transmission, the terminal node stores the serial port transparent transmission data in the second wireless data sending buffer area; and when the terminal node receives the synchronous broadcast frame data, the serial port transparent transmission data in the second wireless data transmission buffer area is transmitted.
Further, the process of accessing the network by the terminal node includes:
the central node is powered on, whether a flash memory of the central node stores network information or not is judged, and if the network information is stored, the stored network is recovered; otherwise, if not, a network is established;
the method comprises the steps that a terminal node is powered on, whether a flash memory of the terminal node stores network information is judged, if yes, the terminal node periodically sends a network recovery request in a first period, if a central node is online and in an idle state and a device ID table of the central node has a space, the terminal node successfully replies the network request to the terminal node, meanwhile, the network state of the terminal node corresponding to the device ID table is updated to be an online state, the terminal node recovers the network state after receiving the reply of the central node, and the network state is an online state; otherwise, if the terminal node does not store the network information, the terminal node periodically sends a network access request at a first period, if the central node is online and in an idle state and the device ID table memory of the central node has a space, the central node responds to the terminal node to allow network access, and the terminal node sends the MAC address of the terminal node to apply for the device ID from the central node; and the central node allocates a device ID according to the network access sequence of the terminal nodes, sends the device ID and the network information to the terminal nodes, stores the device ID and the MAC address of the terminal nodes into a device ID table, and stores the device ID and the MAC address of the terminal nodes in a flash memory of the terminal nodes when the terminal nodes receive the allocated device ID, so that the network access is successful.
Further, the value of the period for transmitting the synchronous broadcast frame data by the central node is equal to the product of the number of the terminal nodes joining the network and the communication time slot of each terminal node.
Further, the terminal node is powered on, a network access request frame is sent in a first period to scan the central node, if the response of the central node is received, the network access request frame is stopped to be sent, if the sending times are greater than the set times, the network access request frame is stopped to be sent, the central node is not on line, and the network access of the terminal node fails.
Further, when the central node sends the serial port transparent transmission data to the terminal node for data transparent transmission, the serial port transparent transmission data comprises a target address; the destination address is a device ID.
Further, the heartbeat detection includes:
the central node distribution network is used for setting the number of the terminal nodes added into the network;
the terminal nodes are sequentially electrified to access the network, and the central node sequentially distributes equipment IDs for the terminal nodes;
after the terminal node joins the network, the central node periodically sends the data of the first wireless data sending buffer area to the terminal node;
after receiving the data of the first wireless data sending buffer area, the terminal node in the network synchronizes a local timer and sequentially broadcasts and sends the data of the second wireless data sending buffer area in a timing manner;
after receiving the data of the second wireless data transmission buffer area, the central node judges whether the terminal nodes in the equipment ID table broadcast the data of the first wireless data transmission buffer area;
if the central node detects that any terminal node does not broadcast the data of the second wireless data transmission buffer area in the period, the terminal node is disconnected, a serial port outputs the disconnection information of the terminal node, and meanwhile, the online state of the terminal node in an equipment ID table is updated to be the disconnection state;
and if the terminal node does not receive the data of the first wireless data sending buffer area of the central node in the period, the terminal node detects that the terminal node is disconnected from the network.
Further, the device node information includes a device ID, an online status of the terminal node in the network, and a globally unique MAC physical address of the device.
Drawings
Fig. 1 is a device ID table of a terminal node in a central node according to embodiment 1 of the present invention;
fig. 2 is a schematic diagram of a communication timeslot of a network node according to embodiment 1 of the present invention;
fig. 3 is a flow chart of a terminal node network access in embodiment 1 of the present invention;
fig. 4 is a flowchart of a heartbeat detection process in embodiment 1 of the present invention;
fig. 5 is a flowchart of a heartbeat detection process for increasing the number of terminal nodes in embodiment 1 of the present invention;
fig. 6 is a flow chart of transmitting serial transparent transmission data between central nodes in embodiment 1 of the present invention;
fig. 7 is a flow chart of transmitting serial transparent transmission data of a terminal node in embodiment 1 of the present invention;
fig. 8 is a flowchart of a TDMA-based 2.4G network communication method according to embodiment 2 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Example 1
As an embodiment, to solve the above technical problem, the present embodiment provides a TDMA (Time Division Multiple Access) -based 2.4G network communication system, including: the central node and a plurality of terminal nodes;
the central node is used for establishing a network, distributing equipment IDs of all terminal nodes in the network according to the network access sequence of the terminal nodes, determining communication time slots of all the terminal nodes and monitoring the online states of all the terminal nodes in the network;
the central node is provided with an equipment ID table and a first wireless data sending buffer area; the equipment ID table is used for storing the information of the equipment nodes added into the network; the first wireless data sending buffer area is used for storing serial port transparent transmission data and heartbeat data;
the terminal node is provided with a second wireless data sending buffer area and a scanning unit; after the terminal node is powered on, the scanning unit scans the network of the central node and periodically sends a request to the central node for network access; after the network is accessed, each terminal node performs heartbeat detection in each communication time slot;
the central node periodically sends synchronous broadcast frame data, all terminal nodes synchronize clocks after receiving the synchronous broadcast frame data, and equipment node information is updated.
The invention divides all nodes in the network into a plurality of periods for communication by the time division multiple access principle, avoids channel conflict and improves the reliability of communication under the condition of multi-node networking and communication, and meanwhile, the central node can quickly and stably detect the online condition of the nodes in the network.
In the actual application process, the device ID of the central node in the device ID table is constantly 0. As shown in fig. 1, in the device ID table of the terminal node in the central node, the device IDs of the terminal nodes are allocated by the central node after accessing the network, and the device ID values of the terminal nodes are arranged in the network access order from 1, for example, the device ID of the first terminal node accessing the network is 1, the device ID of the second terminal node accessing the network is 2, and so on, the device ID values determine the communication time slots of all terminal nodes in the network, and it is ensured that each terminal node communicates in its own time slot, and no channel collision occurs.
The method comprises the steps that a terminal node network scans a period T1 and the maximum scanning times M1, when the terminal node is powered on, the network existing in the current environment can be scanned in the period T1, the maximum scanning is performed for M1 times until the C node network is scanned to request network access, and if the network is not found in the maximum scanning of M1 times, the scanning is stopped, so that the power consumption is saved.
Setting a first wireless data sending buffer area in a central node as buffer0, storing serial port transparent transmission data in the buffer0 when the serial port transparent transmission data arrives, sending a synchronous broadcast frame to broadcast in a period T2 by the central node when no serial port transparent transmission data arrives, receiving synchronous clocks of the data by all terminal nodes in a network, and keeping the clocks of all terminal nodes in the network consistent.
In the practical application process, the values of M1, T1 and T2 may be configured and modified according to different applications.
And setting a second wireless data sending buffer area of the terminal node as buffer1, wherein the second wireless data sending buffer area is used for storing wirelessly sent data, when serial port transparent transmission data arrives, the transparent transmission data is stored in the buffer1, when no serial port transparent transmission data arrives, heartbeat data is stored in the buffer1, and after the terminal node receives the synchronous broadcast frame of the central node, the data in the buffer1 is sent out within 5ms of the ID of the delay device.
Optionally, when the central node performs the serial port transparent transmission of the data, the central node stores the serial port transparent transmission data in the first wireless data sending buffer area, and when the broadcast time slot of the central node arrives, the central node sends the serial port transparent transmission data in the first wireless data sending buffer area; when the terminal node conducts the transparent transmission of the serial port transparent transmission data, the terminal node stores the serial port transparent transmission data in a second wireless data sending buffer area; and when the terminal node receives the synchronous broadcast frame data, the serial port transparent transmission data in the second wireless data transmission buffer area is transmitted.
Optionally, as shown in fig. 3, the process of accessing the network by the terminal node includes:
the method comprises the steps that a central node is powered on, whether a flash memory of the central node stores network information or not is judged, and if the network information is stored, the stored network is recovered; otherwise, if not, a network is established; the network information includes 2.4G network channels: 2405Mhz (11 channels) ~2480Mhz (26 channels).
The method comprises the steps that a terminal node is powered on, whether a flash memory of the terminal node stores network information is judged, if yes, the terminal node periodically sends a network recovery request in a first period, if a central node is on line and in an idle state and a device ID table memory of the central node has a space, the terminal node replies to the terminal node that the network request is successful, meanwhile, the network state of the corresponding terminal node in the device ID table is updated to be an on-line state, and after the terminal node receives the reply of the central node, the network state is recovered, and the network state is an on-line state;
if the central node is online and in an idle state, and a space exists in an equipment ID table memory of the central node, the equipment ID table responds to the terminal node to allow network access; the terminal node sends a Media Access Control Address (MAC Address) of the terminal node to apply for a device ID to the central node, the central node allocates a device ID according to the network Access sequence of the terminal node, sends the device ID and network information to the terminal node, stores the device ID and the MAC Address of the terminal node into a device ID table, and the terminal node receives the allocated device ID, succeeds in network Access and stores the device ID and the network information into a flash memory of the terminal node.
Optionally, the value of the period of the synchronous broadcast frame transmitted by the central node is equal to the product of the number of terminal nodes joining the network and the communication time slot of each terminal node. In an actual application process, as shown in fig. 2, a schematic diagram of communication timeslots of a network node is shown, where C is a central node, E1, E2, E3, E4, E5, E6, E7, E8, and E9 are terminal nodes, a communication timeslot of each terminal node is 5ms, a period of a synchronous broadcast frame sent by the central node is T2, and then T2=5ms × maximum device ID. The value of the broadcast period T2, T2 of the central node is equal to the number of terminal nodes participating in the network, 5ms, and the data delay T2 of buffer0 is sent, for example: if the number of terminal nodes joining the network is 100, the broadcast is performed periodically for 500 ms.
Optionally, the terminal node is powered on, and scans the central node by sending the network access request frame in a first period, and stops sending the network access request frame if the response of the central node is received, and stops sending the network access request frame if the sending times is greater than the set times, and the central node is not online, and the network access of the terminal node fails.
Optionally, when the central node sends the serial port transparent transmission data to the terminal node for data transparent transmission, the serial port transparent transmission data includes a target address; the destination address is a device ID. Specifically, the central node sends the transparent transmission data to the terminal node, the serial port transparent transmission data is stored in the buffer0, the data is provided with a target address, the target address is hexadecimal FF and then sent to all the devices, and the target address is device ID and then sent to the designated device. Similarly, the terminal node sends data to the central node, the serial port transparent transmission data is stored in the buffer1, the data is provided with a target address, the target address is the hexadecimal FF and then is sent to all the devices, and the target address is the device ID and then is sent to the specified device.
Optionally, as shown in fig. 4, each terminal node performs heartbeat detection in its respective communication time slot, where the heartbeat detection process includes:
the central node distribution network is used for setting the number N1 of terminal nodes added into the network;
the terminal nodes are sequentially electrified to be accessed into the network, and the central node sequentially distributes equipment IDs (identity) from 1 to N1 to the terminal nodes;
after the (N1) th terminal node joins the network, the central node periodically (the period T2 is N1 x 5 ms) sends the data of the first wireless data sending buffer area to the terminal node;
after receiving the data in the first wireless data sending buffer0, a terminal node in the network synchronizes a local timer, and broadcasts and sends the data in the second wireless data sending buffer1 at the timing (5 ms times the device ID time) in sequence;
after receiving the data in the second wireless data transmission buffer1, the central node judges whether the terminal nodes in the device ID table all broadcast the data in the second wireless data transmission buffer 1;
if the central node detects that any terminal node does not broadcast the data of the second wireless data transmission buffer area in the period, the terminal node is disconnected, the serial port outputs the disconnection information of the terminal node, and meanwhile, the online state of the terminal node in the equipment ID table is updated to be the disconnection state;
if the terminal node does not receive the data of the first wireless data sending buffer area of the central node in the period, the terminal node detects that the terminal node is disconnected from the network.
In addition, as shown in fig. 5, if the number of terminal nodes is increased on the basis of the paired network, a new terminal node is added. Modifying the number of the terminal nodes of the central node network to be N2, stopping broadcasting the buffer0 by the central node, and waiting for a new terminal node to access the network; and (3) the new terminal nodes are sequentially electrified to be accessed into the network, the central node sequentially distributes the equipment IDs from N1+1 to N2, and after the last terminal node is added into the network, the central node broadcasts the data in the buffer0 in a T2 period (N2 x 5 ms).
Specifically, after the central node establishes the network, when a terminal node is added to the network and simultaneously stored in the device ID table, the data in the buffer0 is periodically broadcast by starting the timer to time T2. After the terminal node receives the data in the buffer0 broadcasted by the central node, the timer realizes time synchronization so as to keep the time of all nodes in the network consistent, and the timer sends the data in the buffer1 by a timing device ID of 5 ms. And the central node judges whether the data of the terminal node buffer1 is received or not in a T2 period, if the data is received, the terminal node is on line, and if the data is not received, the central node feeds back that the terminal node in the network is off line. Similarly, the terminal node also judges whether the buffer0 data of the central node is received in the T2 period, if so, the terminal node is on line, and if not, the terminal node is off line.
Optionally, the device node information includes a device ID, an online status of the terminal node in the network, and a globally unique MAC physical address of the device.
As shown in fig. 6, the process of transmitting the transparent data by the serial port between the central nodes includes:
when the central node receives serial port transparent transmission data, the serial port transparent transmission data are stored in a buffer0, a source device ID and a target device ID are carried in the data, 0xFF is set to indicate that the serial port transparent transmission data are sent to all other nodes, and 1 to N2 are set to indicate that the serial port transparent transmission data are sent to specified terminal nodes (the device IDs are 1 to N2);
when a data broadcasting period T2 of a buffer0 of the central node comes, the data broadcasting in the buffer0 is sent;
when the terminal node receives the data of the buffer0, the network online of the terminal node is detected, meanwhile, whether the data in the buffer0 is serial port transparent transmission data or not is judged, if yes, whether the ID of the target device is the target device or not is further judged, and if yes, the data in the buffer0 is transmitted through the serial port.
As shown in fig. 7, a serial port transparent transmission data sending process of a terminal node includes:
when the terminal node receives the serial port transparent transmission data, the transparent transmission data is stored in a buffer1, the data carries a source device ID and a target device ID,0xFF represents that the data is transmitted to all other nodes, 1 to N2 represent that the data is transmitted to a specified terminal node, and 0 represents that the data is transmitted to a central node;
when a data transmission time slot of a terminal node arrives, data in the buffer1 is broadcasted and transmitted;
when the terminal node receives the data in the buffer1, judging whether the data in the buffer1 is serial port transparent transmission data, if so, further judging whether the ID of the target equipment is the own equipment ID, and if so, transmitting the data through the serial port;
when the central node receives the data in the buffer1, the central node detects that the terminal node sending the data in the buffer1 is on line, and simultaneously judges whether the data in the buffer1 is serial port transparent transmission data or not, if so, further judges whether the ID of the target device is the ID of the device of the central node, and if so, transmits the data through the serial port.
Example 2
Based on the same principle as the system shown in embodiment 1 of the present invention, an embodiment of the present invention further provides a TDMA-based 2.4G network communication method, including:
the central node establishes a network, allocates equipment IDs of all terminal nodes in the network according to the network access sequence of the terminal nodes, determines communication time slots of all the terminal nodes, and simultaneously monitors the online states of all the terminal nodes in the network; the equipment ID table stores the node information of the equipment added into the network;
the central node is provided with a first wireless data sending buffer area; the first wireless data sending buffer area stores serial port transparent transmission data and heartbeat data;
the terminal node is provided with a second wireless data sending buffer area and a scanning unit; after the terminal node is powered on, scanning a network of the central node and periodically sending a request to the central node for network access; after the network is accessed, each terminal node performs heartbeat detection in each communication time slot;
and the central node periodically sends synchronous broadcast frame data, and all the terminal nodes synchronize clocks and update the equipment ID table after receiving the synchronous broadcast frame data.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A TDMA-based 2.4G network communication system, comprising: the central node and a plurality of terminal nodes;
the central node is used for establishing a network, distributing the equipment ID of each terminal node in the network according to the network access sequence of the terminal nodes, determining the communication time slot of each terminal node and monitoring the online state of all the terminal nodes in the network;
the central node is provided with an equipment ID table and a first wireless data sending buffer area; the equipment ID table is used for storing the equipment node information added into the network; the first wireless data sending buffer area is used for storing serial port transparent transmission data and heartbeat data;
the terminal node is provided with a second wireless data sending buffer area and a scanning unit; after the terminal node is powered on, the scanning unit scans the network of the central node and periodically sends a request to the central node for network access; after the network is accessed, each terminal node performs heartbeat detection in each communication time slot;
and the central node periodically sends synchronous broadcast frame data, and all the terminal nodes synchronize clocks after receiving the synchronous broadcast frame data and update the equipment node information.
2. The TDMA-based 2.4G network communication system according to claim 1, wherein said central node stores said serial transparent data in said first wireless data transmission buffer when said central node performs serial transparent data transmission, and transmits said serial transparent data in said first wireless data transmission buffer when a broadcast timeslot of said central node arrives; when the terminal node conducts serial port transparent transmission data transparent transmission, the terminal node stores the serial port transparent transmission data in the second wireless data sending buffer area; and when the terminal node receives the synchronous broadcast frame data, the serial port transparent transmission data in the second wireless data transmission buffer area is transmitted.
3. The system according to claim 1, wherein the process of accessing the network by the terminal node comprises:
the central node is powered on, whether a flash memory of the central node stores network information or not is judged, and if the network information is stored, the stored network is recovered; otherwise, if not, a network is established;
the method comprises the steps that a terminal node is powered on, whether a flash memory of the terminal node stores network information or not is judged, if yes, the terminal node periodically sends a network recovery request in a first period, if a central node is on line and in an idle state and a device ID table of the central node has a space, the terminal node successfully replies the network request to the terminal node, meanwhile, the network state of the corresponding terminal node in the device ID table is updated to be an on-line state, the terminal node recovers the network state after receiving the reply of the central node, and the network state is an on-line state;
if the central node is online and in an idle state and the device ID table memory of the central node has space, the central node responds to the terminal node to allow network access, and the terminal node sends the MAC address of the terminal node to apply for the device ID to the central node; and the central node allocates a device ID according to the network access sequence of the terminal nodes, sends the device ID and the network information to the terminal nodes, stores the device ID and the MAC address of the terminal nodes into a device ID table, and stores the device ID and the MAC address of the terminal nodes in a flash memory of the terminal nodes when the terminal nodes receive the allocated device ID, so that the network access is successful.
4. A TDMA-based 2.4G network communication system according to claim 1, wherein said central node transmits synchronized broadcast frame data for a period equal to the product of the number of said terminal nodes joining the network and the communication time slot of each of said terminal nodes.
5. The system according to claim 2, wherein the end node is powered on, sends a network access request frame in a first period to scan the central node, stops sending the network access request frame if receiving the response from the central node, and stops sending the network access request frame if the sending times is greater than a set number, the central node is not on-line, and the end node fails to access the network.
6. The TDMA-based 2.4G network communication system according to claim 1, wherein when said central node sends said serial transparent transmission data to said terminal nodes for transparent transmission, said serial transparent transmission data includes a destination address; the destination address is a device ID.
7. A TDMA-based 2.4G network communication system according to claim 1, wherein said heartbeat detection comprises:
the central node distribution network is used for setting the number of the terminal nodes added into the network;
the terminal nodes are sequentially electrified to access the network, and the central node sequentially allocates equipment addresses for the terminal nodes;
after the terminal node joins the network, the central node periodically sends the data of the first wireless data sending buffer area to the terminal node;
after receiving the data of the first wireless data sending buffer area, the terminal node in the network synchronizes a local timer and sequentially broadcasts and sends the data of the second wireless data sending buffer area in a timing manner;
after receiving the data of the second wireless data transmission buffer area, the central node judges whether the terminal nodes in the equipment address list broadcast the data of the first wireless data transmission buffer area;
if the central node detects that any terminal node does not broadcast the data of the second wireless data transmission buffer area in the period, the terminal node is disconnected, a serial port outputs the disconnection information of the terminal node, and meanwhile, the online state of the terminal node in an equipment ID table is updated to be a disconnection state;
if the terminal node does not receive the data of the first wireless data transmission buffer area of the central node in the period, the terminal node detects that the terminal node is disconnected from the network.
8. A TDMA-based 2.4G network communication system according to claim 1, c h a r a c t e r i z e d i n that said device node information comprises a device ID, a presence status of said end node in the network and a device globally unique MAC physical address.
9. A TDMA-based 2.4G network communication method, comprising:
the method comprises the steps that a central node establishes a network, equipment IDs of all terminal nodes in the network are distributed according to the network access sequence of the terminal nodes, communication time slots of all the terminal nodes are determined, and meanwhile, the online states of all the terminal nodes in the network are monitored; the equipment ID table stores the node information of the equipment which joins the network;
the central node is provided with a first wireless data sending buffer area; the first wireless data sending buffer area stores serial port transparent transmission data and heartbeat data;
the terminal node is provided with a second wireless data sending buffer area and a scanning unit; after the terminal node is powered on, scanning the network of the central node and periodically sending a request to the central node for network access; after the network is accessed, each terminal node performs heartbeat detection in each communication time slot;
and the central node periodically sends synchronous broadcast frame data, and all the terminal nodes synchronize clocks after receiving the synchronous broadcast frame data and update the equipment ID table.
CN202211496225.1A 2022-11-28 2022-11-28 2.4G network communication system and method based on TDMA Active CN115550908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211496225.1A CN115550908B (en) 2022-11-28 2022-11-28 2.4G network communication system and method based on TDMA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211496225.1A CN115550908B (en) 2022-11-28 2022-11-28 2.4G network communication system and method based on TDMA

Publications (2)

Publication Number Publication Date
CN115550908A true CN115550908A (en) 2022-12-30
CN115550908B CN115550908B (en) 2023-04-18

Family

ID=84722080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211496225.1A Active CN115550908B (en) 2022-11-28 2022-11-28 2.4G network communication system and method based on TDMA

Country Status (1)

Country Link
CN (1) CN115550908B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7379435B1 (en) * 2005-04-28 2008-05-27 Cisco Technology, Inc. Determining broadcast message transmit times for a wireless device having a plurality of WLAN MAC addresses
US20120020336A1 (en) * 2009-01-19 2012-01-26 Siemens Aktiengesellschaft Method For Data Transmission In A Local Area Network
US20120069835A1 (en) * 2010-09-16 2012-03-22 Ricoh Company, Ltd. Wireless communication system, wireless communication device, and method
US20130142180A1 (en) * 2010-07-28 2013-06-06 Mikael Gidlund Wireless Communication Method And System With Collision Avoidance Protocol
CN105898881A (en) * 2016-04-08 2016-08-24 上海电机学院 WIFI-based TDMA backhaul transmission method
CN106455107A (en) * 2016-11-04 2017-02-22 武汉大学 Preemptive Wi-Fi (Wireless Fidelity) TDMA (Time Division Multiple Access) control method
CN108811001A (en) * 2018-04-28 2018-11-13 中国科学院上海微系统与信息技术研究所 The discretized channel cut-in method reserved with TDMA based on CSMA competitions
CN110972163A (en) * 2019-12-03 2020-04-07 成都亿佰特电子科技有限公司 ZigBee terminal node network management method and system
CN113840383A (en) * 2021-08-11 2021-12-24 武汉高德红外股份有限公司 Unmanned aerial vehicle ad hoc network TDMA multiple access method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7379435B1 (en) * 2005-04-28 2008-05-27 Cisco Technology, Inc. Determining broadcast message transmit times for a wireless device having a plurality of WLAN MAC addresses
US20120020336A1 (en) * 2009-01-19 2012-01-26 Siemens Aktiengesellschaft Method For Data Transmission In A Local Area Network
US20130142180A1 (en) * 2010-07-28 2013-06-06 Mikael Gidlund Wireless Communication Method And System With Collision Avoidance Protocol
US20120069835A1 (en) * 2010-09-16 2012-03-22 Ricoh Company, Ltd. Wireless communication system, wireless communication device, and method
CN105898881A (en) * 2016-04-08 2016-08-24 上海电机学院 WIFI-based TDMA backhaul transmission method
CN106455107A (en) * 2016-11-04 2017-02-22 武汉大学 Preemptive Wi-Fi (Wireless Fidelity) TDMA (Time Division Multiple Access) control method
CN108811001A (en) * 2018-04-28 2018-11-13 中国科学院上海微系统与信息技术研究所 The discretized channel cut-in method reserved with TDMA based on CSMA competitions
CN110972163A (en) * 2019-12-03 2020-04-07 成都亿佰特电子科技有限公司 ZigBee terminal node network management method and system
CN113840383A (en) * 2021-08-11 2021-12-24 武汉高德红外股份有限公司 Unmanned aerial vehicle ad hoc network TDMA multiple access method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
窦维江等: "Ad hoc网络中TDMA分布式动态时隙分配算法", 《计算机工程与设计》 *

Also Published As

Publication number Publication date
CN115550908B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
US6751248B1 (en) Method for nodes in a multi-hop wireless network to acquire and maintain synchronization with a master node
US8194583B2 (en) Method and system of radio frequency (RF) power transmission in a wireless network
RU2378779C2 (en) PROTOCOL FOR SENDING BEACON SIGNALS FOR ad-hoc NETWORKS
EP2728764B1 (en) Synchronous access method, and communication device and system in frequency hopping radio communication
EP2115965B1 (en) Low-power wireless multi-hop networks
KR101542732B1 (en) Mac protocol for multi-channel wireless networks
KR20000029996A (en) Method and apparatus for optimizing a medium access control protocol
US7889777B2 (en) System and method for data transfer in frequency hopping wireless networks
CN111818614B (en) UWB-based dynamic distributed ad hoc network scheduling method and system
US8144717B2 (en) Initialization of a wireless communication network
KR20120024729A (en) Beacon for a star network, sensor nodes in a star network, method for initializing a gateway in a star network and method for operating a star network
EP2560453B1 (en) Method for network organization
AU2017261253B2 (en) Forming a time synchronized channel hopping network using guaranteed time slots
CN110366860A (en) For the method for network insertion, system, controller, entity and computer program
JP2022548363A (en) A distributed synchronization solution for wireless communication networks
CN115550908B (en) 2.4G network communication system and method based on TDMA
US10772095B1 (en) Optimized unicast and broadcast communication in TSCH primary and secondary networks
CN114745680A (en) Wireless base station time synchronization method, device, equipment and storage medium
JP2006033070A (en) Data transmission control method
KR101711762B1 (en) Backscatter communication method based on distributed channel access and backscatter communication apparatus based on distributed channel access
CN112637955A (en) Wireless ad hoc network communication method and device based on time division
CN110392450B (en) Time division based wireless ad hoc network communication method and device
CN111162861A (en) Synchronization method and system
CN117412242A (en) Extensible multi-base-station multi-tag positioning system based on UWB technology
CN117941381A (en) Communication method and device, storage medium, and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant