WO2022178972A1 - Internet-of-things data transmission method and transmission system - Google Patents

Internet-of-things data transmission method and transmission system Download PDF

Info

Publication number
WO2022178972A1
WO2022178972A1 PCT/CN2021/090329 CN2021090329W WO2022178972A1 WO 2022178972 A1 WO2022178972 A1 WO 2022178972A1 CN 2021090329 W CN2021090329 W CN 2021090329W WO 2022178972 A1 WO2022178972 A1 WO 2022178972A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
internet
receiving
data packet
transmission method
Prior art date
Application number
PCT/CN2021/090329
Other languages
French (fr)
Chinese (zh)
Inventor
宁磊
郑桐毅
洪启俊
叶青松
Original Assignee
深圳技术大学
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 深圳技术大学 filed Critical 深圳技术大学
Publication of WO2022178972A1 publication Critical patent/WO2022178972A1/en

Links

Images

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • 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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol
    • 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)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention relates to the technical field of Internet-of-Things data transmission. Disclosed are an Internet-of-Things data transmission method and transmission system. The Internet-of-Things data transmission method comprises: receiving first data on the basis of a first time interval, and executing similarity determination on the first data, wherein the first data is a group of data with the same feature; if the similarity of the first data is greater than or equal to a first threshold value, receiving second data, wherein the second data is used for representing the current network state; and comparing the second data with a second threshold value range, and if the second data falls within the second threshold value range, sending the first data. The present invention at least has the following beneficial effects: the reliability of transmission of Internet-of-Things packet data in a UDP mode is improved; and network traffic consumed is further saved on by means of adding data similarity determination and network state determination.

Description

物联网数据传输方法及传输系统Internet of things data transmission method and transmission system 技术领域technical field
本发明涉及物联网数据传输技术领域,特别涉及一种物联网数据传输方法及传输系统。The invention relates to the technical field of Internet of Things data transmission, in particular to a data transmission method and transmission system of the Internet of Things.
背景技术Background technique
在如今万物互联的背景下,物联网的数据传输是实现万物互联的关键部分,其中,不仅要保证数据传输的稳定性、可靠性、安全性,同时还要考虑网络带宽的延迟与负载均衡,保证整个物联网网络的稳定性。In the context of today's Internet of Everything, the data transmission of the Internet of Things is a key part of the realization of the Internet of Everything. Among them, not only the stability, reliability and security of data transmission should be guaranteed, but also the delay and load balancing of network bandwidth should be considered. Ensure the stability of the entire IoT network.
物联网设备目前广泛采用CoAP协议进行通信,CoAP协议通过类似HTTP协议的报文段进行确认并根据报文内容确定是否重传,但是其确认机制依然采用传统的等待确认机制,设备在等待过程中处于无工作状态,无形中,降低了网络的传输效率,增大了网络的负载,且在网络状态差的情况下,会重复发送大量数据,消耗大量网络流量。IoT devices currently use the CoAP protocol for communication. The CoAP protocol uses a message segment similar to the HTTP protocol for confirmation and determines whether to retransmit according to the content of the message. However, the confirmation mechanism still uses the traditional waiting confirmation mechanism. The device is in the waiting process. In the non-working state, the transmission efficiency of the network is reduced virtually, and the load of the network is increased. In the case of poor network status, a large amount of data will be repeatedly sent and a large amount of network traffic will be consumed.
发明内容SUMMARY OF THE INVENTION
本发明旨在至少解决现有技术中存在的技术问题之一。为此,本发明提出一种物联网数据传输方法,能够提高物联网小包数据在UDP模式下传输的可靠性以及降低网络流量的消耗。The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes an IoT data transmission method, which can improve the reliability of IoT small packet data transmission in UDP mode and reduce the consumption of network traffic.
本发明还提出一种具有上述物联网数据传输方法的物联网数据传输系统。The present invention also provides an Internet of Things data transmission system with the above-mentioned method for data transmission of the Internet of Things.
根据本发明的第一方面实施例的物联网数据传输方法,包括以下步骤:基于第一时间间隔接收第一数据,对所述第一数据执行相似性判断,所述第一数据为特征相同的一组数据;若所述第一数据相似度大于或等于第一阈值,则接收第二数据,所述第二数据用于表征当前网络状态;将所述第二数据与第二阈值范围进行比较,若所述第二数据落在所述第二阈值范围内,则发送所述第一数据。The IoT data transmission method according to the embodiment of the first aspect of the present invention includes the following steps: receiving first data based on a first time interval, and performing similarity judgment on the first data, the first data having the same characteristics a set of data; if the similarity of the first data is greater than or equal to the first threshold, receive second data, the second data is used to represent the current network state; compare the second data with the second threshold range , and if the second data falls within the second threshold range, the first data is sent.
根据本发明的一些实施例,所述基于第一时间间隔接收第一数据,对所述第一数据执行相似性判断包括:接收数据A1,等待所述第一时间间隔后,接收数据A2;将所述数据A2与所述数据A1差值的绝对值与所述第一阈值进行比较;若所述差值的绝对值小于所述第一阈值,则丢弃所述数据A2。According to some embodiments of the present invention, the receiving the first data based on the first time interval, and performing similarity judgment on the first data includes: receiving the data A1, waiting for the first time interval, and then receiving the data A2; The absolute value of the difference between the data A2 and the data A1 is compared with the first threshold; if the absolute value of the difference is less than the first threshold, the data A2 is discarded.
根据本发明的一些实施例,所述若所述第一数据相似性大于第一阈值,则接收第二数据包括:若所述差值的绝对值大于或等于所述第一阈值,则保存所述数据A2;接收所述第二数据,所述第二数据用于表征网络信号的强度。According to some embodiments of the present invention, the receiving second data if the similarity of the first data is greater than a first threshold includes: if the absolute value of the difference is greater than or equal to the first threshold, saving the data and receiving the second data, where the second data is used to represent the strength of the network signal.
根据本发明的一些实施例,所述若所述第二数据落在所述第二阈值范围内,则发送所述第一数据包括:基于所述第一数据绑定唯一标识,所述唯一标识为严格递增序列;基于所述唯一标识,更新数据包发送状态表中对应的所述第一数据的发送状态;发送所述第一数据。According to some embodiments of the present invention, if the second data falls within the second threshold range, sending the first data includes: binding a unique identifier based on the first data, the unique identifier is a strictly increasing sequence; based on the unique identifier, the sending state of the corresponding first data in the data packet sending state table is updated; and the first data is sent.
根据本发明的一些实施例,所述基于所述唯一标识,更新数据包发送状态表中对应的所述第一数据的发送状态包括:设置所述数据包发送状态表表长为N,设置映射规则为X=ID mod N,ID为所述唯一标识,mod为取余运算,x为所述唯一标识对应的数据在所述数据包发送状态表中的位置索引;基于所述唯一标识计算对应的所述第一数据在所述数据包发送状态表中的位置索引;基于所述位置索引,更新所述数据包发送状态表中对应所述第一数据的数据包的发送状态。According to some embodiments of the present invention, the updating the sending state of the corresponding first data in the data packet sending state table based on the unique identifier includes: setting the length of the data packet sending state table to N, setting a mapping The rule is X=ID mod N, ID is the unique identifier, mod is the remainder operation, and x is the position index of the data corresponding to the unique identifier in the data packet sending status table; based on the unique identifier, calculate the corresponding The position index of the first data in the data packet sending state table; based on the position index, update the sending state of the data packet corresponding to the first data in the data packet sending state table.
根据本发明的一些实施例,所述第一数据通过哈希函数映射至所述数据包发送状态表。According to some embodiments of the present invention, the first data is mapped to the data packet sending state table through a hash function.
根据本发明的一些实施例,还包括:接收所述第二数据,将所述第二数据与所述第二阈值范围进行比较,若所述第二数据落在所述第二阈值范围内,则通过查询数据包发送状态表,发送满足第一规则的数据,所述第一规则为发送数据未收到确认信息和/或数据的发送次数小于或等于预设值;基于数据的发送状态更新所述数据包发送状态表。According to some embodiments of the present invention, further comprising: receiving the second data, comparing the second data with the second threshold range, and if the second data falls within the second threshold range, Then, by querying the data packet sending status table, send data that satisfies the first rule, the first rule is that the sent data has not received confirmation information and/or the number of times of data sending is less than or equal to the preset value; based on the data sending status update The data packet sending status table.
根据本发明的一些实施例,还包括:服务器接收所述第一数据,通过所述第一数据绑定的唯一标识确定所述第一数据的接收状态,所述接收状态包括初次接 收和重复接收;若所述接收状态为初次接收,则确定所述第一数据满足数据接收标准并发送确认信息至设备端;以及,更新数据包接收状态表,所述数据包接收状态表与数据包发送状态表通过相同规则生成;若所述接收状态为重复接收则丢弃所述第一数据。According to some embodiments of the present invention, the method further includes: a server receiving the first data, and determining a receiving state of the first data according to the unique identifier bound to the first data, where the receiving state includes initial reception and repeated reception ; If the receiving state is the initial reception, then determine that the first data meets the data receiving standard and send confirmation information to the device end; And, update the data packet receiving state table, the data packet receiving state table and the data packet sending state The table is generated by the same rule; if the receiving state is repeated receiving, the first data is discarded.
根据本发明的一些实施例,还包括:设备端接收所述确认信息;若所述确认信息表示所述数据成功接收,则更新所述数据包发送状态表中对应所述数据的发送状态为已确认。According to some embodiments of the present invention, the method further includes: the device receiving the confirmation information; if the confirmation information indicates that the data has been successfully received, updating the data packet transmission status table corresponding to the data transmission status to be confirm.
根据本发明的第二方面实施例的物联网数据传输系统,使用上述中任一项所述的物联网数据传输方法,包括:感知设备,用于采集数据,所述感知设备包括智能传感器、二维码、及射频识别卡;通信模组,用于通过有线或无线方式传输所述数据;服务器,用于对所述数据进行分析、检测及控制。The Internet of Things data transmission system according to the embodiment of the second aspect of the present invention, using the Internet of Things data transmission method described in any one of the above, includes: a sensing device for collecting data, and the sensing device includes a smart sensor, two A dimensional code and a radio frequency identification card; a communication module for transmitting the data by wire or wireless; a server for analyzing, detecting and controlling the data.
根据本发明实施例的物联网数据传输方法,至少具有如下有益效果:提高了物联网小包数据在UDP模式下传输的可靠性,通过加入数据相似性判断和网络状态判断进一步节约了消耗的网络流量。The IoT data transmission method according to the embodiment of the present invention has at least the following beneficial effects: improving the reliability of IoT small packet data transmission in the UDP mode, and further saving the consumed network traffic by adding data similarity judgment and network state judgment .
本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the present invention will be set forth, in part, from the following description, and in part will be apparent from the following description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:
图1为本发明实施例的方法的流程示意图;1 is a schematic flowchart of a method according to an embodiment of the present invention;
图2为本发明实施例的方法中的数据相似性判断流程示意图;FIG. 2 is a schematic flowchart of a data similarity judgment process in a method according to an embodiment of the present invention;
图3为本发明实施例的方法中发送第一数据的流程示意图;3 is a schematic flowchart of sending first data in a method according to an embodiment of the present invention;
图4为本发明实施例的更新数据包发送状态表的流程示意图;4 is a schematic flowchart of updating a data packet sending state table according to an embodiment of the present invention;
图5为本发明实施例的采集数据和发送数据的流程示意图;5 is a schematic flowchart of collecting data and sending data according to an embodiment of the present invention;
图6为本发明实施例的接收确认消息的流程示意图;6 is a schematic flowchart of a reception confirmation message according to an embodiment of the present invention;
图7为本发明实施例的重发数据的流程示意图;7 is a schematic flowchart of retransmitting data according to an embodiment of the present invention;
图8为本发明实施例的服务器接收数据的流程示意图;8 is a schematic flowchart of a server receiving data according to an embodiment of the present invention;
图9为本发明实施例的系统的模块示意框图。FIG. 9 is a schematic block diagram of modules of a system according to an embodiment of the present invention.
具体实施方式Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。The following describes in detail the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, only used to explain the present invention, and should not be construed as a limitation of the present invention.
在本发明的描述中,若干的含义是一个或者多个,多个的含义是两个及两个以上,大于、小于、超过等理解为不包括本数,以上、以下、以内等理解为包括本数。如果有描述到第一、第二只是用于区分技术特征为目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量或者隐含指明所指示的技术特征的先后关系。In the description of the present invention, the meaning of several is one or more, the meaning of multiple is two or more, greater than, less than, exceeding, etc. are understood as not including this number, above, below, within, etc. are understood as including this number . If it is described that the first and the second are only for the purpose of distinguishing technical features, it cannot be understood as indicating or implying relative importance, or indicating the number of the indicated technical features or the order of the indicated technical features. relation.
术语解释:Terminology Explanation:
CoAP:CoAP是受限制的应用协议(Constrained Application Protocol)的代名词。CoAP是一种应用层协议,应用于物联网,基于REST架构。它运行于UDP协议之上而不是像HTTP那样运行于TCP之上。CoAP协议非常小巧,最小的数据包仅为4字节。CoAP: CoAP is synonymous with Constrained Application Protocol. CoAP is an application layer protocol, applied to the Internet of Things, based on the REST architecture. It runs over the UDP protocol rather than over TCP like HTTP. The CoAP protocol is very small, and the smallest packet is only 4 bytes.
无线通信模组:对无线通信模组比较普遍的定义为,模组是将基带芯片、存储器、功放器件等集成在一块线路板上,并提供标准接口的功能模块,各类终端借助无线模组可以实现通信功能。移远模组是移动公司旗下一类无线通信模组。Wireless communication module: A common definition of wireless communication module is that a module is a functional module that integrates baseband chips, memory, power amplifier devices, etc. on a circuit board and provides standard interfaces. Various terminals use wireless modules. The communication function can be realized. Quectel module is a type of wireless communication module under the mobile company.
RSSI:Received Signal Strength Indication接收的信号强度指示,用来判定链接质量,以及是否增大广播发送强度。接收机测量电路所得到的接收机输入的平均信号强度指示。RSSI: Received Signal Strength Indication The received signal strength indication is used to determine the link quality and whether to increase the broadcast transmission strength. An indication of the average signal strength of the receiver input obtained by the receiver measurement circuit.
SINR:信号与干扰加噪声比(Signal to Interference plus Noise Ratio)是指接收到的有用信号的强度与接收到的干扰信号(噪声和干扰)的强度的比值;可以简单的理解为“信噪比”。SINR: Signal to Interference plus Noise Ratio (Signal to Interference plus Noise Ratio) refers to the ratio of the strength of the received useful signal to the strength of the received interference signal (noise and interference); it can be simply understood as "signal-to-noise ratio". ".
RSRP:(Reference Signal Receiving Power,参考信号接收功率)是LTE网络中可以代表无线信号强度的关键参数以及物理层测量需求之一,是在某个符号内承载参考信号的所有RE(资源粒子)上接收到的信号功率的平均值。RSRP: (Reference Signal Receiving Power, Reference Signal Received Power) is one of the key parameters that can represent the wireless signal strength and one of the physical layer measurement requirements in the LTE network. The average value of the received signal power.
参照图1,图1为本发明实施例的方法的流程示意图包括:Referring to FIG. 1, FIG. 1 is a schematic flowchart of a method according to an embodiment of the present invention, including:
基于第一时间间隔接收第一数据,对第一数据执行相似性判断,第一数据为特征相同的一组数据;Receive first data based on the first time interval, and perform similarity judgment on the first data, where the first data is a group of data with the same characteristics;
若第一数据相似度大于或等于第一阈值,则接收第二数据,第二数据用于表征当前网络状态;If the similarity of the first data is greater than or equal to the first threshold, receive second data, and the second data is used to represent the current network state;
将第二数据与第二阈值范围进行比较,若第二数据落在第二阈值范围内,则发送第一数据。The second data is compared with the second threshold range, and if the second data falls within the second threshold range, the first data is sent.
需要说明的是,通过对接收的第一数据进行相似性判断,若第一数据相似度大于或等于第一阈值,再对当前的网络状态进行检测,当网络状态良好时,发送第一数据,能够在一定程度上解决目前采用CoAP协议进行通信的物联网数据传输中的网络的传输效率低,网络负载不均衡,且在网络状态差的情况下,会重复发送大量数据,消耗大量网络流量的技术问题。It should be noted that, by judging the similarity of the received first data, if the similarity of the first data is greater than or equal to the first threshold, then the current network state is detected, and when the network state is good, the first data is sent, To a certain extent, it can solve the problem of low transmission efficiency and unbalanced network load in the current Internet of Things data transmission using CoAP protocol for communication, and in the case of poor network status, a large amount of data will be repeatedly sent and a large amount of network traffic will be consumed. technical problem.
具体的,第一时间间隔可以根据实际的物联网传输系统的网络状况,传输数据的实时行要求具体设置,第一数据具有相同的特征,其中一个具体的实施例为,第一数据为一组关于温度的采集数据,可以理解的是,还可以是湿度采集数据、位置采集数据以及电流点压采集数据等。Specifically, the first time interval can be specifically set according to the actual network conditions of the Internet of Things transmission system and the real-time requirements for transmitting data, and the first data has the same characteristics. In a specific embodiment, the first data is a set of Regarding the collected data of temperature, it can be understood that it can also be collected data of humidity, collected data of position, collected data of current point and pressure, and the like.
第二数据用于表征当前网络状态,能够表征当前网络状态的量化指标有很多,只要基于网络状态的衡量指标均适用于本发明中衡量网络状态,其中,本发明中一个具体实施例为,通过查询RSSI、SINR、RSRP的值判断网络状态,此处的网络并不局限于为有线网络或无线网络。具体的,对于RSSI指标来说,当RSSI的取值范围为大于-90dBm并小于-25dBm时,认为当前网络状态能够用于传输数据,对于SINR指标来说,当SINR的取值范围为大于17dB并小于30dB时,认为当前网络状态能够用于传输数据,对于RSRP指标来说,当RSRP的取 值范围为大于-95dBm并小于-44dBm时,认为当前网络状态能够用于传输数据。The second data is used to represent the current network state, and there are many quantitative indicators that can represent the current network state. As long as the measurement indicators based on the network state are suitable for measuring the network state in the present invention, a specific embodiment of the present invention is: Query the values of RSSI, SINR, and RSRP to determine the network status. The network here is not limited to a wired network or a wireless network. Specifically, for the RSSI indicator, when the value range of RSSI is greater than -90dBm and less than -25dBm, it is considered that the current network state can be used to transmit data. For the SINR indicator, when the value range of SINR is greater than 17dB When the value is less than 30dB, it is considered that the current network state can be used to transmit data. For the RSRP indicator, when the value range of RSRP is greater than -95dBm and less than -44dBm, it is considered that the current network state can be used to transmit data.
图2为本发明实施例的方法中的数据相似性判断流程示意图,包括:FIG. 2 is a schematic diagram of a data similarity judgment process in a method according to an embodiment of the present invention, including:
接收数据A1,等待第一时间间隔后,接收数据A2;Receive data A1, wait for the first time interval, and then receive data A2;
将数据A2与数据A1差值的绝对值与第一阈值进行比较;Compare the absolute value of the difference between data A2 and data A1 with the first threshold;
若差值的绝对值小于第一阈值,则丢弃数据A2。If the absolute value of the difference is smaller than the first threshold, the data A2 is discarded.
若差值的绝对值大于或等于第一阈值,则保存数据A2;If the absolute value of the difference is greater than or equal to the first threshold, save the data A2;
接收第二数据,第二数据用于表征网络信号的强度。Second data is received, and the second data is used to characterize the strength of the network signal.
其中,本发明一个具体的实施例为:通过GPS定位传感器采集经纬度位置数据,设置相似性判断准则,如新旧经纬度差值的绝对值大于数值K,若差值的绝对值不大于K,则新数据为重复数据并丢弃,并等待采集间隔T1后再继续循环采集数据;否则进行网络状态判断,通过驱动移远模组查询RSSI、SINR、RSRP的值,判断网络状态,若网络状态不好,则等待查询间隔T2后再次查询网络状态,再判断是否发送数据。A specific embodiment of the present invention is: collecting latitude and longitude position data through a GPS positioning sensor, and setting similarity judgment criteria, such as the absolute value of the difference between the old and new longitude and latitude is greater than the value K, if the absolute value of the difference is not greater than K, then the new The data is repeated data and discarded, and the data is collected cyclically after waiting for the collection interval T1; otherwise, the network status is judged, and the RSSI, SINR, and RSRP values are driven by the Quectel module to query the values of RSSI, SINR, and RSRP, and the network status is judged. Then wait for the query interval T2 to query the network status again, and then determine whether to send data.
图3为本发明实施例的方法中发送第一数据的流程示意图,包括:3 is a schematic flowchart of sending first data in a method according to an embodiment of the present invention, including:
基于第一数据绑定唯一标识,唯一标识为严格递增序列;Based on the first data binding unique identifier, the unique identifier is a strictly increasing sequence;
基于唯一标识,更新数据包发送状态表中对应的第一数据的发送状态;Based on the unique identifier, update the sending state of the corresponding first data in the data packet sending state table;
发送第一数据。Send the first data.
其中,本发明一个具体的实施例为:通过GPS定位传感器采集经纬度位置数据,设置相似性判断准则,如新旧经纬度差值的绝对值大于数值K,若差值的绝对值不大于K,则新数据为重复数据并丢弃,并等待采集间隔T1后再继续循环采集数据;否则进行网络状态判断,通过驱动移远模组查询RSSI、SINR、RSRP的值,判断网络状态,若网络状态不好,则等待查询间隔T2后再次查询网络状态,再判断是否发送数据,若网络状态良好,则为每个数据包绑定指定ID号(此ID号为严格递增序列),后发送数据,并基于该ID号更新数据包发送状态表中对应数据包的发送状态,等待采集间隔T1后再继续循环采集数据。A specific embodiment of the present invention is: collecting latitude and longitude position data through a GPS positioning sensor, and setting similarity judgment criteria, such as the absolute value of the difference between the old and new longitude and latitude is greater than the value K, if the absolute value of the difference is not greater than K, then the new The data is repeated data and discarded, and the data is collected cyclically after waiting for the collection interval T1; otherwise, the network status is judged, and the RSSI, SINR, and RSRP values are driven by the Quectel module to query the values of RSSI, SINR, and RSRP, and the network status is judged. Then wait for the query interval T2 to query the network status again, and then determine whether to send data. If the network status is good, assign an ID number to each data packet (this ID number is a strictly increasing sequence), and then send the data, and based on this The ID number updates the sending state of the corresponding data packet in the data packet sending state table, and continues to collect data cyclically after waiting for the collection interval T1.
本发明一个具体的实施例为,第一数据通过哈希函数映射至数据包发送状态 表。A specific embodiment of the present invention is that the first data is mapped to the data packet sending state table through a hash function.
图4为本发明实施例的更新数据包发送状态表的流程示意图,包括:4 is a schematic flowchart of updating a data packet sending status table according to an embodiment of the present invention, including:
设置数据包发送状态表表长为N,设置映射规则为X=ID mod N,ID为唯一标识,mod为取余运算,x为唯一标识对应的数据在数据包发送状态表中的位置索引;Set the length of the data packet sending status table table to N, set the mapping rule to X=ID mod N, ID is the unique identifier, mod is the remainder operation, and x is the position index of the data corresponding to the unique identifier in the data packet sending status table;
基于唯一标识计算对应的第一数据在数据包发送状态表中的位置索引,Calculate the position index of the corresponding first data in the data packet sending status table based on the unique identifier,
基于位置索引,更新数据包发送状态表中对应第一数据的数据包的发送状态。具体的,设置数据包发送状态表的固定表长为N,数据包发送状态表能容纳N个数据包的状态信息记录,使用哈希函数:X=ID mod N(mod为取余运算)进行映射存储,若发生映射冲突则覆盖之前的记录,一个具体的实施例是:设置ID=12,N=6,X=0=12 mod 6,则ID=12的数据包的状态存储在表中位置索引为0的位置,此时若有ID=18的数据包状态需要更新,则覆盖ID=12的数据包状态,以理解的是,在网络状态良好时,表长为N,采集间隔T1的情况下,设备将在经过N*T1时间后,舍弃N*T1时间之前采集的数据,不再发送,因此,N和T1的选取,取决于实际的网络状态稳定性以及数据的时效性。Based on the location index, the sending state of the data packet corresponding to the first data in the data packet sending state table is updated. Specifically, the fixed table length of the data packet sending state table is set to N, and the data packet sending state table can accommodate the state information records of N data packets, using the hash function: X=ID mod N (mod is the remainder operation) to perform Mapping storage, if a mapping conflict occurs, the previous record is overwritten. A specific embodiment is: set ID=12, N=6, X=0=12 mod 6, then the state of the data packet of ID=12 is stored in the table The position index is 0. At this time, if the status of the data packet with ID=18 needs to be updated, the status of the data packet with ID=12 will be covered. It is understood that when the network status is good, the table length is N, and the collection interval is T1. In the case of N*T1, the device will discard the data collected before N*T1 time and will not send it again. Therefore, the selection of N and T1 depends on the actual network state stability and the timeliness of the data.
本发明一个具体的实施例为,接收第二数据,将第二数据与第二阈值范围进行比较,若第二数据落在第二阈值范围内,则通过查询数据包发送状态表,发送满足第一规则的数据,第一规则为发送数据未收到确认信息和/或数据的发送次数小于或等于预设值;基于数据的发送状态更新数据包发送状态表。A specific embodiment of the present invention is to receive the second data, compare the second data with the second threshold range, and if the second data falls within the second threshold range, query the data packet sending status table, and send the data satisfying the first threshold. A rule of data, the first rule is that the data is sent without receiving confirmation information and/or the number of times of data sending is less than or equal to the preset value; the data packet sending state table is updated based on the sending state of the data.
具体的,接收用于网络状态判断的数据,其中,用于网络状态判断的数据是通过驱动移远模组查询的RSSI、SINR、RSRP的值,若网络状态不好,则等待查询间隔T2后再次查询网络状态,再判断是否发送数据,若网络状态良好,则查询数据包发送状态表,将所有未确认的以及重复发送次数不超过M次的数据包都重新发送一次,同时维护更新数据包发送状态表,使相应数据包的重复发送次数加一(初始重复发送次数为0),此后等待重发间隔T3后再进行数据重发。Specifically, the data used for network status judgment is received, wherein the data used for network status judgment is the values of RSSI, SINR, and RSRP queried by driving the Quexel module. If the network status is not good, wait for the query interval T2 Query the network status again, and then determine whether to send data. If the network status is good, query the data packet sending status table, and resend all unacknowledged and repeated data packets that are not sent more than M times, and maintain and update the data packets at the same time. In the sending state table, add one to the number of repeated sending of the corresponding data packet (the initial repeated sending number is 0), and then wait for the retransmission interval T3 before retransmitting the data.
本发明一个具体的实施例为,服务器接收第一数据,通过第一数据绑定的唯 一标识确定第一数据的接收状态,接收状态包括初次接收和重复接收;若接收状态为初次接收,则确定第一数据满足数据接收标准并发送确认信息至设备端;更新数据包接收状态表,数据包接收状态表与数据包发送状态表通过相同规则生成;若接收状态为重复接收则丢弃第一数据。A specific embodiment of the present invention is that the server receives the first data, and determines the receiving state of the first data through the unique identifier bound to the first data, and the receiving state includes initial reception and repeated reception; The first data meets the data reception standard and sends confirmation information to the device; the data packet reception status table is updated, and the data packet reception status table and the data packet transmission status table are generated by the same rules; if the reception status is repeated reception, the first data is discarded.
本发明一个具体的实施例为,设备端接收确认信息;若确认信息表示数据成功接收,则更新数据包发送状态表中对应数据的发送状态为已确认。A specific embodiment of the present invention is that the device receives the confirmation information; if the confirmation information indicates that the data is successfully received, the transmission state of the corresponding data in the update data packet transmission state table is confirmed.
图5为本发明实施例的采集数据和发送数据的流程示意图,具体的,基于图5的一个本发明的具体实施例为:设备开启一个线程执行数据发送,所示通过GPS定位传感器采集经纬度位置数据,设置相似性判断准则,如新旧经纬度差值的绝对值大于数值K,若差值的绝对值不大于K,则认为新数据为重复数据并丢弃,并等待采集间隔T1后再继续循环采集数据;否则进行网络状态判断,通过驱动移远模组查询RSSI、SINR、RSRP的值,用于判断网络状态,若网络状态不好,则等待查询间隔T2后再次查询网络状态,再判断是否发送数据,若网络状态良好则为每个数据包绑定指定ID号(此ID号为严格递增序列)后发送数据,并更新数据包发送状态表中对应数据包的发送状态,然后等待采集间隔T1后再继续循环采集数据。FIG. 5 is a schematic flow chart of collecting data and sending data according to an embodiment of the present invention. Specifically, a specific embodiment of the present invention based on FIG. 5 is: the device starts a thread to execute data transmission, and the latitude and longitude positions are collected by the GPS positioning sensor. If the absolute value of the difference between the old and new longitude and latitude is greater than the value K, if the absolute value of the difference is not greater than K, the new data is considered to be duplicate data and discarded, and the cycle collection will continue after the collection interval T1. Otherwise, the network status is judged, and the RSSI, SINR, and RSRP values are queried by driving the Quectel module to judge the network status. If the network status is not good, wait for the query interval T2 to query the network status again, and then judge whether to send Data, if the network status is good, assign an ID number for each data packet binding (this ID number is a strictly increasing sequence) and send the data, and update the sending status of the corresponding data packet in the data packet sending status table, and then wait for the collection interval T1 Then continue to collect data cyclically.
其中,上述数据包发送状态表的固定表长为N,能容纳N个数据包的状态信息记录,使用哈希函数:X=ID mod N(mod为取余运算)进行映射存储,若发生映射冲突则覆盖之前的记录,具体表现为ID=12,N=6,X=0=12 mod 6,则ID=12的数据包的状态存储在表中索引为0的位置,此时若有ID=18的数据包状态需要更新,则覆盖ID=12的数据包状态,由此引出一个结论,在网络状态良好(即忽略查询间隔),表长为N,采集间隔T1的情况下,设备将在经过N*T1时间后,舍弃N*T1时间之前采集的数据,不再发送,所以N和T1的选取,取决于实际的网络状态稳定性以及数据的时效性。Among them, the fixed table length of the above-mentioned data packet sending status table is N, which can accommodate the status information records of N data packets. The hash function: X=ID mod N (mod is the remainder operation) is used for mapping and storage. If mapping occurs The conflict will cover the previous record, and the specific performance is ID=12, N=6, X=0=12 mod 6, then the status of the data packet with ID=12 is stored in the position of index 0 in the table, if there is an ID If the data packet status with ID=18 needs to be updated, the data packet status with ID=12 will be covered, which leads to a conclusion that when the network status is good (that is, the query interval is ignored), the table length is N, and the collection interval is T1, the device will After the N*T1 time has passed, the data collected before the N*T1 time will be discarded and will no longer be sent. Therefore, the selection of N and T1 depends on the actual network state stability and the timeliness of the data.
图6为本发明实施例的接收确认消息的流程示意图,具体的,基于图6的一个本发明的具体实施例为:传感设备端开启线程执行数据确认,如图6所示接收 来自服务器的确认数据包,并更新数据包发送状态表,若为确认无误,则在表上更新指定数据包的发送状态为已确认。FIG. 6 is a schematic flowchart of receiving a confirmation message according to an embodiment of the present invention. Specifically, a specific embodiment of the present invention based on FIG. 6 is: the sensing device side starts a thread to perform data confirmation, and as shown in FIG. 6, receives a message from the server. Confirm the data packet, and update the data packet sending status table, if the confirmation is correct, update the sending status of the specified data packet on the table as confirmed.
图7为本发明实施例的重发数据的流程示意图,具体的,基于图7的一个本发明的具体实施例为:传感设备开启线程执行数据重发,如图7所示,首先驱动移远模组进行网络状态的判定,若为良好,则查询数据包发送状态表,将所有未确认的以及重复发送次数不超过M次的数据包都重新发送一次,同时维护更新数据包发送状态表,使相应数据包的重复发送次数加1,此后等待重发间隔T3后再进行数据重发;若网络状态不好,则等待查询间隔T2后再进行网络状态的查询。FIG. 7 is a schematic flowchart of data retransmission according to an embodiment of the present invention. Specifically, a specific embodiment of the present invention based on FIG. 7 is: the sensing device starts a thread to execute data retransmission. As shown in FIG. The remote module determines the network status. If it is good, it queries the data packet sending status table, resends all unacknowledged and repeated data packets that are not sent more than M times, and maintains and updates the data packet sending status table. , increase the number of repeated transmissions of the corresponding data packet by 1, and then wait for the retransmission interval T3 before retransmitting the data; if the network status is not good, wait for the query interval T2 before querying the network status.
图8为本发明实施例的服务器接收数据的流程示意图,具体的,基于图8的一个本发明的具体实施例为:服务器执行数据接收,如图8所示,接收来自传感设备的数据后,首先要判断是否是已接收过的重复数据,这主要根据数据包接收状态表,若在表中查询已接收到的数据ID号与当前接收的数据ID号相同,则为重复数据,丢弃即可;否则判定为新数据,再判断数据是否完整无误,若出现缺值、乱码等现象则再次等待设备数据的重新发送,否则发送确认信息给设备,告诉设备该数据已收到,并更新数据包接收状态表中对应位置数据包的ID号。此处的数据包接收状态表和数据包发送状态表类似,固定表长为N(与数据包发送状态表长相同),能容纳N个数据包的状态信息记录,使用哈希函数:X=ID mod N(mod为取余运算)进行映射存储,若发生映射冲突则覆盖之前的记录,具体表现为ID=12,N=6,X=0=12 mod 6,则在表中索引为0的位置存储ID号12,若又有ID=12的数据包发来,则查询ID=12以存在,判定重复,若ID=18的数据包发来,则查询当前表中ID=12,判定为新数据,更新为ID=18,其他位置的数据覆盖规则与此相同。Fig. 8 is a schematic flowchart of a server receiving data according to an embodiment of the present invention. Specifically, a specific embodiment of the present invention based on Fig. 8 is: the server performs data receiving. As shown in Fig. 8, after receiving the data from the sensing device , First of all, it is necessary to judge whether it is the received duplicate data, which is mainly based on the data packet receiving status table. If the received data ID number is the same as the currently received data ID number in the table, it is duplicate data, and discarding is Yes; otherwise, it is judged as new data, and then judge whether the data is complete and correct, if there are missing values, garbled characters, etc., wait for the device data to be resent again, otherwise send a confirmation message to the device to tell the device that the data has been received, and update the data The ID number of the corresponding location data packet in the packet receiving status table. The data packet receiving status table here is similar to the data packet sending status table. The fixed table length is N (the same length as the data packet sending status table), which can accommodate the status information records of N data packets. The hash function is used: X= ID mod N (mod is the remainder operation) is mapped and stored. If a mapping conflict occurs, the previous record will be overwritten. The specific performance is ID=12, N=6, X=0=12 mod 6, then the index in the table is 0 The location stores the ID number 12. If another data packet with ID=12 is sent, query ID=12 to exist, and judge that it is repeated. If the data packet with ID=18 is sent, query the current table with ID=12 and judge. For new data, update to ID=18, and the data coverage rules for other locations are the same.
图9为本发明实施例的系统的模块示意框图,在本发明具体的实施例之中,包括一种物联网数据传输系统,系统中使用上述的任一项的物联网数据传输方法,包括:FIG. 9 is a schematic block diagram of modules of a system according to an embodiment of the present invention. In a specific embodiment of the present invention, it includes an Internet of Things data transmission system. The system uses any of the above-mentioned Internet of Things data transmission methods, including:
感知设备,用于采集数据,感知设备包括智能传感器、二维码、及射频识别卡;Perception equipment, used to collect data, including smart sensors, two-dimensional codes, and radio frequency identification cards;
通信模组,用于通过有线或无线方式传输数据;Communication module, used to transmit data by wire or wireless;
服务器,用于对数据进行分析、检测、控制。The server is used to analyze, detect and control the data.
一个具体的实施例为:使用GPS定位传感器采集位置数据;使用移远模组为无线通信模组,进行数据传输,服务器选用连接互联网的任意一台计算机;通过执行上述的物联网数据传输方法进行物联网的数据传输,需要说明的是,本发明的实施例并不局限于定位传感器,任意传感器都属于本发明的范围内,包括温度传感器,电流传感器,点压传感器,湿度传感器,压力传感器,声音传感器,信号强度传感器等,本发明不局限数据的传输方式,包括有线传输和无线传输,服务器可以选用一台联网的计算机,也可以选择现有技术中任意的服务器形式,例如云服务器,可以理解的是,服务器的选取根据实际具体处理的数据量的大小选取合适的服务器。A specific embodiment is: use GPS positioning sensor to collect position data; use a remote module as a wireless communication module for data transmission, and the server selects any computer connected to the Internet; Data transmission of the Internet of Things, it should be noted that the embodiments of the present invention are not limited to positioning sensors, and any sensor falls within the scope of the present invention, including temperature sensors, current sensors, point pressure sensors, humidity sensors, pressure sensors, Sound sensor, signal strength sensor, etc. The present invention is not limited to data transmission methods, including wired transmission and wireless transmission. The server can be a networked computer, or any server form in the prior art, such as a cloud server, can be used. It should be understood that the selection of the server selects an appropriate server according to the size of the actual and specific processed data.
通过本发明的技术方案,提高了物联网小包数据在UDP模式下传输的可靠性,通过加入数据相似性判断和网络状态判断进一步节约了消耗的网络流量Through the technical scheme of the present invention, the reliability of the small packet data transmission of the Internet of Things in the UDP mode is improved, and the consumption of network traffic is further saved by adding data similarity judgment and network state judgment.
尽管本文描述了具体实施方案,但是本领域中的普通技术人员将认识到,许多其它修改或另选的实施方案同样处于本公开的范围内。例如,结合特定设备或组件描述的功能和/或处理能力中的任一项可以由任何其它设备或部件来执行。另外,虽然已根据本公开的实施方案描述了各种例示性具体实施和架构,但是本领域中的普通技术人员将认识到,对本文所述的例示性具体实施和架构的许多其它修改也处于本公开的范围内。Although specific embodiments are described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are also within the scope of this disclosure. For example, any of the functions and/or processing capabilities described in connection with a particular device or component may be performed by any other device or component. Additionally, although various exemplary implementations and architectures have been described in accordance with the embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures described herein are within within the scope of this disclosure.
上文参考根据示例性实施方案所述的系统、方法、系统和/或计算机程序产品的框图和流程图描述了本公开的某些方面。应当理解,框图和流程图中的一个或多个块以及框图和流程图中的块的组合可分别通过执行计算机可执行程序指令来实现。同样,根据一些实施方案,框图和流程图中的一些块可能无需按示出的顺序执行,或者可以无需全部执行。另外,超出框图和流程图中的块所示的那 些部件和/或操作以外的附加部件和/或操作可存在于某些实施方案中。Certain aspects of the present disclosure are described above with reference to block diagrams and flowchart illustrations of systems, methods, systems and/or computer program products according to example embodiments. It will be understood that one or more blocks of the block diagrams and flowchart illustrations, and combinations of blocks in the block diagrams and flowchart illustrations, respectively, can be implemented by the execution of computer-executable program instructions. Also, some blocks of the block diagrams and flowchart illustrations may not need to be performed in the order shown, or all of the blocks may not need to be performed in accordance with some implementations. Additionally, additional components and/or operations beyond those illustrated by blocks in the block diagrams and flowcharts may be present in certain embodiments.
因此,框图和流程图中的块支持用于执行指定功能的装置的组合、用于执行指定功能的元件或步骤的组合以及用于执行指定功能的程序指令装置。还应当理解,框图和流程图中的每个块以及框图和流程图中的块的组合可以由执行特定功能、元件或步骤的专用硬件计算机系统或者专用硬件和计算机指令的组合来实现。Accordingly, blocks in the block diagrams and flowchart illustrations support combinations of means for performing the specified functions, combinations of elements or steps for performing the specified functions and program instruction means for performing the specified functions. It will also be understood that each block of the block diagrams and flowchart illustrations, and combinations of blocks in the block diagrams and flowchart illustrations, can be implemented by special purpose hardware computer systems, or combinations of special purpose hardware and computer instructions, that perform the specified functions, elements, or steps.
本文所述的程序模块、应用程序等可包括一个或多个软件组件,包括例如软件对象、方法、数据结构等。每个此类软件组件可包括计算机可执行指令,所述计算机可执行指令响应于执行而使本文所述的功能的至少一部分(例如,本文所述的例示性方法的一种或多种操作)被执行。Program modules, applications, and the like described herein may include one or more software components, including, for example, software objects, methods, data structures, and the like. Each such software component may include computer-executable instructions that, in response to execution, cause at least a portion of the functions described herein (eg, one or more operations of the exemplary methods described herein) be executed.
软件组件可以用各种编程语言中的任一种来编码。一种例示性编程语言可以为低级编程语言,诸如与特定硬件体系结构和/或操作系统平台相关联的汇编语言。包括汇编语言指令的软件组件可能需要在由硬件架构和/或平台执行之前由汇编程序转换为可执行的机器代码。另一种示例性编程语言可以为更高级的编程语言,其可以跨多种架构移植。包括更高级编程语言的软件组件在执行之前可能需要由解释器或编译器转换为中间表示。编程语言的其它示例包括但不限于宏语言、外壳或命令语言、作业控制语言、脚本语言、数据库查询或搜索语言、或报告编写语言。在一个或多个示例性实施方案中,包含上述编程语言示例中的一者的指令的软件组件可直接由操作系统或其它软件组件执行,而无需首先转换成另一种形式。Software components can be coded in any of a variety of programming languages. An exemplary programming language may be a low-level programming language, such as assembly language associated with a particular hardware architecture and/or operating system platform. Software components that include assembly language instructions may need to be converted into executable machine code by an assembler prior to execution by a hardware architecture and/or platform. Another exemplary programming language may be a higher level programming language that is portable across multiple architectures. Software components including higher level programming languages may need to be converted into an intermediate representation by an interpreter or compiler before execution. Other examples of programming languages include, but are not limited to, macro languages, shell or command languages, job control languages, scripting languages, database query or search languages, or report writing languages. In one or more exemplary implementations, a software component containing instructions from one of the above-described programming language examples can be directly executed by an operating system or other software component without first being converted to another form.
软件组件可存储为文件或其它数据存储构造。具有相似类型或相关功能的软件组件可一起存储在诸如特定的目录、文件夹或库中。软件组件可为静态的(例如,预设的或固定的)或动态的(例如,在执行时创建或修改的)。Software components may be stored as files or other data storage constructs. Software components with similar types or related functions may be stored together, for example, in a particular directory, folder, or library. Software components may be static (eg, preset or fixed) or dynamic (eg, created or modified at execution time).
上面结合附图对本发明实施例作了详细说明,但是本发明不限于上述实施例,在所属技术领域普通技术人员所具备的知识范围内,还可以在不脱离本发明宗旨的前提下作出各种变化。The embodiments of the present invention have been described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned embodiments, and within the scope of knowledge possessed by those of ordinary skill in the art, various Variety.

Claims (10)

  1. 一种物联网数据传输方法,其特征在于,包括以下步骤:A data transmission method for the Internet of Things, comprising the following steps:
    基于第一时间间隔接收第一数据,对所述第一数据执行相似性判断,所述第一数据为特征相同的一组数据;Receive first data based on a first time interval, and perform similarity judgment on the first data, where the first data is a group of data with the same characteristics;
    若所述第一数据相似度大于或等于第一阈值,则接收第二数据,所述第二数据用于表征当前网络状态;If the similarity of the first data is greater than or equal to the first threshold, receiving second data, where the second data is used to represent the current network state;
    将所述第二数据与第二阈值范围进行比较,若所述第二数据落在所述第二阈值范围内,则发送所述第一数据。The second data is compared with a second threshold range, and if the second data falls within the second threshold range, the first data is sent.
  2. 根据权利要求1所述的物联网数据传输方法,其特征在于,所述基于第一时间间隔接收第一数据,对所述第一数据执行相似性判断包括:The IoT data transmission method according to claim 1, wherein the receiving the first data based on the first time interval, and performing similarity judgment on the first data comprises:
    接收数据A1,等待所述第一时间间隔后,接收数据A2;Receive data A1, and after waiting for the first time interval, receive data A2;
    将所述数据A2与所述数据A1差值的绝对值与所述第一阈值进行比较;comparing the absolute value of the difference between the data A2 and the data A1 with the first threshold;
    若所述差值的绝对值小于所述第一阈值,则丢弃所述数据A2。If the absolute value of the difference is smaller than the first threshold, the data A2 is discarded.
  3. 根据权利要求2所述的物联网数据传输方法,其特征在于,所述若所述第一数据相似性大于第一阈值,则接收第二数据包括:The IoT data transmission method according to claim 2, wherein, if the similarity of the first data is greater than a first threshold, receiving the second data comprises:
    若所述差值的绝对值大于或等于所述第一阈值,则保存所述数据A2;If the absolute value of the difference is greater than or equal to the first threshold, save the data A2;
    接收所述第二数据,所述第二数据用于表征网络信号的强度。The second data is received, and the second data is used to characterize the strength of the network signal.
  4. 根据权利要求1所述的物联网数据传输方法,其特征在于,所述若所述第二数据落在所述第二阈值范围内,则发送所述第一数据包括:The IoT data transmission method according to claim 1, wherein if the second data falls within the second threshold range, sending the first data comprises:
    基于所述第一数据绑定唯一标识,所述唯一标识为严格递增序列;Based on the first data binding unique identifier, the unique identifier is a strictly increasing sequence;
    基于所述唯一标识,更新数据包发送状态表中对应的所述第一数据的发送状态;Based on the unique identifier, update the sending state of the first data corresponding to the data packet sending state table;
    发送所述第一数据。The first data is sent.
  5. 根据权利要求4所述的物联网数据传输方法,其特征在于,所述基于所述唯一标识,更新数据包发送状态表中对应的所述第一数据的发送状态包括:The Internet of Things data transmission method according to claim 4, wherein, based on the unique identifier, updating the sending state of the first data corresponding to the data packet sending state table comprises:
    设置所述数据包发送状态表表长为N,设置映射规则为X=ID mod N,ID 为所述唯一标识,mod为取余运算,x为所述唯一标识对应的数据在所述数据包发送状态表中的位置索引;Set the length of the data packet sending status table table to N, set the mapping rule to be X=ID mod N, ID is the unique identifier, mod is the remainder operation, and x is the data corresponding to the unique identifier in the data packet position index in the sending state table;
    基于所述唯一标识计算对应的所述第一数据在所述数据包发送状态表中的位置索引;Calculate the position index of the corresponding first data in the data packet sending status table based on the unique identifier;
    基于所述位置索引,更新所述数据包发送状态表中对应所述第一数据的数据包的发送状态。Based on the location index, the sending state of the data packet corresponding to the first data in the data packet sending state table is updated.
  6. 根据权利要求4所述的物联网数据传输方法,其特征在于,所述第一数据通过哈希函数映射至所述数据包发送状态表。The IoT data transmission method according to claim 4, wherein the first data is mapped to the data packet sending status table through a hash function.
  7. 根据权利要求1所述的物联网数据传输方法,其特征在于,还包括:The Internet of Things data transmission method according to claim 1, further comprising:
    接收所述第二数据,将所述第二数据与所述第二阈值范围进行比较,若所述第二数据落在所述第二阈值范围内,则通过查询数据包发送状态表,发送满足第一规则的数据,所述第一规则为发送数据未收到确认信息和/或数据的发送次数小于或等于预设值;Receive the second data, compare the second data with the second threshold range, and if the second data falls within the second threshold range, query the data packet sending status table, and send the The data of the first rule, the first rule is that the data is sent without receiving confirmation information and/or the number of times the data is sent is less than or equal to a preset value;
    基于数据的发送状态更新所述数据包发送状态表。The data packet transmission status table is updated based on the transmission status of the data.
  8. 根据权利要求1所述的物联网数据传输方法,其特征在于,还包括:The Internet of Things data transmission method according to claim 1, further comprising:
    服务器接收所述第一数据,通过所述第一数据绑定的唯一标识确定所述第一数据的接收状态,所述接收状态包括初次接收和重复接收;The server receives the first data, and determines the receiving state of the first data through the unique identifier bound to the first data, where the receiving state includes initial reception and repeated reception;
    若所述接收状态为初次接收,则确定所述第一数据满足数据接收标准并发送确认信息至设备端;以及,更新数据包接收状态表,所述数据包接收状态表与数据包发送状态表通过相同规则生成;If the receiving state is the initial reception, determine that the first data meets the data receiving standard and send confirmation information to the device; and, update the data packet receiving state table, the data packet receiving state table and the data packet sending state table Generated by the same rules;
    若所述接收状态为重复接收则丢弃所述第一数据。If the receiving state is repeated receiving, the first data is discarded.
  9. 根据权利要求8所述的物联网数据传输方法,其特征在于,还包括:The Internet of Things data transmission method according to claim 8, further comprising:
    设备端接收所述确认信息;The device side receives the confirmation information;
    若所述确认信息表示所述数据成功接收,则更新所述数据包发送状态表中对应所述数据的发送状态为已确认。If the acknowledgment information indicates that the data is successfully received, the sending status corresponding to the data in the data packet sending status table is updated to be confirmed.
  10. 一种物联网数据传输系统,使用权利要求1至9中任一项所述的物联 网数据传输方法,其特征在于,包括:An internet of things data transmission system, using the internet of things data transmission method according to any one of claims 1 to 9, characterized in that, comprising:
    感知设备,用于采集数据,所述感知设备包括智能传感器、二维码、及射频识别卡;a sensing device, used for collecting data, the sensing device includes a smart sensor, a two-dimensional code, and a radio frequency identification card;
    通信模组,用于通过有线或无线方式传输所述数据;A communication module for transmitting said data by wired or wireless means;
    服务器,用于对所述数据进行分析、检测及控制。The server is used to analyze, detect and control the data.
PCT/CN2021/090329 2021-02-25 2021-04-27 Internet-of-things data transmission method and transmission system WO2022178972A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110210516.9A CN113037642B (en) 2021-02-25 2021-02-25 Internet of things data transmission method and transmission system
CN202110210516.9 2021-02-25

Publications (1)

Publication Number Publication Date
WO2022178972A1 true WO2022178972A1 (en) 2022-09-01

Family

ID=76461546

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/090329 WO2022178972A1 (en) 2021-02-25 2021-04-27 Internet-of-things data transmission method and transmission system

Country Status (2)

Country Link
CN (1) CN113037642B (en)
WO (1) WO2022178972A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8050855B2 (en) * 2008-08-07 2011-11-01 General Motors Llc Method and system for transmitting data to a traffic information server
CN102905313A (en) * 2011-07-27 2013-01-30 无锡物联网产业研究院 Network data collection method and device of wireless sensor
CN104267707A (en) * 2014-10-17 2015-01-07 中国科学院计算技术研究所 Environmental data multi-point real-time collecting system
CN107948288A (en) * 2018-01-08 2018-04-20 中山路得斯空调有限公司 A kind of data acquisition for saving flow and polishing method
CN111419216A (en) * 2020-04-09 2020-07-17 苏州维伟思医疗科技有限公司 Electrocardio data transmission system and method
CN112087483A (en) * 2020-07-25 2020-12-15 北京蜂云科创信息技术有限公司 Internet of vehicles CAN data acquisition method and equipment

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869622B (en) * 2015-06-15 2018-04-24 江苏麦希通讯技术有限公司 A kind of data receiving-transmitting method of power consumption wireless sensor network
CN107864084B (en) * 2016-09-22 2019-06-21 腾讯科技(深圳)有限公司 The transmission method and device of data packet
CN106685855A (en) * 2017-01-17 2017-05-17 新智数字科技有限公司 Data transmission method and data transmission device
CN109936588B (en) * 2017-12-15 2021-08-31 华为技术有限公司 Internet of things data transmission method, equipment and system
WO2019146996A1 (en) * 2018-01-23 2019-08-01 삼성전자 주식회사 Method for network state identification and electronic device therefor
CN109041082B (en) * 2018-07-25 2022-02-22 朔联科技(上海)有限公司 Positioning information transmission method
EP3835962B1 (en) * 2018-08-07 2024-05-15 Sony Group Corporation Sensor data processing apparatus, sensor data processing method, sensor device, and information processing apparatus
CN110099102A (en) * 2019-04-02 2019-08-06 宜通世纪物联网研究院(广州)有限公司 Internet of Things end to end network quality control method, system and storage medium
CN110519015A (en) * 2019-08-30 2019-11-29 上海能塔智能科技有限公司 Data transmission method, device, computer equipment and the storage medium of mobile unit
CN111769915B (en) * 2020-06-28 2023-10-24 杭州涂鸦信息技术有限公司 Data transmission method and related equipment
CN112073265B (en) * 2020-08-31 2022-05-13 帷幄匠心科技(杭州)有限公司 Internet of things monitoring method and system based on distributed edge computing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8050855B2 (en) * 2008-08-07 2011-11-01 General Motors Llc Method and system for transmitting data to a traffic information server
CN102905313A (en) * 2011-07-27 2013-01-30 无锡物联网产业研究院 Network data collection method and device of wireless sensor
CN104267707A (en) * 2014-10-17 2015-01-07 中国科学院计算技术研究所 Environmental data multi-point real-time collecting system
CN107948288A (en) * 2018-01-08 2018-04-20 中山路得斯空调有限公司 A kind of data acquisition for saving flow and polishing method
CN111419216A (en) * 2020-04-09 2020-07-17 苏州维伟思医疗科技有限公司 Electrocardio data transmission system and method
CN112087483A (en) * 2020-07-25 2020-12-15 北京蜂云科创信息技术有限公司 Internet of vehicles CAN data acquisition method and equipment

Also Published As

Publication number Publication date
CN113037642B (en) 2022-12-13
CN113037642A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN113411313B (en) Data transmission method, device and system
US10708885B2 (en) Methods and nodes for enabling context-awareness in CoAP
JP2017518687A5 (en)
KR102141389B1 (en) Method and apparatus for sending radio link control status report for sending in a communication system based on a multi-radio access technologies
JP2005354249A (en) Network communication terminal
CN109921967B (en) Instruction processing method and system, gateway device and computer readable storage medium
US11218564B2 (en) Methods and devices for signalling in a communication network
CN111587549A (en) Data transmission method, equipment and computer storage medium
WO2017143743A1 (en) Heterogeneous protocol communication method and controller
CN108471343B (en) Method and device for determining communication check code, and communication check method and system
JP2016096431A (en) Communication device, communication method and program
CN107547505B (en) Message processing method and device
KR102323799B1 (en) Terminal, base station, and transmitting method thereof in a wireless communication system
JPWO2021063002A5 (en)
WO2022178972A1 (en) Internet-of-things data transmission method and transmission system
JPWO2010128636A1 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
CN115150795A (en) Information filtering method, bluetooth antenna and Internet of things data platform
CN114915555B (en) Gateway drive communication method, device, equipment and storage medium
CN113485176B (en) Vehicle data acquisition, caching and retransmission method and remote monitoring terminal
CN113132468B (en) Communication method, communication device, communication system and storage medium based on ModbusTCP protocol
CN105871513B (en) Data transmitting and receiving method and device
CN109005200B (en) Hidden file transmission method under WiFi physical isolation environment
KR20180123889A (en) Terminal device, data tranmission device
CN116669128B (en) Method, device, equipment and medium for reporting acquired data based on network switching
JP2008205629A (en) Device management system, device management server, and device management client

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21927406

Country of ref document: EP

Kind code of ref document: A1