CN107809418B - Autonomous binding method and system for LoRa terminal equipment - Google Patents

Autonomous binding method and system for LoRa terminal equipment Download PDF

Info

Publication number
CN107809418B
CN107809418B CN201710880945.0A CN201710880945A CN107809418B CN 107809418 B CN107809418 B CN 107809418B CN 201710880945 A CN201710880945 A CN 201710880945A CN 107809418 B CN107809418 B CN 107809418B
Authority
CN
China
Prior art keywords
lora
binding
verification information
server
terminal equipment
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
CN201710880945.0A
Other languages
Chinese (zh)
Other versions
CN107809418A (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.)
Emaga Interconnect Technologies Co ltd
Original Assignee
Emaga Interconnect Technologies 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 Emaga Interconnect Technologies Co ltd filed Critical Emaga Interconnect Technologies Co ltd
Priority to CN201710880945.0A priority Critical patent/CN107809418B/en
Publication of CN107809418A publication Critical patent/CN107809418A/en
Application granted granted Critical
Publication of CN107809418B publication Critical patent/CN107809418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities

Abstract

The invention provides an autonomous binding method and system for LoRa terminal equipment, and belongs to the field of application of the Internet of things based on LoRa. The method comprises the following steps: the LoRa terminal equipment is powered on, verification information is automatically acquired and sent to the LoRa binding device, and the normal communication mode is entered when feedback information of the LoRa binding device is received or the feedback information is not received within time; the LoRa binding device transmits the verification information to the server after receiving the verification information; the server binds after receiving the verification information and feeds back a binding result to the LoRa binding device; the LoRa binding device sends feedback information to the LoRa terminal equipment and indicates a binding result; the binding is complete. The invention has the beneficial effects that: the cost is reduced, and the binding process is greatly simplified due to the automation characteristic of the cost; the method is simple to operate, and can be completed only by enabling the LoRa terminal equipment binding device to be close to the bound equipment.

Description

Autonomous binding method and system for LoRa terminal equipment
Technical Field
The invention relates to the field of application of the Internet of things based on LoRa, in particular to an autonomous binding method for LoRa terminal equipment and a system for realizing the autonomous binding method.
Background
Currently, there is no efficient method for binding the LoRa terminal device to the server, and the main flow technology mainly includes the following two methods:
(1) the traditional code scanning binding mode is as follows: the verification information needs to be made into a label, and the process is complex, high in cost and easy to make mistakes.
(2) Generally, a storage area is additionally created in the terminal device to store the verification information, and a special method may be subsequently required to read the verification information from the storage area.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides an autonomous binding method for LoRa terminal equipment and a system for realizing the autonomous binding method.
The autonomous binding method of the LoRa terminal equipment comprises the following steps:
s1: the LoRa terminal equipment is powered on, verification information is automatically acquired and sent to the LoRa binding device, and the normal communication mode is entered when feedback information of the LoRa binding device is received or the feedback information is not received within time;
s2: the LoRa binding device transmits the verification information to the server after receiving the verification information;
s3: the server binds after receiving the verification information and feeds back a binding result to the LoRa binding device;
s4: the LoRa binding device sends feedback information to the LoRa terminal equipment and indicates a binding result;
s5: the binding is complete.
In step S1, the verification information is dynamically generated by the LoRa terminal device or distributed by the server and then sent to the LoRa terminal device through the LoRa binding apparatus.
The present invention further improves, in step S1, before the LoRa terminal device sends the verification information, the present invention further includes a step of encrypting the verification information and packaging, in step S3, after the server receives the verification information, the server decrypts the data, and determines whether the binding is successful or not by feeding back the information to the LoRa binding apparatus.
The present invention further improves, in step S2, the LoRa binding apparatus circularly detects whether verification information is received, determines whether RSSI is greater than a set threshold value after the verification information is received, if not, continues to wait for the verification information of the LoRa terminal device, and if yes, transmits the verification information to the server.
The present invention further improves, in step S3, after receiving the verification information, the server determines whether the verification information is legal, and if so, performs binding, and feeds back binding success information to the LoRa binding device, and if not, feeds back binding failure information to the LoRa binding device.
The invention also provides a system for realizing the method, which comprises the LoRa terminal equipment, the LoRa binding device and the server, wherein the LoRa terminal equipment acquires the verification information and sends the verification information to the LoRa binding device; and the server binds after receiving the verification information and feeds back a binding result to the LoRa binding device.
The invention further improves that the LoRa binding device comprises a LoRa communication module, an indication module, an IP network communication module and a CPU, wherein the CPU is respectively connected with the LoRa communication module, the indication module and the IP network communication module, the LoRa binding device is connected with LoRa terminal equipment through the LoRa communication module, and the LoRa binding device is connected with a server through the IP network communication module.
The invention is further improved in that the indication module comprises an acoustic and/or optical indication module.
The invention is further improved, and the IP network communication module comprises a wired communication module or a wireless communication module.
The invention is further improved, and the wireless communication module comprises a 2G/3G/4G or WiFi wireless network module.
Compared with the prior art, the invention has the beneficial effects that: the wireless communication of the LoRa terminal equipment is utilized, a special LoRa binding device is combined, the verification information of the LoRa terminal equipment is transmitted to the server through the LoRa binding device, and the autonomous binding is realized; as long as the uniqueness of the verification information is ensured, the verification information does not need to be stored in advance and then read later on the terminal equipment, so that the cost is reduced, the automation characteristic of the cost is improved, and the binding process is greatly simplified; the method is simple to operate, and can be completed only by enabling the LoRa terminal equipment binding device to be close to the bound equipment.
Drawings
FIG. 1 is a schematic diagram of the system of the present invention;
fig. 2 is a schematic structural diagram of an LoRa binding device according to the present invention;
FIG. 3 is a flow chart of the method of the present invention;
fig. 4 is a work flow chart of the LoRa terminal device;
fig. 5 is a flowchart of the operation of the LoRa binding device;
fig. 6 is a server work flow diagram.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
As shown in fig. 1, the system for autonomous binding of an LoRa terminal device of the present invention includes an LoRa terminal device, an LoRa binding device, and a server, wherein the LoRa terminal device obtains verification information and sends the verification information to the LoRa binding device, and the LoRa binding device receives the verification information, then sends the verification information to the server, sends feedback information of the server to the LoRa terminal device, and indicates a binding result; and the server binds after receiving the verification information and feeds back a binding result to the LoRa binding device.
The LoRa terminal device performs normal communication with the server through the LoRa gateway, and the LoRa gateway does not involve the binding operation, so the LoRa gateway is not described.
As shown in fig. 2, the LoRa binding device includes an LoRa communication module, an indication module, an IP network communication module and a CPU, the CPU is connected with the LoRa communication module, the indication module and the IP network communication module, the LoRa binding device is connected with the LoRa terminal device through the LoRa communication module, and the LoRa binding device is connected with the server through the IP network communication module.
The CPU (central processing unit) in this example may be a high-performance MCU (micro control unit), DSP (digital signal processor), FPGA (Field-Programmable Gate Array), or multi-core processor; the LoRa communication module can be composed of an SX127x and other LoRa transceivers and peripheral circuits thereof; the indication module can be an indication module such as sound, light and LCD, the IP network communication module can be a wired communication module, and can also be a wireless network module such as 2G/3G/4G, WiFi.
As shown in fig. 3, the autonomous binding method for LoRa terminal devices in this embodiment includes the following steps:
firstly, the LoRa terminal equipment binding device is placed in a certain distance from the required binding equipment, the distance can be judged through an RSSI (received signal strength indicator) value, the distance between the LoRa terminal equipment binding device and the bound equipment is limited by judging the received RSSI value, and the purpose is to prevent confusion caused by interference of other surrounding equipment to be bound.
S1: and electrifying the LoRa terminal equipment, entering a binding mode, automatically acquiring verification information and sending the verification information to the LoRa binding device, and entering a normal communication mode if feedback information of the LoRa binding device is received or the feedback information is not received within time.
The verification information can be generated by a program of the LoRa terminal equipment according to a specific rule, even can be uniquely distributed by a server and then transmitted to the LoRa terminal equipment through the LoRa binding device, so long as the uniqueness is ensured and the distribution rule of a terminal equipment manufacturer is met, other equipment is not needed, the aim is to omit the complicated operations of specially distributing the verification information, carving the verification information to the terminal equipment in advance, generating a bar code, then scanning the bar code and the like, and the verification information does not need to be specially carved to an EEPROM (electrically erasable programmable read-only memory) with external expansion, or carving the information to a flash inside a CPU (central processing unit) of the LoRa terminal equipment by other means, thereby greatly simplifying the operation flow and the complexity.
S2: the LoRa binding device transmits the verification information to the server after receiving the verification information;
s3: the server binds after receiving the verification information and feeds back a binding result to the LoRa binding device;
s4: the LoRa binding device sends feedback information to the LoRa terminal equipment and indicates a binding result;
s5: the binding is complete.
According to the embodiment, autonomous binding can be realized and completed only by approaching the LoRa binding device to the LoRa terminal equipment, the operation is very simple and convenient, and the binding process is greatly simplified.
Specifically, as shown in fig. 4, from the LoRa terminal device, the processing flow of the LoRa terminal device is as follows:
the method comprises the steps of entering a binding mode after power-on initialization, firstly obtaining verification information required by binding, packaging and encrypting the verification information, then sending the encrypted information out through LoRa, judging whether a response of a LoRa binding device is received, exiting the binding mode to enter a normal communication mode if the response of the LoRa binding device is received, and otherwise, sending the information repeatedly at regular time, adding 1 to the repeated count, and entering the normal communication mode if the response is not received after N times.
As shown in fig. 5, the work flow of the LoRa binding device is as follows:
the method comprises the steps that a LoRa binding device is electrified and initialized, whether verification information sent by the LoRa terminal equipment is received or not is detected circularly after the LoRa binding device is started, if the verification information is received, whether RSSI is larger than a set threshold value (distance constraint) or not is further judged, if the distance is proper, the LoRa terminal equipment is replied, then the information is further sent to a server through an IP network, feedback information of successful binding of the server is received, an indication module on the LoRa binding device indicates the successful binding state, otherwise, the reply is still not received or the feedback information of the server is wrong after the time is out, and the indication module indicates the failed binding state; if the RSSI is not greater than the set threshold (i.e., too far away), ignoring, continuing to loop to detect whether the verification information sent by the LoRa terminal device is received.
As shown in fig. 6, the server processing flow is:
the server is ready, if the server receives the verification information transmitted by the LoRa binding device, the server decrypts the data, then judges whether the verification information is legal or not, if the verification information is legal, the LoRa terminal equipment is bound by using the obtained verification information, and binding success information is fed back to the LoRa terminal equipment binding device; and if the current binding state is illegal, feeding back binding failure information to the LoRa terminal equipment binding device.
The binding device of the LoRa terminal equipment is close to the bound equipment, and the binding can be finished after the binding success indication is sent by the binding device of the LoRa terminal equipment, so that the binding device has the following outstanding advantages:
(1) the wireless communication of the LoRa terminal equipment is utilized, a special LoRa binding device is combined, the verification information of the LoRa terminal equipment is transmitted to the server through the LoRa binding device, and the autonomous binding is realized;
(2) as long as the uniqueness of the verification information is ensured, the verification information does not need to be stored in advance and then read later on the terminal equipment, so that the cost is reduced, the automation characteristic of the cost is improved, and the binding process is greatly simplified;
(3) the operation is simple, and the operation can be finished only by approaching the LoRa terminal equipment binding device to the bound equipment; the distance between the two devices is restricted, and meanwhile, the interference of surrounding devices to be bound can be effectively avoided, and the binding accuracy is ensured.
The above-described embodiments are intended to be illustrative, and not restrictive, of the invention, and all changes that come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

Claims (9)

1. An autonomous binding method for LoRa terminal equipment is characterized by comprising the following steps:
s1: the LoRa terminal equipment is powered on, verification information is automatically acquired and sent to the LoRa binding device, and the normal communication mode is entered when feedback information of the LoRa binding device is received or the feedback information is not received within time;
s2: the LoRa binding device transmits the verification information to the server after receiving the verification information;
s3: the server binds after receiving the verification information and feeds back a binding result to the LoRa binding device;
s4: the LoRa binding device sends feedback information to the LoRa terminal equipment and indicates a binding result;
s5: the binding is completed and the binding is completed,
in step S1, the verification information is dynamically generated by the LoRa terminal device or distributed by the server and then sent to the LoRa terminal device through the LoRa binding apparatus.
2. The autonomous binding method for the LoRa terminal device according to claim 1, wherein: in step S1, before the LoRa terminal device sends the verification information, the LoRa terminal device further includes a step of encrypting the verification information and packaging the verification information, and in step S3, after receiving the verification information, the server decrypts the data and determines whether the LoRa binding device is successfully bound by feedback.
3. The autonomous binding method for the LoRa terminal device according to claim 1, wherein: in step S2, the LoRa binding apparatus circularly detects whether verification information is received, determines whether the RSSI is greater than a set threshold after the verification information is received, and if not, continues to wait for the verification information of the LoRa terminal device, and if so, transmits the verification information to the server.
4. The autonomous binding method for the LoRa terminal device according to claim 1, wherein: in step S3, after receiving the verification information, the server determines whether the verification information is legal, and if so, performs binding and feeds back binding success information to the LoRa binding device, and if not, feeds back binding failure information to the LoRa binding device.
5. A system for implementing the autonomous binding method for the LoRa terminal device according to any one of claims 1 to 4, wherein: the system comprises LoRa terminal equipment, a LoRa binding device and a server, wherein the LoRa terminal equipment acquires verification information and sends the verification information to the LoRa binding device, the LoRa binding device receives the verification information and then sends the verification information to the server, feedback information of the server is sent to the LoRa terminal equipment, and a binding result is indicated; and the server binds after receiving the verification information and feeds back a binding result to the LoRa binding device.
6. The system of claim 5, wherein: the LoRa binding device comprises a LoRa communication module, an indication module, an IP network communication module and a CPU, wherein the CPU is connected with the LoRa communication module, the indication module and the IP network communication module respectively, the LoRa binding device is connected with LoRa terminal equipment through the LoRa communication module, and the LoRa binding device is connected with a server through the IP network communication module.
7. The system of claim 6, wherein: the indication means comprises an acoustic and/or optical indication means.
8. The system of claim 6, wherein: the IP network communication module comprises a wired communication module or a wireless communication module.
9. The system of claim 8, wherein: the wireless communication module comprises a 2G/3G/4G or WiFi wireless network module.
CN201710880945.0A 2017-09-26 2017-09-26 Autonomous binding method and system for LoRa terminal equipment Active CN107809418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710880945.0A CN107809418B (en) 2017-09-26 2017-09-26 Autonomous binding method and system for LoRa terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710880945.0A CN107809418B (en) 2017-09-26 2017-09-26 Autonomous binding method and system for LoRa terminal equipment

Publications (2)

Publication Number Publication Date
CN107809418A CN107809418A (en) 2018-03-16
CN107809418B true CN107809418B (en) 2021-07-16

Family

ID=61592452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710880945.0A Active CN107809418B (en) 2017-09-26 2017-09-26 Autonomous binding method and system for LoRa terminal equipment

Country Status (1)

Country Link
CN (1) CN107809418B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112443867B (en) * 2019-08-29 2022-11-29 宁波方太厨具有限公司 Indoor range hood remote control terminal binding method in centralized smoke exhaust system of building
CN112073916B (en) * 2020-09-16 2022-09-09 北京国交信通科技发展有限公司 Method for automatically binding communication number and navigation mark of navigation mark terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104159188A (en) * 2014-08-28 2014-11-19 吴宇 Paring method for wireless devices
CN104394022A (en) * 2014-12-09 2015-03-04 安科智慧城市技术(中国)有限公司 Network equipment identification method and device
CN105629752A (en) * 2015-12-30 2016-06-01 深圳众乐智府科技有限公司 Intelligent household equipment access method and intelligent household system
CN106301785A (en) * 2016-08-09 2017-01-04 Tcl集团股份有限公司 The binding method of a kind of intelligent home device and intelligent terminal and system
KR101764135B1 (en) * 2016-04-07 2017-08-14 채령 The wireless self-governing community communication net system and its way to build by CCTV Intranet

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487767B (en) * 2015-08-31 2020-01-21 阿里巴巴集团控股有限公司 Method and device for updating verification information
CN105357629A (en) * 2015-11-20 2016-02-24 青岛海尔股份有限公司 Method and device used for binding mobile terminal with intelligent household electrical appliance
CN106535173A (en) * 2016-09-30 2017-03-22 深圳市唯传科技有限公司 Node binding method and system based on LoRa technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104159188A (en) * 2014-08-28 2014-11-19 吴宇 Paring method for wireless devices
CN104394022A (en) * 2014-12-09 2015-03-04 安科智慧城市技术(中国)有限公司 Network equipment identification method and device
CN105629752A (en) * 2015-12-30 2016-06-01 深圳众乐智府科技有限公司 Intelligent household equipment access method and intelligent household system
KR101764135B1 (en) * 2016-04-07 2017-08-14 채령 The wireless self-governing community communication net system and its way to build by CCTV Intranet
CN106301785A (en) * 2016-08-09 2017-01-04 Tcl集团股份有限公司 The binding method of a kind of intelligent home device and intelligent terminal and system

Also Published As

Publication number Publication date
CN107809418A (en) 2018-03-16

Similar Documents

Publication Publication Date Title
CN107612909B (en) Information interaction method, device and equipment about Internet of things equipment
US10034316B2 (en) Multi-device pairing and provisioning
CN107730859B (en) Wireless device pairing method, device and storage medium
WO2019134306A1 (en) Message processing method, device, terminal apparatus, and readable storage medium
CN109089309B (en) Method for acquiring and feeding back timing advance information, terminal and base station
US10419822B2 (en) Method, device, and system for switching at a mobile terminal of a smart television and acquiring information at a television terminal
WO2013150466A3 (en) Systems and methods for event notification framework in a machine-to-machine (m2m) context
CN104796385A (en) Terminal binding method, device and system
KR20150120482A (en) Method, device and system for establishing data connection
US20150244422A1 (en) Memory device including wireless communication function
CN106681774B (en) Software upgrading method of Bluetooth loudspeaker and intelligent terminal
CN103458019A (en) Method for sharing operating parameters between terminals, server and terminals
CN108989103B (en) Device upgrading method, debugger, network device and network system
CN107809418B (en) Autonomous binding method and system for LoRa terminal equipment
CN103929411A (en) Information displaying method, terminal, safety server and system
US10754479B2 (en) Touch sensing system and data transmission method of a touch panel
CN103677814A (en) Procedure acquiring method, procedure acquiring device and procedure acquiring system
CN106327143B (en) Method and apparatus for nodes in a flow
US20150142937A1 (en) Method and system for remote equipment data installation
CN106302093B (en) Communication method, system and server
CN104184768A (en) Method of transmitting data of Internet of things, device and system
CN111131358B (en) Information acquisition method, device and system, readable storage medium and electronic equipment
CN105763255A (en) Communication connection establishment method applied to intelligent terminal, intelligent terminal and server
CN111031063B (en) Data transmission method and device based on family education machine
CN105007215A (en) Method for modifying E-mail remotely

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