CN112073473B - Internet of things equipment heartbeat packet data acquisition method - Google Patents
Internet of things equipment heartbeat packet data acquisition method Download PDFInfo
- Publication number
- CN112073473B CN112073473B CN202010829579.8A CN202010829579A CN112073473B CN 112073473 B CN112073473 B CN 112073473B CN 202010829579 A CN202010829579 A CN 202010829579A CN 112073473 B CN112073473 B CN 112073473B
- Authority
- CN
- China
- Prior art keywords
- heartbeat
- data
- heartbeat data
- representative
- terminal devices
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y20/00—Information sensed or collected by the things
- G16Y20/20—Information sensed or collected by the things relating to the thing itself
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y40/00—IoT characterised by the purpose of the information processing
- G16Y40/10—Detection; Monitoring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/143—Termination or inactivation of sessions, e.g. event-controlled end of session
- H04L67/145—Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
- H04L67/5651—Reducing the amount or size of exchanged application data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/566—Grouping or aggregating service requests, e.g. for unified processing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种物联网设备心跳包数据采集方法,提供一种物联网通讯系统,所述物联网通讯系统包括若干终端设备和监控平台服务器,所述监控平台服务器与若干所述终端设备通讯连接,所述若干终端设备用于实时采集现场的物理参数,所述监控平台服务器用于接收所述终端设备发送的心跳数据,心跳包数据采集方法包括前期处理步骤和数据采集步骤,所述前期处理步骤包括:代表设备推选子步骤,从所述终端设备中推选出若干代表设备,每一个所述代表设备用于接收与其对应的若干终端设备的心跳数据,并将所有心跳数据以心跳包的形式发送至监控平台服务器。本发明的心跳包数据采集方法可以增加心跳包有效负载,减少网络带宽。
The invention discloses a method for collecting heartbeat packet data of an Internet of Things device, and provides an Internet of Things communication system. The Internet of Things communication system includes a plurality of terminal devices and a monitoring platform server, and the monitoring platform server communicates with a plurality of the terminal devices. connected, the plurality of terminal devices are used for real-time collection of on-site physical parameters, the monitoring platform server is used for receiving heartbeat data sent by the terminal devices, the heartbeat packet data collection method includes a pre-processing step and a data collection step, the pre-stage The processing steps include: a representative device selection sub-step, selecting a number of representative devices from the terminal devices, each of the representative devices is used to receive the heartbeat data of several terminal devices corresponding to it, and send all the heartbeat data in the form of a heartbeat packet The form is sent to the monitoring platform server. The heartbeat packet data collection method of the present invention can increase the effective load of the heartbeat packet and reduce the network bandwidth.
Description
技术领域technical field
本发明涉及通讯技术领域,具体为一种物联网设备心跳包数据采集方法。The invention relates to the technical field of communication, in particular to a method for collecting heartbeat packet data of an Internet of Things device.
背景技术Background technique
借助工业物联网技术或平台,企业可以将车间的人、机、料、法、环、测等要素进行实时地连接和监控,要将众多要素进行互联,对系统平台、网络等部件的性能、吞吐量、响应时间都有比较高的要求。以传统的塑编制造业为例,其产线设备主要包括拉丝机、园织机、印刷机、折扣机、缝边机、地磅等,每台设备平均带有5-8个左右的脉冲计数传感器,1-2个PLC,一家中型左右的产家,设备大概在220台机器,为了采集设备的所有生产数据,需要配备1500个左右的物联网终端设备,物联网终端设备连接底层的脉冲计数传感器、PLC、地磅串型接口。这些物联网终端设备将采集到的数据通过网络发送到监控平台服务器,以方便管理者进行实时查看,或对进一步深入挖掘提供基础数据。终端设备本身会通过心跳包的形式将一些必要的信息发送到平台,同时处理150000个终端设备的心跳包需要1.5Gb带宽,这样对网络带宽、服务器数量、服务器集群调度等各方面的要求都相当高。With the help of industrial Internet of Things technology or platform, enterprises can connect and monitor elements such as people, machines, materials, methods, environment, and testing in the workshop in real time. To interconnect many elements, the performance of system platforms, networks and other components, Throughput and response time have relatively high requirements. Taking the traditional plastic woven manufacturing industry as an example, its production line equipment mainly includes wire drawing machines, circular looms, printing machines, discount machines, edge sewing machines, weighbridges, etc., and each device has an average of about 5-8 pulse counts Sensors, 1-2 PLCs, a medium-sized manufacturer with about 220 machines, in order to collect all production data of the equipment, need to be equipped with about 1,500 IoT terminal devices, and the IoT terminal devices are connected to the underlying pulse counting Sensor, PLC, weighbridge serial interface. These IoT terminal devices send the collected data to the monitoring platform server through the network, so that managers can view it in real time, or provide basic data for further in-depth mining. The terminal device itself will send some necessary information to the platform in the form of heartbeat packets, and processing the heartbeat packets of 150,000 terminal devices at the same time requires 1.5Gb bandwidth, so the requirements for network bandwidth, number of servers, server cluster scheduling, etc. are quite high.
发明内容Contents of the invention
本发明的目的在于提供了一种物联网设备心跳包数据采集方法,可以增加单个心跳包的有效负载,减少网络带宽。The purpose of the present invention is to provide a method for collecting heartbeat packet data of an Internet of Things device, which can increase the payload of a single heartbeat packet and reduce network bandwidth.
为实现上述目的,本发明提供如下技术方案:一种物联网设备心跳包数据采集方法,提供一种物联网通讯系统,所述物联网通讯系统包括若干终端设备和监控平台服务器,所述监控平台服务器与若干所述终端设备通讯连接,所述若干终端设备用于实时采集现场的物理参数,所述监控平台服务器用于接收所述终端设备发送的心跳数据,心跳包数据采集方法包括前期处理步骤和数据采集步骤,所述前期处理步骤包括:In order to achieve the above object, the present invention provides the following technical solutions: a method for collecting heartbeat packet data of an Internet of Things device, providing an Internet of Things communication system, the Internet of Things communication system includes several terminal devices and a monitoring platform server, and the monitoring platform The server communicates with a plurality of terminal devices, the plurality of terminal devices are used for real-time collection of on-site physical parameters, the monitoring platform server is used for receiving heartbeat data sent by the terminal devices, and the heartbeat packet data collection method includes a pre-processing step And data collection step, described preprocessing step comprises:
代表设备推选子步骤,从所述终端设备中推选出若干代表设备,每一个所述代表设备用于接收与其对应的若干终端设备的心跳数据,并将所有心跳数据以心跳包的形式发送至监控平台服务器;The representative device selection sub-step is to select several representative devices from the terminal devices, and each representative device is used to receive the heartbeat data of several terminal devices corresponding to it, and send all the heartbeat data to the monitor in the form of heartbeat packets. platform server;
基准心跳数据获取子步骤,从所述代表设备向所述监控平台服务器发送的历史心跳数据中选取一心跳数据作为基准心跳数据,将所述基准心跳数据预先写入所述代表设备和所述监控平台服务器;The sub-step of obtaining reference heartbeat data is to select a heartbeat data as the reference heartbeat data from the historical heartbeat data sent by the representative device to the monitoring platform server, and write the reference heartbeat data into the representative device and the monitoring platform server in advance. platform server;
心跳表建立子步骤,获取所有终端设备的全部心跳数据,将所述心跳数据分别与基准心跳数据进行对比生成每个心跳数据的差异编码,根据差异编码和其对应的心跳数据建立心跳表,将所述心跳表预先写入所述代表设备和所述监控平台服务器;The sub-step of establishing a heartbeat table is to obtain all the heartbeat data of all terminal devices, compare the heartbeat data with the reference heartbeat data respectively to generate the difference code of each heartbeat data, establish a heartbeat table according to the difference code and its corresponding heartbeat data, and set The heartbeat table is pre-written into the representative device and the monitoring platform server;
所述数据采集步骤包括:The data collection steps include:
心跳编码查询子步骤,所述代表设备接收来自所述终端设备的心跳数据,并依据所述心跳数据查询心跳表得到所述心跳数据相应的差异编码,The heartbeat code query sub-step, the representative device receives the heartbeat data from the terminal device, and queries the heartbeat table according to the heartbeat data to obtain the corresponding difference code of the heartbeat data,
心跳包生成子步骤,将所述代表设备接收到的若干心跳数据所对应的差异编码形成特征编码列表,并将所述特征编码列表写入代表设备的心跳包中;The heartbeat packet generation sub-step is to form a feature code list with the difference codes corresponding to some heartbeat data received by the representative device, and write the feature code list into the heartbeat packet of the representative device;
心跳包发送子步骤;若干所述代表设备按照第一心跳时间将心跳包发送至监控平台服务器;The heartbeat packet sending substep; several said representative devices send the heartbeat packet to the monitoring platform server according to the first heartbeat time;
解析子步骤:所述监控平台服务器将其接收到心跳包进行解码操作,所述解码操作包括依据所述基准心跳数据对心跳包进行解码并生成心跳数据子包。Parsing sub-step: the monitoring platform server decodes the received heartbeat packet, and the decoding operation includes decoding the heartbeat packet according to the reference heartbeat data and generating a heartbeat data sub-packet.
优选的,所述基准心跳数据获取步骤包括获取所述代表设备在任一选定时间段内向所述监控平台服务器发送的所有心跳数据,从中选取出现频次最高的心跳数据作为基准心跳数据;获取所述代表设备在任一选定时间段内向所述监控平台服务器发送的所有心跳数据,从中选取与其他心跳数据差异值最小的心跳数据作为基准心跳数据。Preferably, the step of obtaining the reference heartbeat data includes obtaining all the heartbeat data sent by the representative device to the monitoring platform server within any selected time period, and selecting the heartbeat data with the highest occurrence frequency as the reference heartbeat data; obtaining the It represents all the heartbeat data sent by the device to the monitoring platform server within any selected time period, and the heartbeat data with the smallest difference with other heartbeat data is selected as the reference heartbeat data.
优选的,所述基准心跳数据获取步骤包括获取所述代表设备在任一选定时间段内向所述监控平台服务器发送的所有心跳数据,从中选取与其他心跳数据差异值最小的心跳数据作为基准心跳数据。Preferably, the step of obtaining the reference heartbeat data includes obtaining all the heartbeat data sent by the representative device to the monitoring platform server within any selected time period, and selecting the heartbeat data with the smallest difference from other heartbeat data as the reference heartbeat data .
优选的,所述前期处理步骤还包括心跳协同子步骤,用于将所述终端设备的时间与所述代表设备的时间进行同步处理。Preferably, the pre-processing step further includes a heartbeat coordination sub-step for synchronizing the time of the terminal device with the time of the representative device.
优选的,所述终端设备的心跳数据信息包括时间戳、设备ID号码和代表设备运行情况的状态信息。Preferably, the heartbeat data information of the terminal device includes a time stamp, a device ID number and status information representing the operation of the device.
优选的,所述代表设备推选子步骤配置有推选策略,所述推选策略包括将所述终端设备按照设备类型进行分类,获取同一类别下所有终端设备的历史传输速率,将传输速率最高的终端设备推选为代表设备。Preferably, the representative device selection sub-step is configured with a selection strategy, the selection strategy includes classifying the terminal devices according to device types, obtaining the historical transmission rates of all terminal devices under the same category, and selecting the terminal device with the highest transmission rate Elected as a representative device.
优选的,所述代表设备推选子步骤配置有推选策略,所述推选策略包括硬件处理能力最高的终端设备推选为代表设备。Preferably, the sub-step of selecting a representative device is configured with a selection strategy, and the selection strategy includes selecting a terminal device with the highest hardware processing capability as a representative device.
优选的,所述代表设备推选子步骤配置有推选策略,所所述推选策略包括将所述终端设备按照设备类型进行分类,获取同一类别下所有终端设备的历史传输速率和位置信息,所述位置信息包括距离其他终端设备的位置距离之和,将所述终端设备的历史传输速率和位置信息按照一定的权重比例进行加权生成优先级队列,依据所述类别下终端设备的数量将优先级最高的一个或多个终端设备推选为代表设备。Preferably, the representative device selection sub-step is configured with a selection strategy, the selection strategy includes classifying the terminal devices according to device types, obtaining historical transmission rates and location information of all terminal devices under the same category, and the location The information includes the sum of the location distances from other terminal devices. The historical transmission rate and location information of the terminal devices are weighted according to a certain weight ratio to generate a priority queue. According to the number of terminal devices under the category, the highest priority One or more terminal devices are elected as representative devices.
优选的,一个所述代表设备最多连接20台终端设备。Preferably, one representative device is connected to 20 terminal devices at most.
优选的,所述差异编码的长度为终端设备心跳数据长度的1/3-3/5。Preferably, the length of the difference code is 1/3-3/5 of the heartbeat data length of the terminal device.
与现有技术相比,本发明的有益效果是:Compared with prior art, the beneficial effect of the present invention is:
本发明通过设置代表设备推选子步骤,从终端设备中推选出代表设备,由代表设备将终端设备的心跳数据统一发送至监控平台服务器进行管理,增加了单个心跳包的有效负载;此外通过建立心跳表,并将心跳数据分别与基准心跳数据进行对比生成每个心跳数据的差异编码,将终端设备心跳数据的差异编码形成特征编码列表,将特征编码列表写入代表设备的心跳包中,减少了整体心跳数据传输的网络带宽。The present invention selects a representative device from terminal devices by setting the representative device selection sub-step, and the representative device sends the heartbeat data of the terminal device to the monitoring platform server for management, which increases the payload of a single heartbeat packet; in addition, by establishing a heartbeat table, and compare the heartbeat data with the reference heartbeat data to generate the difference codes of each heartbeat data, and form the feature code list by the difference codes of the heartbeat data of the terminal equipment, and write the feature code list into the heartbeat packet of the representative device, reducing the Network bandwidth for overall heartbeat data transmission.
附图说明Description of drawings
图1为本发明一种物联网设备心跳包数据采集方法的电路连接框图;Fig. 1 is the circuit connection block diagram of a kind of Internet of Things equipment heartbeat packet data collection method of the present invention;
图2为本发明一种物联网设备心跳包数据采集方法中前期处理步骤的流程框图;Fig. 2 is a block flow diagram of the pre-processing steps in a method for collecting heartbeat packet data of an Internet of Things device according to the present invention;
图3为本发明一种物联网设备心跳包数据采集方法中数据采集步骤的流程框图。Fig. 3 is a block flow diagram of data collection steps in a method for collecting heartbeat packet data of an Internet of Things device according to the present invention.
图中:1、监控平台服务器;2、终端设备一;3、代表设备一;4、终端设备二;5、代表设备二。In the figure: 1. Monitoring platform server; 2. Terminal device 1; 3. Representative device 1; 4.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
如图1所示,本发明提供的一种实施例,一种物联网设备心跳包数据采集方法,提供一种物联网通讯系统,所述物联网通讯系统包括若干终端设备和监控平台服务器1,从若干终端设备推选出代表设备,由代表设备将所有终端设备以及代表设备的心跳包发送至监控平台服务器1;终端设备一2是属于同一类别的终端设备,同一类别的设备的运行情况的状态信息是相同的,设备ID号码的不同可以判断可以是具体哪台终端设备,所以同一类别下的终端设备的差异编码的长度可以减少,由此来减少冗余数据带来的心跳数据传输网络带宽不足的问题,所述监控平台服务器1与若干所述终端设备通讯连接,所述若干终端设备用于实时采集现场的物理参数或电气参数,所述监控平台服务器1用于接收所述终端设备发送的心跳数据,心跳包数据采集方法包括前期处理步骤和数据采集步骤。As shown in Figure 1, an embodiment provided by the present invention, a method for collecting heartbeat packet data of an Internet of Things device, provides an Internet of Things communication system, the Internet of Things communication system includes a plurality of terminal devices and a monitoring platform server 1, A representative device is selected from several terminal devices, and the representative device sends all terminal devices and the heartbeat packets of the representative device to the monitoring platform server 1; terminal device 1 is a terminal device belonging to the same category, and the operating status of the same category of equipment The information is the same, and the difference in the device ID number can determine which terminal device it is, so the length of the difference code of the terminal device under the same category can be reduced, thereby reducing the heartbeat data transmission network bandwidth caused by redundant data Insufficient problem, the monitoring platform server 1 is communicatively connected with some of the terminal devices, and the several terminal devices are used to collect the physical parameters or electrical parameters of the scene in real time, and the monitoring platform server 1 is used to receive the information sent by the terminal devices. The heartbeat data, the heartbeat packet data collection method includes a pre-processing step and a data collection step.
如图2所示,为本发明一种物联网设备心跳包数据采集方法中前期处理步骤的流程框图,所述前期处理步骤包括:代表设备推选子步骤S101,从所述终端设备中推选出若干代表设备,每一个所述代表设备用于接收与其对应的若干终端设备的心跳数据,并将所有心跳数据以心跳包的形式发送至监控平台服务器1;As shown in Figure 2, it is a flow chart of the pre-processing steps in a method for collecting heartbeat packet data of an Internet of Things device according to the present invention. The pre-processing steps include: representative device selection sub-step S101, selecting several terminal devices A representative device, each of which is used to receive the heartbeat data of several terminal devices corresponding to it, and send all the heartbeat data to the monitoring platform server 1 in the form of heartbeat packets;
基准心跳数据获取子步骤S102,从所述代表设备向所述监控平台服务器1发送的历史心跳数据中选取一心跳数据作为基准心跳数据,将所述基准心跳数据预先写入所述代表设备和所述监控平台服务器1;The reference heartbeat data acquisition sub-step S102 is to select a heartbeat data from the historical heartbeat data sent by the representative device to the monitoring platform server 1 as the reference heartbeat data, and write the reference heartbeat data into the representative device and the monitoring platform server 1 in advance. The monitoring platform server 1;
心跳表建立子步骤S103,获取所有终端设备的全部心跳数据,将所述心跳数据分别与基准心跳数据进行对比生成每个心跳数据的差异编码,根据差异编码和其对应的心跳数据建立心跳表,将所述心跳表预先写入所述代表设备和所述监控平台服务器1。The heartbeat table establishment sub-step S103 is to obtain all the heartbeat data of all terminal devices, compare the heartbeat data with the reference heartbeat data respectively to generate a difference code of each heartbeat data, and establish a heartbeat table according to the difference code and its corresponding heartbeat data, The heartbeat table is written into the representative device and the monitoring platform server 1 in advance.
如图3所示,为本发明一种物联网设备心跳包数据采集方法中数据采集步骤的流程框图,所述数据采集步骤包括:心跳编码查询子步骤S201,所述代表设备接收来自所述终端设备的心跳数据,并依据所述心跳数据查询心跳表得到所述心跳数据相应的差异编码,As shown in FIG. 3 , it is a flow chart of the data collection step in a method for collecting heartbeat packet data of an Internet of Things device according to the present invention. The data collection step includes: heartbeat code query substep S201, and the representative device receives the The heartbeat data of the device, and query the heartbeat table according to the heartbeat data to obtain the corresponding difference code of the heartbeat data,
心跳包生成子步骤S202,将所述代表设备接收到的若干心跳数据所对应的差异编码形成特征编码列表,并将所述特征编码列表写入代表设备的心跳包中;Heartbeat packet generation sub-step S202, forming a feature code list from the difference codes corresponding to the heartbeat data received by the representative device, and writing the feature code list into the heartbeat packet of the representative device;
心跳包发送子步骤S203;若干所述代表设备按照第一心跳时间将心跳包发送至监控平台服务器1;Heartbeat packet sending sub-step S203; several said representative devices send heartbeat packets to the monitoring platform server 1 according to the first heartbeat time;
解析子步骤S204:所述监控平台服务器1将其接收到心跳包进行解码操作,所述解码操作包括依据所述基准心跳数据对心跳包进行解码并生成心跳数据子包。Parsing sub-step S204: the monitoring platform server 1 performs a decoding operation on the received heartbeat packet, and the decoding operation includes decoding the heartbeat packet according to the reference heartbeat data and generating a heartbeat data sub-packet.
优选的,所述基准心跳数据获取步骤包括获取所述代表设备在任一选定时间段内向所述监控平台服务器1发送的所有心跳数据,从中选取出现频次最高的心跳数据作为基准心跳数据;获取所述代表设备在任一选定时间段内向所述监控平台服务器1发送的所有心跳数据,从中选取与其他心跳数据差异值最小的心跳数据作为基准心跳数据。Preferably, the step of obtaining the reference heartbeat data includes obtaining all the heartbeat data sent by the representative device to the monitoring platform server 1 within any selected time period, and selecting the heartbeat data with the highest frequency of occurrence as the reference heartbeat data; All the heartbeat data sent by the representative device to the monitoring platform server 1 within any selected time period, and the heartbeat data with the smallest difference with other heartbeat data are selected as the reference heartbeat data.
优选的,所述基准心跳数据获取步骤包括获取所述代表设备在任一选定时间段内向所述监控平台服务器1发送的所有心跳数据,从中选取与其他心跳数据差异值最小的心跳数据作为基准心跳数据。Preferably, the step of obtaining the reference heartbeat data includes obtaining all the heartbeat data sent by the representative device to the monitoring platform server 1 within any selected time period, and selecting the heartbeat data with the smallest difference from other heartbeat data as the reference heartbeat data.
优选的,所述前期处理步骤还包括心跳协同子步骤,用于将所述终端设备的时间与所述代表设备的时间进行同步处理。减少由于硬件老化造成的信息不同步的问题。Preferably, the pre-processing step further includes a heartbeat coordination sub-step for synchronizing the time of the terminal device with the time of the representative device. Reduce the problem of information out of synchronization caused by hardware aging.
优选的,所述终端设备的心跳数据信息包括时间戳、设备ID号码和代表设备运行情况的状态信息。时间戳包括心跳数据的发送时间信息,以此可以校准不同终端设备的心跳发送时间。Preferably, the heartbeat data information of the terminal device includes a time stamp, a device ID number and status information representing the operation of the device. The time stamp includes the sending time information of the heartbeat data, so that the heartbeat sending time of different terminal devices can be calibrated.
优选的,所述代表设备推选子步骤配置有推选策略,所述推选策略包括将所述终端设备按照设备类型进行分类,获取同一类别下所有终端设备的历史传输速率,将传输速率最高的终端设备推选为代表设备。Preferably, the representative device selection sub-step is configured with a selection strategy, the selection strategy includes classifying the terminal devices according to device types, obtaining the historical transmission rates of all terminal devices under the same category, and selecting the terminal device with the highest transmission rate Elected as a representative device.
由于代表设备是将终端设备的心跳数据统一发送至监控平台服务器1进行管理的,将传输效率最高的终端设备推选为代表设备可以提高整个物联网系统的通讯效率。Since the representative device sends the heartbeat data of the terminal device to the monitoring platform server 1 for management, selecting the terminal device with the highest transmission efficiency as the representative device can improve the communication efficiency of the entire IoT system.
优选的,所述代表设备推选子步骤配置有推选策略,所述推选策略包括硬件处理能力最高的终端设备推选为代表设备。Preferably, the sub-step of selecting a representative device is configured with a selection strategy, and the selection strategy includes selecting a terminal device with the highest hardware processing capability as a representative device.
硬件处理能力高可以提高单台终端设备的负载能力,可以增加单个心跳包的有效负载。High hardware processing capability can increase the load capacity of a single terminal device, and can increase the payload of a single heartbeat packet.
优选的,所述代表设备推选子步骤配置有推选策略,所所述推选策略包括将所述终端设备按照设备类型进行分类,获取同一类别下所有终端设备的历史传输速率和位置信息,所述位置信息包括距离其他终端设备的位置距离之和,将所述终端设备的历史传输速率和位置信息按照一定的权重比例进行加权生成优先级队列,依据所述类别下终端设备的数量将优先级最高的一个或多个终端设备推选为代表设备。Preferably, the representative device selection sub-step is configured with a selection strategy, the selection strategy includes classifying the terminal devices according to device types, obtaining historical transmission rates and location information of all terminal devices under the same category, and the location The information includes the sum of the location distances from other terminal devices. The historical transmission rate and location information of the terminal devices are weighted according to a certain weight ratio to generate a priority queue. According to the number of terminal devices under the category, the highest priority One or more terminal devices are elected as representative devices.
优选的,一个所述代表设备最多连接20台终端设备,具体情况依据所述代表设备的带负载能力进行确定,但一个代表设备所连接的终端设备不能太多,超过20台之后,虽然可以进行正常的网络数据通讯,但会严重将低物联网系统的通讯质量和通讯效率。Preferably, a representative device is connected to 20 terminal devices at most, and the specific conditions are determined according to the load capacity of the representative device, but the terminal devices connected to a representative device cannot be too many. After more than 20 devices, although it is possible to Normal network data communication, but it will seriously reduce the communication quality and communication efficiency of the IoT system.
优选的,所述差异编码的字节长度为终端设备心跳数据字节长度的1/3-3/5,通过设置心跳表,将心跳数据分别与基准心跳数据进行对比生成每个心跳数据的差异编码,减少了同一类别下不同设备的心跳数据的冗余部分,减少了数据处理量。Preferably, the byte length of the difference encoding is 1/3-3/5 of the byte length of the heartbeat data of the terminal equipment, and by setting the heartbeat table, the heartbeat data is compared with the reference heartbeat data to generate the difference of each heartbeat data Coding reduces the redundant part of the heartbeat data of different devices under the same category and reduces the amount of data processing.
工作原理:本发明通过设置代表设备推选子步骤,从终端设备中推选出代表设备,由代表设备将终端设备的心跳数据统一发送至监控平台服务器1进行管理,增加了单个心跳包的有效负载,减少了同一类别下不同设备的心跳数据的冗余部分,减少了数据处理量;此外通过建立心跳表,并将心跳数据分别与基准心跳数据进行对比生成每个心跳数据的差异编码,将终端设备心跳数据的差异编码形成特征编码列表,将特征编码列表写入代表设备的心跳包中,减少了整体心跳数据传输的网络带宽。Working principle: the present invention selects a representative device from the terminal device by setting the representative device selection sub-step, and the representative device sends the heartbeat data of the terminal device to the monitoring platform server 1 for management, increasing the payload of a single heartbeat packet, It reduces the redundant part of the heartbeat data of different devices under the same category, and reduces the amount of data processing; in addition, by establishing a heartbeat table and comparing the heartbeat data with the reference heartbeat data to generate a difference code for each heartbeat data, the terminal equipment The differential encoding of the heartbeat data forms a feature encoding list, and writing the feature encoding list into the heartbeat packet representing the device reduces the network bandwidth of the overall heartbeat data transmission.
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。It will be apparent to those skilled in the art that the invention is not limited to the details of the above-described exemplary embodiments, but that the invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Accordingly, the embodiments should be regarded in all points of view as exemplary and not restrictive, the scope of the invention being defined by the appended claims rather than the foregoing description, and it is therefore intended that the scope of the invention be defined by the appended claims rather than by the foregoing description. All changes within the meaning and range of equivalents of the elements are embraced in the present invention. Any reference sign in a claim should not be construed as limiting the claim concerned.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010829579.8A CN112073473B (en) | 2020-08-18 | 2020-08-18 | Internet of things equipment heartbeat packet data acquisition method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010829579.8A CN112073473B (en) | 2020-08-18 | 2020-08-18 | Internet of things equipment heartbeat packet data acquisition method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112073473A CN112073473A (en) | 2020-12-11 |
| CN112073473B true CN112073473B (en) | 2023-03-24 |
Family
ID=73661909
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010829579.8A Active CN112073473B (en) | 2020-08-18 | 2020-08-18 | Internet of things equipment heartbeat packet data acquisition method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112073473B (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112666819B (en) * | 2020-12-29 | 2021-10-29 | 重庆贵飞科技有限公司 | Clock guarantee method and system for intelligent lighting system |
| CN112910740A (en) * | 2021-02-09 | 2021-06-04 | 珠海格力电器股份有限公司 | State reporting method, device, equipment and computer readable storage medium |
| CN113225219B (en) * | 2021-03-17 | 2022-08-26 | 陕西云长信息科技有限公司 | Heartbeat data acquisition and storage method for server monitoring |
| CN113079065A (en) * | 2021-03-26 | 2021-07-06 | 山东英信计算机技术有限公司 | Heartbeat detection method, device, equipment and medium based on Ambari |
| CN114124970B (en) * | 2021-11-29 | 2024-09-10 | 深圳腾视科技有限公司 | Terminal communication coordination service system and method |
| CN114640705B (en) * | 2022-04-22 | 2022-08-09 | 山东恒远智能科技有限公司 | Large-scale Internet of things terminal heartbeat monitoring method |
| CN116915874A (en) * | 2023-01-28 | 2023-10-20 | 中移(杭州)信息技术有限公司 | A data transmission method, device, equipment and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101179555A (en) * | 2006-11-10 | 2008-05-14 | 上海三零卫士信息安全有限公司 | Automatic election mechanism based master-salve proxy system and applicaton technique thereof |
| CN101212263A (en) * | 2007-12-25 | 2008-07-02 | 深圳清华大学研究院 | The Compression Coding Method of Securities Information Data |
| CN105357116A (en) * | 2015-10-23 | 2016-02-24 | 上海斐讯数据通信技术有限公司 | Method of multiple terminals for accessing server and intelligent terminal |
| CN106790550A (en) * | 2016-12-23 | 2017-05-31 | 华中科技大学 | A kind of system suitable for the compression of power distribution network Monitoring Data |
| CN110248089A (en) * | 2019-05-31 | 2019-09-17 | 深圳市华讯方舟卫星产业科技有限公司 | A kind of image transfer method, system and terminal device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105429883B (en) * | 2015-10-22 | 2018-05-18 | 上海斐讯数据通信技术有限公司 | The long connection method of multiple smart machines and server apparatus and smart machine |
-
2020
- 2020-08-18 CN CN202010829579.8A patent/CN112073473B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101179555A (en) * | 2006-11-10 | 2008-05-14 | 上海三零卫士信息安全有限公司 | Automatic election mechanism based master-salve proxy system and applicaton technique thereof |
| CN101212263A (en) * | 2007-12-25 | 2008-07-02 | 深圳清华大学研究院 | The Compression Coding Method of Securities Information Data |
| CN105357116A (en) * | 2015-10-23 | 2016-02-24 | 上海斐讯数据通信技术有限公司 | Method of multiple terminals for accessing server and intelligent terminal |
| CN106790550A (en) * | 2016-12-23 | 2017-05-31 | 华中科技大学 | A kind of system suitable for the compression of power distribution network Monitoring Data |
| CN110248089A (en) * | 2019-05-31 | 2019-09-17 | 深圳市华讯方舟卫星产业科技有限公司 | A kind of image transfer method, system and terminal device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112073473A (en) | 2020-12-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112073473B (en) | Internet of things equipment heartbeat packet data acquisition method | |
| CN107390650B (en) | A kind of data collection system based on Internet of Things and the data compression method based on the system | |
| CN115442375B (en) | Property digital management system based on cloud edge cooperation technology | |
| CN113918303B (en) | Multitasking distributed scheduling system based on micro-service | |
| CN112712606A (en) | Automatic inspection management method and system based on operation and maintenance service | |
| CN105141446A (en) | Network equipment health degree assessment method determined based on objective weight | |
| WO2026061516A1 (en) | Configuration-free and maintenance-free method and system for relay protection and fault information substations | |
| CN111756688B (en) | Method and system for realizing meter protocol and application decoupling | |
| CN104601374A (en) | Network fault processing method and device for numerical control machine tool | |
| CN110535828A (en) | Data processing method and industrial things-internet gateway in industrial things-internet gateway | |
| CN120152052A (en) | Data collection method and device based on industrial Internet identification resolution system | |
| CN117858042B (en) | Intelligent transmission method for automatic monitoring information of speed reducer special for hoisting equipment | |
| CN115981192A (en) | Industrial network based cooperative control and prejudgment method | |
| CN115914436A (en) | Industrial data multi-layer nested protocol analysis method and analysis system | |
| CN119225260B (en) | Intelligent data acquisition method and system for industrial edge gateway | |
| CN115242826A (en) | Real-time transmission and storage method for data of nuclear power plant | |
| CN118042492B (en) | Network data operation and maintenance management system and method based on 5G communication | |
| CN117076185B (en) | Server inspection method, device, equipment and medium | |
| CN121037290B (en) | Industrial Internet data integrated processing method and system | |
| CN115664600B (en) | Data remote interaction detection and management system based on data analysis | |
| CN117834540B (en) | A communication optimization method, Internet of Things system and device based on ultrasonic water meter | |
| CN119025288B (en) | IOT big data real-time data stream analysis method, system and equipment | |
| CN120957035A (en) | A smart recursive aggregation meter reading system | |
| CN121418316A (en) | A method, device, equipment, medium, and product for monitoring train control center equipment. | |
| CN114064391A (en) | Distributed alarm or event information processing method and device |
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 | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20231116 Address after: No. 23-2, No. 27 Yuzhou Road, Shiqiaopu, Jiulongpo District, Chongqing, 400000 Patentee after: Chongqing Gengle Technology Development Co.,Ltd. Address before: Room 1009, building 2, 1780 Jiangling Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province 310000 Patentee before: Zhejiang Hongcheng Technology Co.,Ltd. |
|
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20251201 Address after: 400015 Chongqing City, Yuzhong District, Shangqing Temple Street, No. 9, Shangqing Temple Road, 26th Floor, Middle A12.B.C123(G021) Patentee after: Chongqing Edge Cloud Network Technology Co.,Ltd. Country or region after: China Address before: No. 23-2, No. 27 Yuzhou Road, Shiqiaopu, Jiulongpo District, Chongqing, 400000 Patentee before: Chongqing Gengle Technology Development Co.,Ltd. Country or region before: China |
|
| TR01 | Transfer of patent right |
