CN107257563A - A kind of remote low power consumption network system and network-building method - Google Patents

A kind of remote low power consumption network system and network-building method Download PDF

Info

Publication number
CN107257563A
CN107257563A CN201710527151.6A CN201710527151A CN107257563A CN 107257563 A CN107257563 A CN 107257563A CN 201710527151 A CN201710527151 A CN 201710527151A CN 107257563 A CN107257563 A CN 107257563A
Authority
CN
China
Prior art keywords
bag
network
node
terminal node
networked
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
CN201710527151.6A
Other languages
Chinese (zh)
Other versions
CN107257563B (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.)
ROUTON ELECTRONIC CO Ltd
Original Assignee
ROUTON ELECTRONIC 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 ROUTON ELECTRONIC CO Ltd filed Critical ROUTON ELECTRONIC CO Ltd
Priority to CN201710527151.6A priority Critical patent/CN107257563B/en
Publication of CN107257563A publication Critical patent/CN107257563A/en
Application granted granted Critical
Publication of CN107257563B publication Critical patent/CN107257563B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides a kind of method of network entry of remote low power consumption network, including:Network ID is determined, and it is determined that detection bag is sent after network ID, make it that detection is sent after the terminal node random delay certain time not networked replys bag;Receive the detection and reply bag, and the networking bag for including the network ID is sent to the terminal node not networked, the terminal node not networked to be networked according to the network ID and transmit into net to reply bag.The present invention replys bag by the way that terminal node random delay certain time is sent into detection, multiple terminal nodes are avoided while sending the problem of packet triggers conflict, and the packet of networking process transmission/reception is less, reduces networking difficulty, is conducive to the popularization of remote low power consumption network.

Description

A kind of remote low power consumption network system and network-building method
Technical field
The present invention relates to communication technical field, more particularly, to remote low power consumption network system and network-building method.
Background technology
Remote low power consumption network (English abbreviation:LPWAN, English full name:Low Power Wide Area Network) It is a kind of technology of new networking, remote low power consumption network at least includes two parts of terminal node and gateway node, its In, terminal node is used to observe LPWAN protocol specifications, realizes point-to-point long-distance transmissions.Gateway node:It is responsible for receiving terminal section The uplink data of point, data then are gathered into one, and each individually backhaul is connected, and realizes Data Collection and forwarding.
The characteristics of remote low power consumption network has the following aspects:
Distance:Common the short distance wireless communication technology, such as Wi-Fi, bluetooth, general tens meters of communication distance, and it is remote Communication distance apart from low power consumption network is up to several kilometers, or even tens kilometers.
Volume of transmitted data:What computer, surfing Internet with cell phone browsed the pursuit of the application demands such as webpage, video is high data-carrying capacity, And The faster the better for speed, and the communication frequency of remote low power consumption network is low, and the data volume of transmission is also considerably less.
Power consumption:What high data rate was brought is high power consumption, it is desirable to have sufficient power supply supply, and remote low power consumption network Data rate it is low, terminal node only needs a small amount of electric energy just to maintain work, and this helps to make end within the specific limits End node can access network on a large scale.
Just because of the characteristic of above-mentioned remote and low-power consumption, cause to be difficult to set up between terminal node and gateway node Long connection, and existing remote low power consumption network is during networking, and terminal node often occurs sending packet simultaneously Situation, and due to the transmission feature of remote low power consumption network, when multiple terminal nodes send packet simultaneously, will cause Gateway node can not receive these while the packet that any one terminal node is sent in the terminal node of transmission packet, enters And cause networking to fail.
The content of the invention
The present invention provides a kind of remote low-power consumption net for overcoming above mentioned problem or solving the above problems at least in part Network system and network-building method.
According to the first aspect of the invention there is provided a kind of method of network entry of remote low power consumption network, including:
Network ID is determined, and it is determined that detection bag is sent after network ID, to cause the terminal node random delay not networked Detection is sent after certain time and replys bag;
Receive the detection and reply bag, and the networking for including the network ID is sent to the terminal node not networked Bag, the terminal node not networked to be networked according to the network ID and transmit into net to reply bag.
Preferably, the method for network entry of remote low power consumption network of the invention, in addition to:
According to the networking reply bag that the terminal node is sent is received, it is normal terminal section to know the terminal node Point;
Separated in time sends heartbeat packet to the normal terminal node, to cause the normal terminal node to send the heart Rebound is wrapped again;
Bag is replied according to the heartbeat is received, knows that the normal terminal node is still normal.
Preferably, the method for network entry of remote low power consumption network of the invention, in addition to:
According to the networking reply bag that the terminal node is sent is not received, it is abnormal terminals section to know the terminal node Point;
Separated in time sends heartbeat packet to the abnormal terminals node, to cause abnormal normal terminal node to send the heart Rebound is wrapped again;
Bag is replied according to the heartbeat is received, knows that the abnormal terminals node has networked and has been converted to normal terminal section Point;Or
Bag is replied according to the heartbeat is not received, the bag that networks is sent to the abnormal terminals node, so that the exception Terminal node, which sends to network, replys bag;
Bag is replied according to described network is received, knows that the abnormal terminals node has networked and has been converted to normal terminal section Point.
According to the second aspect of the invention, a kind of method of network entry of remote low power consumption network is also provided, including:
Probe data packet is received, is known according to probe data packet judgement and not networked, random delay certain time is backward Gateway node sends detection and replys bag, to cause the gateway node to send the networking bag for including the network ID;
Receive the bag that networks, networked according to the network ID and transmit into net and reply bag.
Preferably, the method for network entry of remote low power consumption network of the invention, in addition to:
Heartbeat packet is received, sending heartbeat to gateway node according to the heartbeat packet replys bag.
According to the third aspect of the present invention, a kind of gateway node is also provided, including:
Bag sending module is detected, for determining network ID, and it is determined that detection bag is sent after network ID, not network Terminal node random delay certain time after send detection reply bag;
Networking bag sending module, replys bag, and send bag to the terminal node not networked for receiving the detection Networking bag containing the network ID, is netted back with causing the terminal node not networked to network and transmit into according to the network ID Multiple bag.
Preferably, gateway node of the invention also includes:
The judge module of node state first, for according to the networking reply bag that the terminal node is sent is received, knowing The terminal node is normal terminal node;
Heartbeat packet sending module, sends heartbeat packet, to cause for separated in time to the normal terminal node State normal terminal node and send heartbeat reply bag;
The judge module of node state second, for according to the heartbeat reply bag is received, knowing the normal terminal section Point is still normal.
According to the fourth aspect of the present invention, a kind of terminal node is also provided, including:
Bag sending module is replied in detection, for receiving probe data packet, is judged to know not enter according to the probe data packet Net, sends detection to gateway node after random delay certain time and replys bag, to cause the gateway node to send comprising described The networking bag of network ID;
Network and reply bag sending module, for receiving the bag that networks, network and transmit into according to the network ID and net back Multiple bag.
Preferably, terminal node of the invention also includes,
Bag sending module is replied in heartbeat, for receiving heartbeat packet, and sending heartbeat to gateway node according to the heartbeat packet returns Multiple bag.
According to the fifth aspect of the present invention, a kind of remote low power consumption network system is also provided, including:
Gateway node, for determining network ID, and it is determined that detection bag is sent after network ID, to cause the terminal not networked Detection is sent after node random delay certain time and replys bag;
Receive the detection and reply bag, and the networking for including the network ID is sent to the terminal node not networked Bag, the terminal node not networked to be networked according to the network ID and transmit into net to reply bag;
Terminal node, for receiving probe data packet, knows according to probe data packet judgement and does not network, random delay Detection is sent to gateway node after certain time and reply bag, to cause the gateway node to send the networking for including the network ID Bag;
The bag that networks is received, is networked according to the network ID and transmits into net and reply bag.
A kind of remote low power consumption network system and network-building method that the application is proposed, by by terminal node random delay Certain time sends detection and replys bag, it is to avoid multiple terminal nodes send the problem of packet triggers conflict, and group simultaneously The packet of network process transmission/reception is less, reduces networking difficulty, is conducive to the popularization of remote low power consumption network.
Brief description of the drawings
Fig. 1 is the networking schematic flow sheet of the remote low power consumption network according to the embodiment of the present invention;
Fig. 2 is the networking schematic flow sheet of the remote low power consumption network according to the embodiment of the present invention;
Fig. 3 is the structural representation of the gateway node according to the embodiment of the present invention;
Fig. 4 is the structural representation of the terminal node according to the embodiment of the present invention;
Fig. 5 is the networking schematic flow sheet of the remote low power consumption network according to the embodiment of the present invention.
Embodiment
With reference to the accompanying drawings and examples, the embodiment to the present invention is described in further detail.Implement below Example is used to illustrate the present invention, but is not limited to the scope of the present invention.
Existing remote low power consumption network is during networking, because the probe data packet that gateway node is sent does not have Target mac addresses are set, and all terminal nodes in gateway node transmission range can receive probe data packet, when When there are multiple terminal nodes to gateway node transmission detection reply bag, it may appear that while the situation of packet is sent, and due to The transmission feature of remote low power consumption network, when multiple terminal nodes send packet simultaneously, will cause gateway node can not These are received while send the packet that any one terminal node in the terminal node of packet is sent, and then causes networking to be lost Lose.In order to solve the above problems, the present invention provide it is a kind of overcome above mentioned problem or solve the above problems at least in part it is remote Apart from low power consumption network system and network-building method.
In order to solve the above problems, the embodiments of the invention provide a kind of network-building method of remote low power consumption network.For Readily appreciate, this first to the present embodiment and subsequent embodiment in the related notion that may relate to be explained:
Remote low power consumption network (English abbreviation:LPWAN, English full name:Low Power Wide Area Network):Belong to a kind of technology of new networking, remote low power consumption network at least includes terminal node and gateway node Two parts, wherein, terminal node is used to observe LPWAN protocol specifications, realizes point-to-point long-distance transmissions.Gateway node:It is negative The uplink data of receiving terminal node is blamed, data then are gathered into one, and each individually backhaul is connected, and realizes data Collect and forward.
Packet:The data transfer of gateway node and terminal node using packet as carrier, packet include header and Content information, header includes basic communication protocol information, and all packets are all based on header and are transmitted, content Information is the data division of packet, can be sky, and header at least includes herein below:
The mac addresses of source mac addresses, i.e. packet sender itself, can not be sky;
The mac addresses of target mac addresses, i.e. packet recipient, when gateway node non-directional is transmitted, target mac Location can be sky, and because terminal node can only communicate with gateway node, therefore the target mac addresses of terminal node are gateway section The mac addresses of point,;
Network ID, the unique mark of the network residing for packet sender itself, is confirmed by gateway node, due to gateway section Point and network ID are unique, therefore when network ID is determined, what the mac addresses of gateway node were also to determine.
Gateway node and terminal node that the above is previously mentioned, are that the present embodiment and subsequent embodiment may relate to Executive agent.The network-building method of the remote low power consumption network proposed in the present embodiment and subsequent embodiment, mainly passes through gateway Interaction realization between node and terminal node.It should be noted that due to usually there will be in remote low power consumption network Great amount of terminals node needs access network, for the ease of being managed to terminal node, so that the group based on terminal node is special Property, before the present embodiment and subsequent embodiment is performed, terminal node can be also distributed to different node groups, the present embodiment pair This is not especially limited.
Terminal node is being distributed to before different node groups, can first determine several indicators of distribution, including but do not limit In:The type of the users of end node devices, the affiliated area of terminal node and terminal node.Wherein, terminal node Owning user refers to which user terminal node belongs to, and the affiliated area of terminal node refers to the area where terminal node Domain, the type of terminal node refers to the purpose classification of terminal node.In addition, each terminal node can possess above three point With index.
Based on the above, the present embodiment and subsequent embodiment be not to terminal node is distributed to the mode of different node groups Make specific restriction, include but is not limited to:Based on the distance between terminal node, by the terminal node with same allocated index point It is assigned to same node group., can be by phase when terminal node is distributed to different node groups based on the distance between terminal node Gauge is distributed to same node group from the terminal node in the range of pre-determined distance.Meanwhile, the terminal node in same equipment group There can be identical indicator of distribution.
Based on the above, the present embodiment provides a kind of method of network entry of remote low power consumption network, and this method is applied to Gateway node, referring to Fig. 1, this method includes:101st, network ID is determined, and it is determined that detection bag is sent after network ID, to cause Detection is sent after the terminal node random delay certain time not networked and replys bag;102nd, the detection reply is received to wrap, and to The terminal node that does not network sends the networking bag for include the network ID, with the terminal node that does not network described in causing according to The network ID, which networks and transmits into net, replys bag.
It should be noted that critical data when network ID is each gateway node networking, due in the embodiment of the present invention All terminal nodes can only be communicated with gateway node, if not made a distinction to networking, the end received when gateway node During the packet that end node is sent, gateway node can not know whether the packet is really intended to transmit in itself networking 's.Therefore, the embodiment of the present invention determines network ID in networking firstly the need of by gateway node, what different gateway nodes was determined Network ID is different.
After gateway node confirms network ID, gateway node sends detection bag.Detection bag is a kind of net in gateway node The packet that non-directional is transmitted in network transmission range, that is to say, that as long as in the network transmission scope of gateway node, it is all Terminal node can be received.In detection bag, source mac addresses are the mac addresses of gateway node itself, and target mac addresses, Network ID and content information are sky, hereinafter referred to as gateway mac addresses.
In addition, random delay is a significant process of the network-building method of the embodiment of the present invention, because detection bag belongs to non- The packet of directional transmissions, therefore gateway node may receive the detection reply bag that multiple terminal nodes are sent simultaneously, and According to the characteristic of wireless network, if there is multiple terminal nodes to send packet simultaneously, gateway will be unable to can not receive these simultaneously All packets sent.Therefore, the conflict wrapped generation is replied in order to avoid terminal node is detected, terminal node is replied in transmission The scheme of random delay is employed during bag, i.e., when terminal node receives detection bag and judges to know that bag is replied in transmission detection, It can be sent again to gateway node random delay certain time.Empirical tests, if the ratio that random number takes is more uniform, at least 200 with Interior terminal node there will not be the situation of transmission collision.
Detection reply the detective survey time wrap again in source mac addresses be terminal node itself mac addresses, target mac addresses For gateway mac addresses, network ID and content information are sky.
Gateway node is sky according to network ID in the packet received and content information, learns that receive is to detect back Multiple bag, receives detection and replys after bag, and gateway node is it is known that also have the terminal section not networked in the range of current network Point, replys the source mac addresses in bag according to detection, has just known the mac addresses for the terminal node not networked, next just to not The terminal node of networking sends the networking bag for including the network ID, and the bag that networks is so that the terminal node not networked is according to the net Network ID, which networks and transmits into net, replys bag, and the source mac addresses in the bag that networks are the mac addresses of gateway node, and target mac addresses are The mac addresses of terminal node, network ID is the network ID that gateway node is set, and content information is sky.Obviously, networking bag is one The packet of point-to-point transmission, the only correct terminal node in target mac addresses could be replied, therefore be just not present multiple Terminal node sends the conflict of packet simultaneously.
On the basis of above-described embodiment, also include after step 102:
According to the networking reply bag that the terminal node is sent is received, it is normal terminal section to know the terminal node Point;
Separated in time sends heartbeat packet to the normal terminal node, to cause the normal terminal node to send the heart Rebound is wrapped again;
Bag is replied according to the heartbeat is received, knows that the normal terminal node is still normal.
It should be noted that gateway node can not be empty according to network ID in the packet received and content information is Sky, know receive be network reply bag, when receive network reply bag when, you can know that terminal node has now entered Net, and think that the terminal node is normal node.
In the present embodiment, it is required for the terminal node progress training in rotation to networking to be confirmed whether to network at regular intervals, So-called training in rotation is to send a packet successively to all terminal nodes of networking, can be obtained according to the content of the packet of reply Know whether keep normal.The packet sent during for verifying whether still normal referred to as heartbeat packet, phychology bag is wrapped with networking Difference be, the content information in heartbeat packet for sky.Obviously, heartbeat packet is also the packet of a directive sending, will not Generation terminal node sends the problem of packet produces conflict.
Gateway node is not sky according to network ID and content information in the packet received, knows that receive is the heart Rebound is wrapped again.Source mac addresses in bag are replied according to networking and know that the state of the terminal node is still normal.
On the basis of the various embodiments described above, also include after step 102:
According to the networking reply bag that the terminal node is sent is not received, it is abnormal terminals section to know the terminal node Point;
Separated in time sends heartbeat packet to the abnormal terminals node, to cause abnormal normal terminal node to send the heart Rebound is wrapped again;
Bag is replied according to the heartbeat is received, knows that the abnormal terminals node has networked and has been converted to normal terminal section Point;Or
Bag is replied according to the heartbeat is not received, the bag that networks is sent to the abnormal terminals node, so that the exception Terminal node, which sends to network, replys bag;
Bag is replied according to described network is received, knows that the abnormal terminals node has networked and has been converted to normal terminal section Point.
It should be noted that if gateway node, which does not receive networking, replys bag, judge the abnormal state of terminal node, and Record the mac addresses of the terminal node of the abnormal state.At regular intervals, gateway node also can to abnormal state terminal section Whether point sends heartbeat packet, be converted to normally with the state for knowing terminal node.
Gateway node is not sky according to network ID and content information in the packet received, knows that receive is the heart Rebound is wrapped again.Source mac addresses in bag are replied according to networking and know that the terminal node has networked, i.e., are converted to normally by abnormality State.
If gateway node does not receive the heartbeat and replys bag, the bag that networks is sent to abnormal terminals node, so that described Abnormal terminals node, which sends to network, replys bag;
Bag is replied according to described network is received, knows that the abnormal terminals node has networked and has been converted to normal terminal section Point, if gateway node does not receive networking then and replys bag, knows that the gateway node is still within abnormality.
Based on the content of above-mentioned Fig. 1 correspondence embodiments, the embodiment of the present invention provides a kind of entering for remote low power consumption network Network method, this method is applied to terminal node, participates in Fig. 2, and this method includes:
201st, probe data packet is received, is known according to probe data packet judgement and not networked, random delay certain time Detection is sent to gateway node afterwards and reply bag, to cause the gateway node to send the networking bag for including the network ID;
202nd, receive the bag that networks, networked according to the network ID and transmit into net and reply bag.
It should be noted that terminal node is sky according to target mac addresses, network ID and content information, receipts are known To be detection bag, subsequent terminal node enters the target mac addresses that the gateway mac addresses that include are preserved with itself in bag are detected Capable to compare, if identical, terminal node does not send detection to the gateway node and replys bag, if it is different, then illustrating not add before this Enter in the network of the gateway node, sending detection to gateway node after random delay certain time replys bag, and detection is replied in bag Source mac addresses be terminal node itself mac addresses, target mac addresses be gateway mac addresses, network ID and content information For sky.
Gateway node is receiving meeting directive sending networking bag after bag is replied in detection, and terminal node is according to the data received Network ID is not empty in bag and content information is empty, knows that receive is the bag that networks, and receives after networking bag, obtains gateway section The network ID of network where point just has networking qualification, and terminal node sends to network to gateway node replys bag, networks and replys Mac information in source is the mac addresses of terminal node in bag, and target mac information is gateway mac addresses, and network ID sets for gateway node The network ID put, while content information continues as sky.
Because there may be the terminal node and gateway node of different company's arrangement in a region, certain a company Remote low power consumption network may only want to add with the supporting terminal node of the gateway node of oneself, therefore, only according to net The inconsistent detection reply bag that just sends in target mac addresses that pass mac addresses and terminal node itself is preserved is unadvisable, one In individual alternative embodiment, the certain content of certain byte is set, to represent the company where oneself or itself work(in mac addresses Can or other particular features information, when gateway mac addresses are different from the target mac addresses that itself is preserved, terminal node after It is continuous to be compared the mac addresses of itself and the specified byte of gateway mac addresses, if unanimously, judging terminal node and gateway Node belongs to same class, then terminal node sends detection to the gateway node and replys bag, if inconsistent, illustrates terminal node Belong to inhomogeneity with gateway node, terminal node does not send detection to gateway node and replys bag.Detection is with replying the source mac in bag Location is the mac addresses of terminal node itself, and target mac addresses are gateway mac addresses, and network ID and content information are sky.
On the basis of the various embodiments described above, the method for random delay includes:
Terminal node is received after detection bag, takes the random number a of [0-99] scope, is then sent and visited with a × 10ms time Survey time wraps again.
On the basis of above-described embodiment, also include after step 202:
Heartbeat packet is received, sending heartbeat to gateway node according to the heartbeat packet replys bag.
It should be noted that terminal node is not sky according to content information in the packet received, the packet is known For heartbeat packet, and to gateway node send heartbeat and reply and wrap, mac of the source mac addresses in bag for terminal node is replied in heartbeat Location, target mac addresses are gateway mac addresses, and network ID is the network ID that gateway node is determined, content information is with receiving The consistent content information of content information in heartbeat packet.
Based on the content of above-mentioned Fig. 1 or Fig. 2 correspondence embodiments, the embodiment of the present invention provides a kind of remote low power consumption network Method of network entry, this method relates generally to gateway node and terminal node.And realized by interaction between the two, for the ease of saying Bright, by taking gateway node as an example, the process to this method is illustrated, and participates in Fig. 3, and this method includes:
301st, gateway node determines network ID, and it is determined that sending detection bag after network ID;
302nd, terminal node receives detection bag, and is not networked with judging to know according to probe data packet, the timing of random delay one Between after to gateway node send detection reply bag;
303rd, gateway node receives detection and replys bag, and the networking bag for including the network ID is sent to the terminal node;
304th, terminal node receives the bag that networks, and is networked according to network ID and transmits into net and replys bag;
305th, gateway node, which receives to network, replys bag, and it is normal terminal node to know the terminal node;
306th, gateway node separated in time sends heartbeat packet to the terminal node;
307th, terminal node receives heartbeat packet, and sends heartbeat reply bag to gateway node;
308th, gateway node receives heartbeat and replys bag, obtains terminal node and keeps into net state.
Wherein, 301, gateway node determines network ID, and it is determined that sending detection bag after network ID.
Gateway node confirms network ID, critical data when network ID is each gateway node networking, different gateway sections The network ID that point is determined is different.After gateway node confirms network ID, gateway node sends detection bag.Detection bag is one kind in net The packet that non-directional is transmitted in the network transmission scope of artis, that is to say, that as long as in the network transmission model of gateway node In enclosing, all terminal nodes can be received.In detection bag, source mac addresses are the mac addresses of gateway node itself, mesh It is sky to mark mac addresses, network ID and content information, hereinafter referred to as gateway mac addresses.
Wherein, 302, terminal node receives detection bag, and is not networked with judging to know according to probe data packet, random delay one Detection is sent to gateway node reply bag after fixing time.
When terminal node receives detection bag, it is sky according to target mac addresses, network ID and content information, knows What is received is detection bag, and subsequent terminal node will detect the gateway mac addresses included in bag and the target mac addresses itself preserved It is compared, if identical, terminal node does not send detection to the gateway node and replys bag, if it is different, then illustrating do not have before this The network of the gateway node is added, terminal node sends detection to the gateway node and replys bag, and detection is with replying the source mac in bag Location is the mac addresses of terminal node itself, and target mac addresses are gateway mac addresses, and network ID and content information are sky.
Wherein, 303, gateway node receives detection and replys bag, and sends entering comprising the network ID to the terminal node Net bag.
Gateway node is sky according to network ID in the packet received and content information, learns that receive is to detect back Multiple bag, the mac addresses that terminal node is learnt in the source mac addresses of bag are replied according to detection, are then sent and are networked to the mac addresses Bag.Obviously, the bag that networks is the packet of directive sending, and the source mac addresses in the bag that networks are the mac addresses of gateway node, target Mac addresses are the mac addresses of terminal node, and network ID is the network ID that gateway node is set, and content information is sky.
Wherein, 304, terminal node receives the bag that networks, and is networked according to network ID and transmits into net and reply and wrapped.
Terminal node is not empty according to network ID in the packet received and content information is empty, know receive be Network bag, receive networking bag after, obtain gateway node where network network ID just have networking qualification, terminal node to Gateway node, which sends to network, replys bag, and network the mac addresses for replying that source mac information in bag is terminal node, and target mac information is Gateway mac addresses, network ID is the network ID that gateway node is set, while content information continues as sky.
Wherein, 305, gateway node, which receives to network, replys bag, and it is normal terminal node to know the terminal node.
Gateway node is not empty according to network ID in the packet received and content information is empty, know receive be Network and reply bag, gateway node just knows that the terminal node networks and shape by extracting the source mac information for networking and replying in bag State is normal, and records the mac addresses of the normal terminal node of the state;If gateway node does not receive networking and replys bag, sentence The abnormal state of disconnected terminal node, and record the mac addresses of the terminal node of the abnormal state.
Wherein, 306, separated in time sends heartbeat packet to the terminal node.
At regular intervals, all terminal nodes of the gateway node into net send heartbeat packet, phychology bag and the bag that networks Difference is that the content information in heartbeat packet is not sky.It is to know terminal node for the normal terminal node of state State it is whether still normal, be to know whether the state of terminal node is changed for the terminal node of abnormal state To be normal.Obviously, heartbeat packet is also the packet of a directive sending, will not occur terminal node and send packet generation conflict The problem of.
Wherein, 307, terminal node receives heartbeat packet, and to gateway node sends heartbeat and reply and wrap.
Terminal node is not sky according to content information in the packet received, and it is heartbeat packet to know the packet, and to Gateway node sends heartbeat and replys bag, and the source mac addresses that heartbeat replys in bag are the mac addresses of terminal node, target mac addresses For gateway mac addresses, network ID is the network ID that gateway node is determined, content information is and the content in the heartbeat packet that receives The consistent content information of information.
308th, gateway node receives heartbeat and replys bag, obtains terminal node and keeps into net state.
Gateway node is not sky according to network ID and content information in the packet received, knows that receive is the heart Rebound is wrapped again.Source mac addresses in bag are replied according to networking and know that the state of the terminal node is still normal.
For the terminal node of abnormality, if gateway node does not receive heartbeat and replys bag, continue to terminal node The bag that networks is sent, if gateway node subsequently receives networking and replys bag, knows that the gateway node is normal, if gateway node does not have then Receive networking and reply bag, then know that the gateway node is still within abnormality.
The network-building method of the remote low power consumption network provided according to Fig. 1, Fig. 2 or Fig. 3 correspondence embodiment, the present invention is real Apply example and a kind of gateway node is provided, the gateway node is used to perform the network-building method that above-mentioned Fig. 1 correspondences embodiment is provided, and can Part or all of function for performing gateway node in the method for network access that above-mentioned Fig. 3 correspondences embodiment is provided.Participate in Fig. 4, the gateway node includes:
Bag sending module 401 is detected, for determining network ID, and it is determined that detection bag is sent after network ID, to cause not Detection is sent after the terminal node random delay certain time of networking and replys bag;
Networking bag sending module 402, replys bag, and send to the terminal node not networked for receiving the detection Networking bag comprising the network ID, to cause the terminal node not networked to be networked according to the network ID and transmit into net Reply bag.
In one alternate embodiment, gateway node also includes:
The judge module of node state first, for according to the networking reply bag that the terminal node is sent is received, knowing The terminal node is normal terminal node;
Heartbeat packet sending module, sends heartbeat packet, to cause for separated in time to the normal terminal node State normal terminal node and send heartbeat reply bag;
The judge module of node state second, for according to the heartbeat reply bag is received, knowing the normal terminal section Point is still normal.
Gateway device provided in an embodiment of the present invention, is wrapped, and detected back receiving it is determined that sending detection after network ID After multiple bag, the bag that networks is sent to the terminal node for sending detection reply bag, so that terminal node networking, and every certain Time, gateway device all can send heartbeat packet to the terminal node networked before, if being successfully received heartbeat replys bag, know The terminal node is still in net, further, at regular intervals, and the terminal node that gateway device bucket also can not network is sent Heartbeat packet, if being successfully received heartbeat replys bag, knows that the terminal node in net, is replied if not receiving heartbeat Wrap, then send the bag that networks again, know terminal node whether in net according to the reply bag that networks subsequently whether is received.
The network-building method of the remote low power consumption network provided according to Fig. 1, Fig. 2 or Fig. 3 correspondence embodiment, the present invention is real Apply example and a kind of terminal node is provided, the terminal artis is used to perform the network-building method that above-mentioned Fig. 2 correspondences embodiment is provided, and Available for the part or all of function of performing terminal node in the method for network access that above-mentioned Fig. 3 correspondences embodiment is provided.Ginseng Plus Fig. 5, the terminal node includes:
501st, bag sending module is replied in detection, for receiving probe data packet, is judged to know according to the probe data packet Do not network, sending detection to gateway node after random delay certain time replys bag, to cause the gateway node is sent to include The networking bag of the network ID;
502nd, network and reply bag sending module, for receiving the bag that networks, network and transmit into according to the network ID Net replys bag.
In one alternate embodiment, terminal node also includes:
Bag sending module is replied in heartbeat, for receiving heartbeat packet, and sending heartbeat to gateway node according to the heartbeat packet returns Multiple bag.
Terminal node provided in an embodiment of the present invention, after probe data packet is received, judges whether to have networked, if not having There is networking, then sending detection to gateway node replys bag, then receives the networking bag that gateway node is sent, networks and transmit into net Bag is replied, in a certain time interval, if receiving the heartbeat packet of gateway node transmission, heartbeat is sent to gateway node and replys Bag.
Finally, the present processes are only preferably embodiment, are not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent substitution and improvements made etc. should be included in the protection of the present invention Within the scope of.

Claims (10)

1. a kind of method of network entry of remote low power consumption network, it is characterised in that including:
Network ID is determined, and it is determined that detection bag is sent after network ID, to cause the terminal node random delay not networked certain Detection is sent after time and replys bag;
Receive the detection and reply bag, and the networking bag for including the network ID is sent to the terminal node not networked, with So that the terminal node not networked, which networks according to the network ID and transmits into net, replys bag.
2. the method for network entry of remote low power consumption network as claimed in claim 1, it is characterised in that also include:
According to the networking reply bag that the terminal node is sent is received, it is normal terminal node to know the terminal node;
Separated in time sends heartbeat packet to the normal terminal node, to cause the normal terminal node sends heartbeat to return Multiple bag;
Bag is replied according to the heartbeat is received, knows that the normal terminal node is still normal.
3. the method for network entry of remote low power consumption network as claimed in claim 1, it is characterised in that also include:
According to the networking reply bag that the terminal node is sent is not received, it is abnormal terminals node to know the terminal node;
Separated in time sends heartbeat packet to the abnormal terminals node, to cause abnormal normal terminal node sends heartbeat to return Multiple bag;
Bag is replied according to the heartbeat is received, knows that the abnormal terminals node has networked and has been converted to normal terminal node; Or
Bag is replied according to the heartbeat is not received, the bag that networks is sent to the abnormal terminals node, so that the abnormal terminals Node, which sends to network, replys bag;
Bag is replied according to described network is received, knows that the abnormal terminals node has networked and has been converted to normal terminal node.
4. a kind of method of network entry of remote low power consumption network, it is characterised in that including:
Probe data packet is received, is known according to probe data packet judgement and not networked, to gateway after random delay certain time Node sends detection and replys bag, to cause the gateway node to send the networking bag for including the network ID;
Receive the bag that networks, networked according to the network ID and transmit into net and reply bag.
5. the method for network entry of remote low power consumption network as claimed in claim 4, it is characterised in that also include:
Heartbeat packet is received, sending heartbeat to gateway node according to the heartbeat packet replys bag.
6. a kind of gateway node, it is characterised in that including:
Bag sending module is detected, for determining network ID, and it is determined that detection bag is sent after network ID, to cause the end not networked Detection is sent after end node random delay certain time and replys bag;
Networking bag sending module, replys bag, and send comprising institute to the terminal node not networked for receiving the detection The networking bag of network ID is stated, the terminal node not networked to network according to the network ID and transmit into net to reply Bag.
7. gateway node as claimed in claim 6, it is characterised in that also include:
The judge module of node state first, for according to the networking reply bag that the terminal node is sent is received, knowing described Terminal node is normal terminal node;
Heartbeat packet sending module, for separated in time to the normal terminal node send heartbeat packet, with cause it is described just Normal terminal node sends heartbeat and replys bag;
The judge module of node state second, for according to the heartbeat reply bag is received, knowing the normal terminal node still It is so normal.
8. a kind of terminal node, it is characterised in that including:
Bag sending module is replied in detection, for receiving probe data packet, is known according to probe data packet judgement and not networked, with Detection is sent to gateway node after machine delay certain time and reply bag, to cause the gateway node is sent to include the network ID Networking bag;
Network and reply bag sending module, for receiving the bag that networks, networked according to the network ID and transmit into net and reply bag.
9. terminal node as claimed in claim 8, it is characterised in that also include,
Bag sending module is replied in heartbeat, for receiving heartbeat packet, and sending heartbeat to gateway node according to the heartbeat packet replys bag.
10. a kind of remote low power consumption network system, it is characterised in that including:
Gateway node, for determining network ID, and it is determined that detection bag is sent after network ID, to cause the terminal node not networked Detection is sent after random delay certain time and replys bag;
Receive the detection and reply bag, and the networking bag for including the network ID is sent to the terminal node not networked, with So that the terminal node not networked, which networks according to the network ID and transmits into net, replys bag;
Terminal node, for receiving probe data packet, knows according to probe data packet judgement and does not network, random delay is certain Detection is sent to gateway node after time and reply bag, to cause the gateway node to send the networking bag for including the network ID;
The bag that networks is received, is networked according to the network ID and transmits into net and reply bag.
CN201710527151.6A 2017-06-30 2017-06-30 Remote low-power-consumption network system and networking method Active CN107257563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710527151.6A CN107257563B (en) 2017-06-30 2017-06-30 Remote low-power-consumption network system and networking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710527151.6A CN107257563B (en) 2017-06-30 2017-06-30 Remote low-power-consumption network system and networking method

Publications (2)

Publication Number Publication Date
CN107257563A true CN107257563A (en) 2017-10-17
CN107257563B CN107257563B (en) 2020-08-07

Family

ID=60024818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710527151.6A Active CN107257563B (en) 2017-06-30 2017-06-30 Remote low-power-consumption network system and networking method

Country Status (1)

Country Link
CN (1) CN107257563B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151839A (en) * 2018-09-05 2019-01-04 深圳市艾森智能技术有限公司 A kind of network plan method of LPWA network
CN113133127A (en) * 2021-04-16 2021-07-16 易斌 Wireless ad hoc network link rapid network access method based on random sniffing

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101292547A (en) * 2005-10-13 2008-10-22 摩托罗拉公司 Method and apparatus for synchronizing a node within an ad-hoc communication system
CN102695212A (en) * 2012-06-06 2012-09-26 上海乾视通信技术有限公司 Method for balancing loads of ad-hoc network gateways
CN103888945A (en) * 2012-12-20 2014-06-25 中国移动通信集团公司 WLAN access method, system and multi-mode gateway
CN103891357A (en) * 2011-10-28 2014-06-25 高通股份有限公司 Systems and methods for fast initial network link setup
CN104469764A (en) * 2013-09-16 2015-03-25 中兴通讯股份有限公司 WLAN (Wireless Local Area Network) networking method and system
CN106162844A (en) * 2016-06-03 2016-11-23 西安电子科技大学 Implementation method based on the MAC protocol for wireless sensor networks of LoRa
US20170079078A1 (en) * 2012-01-11 2017-03-16 Interdigital Patent Holdings, Inc. Method and apparatus for accelerated link setup

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101292547A (en) * 2005-10-13 2008-10-22 摩托罗拉公司 Method and apparatus for synchronizing a node within an ad-hoc communication system
CN103891357A (en) * 2011-10-28 2014-06-25 高通股份有限公司 Systems and methods for fast initial network link setup
US20170079078A1 (en) * 2012-01-11 2017-03-16 Interdigital Patent Holdings, Inc. Method and apparatus for accelerated link setup
CN102695212A (en) * 2012-06-06 2012-09-26 上海乾视通信技术有限公司 Method for balancing loads of ad-hoc network gateways
CN103888945A (en) * 2012-12-20 2014-06-25 中国移动通信集团公司 WLAN access method, system and multi-mode gateway
CN104469764A (en) * 2013-09-16 2015-03-25 中兴通讯股份有限公司 WLAN (Wireless Local Area Network) networking method and system
CN106162844A (en) * 2016-06-03 2016-11-23 西安电子科技大学 Implementation method based on the MAC protocol for wireless sensor networks of LoRa

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151839A (en) * 2018-09-05 2019-01-04 深圳市艾森智能技术有限公司 A kind of network plan method of LPWA network
CN109151839B (en) * 2018-09-05 2022-01-25 广东省智能机器人研究院 Network planning method of LPWA network
CN113133127A (en) * 2021-04-16 2021-07-16 易斌 Wireless ad hoc network link rapid network access method based on random sniffing
CN113133127B (en) * 2021-04-16 2023-12-12 成都易明半导体有限公司 Wireless ad hoc network link quick network access method based on random sniffing

Also Published As

Publication number Publication date
CN107257563B (en) 2020-08-07

Similar Documents

Publication Publication Date Title
Yi et al. Evaluation of routing protocol for low power and Lossy Networks: LOADng and RPL
CN102637352B (en) Remote meter reading method and system, primary electric energy meter and secondary electric energy meter
CN107484261A (en) One kind is based on 433MHz wireless self-networking methods
CN108924045A (en) Dual-mode communications network channel balancing method and system
CN103731376B (en) Method and system for selecting chain aggregation root ports on stacked equipment
CN102185766A (en) Unicast forwarding method and forwarding equipment for responding messages by DHCP (Dynamic host configuration protocol) server
CN108566231A (en) air conditioner communication system, method, storage medium and electronic device
CN104144002A (en) Multi-frequency flooding power line carrier communication method
JP2017500771A (en) Distributed data transmission in data networks
CN104541536B (en) Method, user equipment and base station for detecting device to device signals
CN107257563A (en) A kind of remote low power consumption network system and network-building method
CN105873052A (en) Network access method and device of wifi device
CN106301472A (en) Method and the website of relay is selected in power line network
CN101222370B (en) Method and device for failure location using failure location packet
CN102083094B (en) Interference measuring method and apparatus in wireless communication system
CN106455086A (en) Data transmission method and equipment
CN107454659A (en) A kind of terminal identification method, system, terminal device and base station
CN101582884A (en) System and method for 3G data packet reorganization based on FPGA
CN102917386A (en) Device and method for consistency protocol verification of interfaces S1 of LTE (Long Term Evolution) wireless network
CN103974224A (en) Credit control method and equipment
CN101272326A (en) Method for packet transmission by polymerization link and communication equipment thereof
CN104704867A (en) Data routing method and device
CN102946335A (en) Network condition detection method and network condition detection system
CN214380929U (en) Gateway equipment for connecting Internet of things sensing equipment and electric power information acquisition equipment
CN102324953A (en) Networking method for MAC (media access control) layer of low-voltage network power line carrier communication network

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