CN106817319A - 一种lora中继器和网关同时接收数据情况的处理方法 - Google Patents

一种lora中继器和网关同时接收数据情况的处理方法 Download PDF

Info

Publication number
CN106817319A
CN106817319A CN201710124162.XA CN201710124162A CN106817319A CN 106817319 A CN106817319 A CN 106817319A CN 201710124162 A CN201710124162 A CN 201710124162A CN 106817319 A CN106817319 A CN 106817319A
Authority
CN
China
Prior art keywords
data
terminal
skey
data0
processing method
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.)
Pending
Application number
CN201710124162.XA
Other languages
English (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.)
China Internet Technology (shanghai) Co Ltd
Original Assignee
China Internet 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 China Internet Technology (shanghai) Co Ltd filed Critical China Internet Technology (shanghai) Co Ltd
Priority to CN201710124162.XA priority Critical patent/CN106817319A/zh
Publication of CN106817319A publication Critical patent/CN106817319A/zh
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明公开了一种lora中继器和网关同时接收数据情况的处理方法,在服务器收到终端通过中继上传的数据时,检查在5秒内该终端是否有相同MIC值的数据上传,如果有则认为是同一个数据重复的发送丢弃不进行处理,如果没有则正常处理。本发明能够有效解决基站和中继器数据重复上报的问题。

Description

一种lora中继器和网关同时接收数据情况的处理方法
技术领域
本发明涉及物联网技术领域,具体地说,涉及一种lora中继器和网关同时接收数据情况的处理方法。
背景技术
LoRa是Semtech公司提出的一种低功耗物联网技术,广泛应用于无线抄表等领域。LoRaWAN采用LoRa技术构建低功耗无线互联广域网。LoRaWAN终端先把数据通过无线电波发送给基站,基站再通过以太网发送给LoRaWAN服务器处理。在实际布网时,一定会出现基站覆盖不到的地方比如地下室等,这时就需要用中继器来进行二次转发了。然而当LoRaWAN终端发送的数据同时被中继器和基站接收到时,由于中继器需要对数据进行重新打包和发送,延时比较大,如果不进行特殊处理就会出现数据重复处理的情况。也就是说如果一个LoRaWAN终端的无线电发送范围内同时存在基站和中继,其上行的每一个数据,LoRaWAN服务器会收到两次,一次来自基站,另一次来自中继器。这显然是不能允许出现的情况。
现在需要一种处理lora中继器和网关同时接收数据情况的处理方案。
发明内容
本发明的目的在于提供一种lora中继器和网关同时接收数据情况的处理方法,在服务器收到终端通过中继上传的数据时,检查在5秒内该终端是否有相同MIC值的数据上传,如果有则认为是同一个数据重复的的发送丢弃不进行处理,如果没有则正常处理。
为实现上述技术目的,达到上述技术效果,其技术方案具体为:
一种lora中继器和网关同时接收数据情况的处理方法,LoRaWAN服务器收到终端通过基站上传的数据时,进行如下处理,具体步骤为:
步骤1、用终端的nwk_skey、app_skey通过aes算法解密该数据,校验MIC值,校验通过则进行入库和推送;
步骤2、把该数据的MIC校验值和终端唯一标识对应并保存起来,计为M0;
LoRaWAN服务器在收到终端通过中继器上传的数据时,进行如下处理,具体步骤为:
步骤1、用终端的nwk_skey、app_skey通过aes算法解密该数据,校验MIC值;校验通过后把数据部分取出,再次解密,这样就能得到通过中继上传的真正数据,计为data0;
步骤2、解析data0,并把data0的MIC校验值取出来,记为M1;
步骤3、取出终端上一次发送数据的MIC校验值M0;
步骤4、比较M0和M1,如果二者相同,则丢弃该次中继器上发的数据,如不相同,进行正常处理如推送、入库。
本发明具有以下有益效果:
本发明能够有效解决基站和中继器数据重复上报的问题。
具体实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合实施例,对本发明进行进一步详细说明。
LoRaWAN服务器收到终端通过基站上传的数据时,进行如下处理:
1用终端的nwk_skey、app_skey通过aes算法解密该数据,校验MIC值,校验通过则进行入库和推送;
2把该数据的MIC校验值和终端唯一标识对应并保存起来,计为M0;
LoRaWAN服务器在收到终端通过中继器上传的数据时,进行如下处理:
1用终端的nwk_skey、app_skey通过aes算法解密该数据,校验MIC值;校验通过后把数据部分取出,再次解密,这样就能得到通过中继上传的真正数据,计为data0;
2解析data0,并把data0的MIC校验值取出来,记为M1;
3取出终端上一次发送数据的MIC校验值M0;
4比较M0和M1,如果二者相同,则丢弃该次中继器上发的数据,如不相同,进行正常处理如推送、入库等。
以上所述,仅为本发明较佳的具体实施方式,本发明的保护范围不限于此,任何熟悉本技术领域的技术人员在本发明披露的技术范围内,可显而易见地得到的技术方案的简单变化或等效替换均落入本发明的保护范围内。

Claims (1)

1.一种lora中继器和网关同时接收数据情况的处理方法,其特征在于,
LoRaWAN服务器收到终端通过基站上传的数据时,进行如下处理,具体步骤为:
步骤1、用终端的nwk_skey、app_skey通过aes算法解密该数据,校验MIC值,校验通过则进行入库和推送;
步骤2、把该数据的MIC校验值和终端唯一标识对应并保存起来,计为M0;
LoRaWAN服务器在收到终端通过中继器上传的数据时,进行如下处理,具体步骤为:
步骤1、用终端的nwk_skey、app_skey通过aes算法解密该数据,校验MIC值;校验通过后把数据部分取出,再次解密,这样就能得到通过中继上传的真正数据,计为data0;
步骤2、解析data0,并把data0的MIC校验值取出来,记为M1;
步骤3、取出终端上一次发送数据的MIC校验值M0;
步骤4、比较M0和M1,如果二者相同,则丢弃该次中继器上发的数据,如不相同,进行正常处理如推送、入库。
CN201710124162.XA 2017-03-03 2017-03-03 一种lora中继器和网关同时接收数据情况的处理方法 Pending CN106817319A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710124162.XA CN106817319A (zh) 2017-03-03 2017-03-03 一种lora中继器和网关同时接收数据情况的处理方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710124162.XA CN106817319A (zh) 2017-03-03 2017-03-03 一种lora中继器和网关同时接收数据情况的处理方法

Publications (1)

Publication Number Publication Date
CN106817319A true CN106817319A (zh) 2017-06-09

Family

ID=59115910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710124162.XA Pending CN106817319A (zh) 2017-03-03 2017-03-03 一种lora中继器和网关同时接收数据情况的处理方法

Country Status (1)

Country Link
CN (1) CN106817319A (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107769834A (zh) * 2017-09-30 2018-03-06 中兴克拉科技(苏州)有限公司 一种LoRaWAN物联网信号中继方法
CN110099066A (zh) * 2019-05-13 2019-08-06 广东信尚安物联科技有限公司 基于LoRaWAN协议的通信方法、装置及系统
CN114221718A (zh) * 2021-12-28 2022-03-22 宜昌测试技术研究所 基于北斗与LoRa组网的遥测遥控系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717105A (zh) * 2015-02-11 2015-06-17 西安航天自动化股份有限公司 一种基于ISA100.11a标准的工业传感网数据重复检测方法
CN106375482A (zh) * 2016-11-08 2017-02-01 华清慧商(北京)科技有限公司 与tcp/ip网络驳接的无线物联接入网传输系统
CN106385436A (zh) * 2016-08-30 2017-02-08 中兴长天信息技术(南昌)有限公司 一种用于物联网的lora无线传输系统数据编码方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717105A (zh) * 2015-02-11 2015-06-17 西安航天自动化股份有限公司 一种基于ISA100.11a标准的工业传感网数据重复检测方法
CN106385436A (zh) * 2016-08-30 2017-02-08 中兴长天信息技术(南昌)有限公司 一种用于物联网的lora无线传输系统数据编码方法
CN106375482A (zh) * 2016-11-08 2017-02-01 华清慧商(北京)科技有限公司 与tcp/ip网络驳接的无线物联接入网传输系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵静 等: "LoRa无线网络技术分析", 《移动通信2016年21期》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107769834A (zh) * 2017-09-30 2018-03-06 中兴克拉科技(苏州)有限公司 一种LoRaWAN物联网信号中继方法
CN107769834B (zh) * 2017-09-30 2020-05-19 中兴克拉科技(苏州)有限公司 一种LoRaWAN物联网信号中继方法
CN110099066A (zh) * 2019-05-13 2019-08-06 广东信尚安物联科技有限公司 基于LoRaWAN协议的通信方法、装置及系统
CN114221718A (zh) * 2021-12-28 2022-03-22 宜昌测试技术研究所 基于北斗与LoRa组网的遥测遥控系统
CN114221718B (zh) * 2021-12-28 2023-09-08 宜昌测试技术研究所 基于北斗与LoRa组网的遥测遥控系统

Similar Documents

Publication Publication Date Title
CN105376357B (zh) 一种移动设备的天线设置方法和装置
PH12019502173A1 (en) Method for transmitting data, terminal device, and network device
PH12019502337A1 (en) Data transmission method and communication device
GB2478470A (en) Method and apparatus for network port and network address translation
GB2388498B (en) Method and apparatus for ensuring address information of a wireless terminal device in communications network
CN106817319A (zh) 一种lora中继器和网关同时接收数据情况的处理方法
CN107547521A (zh) 一种报文传输方法及装置
CN111357318A (zh) 用于不同数据分组流之间的同步的方法和装置
CN110730143B (zh) 一种分片数据包处理方法及装置
CN104618275A (zh) 一种分片处理的方法和设备
CN105307172A (zh) 基于动态时间的蓝牙基站合法性验证方法
AU2019203465A1 (en) Link-fault tolerance in a distributed antenna system
JP6045163B2 (ja) 通信システムおよび時刻情報利用方法
CN106851735A (zh) 一种LoRaWAN处理多网关数据重复发送的方法
CA2818908A1 (en) Managing short range wireless data transmissions
MX2021010256A (es) Sistema y metodo para manejar la inconsistencia de topologia de rociado de igp.
WO2007120789A3 (en) Method and apparatus for processing data at physical layer
CN106792793A (zh) 一种特殊子帧配置方法、装置及基站
CN104717699B (zh) 无线资源控制信令的传输方法及传输系统
SG11202107340QA (en) Key generation method, terminal device and network device
CN105636100A (zh) 一种数据链路监测方法及装置
CN111343611B (zh) 一种信息同步的方法和装置
CN104797002B (zh) 一种让现场设备快速加入无线hart网络的方法
CN107528792A (zh) Mss的修改方法、装置及系统
MX2021001577A (es) Identificacion de dos tuneles configurados en una sesion de unidad de datos de protocolo.

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170609

RJ01 Rejection of invention patent application after publication