CN108966303B - Roaming method of wireless Internet of things equipment based on LoRa - Google Patents

Roaming method of wireless Internet of things equipment based on LoRa Download PDF

Info

Publication number
CN108966303B
CN108966303B CN201810658595.8A CN201810658595A CN108966303B CN 108966303 B CN108966303 B CN 108966303B CN 201810658595 A CN201810658595 A CN 201810658595A CN 108966303 B CN108966303 B CN 108966303B
Authority
CN
China
Prior art keywords
gateway
node equipment
request
node
gateways
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.)
Active
Application number
CN201810658595.8A
Other languages
Chinese (zh)
Other versions
CN108966303A (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.)
Beijing Gerui Space Technology Co ltd
Original Assignee
Beijing Gerui Space 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 Beijing Gerui Space Technology Co ltd filed Critical Beijing Gerui Space Technology Co ltd
Priority to CN201810658595.8A priority Critical patent/CN108966303B/en
Publication of CN108966303A publication Critical patent/CN108966303A/en
Application granted granted Critical
Publication of CN108966303B publication Critical patent/CN108966303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/12Reselecting a serving backbone network switching or routing node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/18Performing reselection for specific purposes for allowing seamless reselection, e.g. soft reselection

Landscapes

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

Abstract

The utility model discloses a roaming method of wireless internet of things equipment based on LoRa, the method includes following steps, S1, node equipment sends the network access request to the gateway: the node equipment sends a broadcast message to request to communicate with all gateways in the communication range of the node equipment, the node equipment obtains an MAC address returned by the gateway, and then the node equipment sends a network access request to the gateway; s2, the node device dynamically obtains the signal strength indications received by all gateways in its communication range: the node equipment sends a broadcast message in heartbeat to obtain received signal strength indications of all gateways in the communication range of the node equipment; and S3, the node equipment selects to be connected with a certain gateway according to the signal strength indication of the gateway. The node equipment in the method can freely move among the gateways, automatically and seamlessly realize the switching among the gateways, and greatly improve the range of activity of the node equipment.

Description

Roaming method of wireless Internet of things equipment based on LoRa
Technical Field
The disclosure relates to the technical field of wireless communication, in particular to a roaming method of wireless internet of things equipment based on LoRa.
Background
Roaming is a term commonly used by mobile phone users to mean that their mobile phones can continue to be used in other areas or countries when they leave their area or country. In the field of internet of things, few devices can realize the roaming networking function basically, and the main reason is that the scene of the terminal device is generally fixed, the roaming requirement is not met, and the LoRa technology cannot perform roaming. In recent years, along with the development of the internet of things technology, more and more internet of things devices based on the LoRa have the requirement of moving and need to realize seamless communication with gateways in other regions. These LoRa-based wireless internet of things devices, without roaming capability, lose communication with the gateway after leaving the coverage area of the gateway where the connection is started.
Disclosure of Invention
The invention discloses a roaming method of wireless Internet of things equipment based on LoRa, which comprises the following steps:
s1, initializing gateway startup: if the gateway does not have the registration information, requesting registration from the cloud server, and if the gateway has the registration information, entering step S2;
s2, the gateway requests a node device list from the cloud server;
s3, initializing node equipment, if the node equipment has equipment identification, the node equipment sends a network access request to all gateways in the communication range of the node equipment, the first gateway responds to the network access request of the node equipment, and the node equipment is on line;
s4, the node device dynamically obtains the received signal strength indication of all gateways in the communication range;
s5, the node device determines whether the signal strength received by the first gateway is strongest: if so, the gateway is not replaced, and the node equipment enters the next heartbeat;
if not, the address of the gateway when the node equipment changes communication is the second gateway with the strongest signal intensity, the node equipment sends a network access request to the second gateway, the second gateway responds to the network access request of the node equipment, and the node equipment enters the next heartbeat.
The beneficial effects of this disclosure are: the node equipment can freely move among the gateways, the switching among the gateways is automatically and seamlessly realized, and the moving range of the node equipment is greatly improved.
Drawings
Fig. 1 is a schematic diagram of a node device a connected below a gateway a and not detecting a gateway B in an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a node device a moving to a location where the RSSI of gateway B is stronger than that of gateway a in one embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a node device A disconnected from a gateway A and connected to a gateway B in an embodiment of the present disclosure;
fig. 4 is a flow chart of node device online in an embodiment of the present disclosure.
Detailed Description
In order to make the technical problems, solutions and advantages to be solved by the present disclosure better understood, the present invention will be described in detail with reference to the accompanying drawings 1 to 4 and specific embodiments. The specific embodiments described herein are merely illustrative of the invention and are not intended to be limiting.
In one embodiment, the present disclosure discloses a roaming method for a wireless internet of things device based on LoRa, the method comprising the following steps:
s1, initializing gateway startup: if the gateway does not have the registration information, requesting registration from the cloud server; if the gateway has the registration information, go to step S2;
s2, the gateway requests a node device list from the cloud server;
s3, initializing node equipment, if the node equipment has equipment identification, the node equipment sends a network access request to all gateways in the communication range of the node equipment, the first gateway responds to the network access request of the node equipment, and the node equipment is on line;
s4, the node device dynamically obtains the received signal strength indication of all gateways in the communication range;
s5, the node device determines whether the signal strength received by the first gateway is strongest: if so, the gateway is not replaced, and the node equipment enters the next heartbeat;
if not, the address of the gateway when the node equipment changes communication is the second gateway with the strongest signal intensity, the node equipment sends a network access request to the second gateway, the second gateway responds to the network access request of the node equipment, and the node equipment enters the next heartbeat.
In this embodiment, the node device can freely move among the plurality of gateways, and automatically and seamlessly realize switching among the plurality of gateways, thereby greatly improving the range of activity of the node device.
In one embodiment, the step S3 of the node device sending a network access request to all gateways in its communication range includes the following steps:
s31, the node equipment sends broadcast messages to request communication with nearby gateways, all the gateways receiving the broadcast messages respond, and the node equipment stores the MAC address of the first gateway of the first response information;
s32, the node equipment sends a connection request to the first gateway;
s33, the first gateway responds to the connection request of the node equipment;
and S34, the node device sends an MQTT subscription request to the first gateway, the first gateway then subscribes the MQTT subscription request to the cloud server by the identity of the first gateway, and the cloud server responds to the MQTT subscription request of the first gateway.
Step S3 further includes:
if the node equipment does not have the equipment identification, the node equipment requests anonymous connection and anonymous registration, the first gateway forwards the registration request of the node equipment to the cloud server, the cloud server responds to the registration request and returns registration information, the first gateway forwards the registration information from the cloud server to the node equipment, and the node equipment writes the returned registration information into the memory.
In this embodiment, the node device sends a network access request to the gateway, and the node device sends a broadcast message requesting communication with all gateways in the communication range. And the node equipment acquires the MAC address returned by the gateway and sends a network access request to the gateway.
The gateway responds to the request of the node device: all gateways that receive the node device broadcast respond to the node device. For non-broadcast messages, only the gateway whose MAC address is consistent with the MAC address in the message responds.
The gateway replaces the node equipment to register with the cloud server: and when the MAC addresses are consistent, the gateway forwards the registration request of the node equipment to the cloud server.
The gateway forwards data returned by the cloud server to the node equipment: the forwarded data includes the unique identification DeviceId of the node device.
In one embodiment, the connection request in step S32 includes an anonymous discovery request, an anonymous connection request, a real name discovery request, and a real name connection request sent by the node device.
Further, in step S3, the content of the first gateway responding to the network entry request of the node device includes: anonymous discovery request, anonymous connection request, real-name discovery request, real-name connection request, and subscribe MQTT request.
In this embodiment, the unregistered device online step: the node device sends an anonymous discovery request and all gateways respond. The node device stores the address of the gateway which responds first, sends an anonymous connection request to the gateway, and the gateway responds to the anonymous connection request. The node equipment registers, after the registration is successful, a real-name discovery request is initiated, and all gateways which have binding relation with the node equipment respond to the real-name discovery request. The node equipment stores the address of the gateway which responds first, sends a real-name connection request to the gateway, and the gateway responds. The node equipment sends a request for defining MQTT, and the gateway responds.
In one embodiment, the registration information in step S1 includes a device identification of the node device.
In this embodiment, the device identifier is a unique identifier of the node device.
In one embodiment, the step S4 of the node device dynamically obtaining the received signal strength indications of all gateways in its communication range specifically includes: the node device sends a broadcast message in a heartbeat to obtain Received Signal Strength Indications (RSSI) for all gateways within its communication range.
In this embodiment, the node device determines and connects to a gateway with stronger RSSI: the node equipment judges the RSSI of all gateways in the communication range of the node equipment and the RSSI of the gateways connected at present, and the node equipment sends a network access request to the gateways with stronger signals.
In one embodiment, the memory is Flash.
In this embodiment, the Flash has a characteristic of ensuring that the registration information is not lost when power is lost.
In one embodiment, the method is applied to an LoRa-based internet of things device with mobile demand.
Referring to fig. 1, in one embodiment, a roaming method for an internet of things device based on LoRa is disclosed, which includes the following steps:
s1, if the node Device does not have a Device Id, the node Device requests anonymous connection from the gateway; the first gateway responds to the anonymous discovery request and returns the address of the first gateway;
s2, the node equipment initiates an anonymous registration request to the first gateway, the first gateway responds to the registration request of the node equipment, the first gateway returns a Device Id after registering for the node equipment, and the node equipment writes the Device Id into Flash of the node equipment;
s3, if the node Device has a Device Id, the node Device makes a real name discovery request, the first gateway responds to the real name discovery request of the node Device, the first gateway responds to the real name discovery request, and returns the address of the first gateway;
s4, the node equipment initiates real-name connection, the node equipment sends an MQTT subscription request to the first gateway after the first gateway responds, the first gateway subscribes the node theme to the cloud end by the identity of the first gateway, a heartbeat package is sent after the subscription is successful, and the node equipment is in an online state;
s5, the node device requests the received signal strengths of all gateways in its communication range in the heartbeat, for example, finds a second gateway with stronger received signal strength, and the node device sends a network access request to the second gateway.
In an embodiment, referring to fig. 2, after the gateway a is connected to the cloud server, the node device a broadcasts to all gateways in its communication range after being powered on, and only if the gateway a responds to the node device, the node device a goes online through the gateway a.
Referring to fig. 3, if the node device a moves from one area to another area, and finds that the received signal strength indication of the gateway B is greater than the received signal strength indication of the currently connected gateway a during the moving process, the node device a disconnects the connection with the gateway a, changes the communication address to the address of the gateway B, and initiates a network access request to the gateway B.
Referring to fig. 4, the gateway B responds to the request of the node device a, and the node device comes online through the gateway B.
Although the embodiments of the present invention have been described above with reference to the accompanying drawings, the present invention is not limited to the above-described embodiments and application fields, and the above-described embodiments are illustrative, instructive, and not restrictive. Those skilled in the art, having the benefit of this disclosure, may effect numerous modifications thereto without departing from the scope of the invention as defined by the appended claims.

Claims (7)

1. A roaming method of a wireless Internet of things device based on LoRa is characterized by comprising the following steps:
s1, initializing gateway startup: if the gateway does not have the registration information, requesting registration from the cloud server, and if the gateway has the registration information, entering step S2;
s2, the gateway requests a node device list from the cloud server;
s3, initializing node equipment, if the node equipment has equipment identification, the node equipment sends a network access request to all gateways in the communication range of the node equipment, the first gateway responds to the network access request of the node equipment, and the node equipment is on line;
s4, the node device dynamically obtains the received signal strength indication of all gateways in the communication range;
s5, the node device determines whether the signal strength received by the first gateway is strongest: if so, the gateway is not replaced, and the node equipment enters the next heartbeat;
if not, the address of the gateway when the node equipment changes communication is the second gateway with the strongest signal intensity, the node equipment sends a network access request to the second gateway, the second gateway responds to the network access request of the node equipment, and the node equipment enters the next heartbeat;
in step S3, the node device sends a network access request to all gateways in its communication range, including the following steps:
s31, the node equipment sends broadcast messages to request communication with nearby gateways, all the gateways receiving the broadcast messages respond, and the node equipment stores the MAC address of the first gateway of the first response information;
s32, the node equipment sends a connection request to the first gateway;
s33, the first gateway responds to the connection request of the node equipment;
s34, the node device sends an MQTT subscription request to the first gateway, the first gateway then subscribes the MQTT subscription request to the cloud server by the identity of the first gateway, and the cloud server responds to the MQTT subscription request of the first gateway;
step S3 further includes:
if the node equipment does not have the equipment identification, the node equipment requests anonymous connection and anonymous registration, the first gateway forwards the registration request of the node equipment to the cloud server, the cloud server responds to the registration request and returns registration information, the first gateway forwards the registration information from the cloud server to the node equipment, and the node equipment writes the returned registration information into the memory.
2. The method according to claim 1, wherein the connection request in step S32 includes an anonymous discovery request, an anonymous connection request, a real name discovery request and a real name connection request sent by a node device.
3. The roaming method of claim 1, wherein the responding, by the first gateway, to the network entry request of the node device in step S3 includes: anonymous discovery request, anonymous connection request, real-name discovery request, real-name connection request, and subscribe MQTT request.
4. The roaming method of claim 1, wherein the registration information in step S1 includes a device identification of the node device.
5. The roaming method of claim 1, wherein the memory is Flash.
6. Roaming method according to claim 1, characterized in that: the step S4 of the node device dynamically obtaining the received signal strength indications of all gateways in its communication range specifically includes: the node device sends a broadcast message in a heartbeat to obtain a received signal strength indication for all gateways within its communication range.
7. Roaming method according to one of claims 1-6, characterized in that: the method is applied to the LoRa-based Internet of things equipment with mobile requirements.
CN201810658595.8A 2018-06-22 2018-06-22 Roaming method of wireless Internet of things equipment based on LoRa Active CN108966303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810658595.8A CN108966303B (en) 2018-06-22 2018-06-22 Roaming method of wireless Internet of things equipment based on LoRa

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810658595.8A CN108966303B (en) 2018-06-22 2018-06-22 Roaming method of wireless Internet of things equipment based on LoRa

Publications (2)

Publication Number Publication Date
CN108966303A CN108966303A (en) 2018-12-07
CN108966303B true CN108966303B (en) 2021-03-16

Family

ID=64486290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810658595.8A Active CN108966303B (en) 2018-06-22 2018-06-22 Roaming method of wireless Internet of things equipment based on LoRa

Country Status (1)

Country Link
CN (1) CN108966303B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111918343A (en) * 2019-05-08 2020-11-10 深圳长城开发科技股份有限公司 Network switching method and device and computer storage medium
CN110213733B (en) * 2019-05-23 2022-07-19 武汉金牛经济发展有限公司 Internet of things system of electromagnetic hot melting welding machine
CN112243231B (en) * 2019-07-01 2023-04-18 深圳长城开发科技股份有限公司 Rapid network access method, terminal, gateway and storage medium
CN110391986B (en) * 2019-09-03 2021-04-20 北京百佑科技有限公司 Routing communication method and system of intelligent door lock
CN111132260B (en) * 2019-11-27 2022-02-18 江苏三希科技股份有限公司 Lora communication method and system for multi-route ad hoc network
CN113133070A (en) * 2020-01-15 2021-07-16 北京宜通华瑞科技有限公司 Switching method of Sub1GHz wireless communication and wireless intelligent module
CN113498141B (en) * 2020-03-18 2023-08-08 京东方科技集团股份有限公司 Gateway switching method, gateway switching device, electronic equipment and computer readable storage medium
CN111314495A (en) * 2020-05-14 2020-06-19 上海顺舟智能科技股份有限公司 Communication method, device, equipment, storage medium and system based on LoRaWAN of Internet of things
CN113746725B (en) * 2020-05-28 2023-03-31 美的集团股份有限公司 Gateway selection method and device in multi-gateway environment and storage medium
CN114286289B (en) * 2020-12-20 2023-07-14 上海商米科技集团股份有限公司 Electronic price tag roaming method
CN113099513B (en) * 2021-03-29 2023-12-08 深圳市中兴移动软件有限公司 Base station selection method, electronic terminal and computer readable storage medium
CN113438729B (en) * 2021-08-25 2021-11-12 伏诺瓦(天津)科技有限公司 Lora sub-equipment registration method and device based on carrier channel monitoring mechanism
CN113438659B (en) * 2021-08-26 2021-11-16 伏诺瓦(天津)科技有限公司 Long-distance lora rapid networking power grid state collector and networking method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601682A (en) * 2014-12-31 2015-05-06 北京海尔广科数字技术有限公司 Method for switching gateway of internet of things as well as associated device and system
CN106793005A (en) * 2016-11-14 2017-05-31 深圳市唯传科技有限公司 The roaming communication method and system of the internet of things equipment based on LoRa
CN107027162A (en) * 2017-06-06 2017-08-08 福建强闽信息科技有限公司 A kind of LoRa intelligent gateways and its application method, Internet of things system
CN107071791A (en) * 2017-03-31 2017-08-18 深圳市亿道数码技术有限公司 A kind of network-building method and system based on LoRa
EP3319350A2 (en) * 2016-11-03 2018-05-09 Hewlett Packard Enterprise Development LP Roaming on low power wide area networks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601682A (en) * 2014-12-31 2015-05-06 北京海尔广科数字技术有限公司 Method for switching gateway of internet of things as well as associated device and system
EP3319350A2 (en) * 2016-11-03 2018-05-09 Hewlett Packard Enterprise Development LP Roaming on low power wide area networks
CN106793005A (en) * 2016-11-14 2017-05-31 深圳市唯传科技有限公司 The roaming communication method and system of the internet of things equipment based on LoRa
CN107071791A (en) * 2017-03-31 2017-08-18 深圳市亿道数码技术有限公司 A kind of network-building method and system based on LoRa
CN107027162A (en) * 2017-06-06 2017-08-08 福建强闽信息科技有限公司 A kind of LoRa intelligent gateways and its application method, Internet of things system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
N.SORNIN (Semtech) et al."LoRaWAN™1.1 Specification".《LoRa Alliance》.2017, *

Also Published As

Publication number Publication date
CN108966303A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN108966303B (en) Roaming method of wireless Internet of things equipment based on LoRa
US20220124147A1 (en) Application relocation method and apparatus
CN110603851B (en) Communication method and device based on slice
US11991145B2 (en) Device and method for providing information of application server in mobile communication system
US10069557B2 (en) Communication method and device
WO2016202174A1 (en) Network access method, mobile communication terminal, network server, and network access system
KR102284317B1 (en) Communication method, core network device and access network device
CN111918361B (en) Processing method, terminal and network element
KR102165255B1 (en) Registration management method for terminal accessing 5g network on non-3gpp
JP2018538747A (en) Method and apparatus for selecting a core network in a mobile communication system
CN109845216B (en) Communication method and device
US10764805B2 (en) Signal strength measurement method and device
CN108738104B (en) Method, device, system and storage medium for establishing local network connection
JP2021503199A (en) Communication terminals, how to request a connection, network components and how to service the communication terminal
CN108966331B (en) Cell registration method, cell registration device, wireless routing equipment, terminal and storage medium
WO2015088481A1 (en) Switching to advertising locator after connection establishment
CN110268732A (en) Data transmission method, base station, local break-out controller, gateway and system
US8000281B2 (en) System and method for providing multicast/broadcast services in a wireless network
CN107231449B (en) ARP request forwarding method and device and W L AN communication system
KR101795786B1 (en) Method and Apparatus for Selecting Core Network
CN114189497A (en) Address acquisition method and device and computer-readable storage medium
US20080225807A1 (en) Transmitter, receiver and system as well as related methods and computer programs for identifying at least one network capability
CN108174434B (en) Method, terminal and intelligent device for automatically switching communication modes
KR20140117987A (en) Mobile commuication network and mobile communication method using the same
CN107484223B (en) Method and device for terminal roaming switching

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