CN107071836B - Data downlink method compatible with CLASSA and CLASSB - Google Patents

Data downlink method compatible with CLASSA and CLASSB Download PDF

Info

Publication number
CN107071836B
CN107071836B CN201710124315.0A CN201710124315A CN107071836B CN 107071836 B CN107071836 B CN 107071836B CN 201710124315 A CN201710124315 A CN 201710124315A CN 107071836 B CN107071836 B CN 107071836B
Authority
CN
China
Prior art keywords
terminal
class
downlink
data
time
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
CN201710124315.0A
Other languages
Chinese (zh)
Other versions
CN107071836A (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.)
National Animal Network Co ltd
Original Assignee
Guodong Iot Technology Shanghai 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 Guodong Iot Technology Shanghai Co ltd filed Critical Guodong Iot Technology Shanghai Co ltd
Priority to CN201710124315.0A priority Critical patent/CN107071836B/en
Publication of CN107071836A publication Critical patent/CN107071836A/en
Application granted granted Critical
Publication of CN107071836B publication Critical patent/CN107071836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/20Control channels or signalling for resource management
    • H04W72/23Control channels or signalling for resource management in the downlink direction of a wireless link, i.e. towards a terminal

Abstract

The invention discloses a data downlink method compatible with CLASS A and CLASS B, which judges whether a server is in a CLASS A or CLASS B working mode according to a terminal state stored by the server when the server receives downlink data of a terminal. If the class A is the class A, storing the downlink data into a queue, and issuing the downlink data to the base station for sending when the terminal next uplink data; and if the window is class B, calculating the next opened downlink window of the terminal according to the parameters of the class B, and immediately sending the data and the downlink window to the base station for sending. The technical scheme of the invention can ensure the randomness and the safety of the product. The invention only exposes one interface to the outside, namely realizes the downlink of class A and class B, simplifies the work of downlink data and improves the application access efficiency.

Description

Data downlink method compatible with CLASSA and CLASSB
Technical Field
The invention belongs to the technical field of Internet of things, and relates to a data downlink method compatible with CLASS A and CLASS B, in particular to a data downlink method compatible with CLASS A and CLASS B by LoRaWAN.
Background
LoRa is a low-power consumption internet of things technology provided by Semtech corporation, and is widely applied to the fields of wireless meter reading and the like. LoRaWAN adopts LoRa technique to construct low-power consumption wireless internet wide area network. The LoRaWAN terminal sends data to the base station through radio waves, and the base station sends the data to the LoRaWAN server through the Ethernet for processing. The working modes of the LoRaWAN terminal are classified into class A and class B, and the difference between the two modes is mainly that the windows of the terminal for receiving downlink data are different. A window of a terminal working in a ClassA mode for receiving downlink data is opened 1 second after each uplink, and a server transmits the downlink data and transmission time to a base station after each uplink data of the terminal; and the downlink window of the terminal working in the class B mode is periodically opened after being synchronized with the server, and the server needs to calculate the downlink window and select the downlink data to the base station.
It can be seen that the downlinks of class a and class B are completely different, and in the existing scheme, it is necessary to determine whether the terminal is in a class a or class B operating mode before interface call, and then walk different downlink interfaces according to different operating modes, which is not concise enough. A service-side processing scheme capable of performing both class a and class B downlink processing is needed, and only one interface is exposed to the outside, that is, downlink of two modes of class a and class B is realized.
Disclosure of Invention
The invention aims to provide a data downlink method compatible with CLASS A and CLASS B, which judges whether a server is in a CLASS A or CLASS B working mode according to a terminal state stored by the server when the server receives downlink data of a terminal. If the class A is the class A, storing the downlink data into a queue, and issuing the downlink data to the base station for sending when the terminal next uplink data; and if the window is class B, calculating the next opened downlink window of the terminal according to the parameters of the class B, and immediately sending the data and the downlink window to the base station for sending.
In order to achieve the technical purpose and achieve the technical effect, the technical scheme specifically comprises the following steps:
a data downlink method compatible with CLASS A and CLASS B is characterized in that when a LoRaWAN server receives downlink data for a terminal, the following processing is carried out, and the method specifically comprises the following steps:
step 1, judging whether the terminal is in a class A or class B working state according to the synchronous state of the terminal and the server; at the server, each terminal has a parameter A; when the terminal works in class A, the value of A is 0; when the terminal is switched to the classB mode to work, the terminal is firstly synchronized with the server, and the server updates the value of the parameter A to 1;
step 2, if the terminal is in class A mode, storing the data into a queue, and sending the data to the base station for sending when the terminal uplink data is sent next time; the transmitted content comprises downlink data and base station transmission time, wherein the base station transmission time t is obtained by adding and calculating terminal uplink time t1 and downlink window opening time t2, and the base station transmits a downlink window right at the terminal at the time point t after receiving the downlink window, so that data downlink is realized;
step 3, if the terminal is in the class B mode, calculating the next receiving window of the terminal according to the synchronous parameters of the terminal and the server and converting the next receiving window into the sending time t of the base station; and immediately sending the downlink data and the sending time t of the base station to the base station, and sending the data at the time point t after the base station receives the downlink data and the sending time t of the base station.
Further, for a terminal in the CLASS B state, the currently available window W is recorded, and when data is issued and the data is successfully issued, W slides a window forward, thereby ensuring that the downlink windows do not conflict each time.
The invention has the following beneficial effects:
the invention only exposes one interface to the outside, thus realizing the downlink of class A and class B modes, and simplifying the work of downlink data; when the application is accessed, data downlink can be realized only by calling one interface without knowing details such as the working state of the terminal, so that the application access flow is simplified, and the application access efficiency is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments.
A data downlink method compatible with CLASS A and CLASS B is characterized in that when a LoRaWAN server receives downlink data for a terminal, the following processing is carried out:
and 1, judging whether the terminal is in a class A or class B working state according to the synchronous state of the terminal and the server. At the server, each terminal has a parameter a. When the terminal works in class A, the value of A is 0; when the terminal switches to class B mode operation, the terminal will synchronize with the server first, and the server will update the value of parameter A to 1.
Thus, we can determine whether the terminal to downlink data is in class a or class B operation mode.
2 if the terminal is in class A mode, storing the data into a queue, and sending the data to the base station for sending when the terminal uplink data is transmitted next time. The transmitted content comprises downlink data and base station transmitting time, wherein the base station transmitting time t is obtained by adding and calculating terminal uplink time t1 and downlink window opening time t2, and the base station transmits a downlink window right at the terminal at the time point t after receiving the downlink window, so that data downlink is realized.
3, if the terminal is in the class B mode, calculating the next receiving window of the terminal according to the synchronous parameters of the terminal and the server and converting the next receiving window into the sending time t of the base station; and immediately sending the downlink data and the sending time t of the base station to the base station, and sending the data at the time point t after the base station receives the downlink data and the sending time t of the base station.
The following is two downlink data for a terminal operating in CLASS B mode:
JSON down:
{"txpk":{"imme":false,"tmst":3375483540,"freq":476.7,"rfch":0,"powe":20,"modu":"LORA","datr":"SF7BW125","codr":"4/5","ipol":true,"prea":1000,"size":21,"data":"YHlbBAAAJAACO8e6uYZyZTRgdTMV","serve rtime":1487681997386}}
JSON down:
{"txpk":{"imme":false,"tmst":3621243540,"freq":476.7,"rfch":0,"powe":20,"modu":"LORA","datr":"SF7BW125","codr":"4/5","ipol":true,"prea":1000,"size":21,"data":"YHlbBAAAJAACO8e6uYZyZTRgdTMV","servertime":1487682243146}}
the interval between the two data is 5 windows, and the window using the method moves smoothly, thereby realizing data issuing.
The above description is only a preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and any simple modifications or equivalent substitutions of the technical solutions that can be obviously obtained by those skilled in the art within the technical scope of the present invention are within the scope of the present invention.

Claims (2)

1. A data downlink method compatible with CLASS A and CLASS B is characterized in that when a LoRaWAN server receives downlink data for a terminal, the following processing is carried out, and the method specifically comprises the following steps:
step 1, judging whether the terminal is in a class A or class B working state according to the synchronous state of the terminal and the server; at the server, each terminal has a parameter A; when the terminal works in class A, the value of A is 0; when the terminal is switched to the class B mode to work, the terminal is firstly synchronized with the server, and the server updates the value of the parameter A to 1;
step 2, if the terminal is in class A mode, storing the downlink data into a queue, and sending the downlink data to the base station for sending when the terminal uplink data is sent next time; the transmitted content comprises downlink data and base station transmitting time, wherein the time t of the base station transmitting time is obtained by adding and calculating the time t of the uplink time t1 of the terminal and the time t2 of the downlink window opening time, and the base station transmits the downlink window right at the terminal at the time t after receiving the downlink window, so that data downlink is realized;
step 3, if the terminal is in the class B mode, calculating the next receiving window of the terminal according to the synchronous parameters of the terminal and the server and converting the next receiving window into the sending time t of the base station; and immediately sending the downlink data and the sending time t of the base station to the base station, and sending the data at the time point t after the base station receives the downlink data and the sending time t of the base station.
2. The method as claimed in claim 1, wherein the terminal in CLASS B state records the currently available window W, and when data is delivered and delivered successfully, W slides forward by one window, thus ensuring that each time downlink window does not conflict.
CN201710124315.0A 2017-03-03 2017-03-03 Data downlink method compatible with CLASSA and CLASSB Active CN107071836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710124315.0A CN107071836B (en) 2017-03-03 2017-03-03 Data downlink method compatible with CLASSA and CLASSB

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710124315.0A CN107071836B (en) 2017-03-03 2017-03-03 Data downlink method compatible with CLASSA and CLASSB

Publications (2)

Publication Number Publication Date
CN107071836A CN107071836A (en) 2017-08-18
CN107071836B true CN107071836B (en) 2020-04-03

Family

ID=59622328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710124315.0A Active CN107071836B (en) 2017-03-03 2017-03-03 Data downlink method compatible with CLASSA and CLASSB

Country Status (1)

Country Link
CN (1) CN107071836B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107548103B (en) * 2017-09-28 2021-07-23 新华三技术有限公司 Data forwarding method and device
CN107659889B (en) * 2017-09-28 2021-06-29 新华三技术有限公司 Data forwarding method and device
CN111565378A (en) * 2019-02-14 2020-08-21 深圳长城开发科技股份有限公司 LoRa communication method and LoRa communication system
CN111666120A (en) * 2019-03-07 2020-09-15 阿里巴巴集团控股有限公司 Terminal control method and device
CN110446227B (en) * 2019-10-08 2020-01-07 武汉慧联无限科技有限公司 Method, device, equipment and medium for controlling opening time of downlink window of terminal
CN110691375B (en) * 2019-12-10 2020-04-17 武汉慧联无限科技有限公司 Selection method, selection device and computer storage medium
CN112867060B (en) * 2021-01-18 2022-04-05 重庆邮电大学 Downlink message queue processing method of LoRa network server

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106230899A (en) * 2016-07-21 2016-12-14 桂林电子科技大学 A kind of intelligent bus information query system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3002884B1 (en) * 2014-09-30 2018-04-18 Semtech Corporation Wireless communication method
US9730245B2 (en) * 2014-10-09 2017-08-08 Qualcomm Incorporated Random access procedure in a cellular internet of things system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106230899A (en) * 2016-07-21 2016-12-14 桂林电子科技大学 A kind of intelligent bus information query system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于LoRa标准的MAC层协议研究;孙曼,张乃谦,金立标,余少波;《电视技术》;20161017;第40卷(第10期);37-42 *
智慧能源物联网应用研究与分析;陈永波,刘建业,陈继军;《中兴通讯技术》;20170106;第23卷(第1期);77-81 *

Also Published As

Publication number Publication date
CN107071836A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
CN107071836B (en) Data downlink method compatible with CLASSA and CLASSB
CN108353010A (en) The technology integrated for wireless access and cable network
CN105210403A (en) Method for enhancing small cell
CN101257327A (en) Multi-radio management through quality level control
CN103376875B (en) A kind of method of information processing and electronic equipment
CN105916199A (en) Systems, methods, and apparatus for a short beacon in low rate WI-FI communication
CN109451794B (en) Method and device for transmitting information
CN114080067A (en) Discontinuous Reception (DRX) configuration method, device and equipment
TW202008845A (en) Communication between terminal and base station, network access method for terminal, and device
CN102740430B (en) Countless according to instruction list signaling time synchronized communication means and method
KR20230019969A (en) Method for determining timing advance (TA), network device and terminal
WO2023066318A1 (en) Bsc terminal capability reporting method and apparatus, terminal, and network side device
CN105122885A (en) Method, ue and base station for transmitting periodic signal/periodic system information, and method and base station for forwarding periodic system information
CN103442415B (en) A kind of method and a kind of mobile terminal that sends data
KR102062432B1 (en) Base station and method for wireless energy harvesting network system, and system comprising same
CN103139291B (en) A kind of location application server obtains the method for terminal gps data
WO2023072210A1 (en) Sensing method and apparatus, and communication device
CN103686863A (en) Control signaling transfer method and control signaling transfer system
CN106792907B (en) A kind of LTE baseband processing unit real-time scheduling method based on antennal interface
CN104159318B (en) The transmission method and device of data
CN106686571A (en) Method and device for processing discovery messages
CN105101295A (en) Heartbeat message transmitting method and device
CN108307416A (en) A kind of internet-of-things terminal management method
CN101394304A (en) System and method for transparent maintenance of remote radio frequency unit
CN110214468A (en) Control plane time delay in cordless communication network reduces

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
CP01 Change in the name or title of a patent holder

Address after: Room 1604-05, 16th Floor, North Building, No. 333, Chengdu North Road, Jing'an District, Shanghai, 200041

Patentee after: National animal Network Co.,Ltd.

Address before: Room 1604-05, 16th Floor, North Building, No. 333, Chengdu North Road, Jing'an District, Shanghai, 200041

Patentee before: GUODONG IOT TECHNOLOGY (SHANGHAI) CO.,LTD.

CP01 Change in the name or title of a patent holder