[go: up one dir, main page]

CN111932855A - Boiler control system and method based on Bluetooth temperature monitoring, storage medium and terminal - Google Patents

Boiler control system and method based on Bluetooth temperature monitoring, storage medium and terminal Download PDF

Info

Publication number
CN111932855A
CN111932855A CN202010743568.8A CN202010743568A CN111932855A CN 111932855 A CN111932855 A CN 111932855A CN 202010743568 A CN202010743568 A CN 202010743568A CN 111932855 A CN111932855 A CN 111932855A
Authority
CN
China
Prior art keywords
data
server
terminal
interface
temperature monitoring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010743568.8A
Other languages
Chinese (zh)
Inventor
王小平
姜继勤
王建勇
王来志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Perceptual Ward Technology Development Co ltd
Chongqing City Management College
Original Assignee
Chongqing Perceptual Ward Technology Development Co ltd
Chongqing City Management College
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 Chongqing Perceptual Ward Technology Development Co ltd, Chongqing City Management College filed Critical Chongqing Perceptual Ward Technology Development Co ltd
Priority to CN202010743568.8A priority Critical patent/CN111932855A/en
Publication of CN111932855A publication Critical patent/CN111932855A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F23COMBUSTION APPARATUS; COMBUSTION PROCESSES
    • F23NREGULATING OR CONTROLLING COMBUSTION
    • F23N5/00Systems for controlling combustion
    • F23N5/02Systems for controlling combustion using devices responsive to thermal changes or to thermal expansion of a medium
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems
    • 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
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42202Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS] environmental sensors, e.g. for detecting temperature, luminosity, pressure, earthquakes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F23COMBUSTION APPARATUS; COMBUSTION PROCESSES
    • F23NREGULATING OR CONTROLLING COMBUSTION
    • F23N2223/00Signal processing; Details thereof
    • F23N2223/02Multiplex transmission

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Emergency Management (AREA)
  • Remote Sensing (AREA)
  • Business, Economics & Management (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biodiversity & Conservation Biology (AREA)
  • Ecology (AREA)
  • Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Environmental Sciences (AREA)
  • Medical Informatics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephonic Communication Services (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention belongs to the technical field of equipment control, and discloses a boiler control system based on Bluetooth temperature monitoring, a method, a storage medium and a terminal, wherein the boiler control system based on Bluetooth temperature monitoring comprises: the industrial Internet of things monitoring terminal is used for acquiring parameters by utilizing a plurality of sensors; the device is used for providing a data compatible interface compatible with a CAN interface, a ModBus interface, an ETH interface, a 485 interface, an analog quantity interface and a digital quantity interface, and carrying out compatible acquisition of various data; the wireless communication module is used for transmitting the acquired data to the server in a wireless or wired mode; and the server is used for analyzing and processing the received parameters. The invention has a multi-interface selectable mode, can adapt to different monitoring scenes, can give consideration to various sensors (analog quantity and digital quantity), can carry out online real-time monitoring, has good portability and can be popularized in a large area.

Description

基于蓝牙温度监控锅炉控制系统、方法、存储介质、终端Boiler control system, method, storage medium and terminal based on Bluetooth temperature monitoring

技术领域technical field

本发明属于设备控制技术领域,尤其涉及一种基于蓝牙温度监控锅炉控制系统、方法、存储介质、终端。The invention belongs to the technical field of equipment control, and in particular relates to a boiler control system, method, storage medium and terminal based on Bluetooth temperature monitoring.

背景技术Background technique

目前:现有锅炉控制系统多是厂商根据实际情况定制的产品,可移植性差,不能大面积推广。国外有人做过类似研究,但没有丰富的传感器接口,无线数传往往采用900MHz及2.4GHz,考虑到应用场景往往没有WIFI及以太网络,900MHz在国内非ISM频段,更何况在大数据时代,工业秘密及商业机密是一个企业乃至国家的机密,因此不能直接拿来应用在工业现场。At present: the existing boiler control systems are mostly products customized by manufacturers according to the actual situation, which have poor portability and cannot be widely promoted. Some people abroad have done similar research, but there are no rich sensor interfaces, and wireless data transmission often uses 900MHz and 2.4GHz. Considering that there are often no WIFI and Ethernet networks in application scenarios, 900MHz is in the domestic non-ISM frequency band, not to mention that in the era of big data, industrial Secrets and commercial secrets are the secrets of an enterprise or even a country, so they cannot be directly applied to industrial sites.

通过上述分析,现有技术存在的问题及缺陷为:现有锅炉控制系统可移植性差,不能大面积推广;没有丰富的传感器接口。Through the above analysis, the existing problems and defects of the existing technology are: the existing boiler control system has poor portability and cannot be popularized in a large area; there is no rich sensor interface.

发明内容SUMMARY OF THE INVENTION

针对现有技术存在的问题,本发明提供了一种基于蓝牙温度监控锅炉控制系统、方法、存储介质、终端。In view of the problems existing in the prior art, the present invention provides a boiler control system, method, storage medium and terminal based on Bluetooth temperature monitoring.

本发明是这样实现的,一种基于蓝牙温度监控锅炉控制系统,所述基于蓝牙温度监控锅炉控制系统包括:The present invention is realized in this way, a boiler control system based on bluetooth temperature monitoring, and the boiler control system based on bluetooth temperature monitoring includes:

工业物联网监测终端,用于利用多个传感器进行参数采集;同时用于提供兼容CAN接口、ModBus接口、ETH接口、485接口、模拟量接口以及数字量接口的数据兼容接口,进行多种数据的兼容采集;The industrial IoT monitoring terminal is used for parameter collection using multiple sensors; at the same time, it is used to provide data compatible interfaces compatible with CAN interface, ModBus interface, ETH interface, 485 interface, analog interface and digital interface, and perform various data Compatible collection;

无线通信模块,用于通过无线、有线的方式将采集的数据传输至服务器;The wireless communication module is used to transmit the collected data to the server in a wireless and wired manner;

服务器,用于对接收到的参数进行分析处理。The server is used to analyze and process the received parameters.

进一步,所述基于蓝牙温度监控锅炉控制系统还包括:Further, the boiler control system based on Bluetooth temperature monitoring also includes:

适配器,用于获取数据,并进行数据的处理,同时将处理后的数据发送至第三方系统;The adapter is used to obtain data, process the data, and send the processed data to a third-party system;

接入服务器,与接收适配器连接,用于进行适配器与第三方系统的数据传输;The access server is connected to the receiving adapter for data transmission between the adapter and the third-party system;

汇接服务器,与接收接入服务器连接,用于接入服务器和第三方系统之间数据传输;The tandem server, which is connected to the receiving access server, is used for data transmission between the access server and the third-party system;

调度分发服务器,用于将接收待处理的数据,根据业务服务器的负荷调度到合适的业务服务器处理;The scheduling distribution server is used to schedule the received data to be processed to the appropriate service server according to the load of the service server;

实时业务处理集群,用于高性能存储实时数据,并提供实时查询服务;Real-time business processing cluster for high-performance storage of real-time data and real-time query services;

实时数据存储集群,用于进行历史数据的分析和挖掘;Real-time data storage cluster for analysis and mining of historical data;

配置管理服务器,用于进行参数配置以及操作权限的管理。The configuration management server is used for parameter configuration and operation authority management.

进一步,所述工业物联网监测终端包括:Further, the industrial IoT monitoring terminal includes:

注册验证单元,用于对终端进行注册连接,并进行设备号的验证;The registration verification unit is used to register and connect the terminal and verify the device number;

加密单元,用于对数据进行加密;Encryption unit for encrypting data;

配置单元,用于对采集频率、上传频率、服务器IP、端口、阈值及相关采集参数进行配置;The configuration unit is used to configure the collection frequency, upload frequency, server IP, port, threshold and related collection parameters;

报警单元,用于对超出阈值的数据进行紧急报警;The alarm unit is used for emergency alarm for data exceeding the threshold;

通信单元,用于与服务器采用确认通讯机制进行通信;The communication unit is used to communicate with the server using the confirmation communication mechanism;

数据上传单元,用于对未能成功发送的数据在网络空闲时进行数据上传;The data uploading unit is used to upload the data that has not been successfully sent when the network is idle;

传输单元,用于采用UDP/TCP传输方式进行数据传输。The transmission unit is used for data transmission in the UDP/TCP transmission mode.

本发明的另一目的在于提供一种应用于所述基于蓝牙温度监控锅炉控制系统的基于蓝牙温度监控锅炉控制方法,所述基于蓝牙温度监控锅炉控制方法包括:Another object of the present invention is to provide a Bluetooth-based temperature monitoring boiler control method applied to the Bluetooth-based temperature monitoring boiler control system, and the Bluetooth-based temperature monitoring boiler control method includes:

步骤一,利用多个传感器进行数据采集;Step 1, using multiple sensors to collect data;

步骤二,通过无线、有线的方式将采集的数据传输至服务器;Step 2, transmitting the collected data to the server by wireless and wired means;

步骤三,服务器对接收到的参数进行分析处理。Step 3, the server analyzes and processes the received parameters.

进一步,步骤一中,所述数据采集方法包括:Further, in step 1, the data collection method includes:

(1)对采集终端进行采样频率、上传频率、服务器IP或域名、端口、UDP/TCP传输方式、阈值、短信号码、机顶盒编号和GPRS卡号及相关采集参数的配置;(1) Configure the sampling frequency, upload frequency, server IP or domain name, port, UDP/TCP transmission method, threshold, SMS number, set-top box number, GPRS card number and related acquisition parameters for the acquisition terminal;

(2)进行终端注册;注册成功后,终端按照预设的采集参数进行数据的采集,并将采集的数据加密后上传至服务器;服务器对收到的每一条数据进行回复;(2) Perform terminal registration; after successful registration, the terminal collects data according to preset collection parameters, and encrypts the collected data and uploads it to the server; the server replies to each piece of data received;

(3)终端采集数据值超过设定的阈值时,将超出预设阈值的数据优先级设定为最高级,并在下一个采集频率时立即上传;同时发送报警短信;当报警消除后,采集一条正常数据并上传告知服务器报警状态消除,同时发送报警消除短信。(3) When the data value collected by the terminal exceeds the set threshold, set the priority of the data exceeding the preset threshold to the highest level, and upload it immediately at the next collection frequency; send an alarm text message at the same time; when the alarm is cleared, collect a The normal data is uploaded and notified to the server that the alarm state is eliminated, and the alarm elimination SMS is sent at the same time.

进一步,所述采集数据上传包括:Further, the uploading of the collected data includes:

当服务器未对收到的数据进行回复,则判定数据未成功上传,对于未成功上传的数据自动存入本地Flash中,并在终端重新与服务器连接或空闲时间,将本地Flash中的数据进行上传。When the server does not reply to the received data, it is determined that the data has not been uploaded successfully, and the data that has not been successfully uploaded will be automatically stored in the local Flash, and the data in the local Flash will be uploaded when the terminal reconnects to the server or in idle time. .

进一步,步骤(2)中,所述终端注册方法包括:Further, in step (2), the terminal registration method includes:

终端开机启动后,向服务器发送包含终端的设备号、GPRS卡号、设备号的数据包;服务器收到所述数据包后,给终端回复包含服务器同步时间的数据包,终端通过接收到的数据包进行时间同步,并确定通道是否建立,通道建立则表示注册成功;若通道未建立,则每隔5s发一次,连续5次不成功,隔1小时重新启动注册。After the terminal is powered on, it sends a data packet containing the terminal's device number, GPRS card number, and device number to the server; after receiving the data packet, the server replies to the terminal a data packet containing the server synchronization time, and the terminal passes the received data packet. Perform time synchronization and determine whether the channel is established. If the channel is established, it means that the registration is successful; if the channel is not established, it will be sent every 5s, and the registration will be restarted every 1 hour if it fails for 5 consecutive times.

本发明的另一目的在于提供一种计算机设备,所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下步骤:Another object of the present invention is to provide a computer device, the computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the following step:

步骤一,利用多个传感器进行数据采集;Step 1, using multiple sensors to collect data;

步骤二,通过无线、有线的方式将采集的数据传输至服务器;Step 2, transmitting the collected data to the server by wireless and wired means;

步骤三,服务器对接收到的参数进行分析处理。Step 3, the server analyzes and processes the received parameters.

本发明的另一目的在于提供一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如下步骤:Another object of the present invention is to provide a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, causes the processor to perform the following steps:

步骤一,利用多个传感器进行数据采集;Step 1, using multiple sensors to collect data;

步骤二,通过无线、有线的方式将采集的数据传输至服务器;Step 2, transmitting the collected data to the server by wireless and wired means;

步骤三,服务器对接收到的参数进行分析处理。Step 3, the server analyzes and processes the received parameters.

本发明的另一目的在于提供一种终端,所述终端搭载所述的基于蓝牙温度监控锅炉控制系统。Another object of the present invention is to provide a terminal equipped with the boiler control system based on Bluetooth temperature monitoring.

结合上述的所有技术方案,本发明所具备的优点及积极效果为:本发明具备多接口可选模式,能够适应不同的监测场景,可以兼顾多种类型的传感器(模拟量、数字量),能够进行在线实时监控,可移植性好,能大面积推广。Combined with all the above technical solutions, the advantages and positive effects of the present invention are: the present invention has a multi-interface optional mode, can adapt to different monitoring scenarios, can take into account various types of sensors (analog, digital), can Online real-time monitoring, good portability, can be widely promoted.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图做简单的介绍,显而易见地,下面所描述的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings that need to be used in the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本发明实施例提供的基于蓝牙温度监控锅炉控制系统结构示意图;1 is a schematic structural diagram of a boiler control system based on Bluetooth temperature monitoring provided by an embodiment of the present invention;

图中:1、工业物联网监测终端;2、无线通信模块;3、服务器。In the figure: 1. Industrial IoT monitoring terminal; 2. Wireless communication module; 3. Server.

图2是本发明实施例提供的锅炉监控系统硬件组网方式示意图。FIG. 2 is a schematic diagram of a hardware networking mode of a boiler monitoring system provided by an embodiment of the present invention.

图3是本发明实施例提供的工业物联网监测终端构成示意图。FIG. 3 is a schematic diagram of a configuration of an industrial Internet of Things monitoring terminal provided by an embodiment of the present invention.

图4是本发明实施例提供的工业物联网实时大数据典型组网示意图。FIG. 4 is a schematic diagram of a typical networking of real-time big data of the Industrial Internet of Things according to an embodiment of the present invention.

图5是本发明实施例提供的服务器架构图。FIG. 5 is an architecture diagram of a server provided by an embodiment of the present invention.

图6是本发明实施例提供的工业物联网监测终端结构示意图;6 is a schematic structural diagram of an industrial Internet of Things monitoring terminal provided by an embodiment of the present invention;

图中:4、注册验证单元;5、加密单元;6、配置单元;7、报警单元;8、通信单元;9、数据上传单元;10、传输单元。In the figure: 4, registration verification unit; 5, encryption unit; 6, configuration unit; 7, alarm unit; 8, communication unit; 9, data upload unit; 10, transmission unit.

图7是本发明实施例提供的基于蓝牙温度监控锅炉控制方法流程图。FIG. 7 is a flowchart of a method for controlling a boiler based on Bluetooth temperature monitoring provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

针对现有技术存在的问题,本发明提供了一种基于蓝牙温度监控锅炉控制系统、方法、存储介质、终端,下面结合附图对本发明作详细的描述。In view of the problems existing in the prior art, the present invention provides a boiler control system, method, storage medium and terminal based on Bluetooth temperature monitoring. The present invention is described in detail below with reference to the accompanying drawings.

如图1至图4所示,本发明实施例提供的基于蓝牙温度监控锅炉控制系统包括:As shown in FIGS. 1 to 4 , the Bluetooth-based temperature monitoring boiler control system provided by the embodiment of the present invention includes:

工业物联网监测终端1,用于利用多个传感器进行参数采集;同时用于提供兼容CAN接口、ModBus接口、ETH接口、485接口、模拟量接口以及数字量接口的数据兼容接口,进行多种数据的兼容采集;Industrial Internet of Things monitoring terminal 1, used for parameter collection using multiple sensors; at the same time, it is used to provide data compatible interfaces compatible with CAN interface, ModBus interface, ETH interface, 485 interface, analog interface and digital interface, and conduct various data compatible collection;

无线通信模块2,用于通过无线、有线的方式将采集的数据传输至服务器3;The wireless communication module 2 is used to transmit the collected data to the server 3 in a wireless and wired manner;

服务器3,用于对接收到的参数进行分析处理。The server 3 is used for analyzing and processing the received parameters.

如图5所示,本发明实施例提供的基于蓝牙温度监控锅炉控制系统还包括:As shown in Figure 5, the boiler control system based on Bluetooth temperature monitoring provided by the embodiment of the present invention further includes:

适配器,用于获取数据,并进行数据的处理,同时将处理后的数据发送至第三方系统;The adapter is used to obtain data, process the data, and send the processed data to a third-party system;

接入服务器,与接收适配器连接,用于进行适配器与第三方系统的数据传输;The access server is connected to the receiving adapter for data transmission between the adapter and the third-party system;

汇接服务器,与接收接入服务器连接,用于接入服务器和第三方系统之间数据传输;The tandem server, which is connected to the receiving access server, is used for data transmission between the access server and the third-party system;

调度分发服务器,用于将接收待处理的数据,根据业务服务器的负荷调度到合适的业务服务器处理;The scheduling distribution server is used to schedule the received data to be processed to the appropriate service server according to the load of the service server;

实时业务处理集群,用于高性能存储实时数据,并提供实时查询服务;Real-time business processing cluster for high-performance storage of real-time data and real-time query services;

实时数据存储集群,用于进行历史数据的分析和挖掘;Real-time data storage cluster for analysis and mining of historical data;

配置管理服务器,用于进行参数配置以及操作权限的管理。The configuration management server is used for parameter configuration and operation authority management.

如图6所示,本发明实施例提供的工业物联网监测终端包括:As shown in FIG. 6 , the industrial Internet of Things monitoring terminal provided by the embodiment of the present invention includes:

注册验证单元4,用于对终端进行注册连接,并进行设备号的验证;The registration verification unit 4 is used to register and connect the terminal and verify the device number;

加密单元5,用于对数据进行加密;an encryption unit 5, for encrypting data;

配置单元6,用于对采集频率、上传频率、服务器IP、端口、阈值及相关采集参数进行配置;The configuration unit 6 is used to configure the collection frequency, upload frequency, server IP, port, threshold and relevant collection parameters;

报警单元7,用于对超出阈值的数据进行紧急报警;The alarm unit 7 is used to carry out emergency alarm to the data exceeding the threshold value;

通信单元8,用于与服务器采用确认通讯机制进行通信;The communication unit 8 is used to communicate with the server using a confirmation communication mechanism;

数据上传单元9,用于对未能成功发送的数据在网络空闲时进行数据上传;A data uploading unit 9, for uploading data that fails to be sent successfully when the network is idle;

传输单元10,用于采用UDP/TCP传输方式进行数据传输。The transmission unit 10 is used for data transmission in the UDP/TCP transmission mode.

如图7所示,本发明实施例提供的基于蓝牙温度监控锅炉控制方法包括:As shown in FIG. 7 , the control method for a boiler based on Bluetooth temperature monitoring provided by an embodiment of the present invention includes:

S101,利用多个传感器进行数据采集;S101, using multiple sensors to collect data;

S102,通过无线、有线的方式将采集的数据传输至服务器;S102, transmitting the collected data to the server in a wireless or wired manner;

S103,服务器对接收到的参数进行分析处理。S103, the server analyzes and processes the received parameters.

步骤S101中,本发明实施例提供的数据采集方法包括:In step S101, the data collection method provided by the embodiment of the present invention includes:

(1)对采集终端进行采样频率、上传频率、服务器IP或域名、端口、UDP/TCP传输方式、阈值、短信号码、机顶盒编号和GPRS卡号及相关采集参数的配置;(1) Configure the sampling frequency, upload frequency, server IP or domain name, port, UDP/TCP transmission method, threshold, SMS number, set-top box number, GPRS card number and related acquisition parameters for the acquisition terminal;

(2)进行终端注册;注册成功后,终端按照预设的采集参数进行数据的采集,并将采集的数据加密后上传至服务器;服务器对收到的每一条数据进行回复;(2) Perform terminal registration; after successful registration, the terminal collects data according to preset collection parameters, and encrypts the collected data and uploads it to the server; the server replies to each piece of data received;

(3)终端采集数据值超过设定的阈值时,将超出预设阈值的数据优先级设定为最高级,并在下一个采集频率时立即上传;同时发送报警短信;当报警消除后,采集一条正常数据并上传告知服务器报警状态消除,同时发送报警消除短信。(3) When the data value collected by the terminal exceeds the set threshold, set the priority of the data exceeding the preset threshold to the highest level, and upload it immediately at the next collection frequency; send an alarm text message at the same time; when the alarm is cleared, collect a The normal data is uploaded and notified to the server that the alarm state is eliminated, and the alarm elimination SMS is sent at the same time.

本发明实施例提供的采集数据上传包括:The collection data upload provided by the embodiment of the present invention includes:

当服务器未对收到的数据进行回复,则判定数据未成功上传,对于未成功上传的数据自动存入本地Flash中,并在终端重新与服务器连接或空闲时间,将本地Flash中的数据进行上传。When the server does not reply to the received data, it is determined that the data has not been uploaded successfully, and the data that has not been successfully uploaded will be automatically stored in the local Flash, and the data in the local Flash will be uploaded when the terminal reconnects to the server or in idle time. .

步骤(2)中,本发明实施例提供的终端注册方法包括:In step (2), the terminal registration method provided by the embodiment of the present invention includes:

终端开机启动后,向服务器发送包含终端的设备号、GPRS卡号、设备号的数据包;服务器收到所述数据包后,给终端回复包含服务器同步时间的数据包,终端通过接收到的数据包进行时间同步,并确定通道是否建立,通道建立则表示注册成功;若通道未建立,则每隔5s发一次,连续5次不成功,隔1小时重新启动注册。After the terminal is powered on, it sends a data packet containing the terminal's device number, GPRS card number, and device number to the server; after receiving the data packet, the server replies to the terminal a data packet containing the server synchronization time, and the terminal passes the received data packet. Perform time synchronization and determine whether the channel is established. If the channel is established, it means that the registration is successful; if the channel is not established, it will be sent every 5s, and the registration will be restarted every 1 hour if it fails for 5 consecutive times.

下面结合具体实施例对本发明的技术方案作进一步说明。The technical solutions of the present invention will be further described below in conjunction with specific embodiments.

实施例1:Example 1:

工业物联网监测终端硬件技术方案:Industrial IoT monitoring terminal hardware technical solution:

1.工业物联网监测终端硬件组网方案(采集层)1. Industrial IoT monitoring terminal hardware networking scheme (collection layer)

以锅炉监控系统为例,其硬件组网方式如图2所示。Taking the boiler monitoring system as an example, its hardware networking mode is shown in Figure 2.

在锅炉现场,通过工业物联网监测终端(目前称为锅炉监控专用机顶盒)接入多个不同的传感器,将各种参数采集到监测终端,通过无线/有线的方式传到后台服务器进行分析处理。At the boiler site, a number of different sensors are connected to the industrial Internet of Things monitoring terminal (currently called a dedicated set-top box for boiler monitoring), various parameters are collected to the monitoring terminal, and sent to the background server for analysis and processing by wireless/wired.

2.工业物联网监测终端硬件组成方案2. Industrial IoT monitoring terminal hardware composition scheme

工业物联网监测终端构成由如下图所示,主要表现为MCU与各种接口。The composition of the industrial IoT monitoring terminal is shown in the figure below, which is mainly represented by MCU and various interfaces.

工业现场数据,往往有CAN接口、ModBus接口,同时可能还有模拟量(如电压、电流),还有开关量等参数数据,因此在本发明的设备中,可以兼容这些接口。Industrial field data often include CAN interface, ModBus interface, and possibly analog quantity (such as voltage, current), and parameter data such as switch quantity, so the device of the present invention can be compatible with these interfaces.

工业物联网监测系统平台技术方案(百万并发量级):Industrial IoT Monitoring System Platform Technical Solution (Million Concurrency Level):

3.工业物联网实时大数据典型组网方案如图3所示。3. The typical networking scheme of real-time big data in the Industrial Internet of Things is shown in Figure 3.

表1组网方案实体说明Table 1 Entity description of networking scheme

Figure BDA0002607564730000041
Figure BDA0002607564730000041

4.服务器架构如图4所示4. The server architecture is shown in Figure 4

服务器将通信与业务独立开来,构成物联网中间件,应用行业发生改变,那么久只需要更改业务处理流程及展现UI界面即可,达到短期快速开发出高质量监控系统大数据平台的目的。The server separates communication from business and constitutes the middleware of the Internet of Things. If the application industry changes, it is only necessary to change the business processing process and display the UI interface for a long time, so as to achieve the purpose of quickly developing a high-quality monitoring system big data platform in the short term.

实施例2:Example 2:

EMC数据服务云平台项目网络通信协议EMC Data Service Cloud Platform Project Network Communication Protocol

一、针对机顶盒终端及网络的设计要求1. Design requirements for set-top box terminals and networks

1、能提供安全的通道。1, can provide a safe channel.

注册连接通过验证机顶盒设备号和手机号;Register the connection by verifying the device number and mobile phone number of the set-top box;

数据通信防止被篡改,要求对数据进行加密。Data communications are tamper-proof and require data encryption.

2、采集卡的配置软件能对采集频率、上传频率、服务器IP、端口、阈值等进行配置。2. The configuration software of the acquisition card can configure the acquisition frequency, upload frequency, server IP, port, threshold, etc.

服务器能够对采样卡的参数进行修改(如上传频率、服务器时钟)。The server can modify the parameters of the sampling card (such as upload frequency, server clock).

3、能够对超出阈值的数据进行紧急报警。3. It can carry out emergency alarm for data exceeding the threshold.

4、为了保证数据可靠传输,与服务器通信采用确认机制。4. In order to ensure the reliable transmission of data, a confirmation mechanism is used for communication with the server.

5、预留短信通道,包含配置、主动报警功能。5. Reserve SMS channels, including configuration and active alarm functions.

6、采集数据本地保存一天内未发送成功数据,待网络空闲(逐条发送60条,间隔29秒发送一组)或设备重启后,优先完成数据上传发送。(锅炉燃烧器分工作和待机两个状态,待机状态时可视为为网络空闲时段)。待机状态:启动信号(在及时控系统中,燃烧器状态字节大于0)无效。6. The collected data is stored locally and the data that has not been sent successfully within a day will be sent first when the network is idle (60 pieces are sent one by one, and a group is sent at an interval of 29 seconds) or the device is restarted. (The boiler burner is divided into two states: working and standby, and the standby state can be regarded as the idle period of the network). Standby state: the start signal (in the real-time control system, the burner status byte is greater than 0) is invalid.

待机状态:1分钟(固定)发一条正常数据,再每间隔29s发一组60条(逐条)存储本地的丢失包。异常数据5s发一次。Standby state: 1 minute (fixed) to send a normal data, and then every 29s to send a group of 60 (one by one) to store the local lost packets. Abnormal data is sent every 5s.

工作状态:5分钟逐条发60条,不足5分钟的未发数据,当丢失数据存储。Working status: 60 pieces of data are sent one by one in 5 minutes. If the data is not sent for less than 5 minutes, it will be stored when the data is lost.

7、传输方式:UDP/TCP传输方式可通过上位机软件配置。7. Transmission mode: UDP/TCP transmission mode can be configured through the host computer software.

二、网络通信协议2. Network communication protocol

1.操作定义1. Operation Definition

(1)对机顶盒终端配置(1) Configure the set-top box terminal

在出厂前通过串口与终端配套的上位机软件进行现场配置。配置参数:采样频率、上传频率、服务器IP或域名、端口、UDP/TCP传输方式、阈值、短信号码(业主,可预设3个号码)、机顶盒编号和GPRS卡号。On-site configuration is carried out through the serial port and the host computer software supporting the terminal before leaving the factory. Configuration parameters: sampling frequency, upload frequency, server IP or domain name, port, UDP/TCP transmission method, threshold, SMS number (owner, 3 numbers can be preset), set-top box number and GPRS card number.

支持在线配置,配置参数:服务器时间(定期即每天凌晨3:00注册一次,同步服务器与终端的时间)、正常数据上传频率(范围:1Min~5Min)、采样频率(范围:5s~1Min)、阀值。Support online configuration, configuration parameters: server time (regularly registered once a day at 3:00 am to synchronize the time of the server and terminal), normal data upload frequency (range: 1Min ~ 5Min), sampling frequency (range: 5s ~ 1Min), threshold.

(2)与服务器通信过程(2) Communication process with the server

注册过程:在终端开机启动后,主动向服务器发送一条数据包,该数据包中包含终端的设备号、GPRS卡号、设备号。服务器收到该数据后,给终端回复一条数据包,数据包中包含:服务器同步时间,终端通过此数据包来同步时间以及确定通道是否建立。Registration process: After the terminal is powered on, it actively sends a data packet to the server, which contains the terminal's device number, GPRS card number, and device number. After the server receives the data, it replies a data packet to the terminal, and the data packet includes: the server synchronization time. The terminal uses this data packet to synchronize the time and determine whether the channel is established.

注册过程:即未建立起连接通道,每隔5s发一次,5次不成功,隔1小时重新启动注册过程Registration process: that is, if the connection channel is not established, it will be sent every 5s. If it fails 5 times, the registration process will be restarted every 1 hour.

初装/恢复出厂设置:未注册成功之前,不采集数据。Initial installation/restore to factory settings: Data will not be collected until registration is successful.

注册一次后:设备重启后,再次发起注册过程。每次发送一组60帧数据全部丢失后,也需要重新启动注册过程,但需要同时采集数据。After registration once: After the device restarts, the registration process is initiated again. Each time a group of 60 frames of data is lost, the registration process needs to be restarted, but data needs to be collected at the same time.

注册成功后,指示灯显示(红/绿)。网络指示灯(绿单色),电源指示灯(红单色)。After successful registration, the indicator light is displayed (red/green). Network indicator (green monochrome), power indicator (red monochrome).

注:每次上电后,都需要注册一次。Note: After each power-on, you need to register once.

正常数据通信:设备出厂默认,终端按照采集频率(每5s)采集一次数据,按照上传频率(每5分钟)到逐条上传(60条)数据,服务器每接收一条数据后,对该条数据进行回复。对于本次没有收到回复的数据,将其存入本地Flash。特殊情况:当无网络服务时,每5分钟将采集的60条数据存入Flash中,Flash中只存储一天的上传失败的测量值。Normal data communication: The device is factory default, the terminal collects data according to the collection frequency (every 5s), and uploads data one by one (60 pieces) according to the upload frequency (every 5 minutes), and the server replies to the piece of data after each piece of data received. . For the data that has not received a reply this time, it is stored in the local Flash. Special situation: When there is no network service, 60 pieces of collected data are stored in Flash every 5 minutes, and only one day's upload failure measurement values are stored in Flash.

报警数据通信:终端采集数据值超过设定的阈值时,此条数据在下一个采集频率(每5s)时立即上传,并设定高优先级;同时向业主发送一条短信(在整个报警阶段只在报警开始时向业主发送一条短信)。当报警消除后,采集一条正常数据并上传告知服务器报警状态消除,同时向业主发送一条短信。(5分钟内数据转换不报警)注:报警值如上传不成功,当成上传失败数据处理。当报警产生时,如果在报警时刻之前还有数据(不足60条数据)没有上传,则系统自动将这部分数据存入本地Flash中,当成上传失败数据处理。服务器对报警数据确认。Alarm data communication: When the data collected by the terminal exceeds the set threshold, the data will be uploaded immediately at the next collection frequency (every 5s), and a high priority will be set; Send a text message to the owner when the alarm starts). When the alarm is eliminated, a normal data is collected and uploaded to inform the server that the alarm state is eliminated, and a short message is sent to the owner at the same time. (The data conversion will not alarm within 5 minutes) Note: If the alarm value fails to upload, it will be treated as upload failure data. When the alarm occurs, if there is still data (less than 60 pieces of data) that has not been uploaded before the alarm time, the system will automatically store this part of the data in the local Flash, and treat it as the upload failure data. The server acknowledges the alarm data.

上传失败数据处理:Upload failed data processing:

设备在重新开机后,通过之前建立的通道初始化过程中,将Flash中的所有数据进行上传;上传时间间隔为29秒。与待机时间间隔冲突时,优先发待机时正常的数据包。After the device is restarted, all data in the Flash is uploaded through the channel initialization process established before; the upload time interval is 29 seconds. When it collides with the standby time interval, the normal data packets during standby are given priority.

利用空闲时间上传:空闲时间按照1分钟采集一次数据,并按照29秒上传Flash中的数据。这期间所有数据只重传一次。Upload using idle time: collect data every 1 minute in idle time, and upload the data in Flash every 29 seconds. During this period, all data is retransmitted only once.

重新注册过程:当注册失效后或者终端没有注册,服务器收到采集终端数据可以下发重新注册帧要求终端重新注册。Re-registration process: When the registration is invalid or the terminal is not registered, the server can send a re-registration frame to request the terminal to re-register after receiving the collected terminal data.

(3)对数据加密(3) Encrypt data

为了防止数据被篡改,需对传输的数据进行加密,加密算法选用TEA算法。加密只对数据字段加密。In order to prevent data from being tampered with, the transmitted data needs to be encrypted, and the encryption algorithm is the TEA algorithm. Encryption only encrypts the data field.

2.数据帧格式2. Data frame format

注:数据传输采用大端模式,即:高字节在前、低字节在后。Note: The data transmission adopts the big endian mode, that is: the high byte is in the front and the low byte is in the back.

(1)上行通用数据帧格式(1) Upstream general data frame format

Figure BDA0002607564730000061
Figure BDA0002607564730000061

起始字节为:0x55AAThe start byte is: 0x55AA

版本:一个字节自定义,版本02。Version: One Byte Custom, Version 02.

数据类型:区分不同的帧类型,为2字节。上传数据类型0X50XXData type: distinguish different frame types, it is 2 bytes. Upload data type 0X50XX

数据包优先级:Packet Priority:

0x00:工作状态0x00: working status

0x01:空闲状态0x01: idle state

0x02:报警状态0x02: Alarm status

机顶盒编码格式:区分不同的锅炉。Set-top box encoding format: distinguish different boilers.

数据长度:数据字段内容的长度N。Data length: The length N of the content of the data field.

数据:不同的数据类型,对应不同的数据字段。Data: Different data types correspond to different data fields.

数据校验:收到的数据(除起始,结束与本身校验字节)CRC16(XMODEM)校验。Data check: CRC16 (XMODEM) check of the received data (except the start, end and its own check bytes).

结束字节:0x7E7F。End byte: 0x7E7F.

①机顶盒编码格式(8字节)①Set-top box encoding format (8 bytes)

省份代号(2个字节):ASCII码(如:CQ)Province code (2 bytes): ASCII code (eg: CQ)

序列号(6位阿拉伯数字):Serial number (6-digit Arabic numerals):

②上行数据类型字段:②Uplink data type field:

数据类型type of data 字段field 备注Remark 终端配置Terminal configuration 上行up 0x50 010x50 01 注册信息registration message 上行up 0x50 020x50 02 正常数据通信normal data communication 上行up 0x50 030x50 03 报警数据通信Alarm data communication 上行up 0x50 040x50 04 上传失败数据Upload failed data 上行up 0x50 050x50 05

(2)(2)

下行通用数据帧类型Downlink general data frame type

起始start 版本Version 数据类型type of data 数据长度Data length 数据data 校验check 结束字节end byte 2字节2 bytes 1字节1 byte 2字节2 bytes 2字节2 bytes N字节N bytes 2字节2 bytes 2字节2 bytes

起始字节为:0x55AAThe start byte is: 0x55AA

版本:一个字节自定义,版本02。Version: One Byte Custom, Version 02.

数据类型:区分不同的帧类型,为2字节。下行数据类型为0XD0XX。Data type: distinguish different frame types, it is 2 bytes. The downstream data type is 0XD0XX.

数据长度:数据字段内容的长度N。Data length: The length N of the content of the data field.

数据:不同的数据类型,对应不同的数据字段。Data: Different data types correspond to different data fields.

数据校验:收到的数据(除起始,结束与本身校验字节)CRC16(XMODE)校验。Data check: CRC16 (XMODE) check of the received data (except the start, end and its own check bytes).

结束字节:0x7E7F。End byte: 0x7E7F.

下行数据类型Downstream data type

数据类型type of data 字段field 备注Remark 终端配置Terminal configuration 下行down 0xD0 010xD0 01 注册信息registration message 下行down 0xD0 020xD0 02 正常数据通信normal data communication 下行down 0xD0 030xD0 03 报警数据通信Alarm data communication 下行down 0xD0 040xD0 04 失败数据failure data 下行down 0xD0 050xD0 05 重新注册register again 下行down 0xD0 060xD0 06

(2)终端配置帧格式-----数据段(2) Terminal configuration frame format ----- data segment

在线配置参数:服务器时间、上传频率(范围:1Min~5Min)、采样频率、阀值。(如若丢包,即未得到机顶盒确认,服务器端自定义重发机制)Online configuration parameters: server time, upload frequency (range: 1Min ~ 5Min), sampling frequency, threshold. (If the packet is lost, it will not be confirmed by the set-top box, and the server will customize the retransmission mechanism)

下行配置数据字段格式:(数据类型0xD001)Downstream configuration data field format: (data type 0xD001)

操作指令Operation instructions 服务器时间server time 操作指令Operation instructions 上传频率Upload frequency 操作指令Operation instructions 阈值threshold 1字节1 byte 4字节4 bytes 1字节1 byte 6字节6 bytes 1字节1 byte 61字节61 bytes

操作指令:Operation command:

0x00:表示不需要配置该参数0x00: Indicates that this parameter does not need to be configured

0x01:表示需要该参数。0x01: Indicates that this parameter is required.

服务器时间:server time:

字段名称Field Name 数据类型type of data 数据长度Data length 说明illustrate UTC时钟UTC clock Long型Long type 4字节4 bytes 服务器当前时间server current time

上传频率:Upload frequency:

字段名称Field Name 数据长度Data length 说明illustrate 数据采集时间Data collection time 2字节2 bytes 默认5S,范围5S~1MinDefault 5S, range 5S~1Min 空闲上传时间Idle upload time 2字节2 bytes 默认值1Min,范围1Min~5MinThe default value is 1Min, the range is 1Min~5Min 历史上传时间Historical upload time 2字节2 bytes 默认29SDefault 29S

阈值threshold

Figure BDA0002607564730000071
Figure BDA0002607564730000071

Figure BDA0002607564730000081
Figure BDA0002607564730000081

上行配置数据帧字段格式:(数据类型0x5001)Upstream configuration data frame field format: (data type 0x5001)

确认配置:服务器时间Confirm Configuration: Server Time 确认配置:上传频率Confirm Configuration: Upload Frequency 确认配置:阈值Confirm Configuration: Threshold 1字节1 byte 1字节1 byte 1字节1 byte

确认配置:Confirm configuration:

0x00:表示配置不成功0x00: Indicates that the configuration was unsuccessful

0x01:表示配置成功0x01: Indicates that the configuration is successful

(3)注册信息帧格式-----数据段(3) Registration information frame format ----- data segment

注册过程:在终端开机启动后,主动向服务器发送一条数据包,该数据包中包含终端的设备号、GPRS卡号、锅炉类型。服务器收到该数据后,给终端回复一条数据包,数据包中包含:服务器同步时间,终端通过此数据包来同步时间以及确定通道是否建立。如超时未建立起连接通道,重发直至连接建立。终端复位后,重新注册。Registration process: After the terminal is powered on, it actively sends a data packet to the server, which contains the terminal's device number, GPRS card number, and boiler type. After the server receives the data, it replies a data packet to the terminal, and the data packet includes: the server synchronization time. The terminal uses this data packet to synchronize the time and determine whether the channel is established. If the connection channel is not established after the timeout, it will be resent until the connection is established. After the terminal is reset, re-register.

上行注册请求帧数据字段格式:(数据类型0x5002)Uplink registration request frame data field format: (data type 0x5002)

字段field 长度(字节)length (bytes) 说明illustrate 手机号码cellphone number 16字节16 bytes 不足16字节补0If less than 16 bytes are filled with 0 锅炉类型Boiler Type 1字节1 byte 蒸汽锅炉:0x00 压力锅炉:0x01Steam boiler: 0x00 Pressure boiler: 0x01

如:like:

+861359512938700+861359512938700

通过匹配一帧数据中的手机号码和机顶盒编码注册该机顶盒。Register the set-top box by matching the mobile phone number and set-top box code in a frame of data.

下行确认注册请求帧数据字段格式:(数据类型0xD002)Downlink acknowledgment registration request frame data field format: (data type 0xD002)

字段field 长度(字节)length (bytes) 说明illustrate 服务器当前时间server current time 4字节4 bytes 用来配置终端当前时间Used to configure the current time of the terminal 确认信息Confirm information 1字节1 byte 注册成功:0x01;注册失败:0x00Registration succeeded: 0x01; Registration failed: 0x00

(4)正常数据通信帧格式-----数据段(4) Normal data communication frame format ----- data segment

正常数据通信:设备出厂默认,终端每5s采集一次数据,每5分钟到打包上传60条数据,服务器每接收一条数据后,对该条数据进行回复。对于本次没有收到回复的数据,将其存入本地Flash。特殊情况:当无网络服务时,每5分钟将采集的60条数据存入Flash中,Flash中只存储一天的上传失败的数据。Normal data communication: The device is factory defaulted, the terminal collects data every 5s, and uploads 60 pieces of data every 5 minutes. After each piece of data received by the server, the server will reply to the piece of data. For the data that has not received a reply this time, it is stored in the local Flash. Special situation: When there is no network service, 60 pieces of collected data will be stored in Flash every 5 minutes, and only one day's worth of failed upload data will be stored in Flash.

上行正常数据通信帧字段格式:(数据类型0x5003)Uplink normal data communication frame field format: (data type 0x5003)

①锅炉数据上传帧的中一条采集数据的数据字段格式①The data field format of the collected data in the boiler data upload frame

Figure BDA0002607564730000091
Figure BDA0002607564730000091

(及时控+采集数据)数据字段格式:(Timely control + data collection) Data field format:

Figure BDA0002607564730000092
Figure BDA0002607564730000092

Figure BDA0002607564730000101
Figure BDA0002607564730000101

注:Note:

接上及时控后,所有开关状态以及时控为准。After connecting the time control, all switch states and time control shall prevail.

未接及时控设备或机顶盒采集通道时,默认发送全‘0’数据。When the timing device or set-top box acquisition channel is not connected, all '0' data are sent by default.

下行正常数据通信帧字段格式:(数据类型0xD003)Downlink normal data communication frame field format: (data type 0xD003)

序号serial number 字段名称Field Name 数据长度Data length 说明illustrate 11 时间戳(UTC时钟)Timestamp (UTC clock) 4字节4 bytes 数据采集时刻的时间time of data collection 22 确认信息Confirm information 1字节1 byte 0x01表示收到0x01 means received

(5)报警数据通信帧格式-----数据段(5) Alarm data communication frame format-----data segment

报警数据通信:终端采集数据值超过设定的阈值时,此条数据在下一个5s时立即上传,并设定高优先级;同时向业主发送一条短信(在整个报警阶段只在报警开始时向业主发送一条短信)。当报警消除后,采集一条正常数据并上传告知服务器报警状态消除,同时向业主发送一条短信。注:报警值如上传不成功,当成上传失败数据处理。当报警产生时,如果在报警时刻之前还有数据(不足60条数据)没有上传,则系统自动将这部分数据存入本地Flash中,当成上传失败数据处理。Alarm data communication: When the data value collected by the terminal exceeds the set threshold, the data will be uploaded immediately in the next 5s, and a high priority will be set; at the same time, a short message will be sent to the owner (only at the beginning of the alarm in the entire alarm stage to the owner) send a text message). When the alarm is cleared, a piece of normal data is collected and uploaded to inform the server that the alarm state is cleared, and a short message is sent to the owner at the same time. Note: If the upload of the alarm value is unsuccessful, it will be treated as the upload failure data. When the alarm occurs, if there is still data (less than 60 pieces of data) that has not been uploaded before the alarm time, the system will automatically store this part of the data in the local Flash, and treat it as the upload failure data.

上行报警数据通信帧字段格式:(数据类型0x5004)Uplink alarm data communication frame field format: (data type 0x5004)

数据格式与正常通信格式一致,只是发送间隔为5秒/每次。The data format is the same as the normal communication format, except that the sending interval is 5 seconds/time.

下行确认报警数据通信帧数据字段格式:(数据类型0xD004)Downlink confirmation alarm data communication frame data field format: (data type 0xD004)

序号serial number 字段名称Field Name 数据长度Data length 说明illustrate 11 时间戳(UTC时钟)Timestamp (UTC clock) 4字节4 bytes 数据采集时刻的时间time of data collection 22 确认信息Confirm information 1字节1 byte 0x01表示确认0x01 means confirmation

(6)上传失败数据帧格式-----数据段(6) Upload failed data frame format ----- data segment

上传失败数据处理:Upload failed data processing:

设备在重新开机后,通过之前建立的通道初始化过程中,将Flash中的所有数据进行上传;After the device is restarted, all data in the Flash is uploaded through the channel initialization process established before;

利用空闲时间上传:空闲时间,按照1min中采集,并上传Flash中的数据。Upload using idle time: in idle time, collect data in 1 minute and upload the data in Flash.

上传失败数据帧字段格式:(数据类型0x5005)Upload failed data frame field format: (data type 0x5005)

锅炉数据上传帧的中一条采集数据的数据字段格式The data field format of the collected data in the boiler data upload frame

Figure BDA0002607564730000111
Figure BDA0002607564730000111

及时控+采集数据数据字段格式:Timely control + data collection Data field format:

Figure BDA0002607564730000112
Figure BDA0002607564730000112

Figure BDA0002607564730000121
Figure BDA0002607564730000121

注:接上及时控后,所有开关状态以及时控为准。Note: After connecting the time control, all switch states and time control shall prevail.

失败数据上传频率(29秒):逐条数据帧数据Failed data upload frequency (29 seconds): data frame by data

确认字段格式:(数据类型0xD005)Confirmation field format: (data type 0xD005)

序号serial number 字段名称Field Name 数据长度Data length 说明illustrate 11 时间戳(UTC时钟)Timestamp (UTC clock) 4字节4 bytes 服务器当前的时间current server time

要求终端重新注册帧字段格式:(数据类型0xD006)The terminal is required to re-register the frame field format: (data type 0xD006)

Figure BDA0002607564730000122
Figure BDA0002607564730000122

样例数据包:Sample data package:

终端配置Terminal configuration 注册信息registration message 正常数据通信normal data communication 报警数据通信Alarm data communication 上传失败数据Upload failed data

实施例3:Example 3:

锅炉B版硬件需求分析Analysis of hardware requirements of boiler version B

1.硬件平台需求1. Hardware platform requirements

锅炉系统B版本是在A版本基础上改进,其中引入RS485接口、优化GPRS模块、新添加433Mhz无线模块,让B版本功能更加强大,更适合市场需求。为瞒足综合采集器采集需求,具备以下功能特点:The B version of the boiler system is improved on the basis of the A version, which introduces the RS485 interface, optimizes the GPRS module, and newly adds a 433Mhz wireless module, making the B version more powerful and more suitable for market demand. In order to meet the collection requirements of the comprehensive collector, it has the following features:

高速并行采集12路模拟传感量High-speed parallel acquisition of 12 channels of analog sensor

测试范围为4~20mA电流型数据;The test range is 4 ~ 20mA current type data;

参数值保留小数点2位;The parameter value retains 2 decimal places;

模拟量输入与采集器调理电路采用耐压/耐流隔离,保护后级电路稳定;The analog input and the collector conditioning circuit adopt withstand voltage/current isolation to protect the stability of the subsequent circuit;

采集数据具备本地存储功能,允许存储24小时数据;The collected data has a local storage function, allowing 24-hour data storage;

精度达到工业5级。The accuracy reaches industrial level 5.

高速高压并行8路开关量输出端口High-speed and high-voltage parallel 8-channel switching output ports

开关量电路输入220V交流信号;Switch circuit input 220V AC signal;

开关量电平为0/1;The switch level is 0/1;

1路采集RS232通行端口,支持及时控协议。1-way collection RS232 port, support real-time control protocol.

1路RS232通行端口,用于参数配置。1 RS232 pass port for parameter configuration.

1路RS485工业通信总线接口,支持Modbus协议、Profibus协议。1 channel RS485 industrial communication bus interface, supports Modbus protocol and Profibus protocol.

支持433Mhz无线传输,可达到短距离数据交换。Support 433Mhz wireless transmission, can achieve short-distance data exchange.

数据传输通道提供GPRS,支持双服务器通信功能,保证网络传输的可靠性。The data transmission channel provides GPRS, supports dual-server communication function, and ensures the reliability of network transmission.

数据储存SD卡,可最多保存一天的历史数据。Data storage SD card, can save up to one day of historical data.

多种状态指示灯。Various status indicators.

提供综合采集器服务器平台,并提供单点测试工具软件。Provide a comprehensive collector server platform and provide single-point test tool software.

工作温度范围-30摄氏度~70摄氏度。Operating temperature range -30 degrees Celsius to 70 degrees Celsius.

2.需求分析2. Demand analysis

从上述硬件需求可以的出结论From the above hardware requirements can be concluded

(1)GPRS通信实现了超远距离通信,能足不出户监控现场的一举一动,实现物联的管理方式。(1) GPRS communication realizes ultra-long-distance communication, which can monitor every move of the scene without leaving home, and realize the management method of the Internet of Things.

(2)系统硬件处流程清晰,实现起来比较容易。(2) The process of the system hardware is clear and easy to implement.

(3)硬件系统集成了工业上通用的开关量输入、输出,模拟量输入、RS232通信接口、RS485通信接口的系统设备,能很好的满足工业现场的采集要求。(3) The hardware system integrates the general industrial switch input, output, analog input, RS232 communication interface, and RS485 communication interface system equipment, which can well meet the acquisition requirements of the industrial site.

实施例4:Example 4:

Kelvin需求分析Kelvin needs analysis

1.硬件平台需求1. Hardware platform requirements

Kelvin是针对红酒温度监控的蓝牙设备,满足在60mah锂电池供电下连续工作,并在金属冰箱里仍能实现数据交互的特点,其具备以下功能特点:Kelvin is a Bluetooth device for wine temperature monitoring. It can work continuously under the power supply of 60mah lithium battery and can still realize data interaction in a metal refrigerator. It has the following features:

最新的蓝牙4.0BLE技术(CC2541芯片)The latest Bluetooth 4.0BLE technology (CC2541 chip)

发送功耗:18.2mA;Sending power consumption: 18.2mA;

接收功耗:17.9mA;Receive power consumption: 17.9mA;

最低待机功耗:0.5uA;Minimum standby power consumption: 0.5uA;

温度采集temperature collection

12位分辨率ADC采样;12-bit resolution ADC sampling;

补偿外壳带来的温差;Compensate for the temperature difference caused by the shell;

采集温度的精度达到0.1度;The accuracy of the collected temperature reaches 0.1 degrees;

蓝牙信号强度bluetooth signal strength

非金属冰箱内数据交互距离10m;The data interaction distance in the non-metal refrigerator is 10m;

金属冰箱内数据交互距离2m;The data interaction distance in the metal refrigerator is 2m;

可通过Micro_USB进行充电Can be charged via Micro_USB

充电时间:1小时Charging time: 1 hour

分层数据交互Hierarchical Data Interaction

基本信息和实时温度通过广播包进行交互(更快、更低功耗);Basic information and real-time temperature interact via broadcast packets (faster, lower power consumption);

设置数据通过建立虚拟连接方式进行交互(更准确、更高效);Set data to interact by establishing virtual connections (more accurate and efficient);

可设置自动关机功能;Automatic shutdown function can be set;

按键开关机;key switch;

三个独立LED指示灯(红、蓝、绿)分别显示实际温度与最适温度偏差;Three independent LED indicators (red, blue, green) respectively display the deviation between the actual temperature and the optimum temperature;

蓝牙通信指示灯;Bluetooth communication indicator;

设备按键指示灯;Device button indicator;

充电指示灯;charging indicator;

工作温度范围-10℃~55℃。Working temperature range -10℃~55℃.

2.需求分析2. Demand analysis

从上述硬件需求可以的出结论:From the above hardware requirements it can be concluded that:

(1)功能不复杂能实现;(1) The function is not complicated and can be realized;

(2)射频参考电路官方已经提供;(2) The RF reference circuit has been officially provided;

(3)基于OLSA系统能更好的完成基本功能;(3) The basic functions can be better completed based on the OLSA system;

(4)蓝牙底层协议已经封装到协议栈里面,能更好的实现应用层的功能。(4) The Bluetooth bottom layer protocol has been encapsulated into the protocol stack, which can better realize the functions of the application layer.

实施例4:Example 4:

一、项目概述1. Project Overview

基于蓝牙4.0技术,通过手机app与终端之间的连接通信,用户可通过手机app实时监测餐酒等酒品的最适合温度。本发明将会具体描述手机如何与蓝牙温度计终端握手交互数据(自定义协议)。Based on Bluetooth 4.0 technology, through the connection and communication between the mobile app and the terminal, users can monitor the most suitable temperature of wine and other wines in real time through the mobile app. The present invention will specifically describe how the mobile phone shakes hands with the Bluetooth thermometer terminal to exchange data (custom protocol).

二、特殊字符说明2. Description of special characters

1、终端:蓝牙温度计1. Terminal: Bluetooth thermometer

2、下行:手机向终端发送数据帧2. Downlink: the mobile phone sends data frames to the terminal

3、上行:终端向手机发送数据帧3. Uplink: The terminal sends data frames to the mobile phone

三、接口协议设计3. Interface protocol design

1.指令集分类:1. Instruction set classification:

a)可设置可读取操作指令(0x01)a) Can be set to read the operation command (0x01)

对终端配置参数进行修改或读取。主要包括蓝牙名称、关机时间、高低温阀值、同步时钟、绑定颜色及APP状态、自定义关机等。Modify or read terminal configuration parameters. It mainly includes Bluetooth name, shutdown time, high and low temperature threshold, synchronization clock, binding color and APP status, custom shutdown, etc.

b)可读取操作指令(0x11)b) Readable operation command (0x11)

依据终端设定的各种参数阀值,以监测其运行状态。包括温度、电量以及颜色等参数。According to the various parameter thresholds set by the terminal to monitor its running status. Including parameters such as temperature, power and color.

2.协议帧格式2. Protocol frame format

Figure BDA0002607564730000141
Figure BDA0002607564730000141

3.协议帧说明3. Protocol frame description

c)帧头c) Frame header

一帧数据开始有0x55AA,代表为帧数据。A frame of data starts with 0x55AA, which represents frame data.

d)帧长d) Frame length

一帧数据的字节大小,一共不超过20个字节。The byte size of a frame of data, a total of no more than 20 bytes.

e)版本号e) version number

用于区分用本格式的不同项目编号。Used to distinguish different item numbers using this format.

f)接受地址f) Acceptance address

保留,暂时不用,可任意数据。Reserved, temporarily unused, any data can be used.

g)发送地址g) Sending address

保留,暂时不用,可任意数据。Reserved, temporarily unused, any data can be used.

h)指令集类h) Instruction set class

用于区分不同种类的命令。Used to differentiate between different kinds of commands.

i)数据段i) data segment

包括参数子集和具体数据。Include a subset of parameters and specific data.

j)校验j) Check

CRC16校验,2个字节。采用CRC-16/XMODEM x16+x12+x5+1CRC16 checksum, 2 bytes. Adopt CRC-16/XMODEM x16+x12+x5+1

4.广播包数据4. Broadcast packet data

Figure BDA0002607564730000151
Figure BDA0002607564730000151

注:Note:

(1)数据长度:数据类型+数据段的长度;(1) Data length: data type + length of data segment;

(2)可写特针值UUID是:0x FFF1;(2) The writable special pin value UUID is: 0x FFF1;

(3)颜色代码0-255,每一个值表示一种颜色;(3) Color code 0-255, each value represents a color;

(4)电量值0-10;(4) Electricity value 0-10;

(5)MAC地址:设备自身物理地址(5) MAC address: the physical address of the device itself

5.扫描包数据5. Scan the packet data

Figure BDA0002607564730000152
Figure BDA0002607564730000152

6.数据段参数子集类型编号6. Data segment parameter subset type number

Figure BDA0002607564730000161
Figure BDA0002607564730000161

7.参数子集说明7. Parameter subset description

k)蓝牙名称k) Bluetooth name

用户要通过手机app对终端进行查询或者设置蓝牙名称时,采用”0x01”参数子集对其操作;蓝牙名称设置1—10个字节,每个字节必须是阿拉伯或者英文大小写。When the user wants to query the terminal through the mobile app or set the Bluetooth name, use the "0x01" parameter subset to operate it; the Bluetooth name is set to 1-10 bytes, and each byte must be in Arabic or English case.

例如设置蓝牙名称:(具体位说明请参照协议样帧)For example, set the bluetooth name: (Please refer to the protocol sample frame for the specific bit description)

命令帧(下行):55 AA 14 02 FF FF 01 01 31 32 33 34 35 36 37 38 39 00 1A0DCommand frame (downstream): 55 AA 14 02 FF FF 01 01 31 32 33 34 35 36 37 38 39 00 1A0D

应答帧(上行):55 AA 0B 02 FF FF 01 01 00 B9 1CResponse frame (upstream): 55 AA 0B 02 FF FF 01 01 00 B9 1C

例如查询蓝牙名称:(具体位说明请参照协议样帧)For example, query the bluetooth name: (Please refer to the protocol sample frame for the specific bit description)

命令帧(下行):55 AA 0A 02 FF FF 11 01 D3 B9Command frame (downstream): 55 AA 0A 02 FF FF 11 01 D3 B9

应答帧(上行):55 AA 14 02 FF FF 11 01 31 32 33 34 35 36 37 38 39 00 2D5DResponse frame (upstream): 55 AA 14 02 FF FF 11 01 31 32 33 34 35 36 37 38 39 00 2D5D

l)休眠时间l) Sleep time

用户要通过手机app对终端进行查询或者休眠时间时,采用”0x02”参数子集对其操作;休眠时间指从断开蓝牙开始计时,到设定值时进入休眠,如果中途有任何连接行为,断开后重新计时。设置为0s时,不使用休眠。When the user wants to query the terminal through the mobile app or the sleep time, use the "0x02" parameter subset to operate it; the sleep time refers to the time from disconnecting the Bluetooth, and goes to sleep when it reaches the set value. If there is any connection behavior in the middle, Re-time after disconnection. When set to 0s, sleep is not used.

例如设置休眠时间:(具体位说明请参照协议样帧)For example, set the sleep time: (Please refer to the protocol sample frame for the specific bit description)

命令帧(下行):55 AA 0C 02 FF FF 01 02 00 0A 15 F0Command frame (downstream): 55 AA 0C 02 FF FF 01 02 00 0A 15 F0

应答帧(上行):55 AA 0B 02 FF FF 01 02 00 EC 4FResponse frame (upstream): 55 AA 0B 02 FF FF 01 02 00 EC 4F

例如查询休眠时间:(具体位说明请参照协议样帧)For example, query the sleep time: (Please refer to the protocol sample frame for the specific bit description)

命令帧(下行):55 AA 0A 02 FF FF 11 02 E3 DACommand frame (downstream): 55 AA 0A 02 FF FF 11 02 E3 DA

应答帧(上行):55 AA 0C 02 FF FF 11 02 00 0A 0E 57Response frame (upstream): 55 AA 0C 02 FF FF 11 02 00 0A 0E 57

m)低温阀值m) low temperature threshold

用户可设定温度值区间,在此区间时表明最佳饮酒温度,这个区间介于低温阀值与高温阀值之间;可在(-10~60℃)中任意设置低温阀值大小。该参数可读可写,采用”0x03”参数子集对其操作。The user can set the temperature value range, and the best drinking temperature is indicated in this range. This range is between the low temperature threshold and the high temperature threshold; the low temperature threshold can be arbitrarily set in (-10~60℃). This parameter is readable and writable, and the "0x03" parameter subset is used to operate on it.

例如设置低温阀值:(具体位说明请参照协议样帧)For example, set the low temperature threshold: (Please refer to the protocol sample frame for the specific bit description)

命令帧(上行):55 AA 0E 02 FF FF 01 03 41 20 00 00 3E 6DCommand frame (upstream): 55 AA 0E 02 FF FF 01 03 41 20 00 00 3E 6D

应答帧(下行):55 AA 0B 02 FF FF 01 03 00 DF 7EResponse frame (downlink): 55 AA 0B 02 FF FF 01 03 00 DF 7E

例如查询低温阀值:(具体位说明请参照协议样帧)For example, query the low temperature threshold: (Please refer to the protocol sample frame for the specific bit description)

命令帧(上行):55 AA 0A 02 FF FF 11 03 F3 FBCommand frame (upstream): 55 AA 0A 02 FF FF 11 03 F3 FB

应答帧(下行):55 AA 0E 02 FF FF 11 03 41 20 00 00 24 E9Response frame (downlink): 55 AA 0E 02 FF FF 11 03 41 20 00 00 24 E9

n)高温阀值n) High temperature threshold

用户可设定温度值区间,在此区间时表明最佳饮酒温度,这个区间介于低温阀值与高温阀值之间;可在(-10~60℃)中任意设置高温阀值大小。该参数可读可写,采用”0x04”参数子集对其操作。The user can set the temperature value interval, and the best drinking temperature is indicated in this interval, which is between the low temperature threshold and the high temperature threshold; the high temperature threshold can be arbitrarily set in (-10~60℃). This parameter is readable and writable, and the "0x04" parameter subset is used to operate on it.

例如设置高温阀值:(具体位说明请参照协议样帧)For example, to set the high temperature threshold: (Please refer to the protocol sample frame for the specific bit description)

命令帧(上行):55 AA 0E 02 FF FF 01 04 41 F0 00 00 3C 2DCommand frame (upstream): 55 AA 0E 02 FF FF 01 04 41 F0 00 00 3C 2D

应答帧(下行):55 AA 0B 02 FF FF 01 04 00 46 E9Response frame (downlink): 55 AA 0B 02 FF FF 01 04 00 46 E9

例如查询高温阀值:(具体位说明请参照协议样帧)For example, query the high temperature threshold: (Please refer to the protocol sample frame for the specific bit description)

命令帧(上行):55 AA 0A 02 FF FF 11 04 83 1CCommand frame (upstream): 55 AA 0A 02 FF FF 11 04 83 1C

应答帧(下行):55 AA 0E 02 FF FF 11 04 41 F0 00 00 26 A9Response frame (downlink): 55 AA 0E 02 FF FF 11 04 41 F0 00 00 26 A9

o)同步时钟o) Synchronized clock

保留,暂时不用。Reserved, temporarily not used.

p)颜色及状态p) Color and status

用户在手机app上绑定终端完成后,下发给终端绑定的颜色及绑定状态标志,此参数比较特殊,颜色可通过与温度、电量、颜色一起的命令进行索取当前绑定的颜色值(该颜色不为RGB,颜色为自定义一个字节数据,默认0x00);下发的绑定状态标志不可读。采用”0x06”参数子集对其操作。After the user completes the binding of the terminal on the mobile app, the color and binding status flag of the binding are sent to the terminal. This parameter is special. The color can be obtained through the command together with the temperature, power, and color to obtain the currently bound color value. (The color is not RGB, the color is a custom byte data, the default is 0x00); the issued binding status flag is unreadable. Operates on it with a subset of "0x06" parameters.

例如下发绑定颜色及状态:(具体位说明请参照协议样帧)For example, send the binding color and status: (For specific bit description, please refer to the protocol sample frame)

命令帧(上行):55 AA 0C 02 FF FF 01 06 01 01 4B 6ACommand frame (upstream): 55 AA 0C 02 FF FF 01 06 01 01 4B 6A

应答帧(下行):55 AA 0B 02 FF FF 01 06 00 20 8BResponse frame (downlink): 55 AA 0B 02 FF FF 01 06 00 20 8B

例如查询颜色、电量及温度:(具体位说明请参照协议样帧)For example, query color, power and temperature: (For specific bit description, please refer to the protocol sample frame)

命令帧(上行):55 AA 0A 02 FF FF 11 23 D7 99Command frame (upstream): 55 AA 0A 02 FF FF 11 23 D7 99

应答帧(下行):55 AA 10 02 FF FF 11 23 41 F0 00 00 01 0A 4A 8CResponse frame (downlink): 55 AA 10 02 FF FF 11 23 41 F0 00 00 01 0A 4A 8C

q)自定义关机q) Custom shutdown

手机可发送指令设定1、3、5小时关机或者关闭自定义关机指令,每次收到指令后设备会重新刷新关机的时间,如用户没有进行参数选折,默认参数为0x00,关闭自定义关机功能The mobile phone can send commands to set 1, 3, 5 hours to shut down or turn off the custom shutdown command. After each command is received, the device will refresh the shutdown time. If the user does not select the parameters, the default parameter is 0x00, and the custom shutdown is turned off. Shutdown function

例如设置自定义关机参数:(具体位说明请参照协议样帧)For example, set custom shutdown parameters: (For specific bit description, please refer to the protocol sample frame)

命令帧(上行):55 AA 0B 02 FF FF 01 07 03 23 D9Command frame (upstream): 55 AA 0B 02 FF FF 01 07 03 23 D9

应答帧(下行):55 AA 0B 02 FF FF 01 07 00 13 BAResponse frame (downlink): 55 AA 0B 02 FF FF 01 07 00 13 BA

例如查询自定义关机参数:(具体位说明请参照协议样帧)For example, query the custom shutdown parameters: (For specific bit description, please refer to the protocol sample frame)

命令帧(下行):55 AA 0A 02 FF FF 11 24 A7 7ECommand frame (downstream): 55 AA 0A 02 FF FF 11 24 A7 7E

应答帧(下行):55 AA 0B 02 FF FF 11 24 03 33 0FResponse frame (downlink): 55 AA 0B 02 FF FF 11 24 03 33 0F

r)温度r) temperature

手机与终端连接时,手机APP实时下发指令查询当前温度值,温度值为IEEE754编码,4个字节,高字节在前,采用”0x21”的查询参数子集对其操作。When the mobile phone is connected to the terminal, the mobile phone APP sends a command to query the current temperature value in real time. The temperature value is IEEE754 encoded, 4 bytes, with the high byte first, and the query parameter subset of "0x21" is used to operate it.

例如查询温度:(具体位说明请参照协议样帧)For example, query temperature: (For specific bit description, please refer to the protocol sample frame)

命令帧(上行):55 AA 0A 02 FF FF 11 21 F7 DBCommand frame (upstream): 55 AA 0A 02 FF FF 11 21 F7 DB

应答帧(下行):55 AA 0E 02 FF FF 11 21 41 F0 00 00 0D 4AResponse frame (downlink): 55 AA 0E 02 FF FF 11 21 41 F0 00 00 0D 4A

s)颜色、电量s) color, battery

手机与终端连接时,手机APP实时下发指令查询当前绑定的颜色(该颜色不为RGB,颜色为自定义一个字节数据,默认0x00)和电量(十分比),高字节为颜色,低字节为电量,采用”0x22”的查询参数子集对其操作。When the mobile phone is connected to the terminal, the mobile APP sends a command in real time to query the currently bound color (the color is not RGB, the color is a custom one-byte data, the default is 0x00) and the power (ten ratio), the high byte is the color, The low byte is the power, and the query parameter subset of "0x22" is used to operate on it.

例如查询颜色、电量:(具体位说明请参照协议样帧)For example, query color and power: (For specific bit description, please refer to the protocol sample frame)

命令帧(上行):55 AA 0A 02 FF FF 11 22 C7 B8Command frame (upstream): 55 AA 0A 02 FF FF 11 22 C7 B8

应答帧(下行):55 AA 0C 02 FF FF 11 22 01 0A BB A0Response frame (downlink): 55 AA 0C 02 FF FF 11 22 01 0A BB A0

t)温度、颜色、电量t) temperature, color, power

手机与终端连接时,手机APP实时下发指令查询当前绑定的颜色,电量,温度,采用”0x23”的查询参数子集对其操作。When the mobile phone is connected to the terminal, the mobile phone APP sends commands in real time to query the currently bound color, power, and temperature, and uses the "0x23" query parameter subset to operate on it.

例如查询温度、颜色、电量:(具体位说明请参照协议样帧)For example, query temperature, color, power: (For specific bit description, please refer to the protocol sample frame)

命令帧(上行):55 AA 0A 02 FF FF 11 23 D7 99Command frame (upstream): 55 AA 0A 02 FF FF 11 23 D7 99

应答帧(下行):55 AA 10 02 FF FF 11 23 41 F0 00 00 01 0A 4A 8CResponse frame (downlink): 55 AA 10 02 FF FF 11 23 41 F0 00 00 01 0A 4A 8C

u)自定义关机u) Custom shutdown

手机与终端连接时,手机app实行下发关机指令给当前绑定的设备,采用“0x24”指令对其操作。When the mobile phone is connected to the terminal, the mobile app sends a shutdown command to the currently bound device, and uses the "0x24" command to operate it.

命令帧(下行):55 AA 0A 02 FF FF 11 24 A7 7ECommand frame (downstream): 55 AA 0A 02 FF FF 11 24 A7 7E

应答帧(下行):55 AA 0B 02 FF FF 11 24 01 13 4DResponse frame (downlink): 55 AA 0B 02 FF FF 11 24 01 13 4D

四、协议样帧Fourth, the protocol sample frame

Figure BDA0002607564730000181
Figure BDA0002607564730000181

Figure BDA0002607564730000182
Figure BDA0002607564730000182

Figure BDA0002607564730000191
Figure BDA0002607564730000191

Figure BDA0002607564730000192
Figure BDA0002607564730000192

Figure BDA0002607564730000193
Figure BDA0002607564730000193

Figure BDA0002607564730000201
Figure BDA0002607564730000201

Figure BDA0002607564730000202
Figure BDA0002607564730000202

Figure BDA0002607564730000211
Figure BDA0002607564730000211

Figure BDA0002607564730000212
Figure BDA0002607564730000212

Figure BDA0002607564730000221
Figure BDA0002607564730000221

Figure BDA0002607564730000222
Figure BDA0002607564730000222

Figure BDA0002607564730000223
Figure BDA0002607564730000223

Figure BDA0002607564730000231
Figure BDA0002607564730000231

Figure BDA0002607564730000232
Figure BDA0002607564730000232

Figure BDA0002607564730000233
Figure BDA0002607564730000233

Figure BDA0002607564730000241
Figure BDA0002607564730000241

Figure BDA0002607564730000242
Figure BDA0002607564730000242

Figure BDA0002607564730000243
Figure BDA0002607564730000243

Figure BDA0002607564730000251
Figure BDA0002607564730000251

Figure BDA0002607564730000252
Figure BDA0002607564730000252

Figure BDA0002607564730000253
Figure BDA0002607564730000253

Figure BDA0002607564730000261
Figure BDA0002607564730000261

在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上;术语“上”、“下”、“左”、“右”、“内”、“外”、“前端”、“后端”、“头部”、“尾部”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”、“第三”等仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present invention, unless otherwise stated, "plurality" means two or more; the terms "upper", "lower", "left", "right", "inner", "outer" The orientation or positional relationship indicated by , "front end", "rear end", "head", "tail", etc. are based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, not An indication or implication that the referred device or element must have a particular orientation, be constructed and operate in a particular orientation, is not to be construed as a limitation of the invention. Furthermore, the terms "first," "second," "third," etc. are used for descriptive purposes only and should not be construed to indicate or imply relative importance.

应当注意,本发明的实施方式可以通过硬件、软件或者软件和硬件的结合来实现。硬件部分可以利用专用逻辑来实现;软件部分可以存储在存储器中,由适当的指令执行系统,例如微处理器或者专用设计硬件来执行。本领域的普通技术人员可以理解上述的设备和方法可以使用计算机可执行指令和/或包含在处理器控制代码中来实现,例如在诸如磁盘、CD或DVD-ROM的载体介质、诸如只读存储器(固件)的可编程的存储器或者诸如光学或电子信号载体的数据载体上提供了这样的代码。本发明的设备及其模块可以由诸如超大规模集成电路或门阵列、诸如逻辑芯片、晶体管等的半导体、或者诸如现场可编程门阵列、可编程逻辑设备等的可编程硬件设备的硬件电路实现,也可以用由各种类型的处理器执行的软件实现,也可以由上述硬件电路和软件的结合例如固件来实现。It should be noted that the embodiments of the present invention may be implemented by hardware, software, or a combination of software and hardware. The hardware portion may be implemented using special purpose logic; the software portion may be stored in memory and executed by a suitable instruction execution system, such as a microprocessor or specially designed hardware. Those of ordinary skill in the art will appreciate that the apparatus and methods described above may be implemented using computer-executable instructions and/or embodied in processor control code, for example on a carrier medium such as a disk, CD or DVD-ROM, such as a read-only memory Such code is provided on a programmable memory (firmware) or a data carrier such as an optical or electronic signal carrier. The device and its modules of the present invention can be implemented by hardware circuits such as very large scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., It can also be implemented by software executed by various types of processors, or by a combination of the above-mentioned hardware circuits and software, such as firmware.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,都应涵盖在本发明的保护范围之内。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited to this. Any person skilled in the art is within the technical scope disclosed by the present invention, and all within the spirit and principle of the present invention Any modifications, equivalent replacements and improvements made within the scope of the present invention should be included within the protection scope of the present invention.

Claims (10)

1.一种基于蓝牙温度监控锅炉控制系统,其特征在于,所述基于蓝牙温度监控锅炉控制系统包括:1. a boiler control system based on bluetooth temperature monitoring, is characterized in that, the described boiler control system based on bluetooth temperature monitoring comprises: 工业物联网监测终端,用于利用多个传感器进行参数采集;同时用于提供兼容CAN接口、ModBus接口、ETH接口、485接口、模拟量接口以及数字量接口的数据兼容接口,进行多种数据的兼容采集;The industrial IoT monitoring terminal is used for parameter collection using multiple sensors; at the same time, it is used to provide data compatible interfaces compatible with CAN interface, ModBus interface, ETH interface, 485 interface, analog interface and digital interface, and perform various data Compatible collection; 无线通信模块,用于通过无线、有线的方式将采集的数据传输至服务器;The wireless communication module is used to transmit the collected data to the server in a wireless and wired manner; 服务器,用于对接收到的参数进行分析处理。The server is used to analyze and process the received parameters. 2.如权利要求1所述基于蓝牙温度监控锅炉控制系统,其特征在于,所述基于蓝牙温度监控锅炉控制系统还包括:2. the boiler control system based on bluetooth temperature monitoring as claimed in claim 1, is characterized in that, described boiler control system based on bluetooth temperature monitoring also comprises: 适配器,用于获取数据,并进行数据的处理,同时将处理后的数据发送至第三方系统;The adapter is used to obtain data, process the data, and send the processed data to a third-party system; 接入服务器,与接收适配器连接,用于进行适配器与第三方系统的数据传输;The access server is connected to the receiving adapter for data transmission between the adapter and the third-party system; 汇接服务器,与接收接入服务器连接,用于接入服务器和第三方系统之间数据传输;The tandem server, which is connected to the receiving access server, is used for data transmission between the access server and the third-party system; 调度分发服务器,用于将接收待处理的数据,根据业务服务器的负荷调度到合适的业务服务器处理;The scheduling distribution server is used to schedule the received data to be processed to the appropriate service server according to the load of the service server; 实时业务处理集群,用于高性能存储实时数据,并提供实时查询服务;Real-time business processing cluster for high-performance storage of real-time data and real-time query services; 实时数据存储集群,用于进行历史数据的分析和挖掘;Real-time data storage cluster for analysis and mining of historical data; 配置管理服务器,用于进行参数配置以及操作权限的管理。The configuration management server is used for parameter configuration and operation authority management. 3.如权利要求1所述基于蓝牙温度监控锅炉控制系统,其特征在于,所述工业物联网监测终端包括:3. The boiler control system based on Bluetooth temperature monitoring according to claim 1, wherein the industrial Internet of Things monitoring terminal comprises: 注册验证单元,用于对终端进行注册连接,并进行设备号的验证;The registration verification unit is used to register and connect the terminal and verify the device number; 加密单元,用于对数据进行加密;encryption unit, used to encrypt data; 配置单元,用于对采集频率、上传频率、服务器IP、端口、阈值及相关采集参数进行配置;The configuration unit is used to configure the collection frequency, upload frequency, server IP, port, threshold and related collection parameters; 报警单元,用于对超出阈值的数据进行紧急报警;The alarm unit is used for emergency alarm for data exceeding the threshold; 通信单元,用于与服务器采用确认通讯机制进行通信;The communication unit is used to communicate with the server using the confirmation communication mechanism; 数据上传单元,用于对未能成功发送的数据在网络空闲时进行数据上传;The data uploading unit is used to upload the data that has not been successfully sent when the network is idle; 传输单元,用于采用UDP/TCP传输方式进行数据传输。The transmission unit is used for data transmission in the UDP/TCP transmission mode. 4.一种应用于如权利要求1-3任意一项所述基于蓝牙温度监控锅炉控制系统的基于蓝牙温度监控锅炉控制方法,其特征在于,所述基于蓝牙温度监控锅炉控制方法包括:4. a kind of boiler control method based on bluetooth temperature monitoring boiler control system based on bluetooth temperature monitoring boiler control system described in any one of claims 1-3, is characterized in that, described boiler control method based on bluetooth temperature monitoring comprises: 步骤一,利用多个传感器进行数据采集;Step 1, using multiple sensors to collect data; 步骤二,通过无线、有线的方式将采集的数据传输至服务器;Step 2, transmitting the collected data to the server by wireless and wired means; 步骤三,服务器对接收到的参数进行分析处理。Step 3, the server analyzes and processes the received parameters. 5.如权利要求4所述基于蓝牙温度监控锅炉控制方法,其特征在于,步骤一中,所述数据采集方法包括:5. The boiler control method based on Bluetooth temperature monitoring as claimed in claim 4, wherein in step 1, the data acquisition method comprises: (1)对采集终端进行采样频率、上传频率、服务器IP或域名、端口、UDP/TCP传输方式、阈值、短信号码、机顶盒编号和GPRS卡号及相关采集参数的配置;(1) Configure the sampling frequency, upload frequency, server IP or domain name, port, UDP/TCP transmission method, threshold, SMS number, set-top box number, GPRS card number and related acquisition parameters for the acquisition terminal; (2)进行终端注册;注册成功后,终端按照预设的采集参数进行数据的采集,并将采集的数据加密后上传至服务器;服务器对收到的每一条数据进行回复;(2) Perform terminal registration; after successful registration, the terminal collects data according to the preset collection parameters, and encrypts the collected data and uploads it to the server; the server replies to each piece of data received; (3)终端采集数据值超过设定的阈值时,将超出预设阈值的数据优先级设定为最高级,并在下一个采集频率时立即上传;同时发送报警短信;当报警消除后,采集一条正常数据并上传告知服务器报警状态消除,同时发送报警消除短信。(3) When the data value collected by the terminal exceeds the set threshold, set the priority of the data exceeding the preset threshold to the highest level, and upload it immediately at the next collection frequency; send an alarm text message at the same time; when the alarm is cleared, collect a The normal data is uploaded and notified to the server that the alarm state is eliminated, and the alarm elimination SMS is sent at the same time. 6.如权利要求5所述基于蓝牙温度监控锅炉控制方法,其特征在于,所述采集数据上传包括:6. The boiler control method based on Bluetooth temperature monitoring as claimed in claim 5, wherein the uploading of the collected data comprises: 当服务器未对收到的数据进行回复,则判定数据未成功上传,对于未成功上传的数据自动存入本地Flash中,并在终端重新与服务器连接或空闲时间,将本地Flash中的数据进行上传。When the server does not reply to the received data, it is determined that the data has not been uploaded successfully, and the data that has not been successfully uploaded will be automatically stored in the local Flash, and the data in the local Flash will be uploaded when the terminal reconnects to the server or in idle time. . 7.如权利要求5所述基于蓝牙温度监控锅炉控制方法,其特征在于,步骤(2)中,所述终端注册方法包括:7. The boiler control method based on Bluetooth temperature monitoring as claimed in claim 5, wherein in step (2), the terminal registration method comprises: 终端开机启动后,向服务器发送包含终端的设备号、GPRS卡号、设备号的数据包;服务器收到所述数据包后,给终端回复包含服务器同步时间的数据包,终端通过接收到的数据包进行时间同步,并确定通道是否建立,通道建立则表示注册成功;若通道未建立,则每隔5s发一次,连续5次不成功,隔1小时重新启动注册。After the terminal is powered on, it sends a data packet containing the terminal's device number, GPRS card number, and device number to the server; after receiving the data packet, the server replies to the terminal a data packet containing the server synchronization time, and the terminal passes the received data packet. Perform time synchronization and determine whether the channel is established. If the channel is established, it means that the registration is successful; if the channel is not established, it will be sent every 5s, and the registration will be restarted every 1 hour if it fails for 5 consecutive times. 8.一种计算机设备,其特征在于,所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下步骤:8. A computer device, characterized in that the computer device comprises a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to perform the following steps: 步骤一,利用多个传感器进行数据采集;Step 1, using multiple sensors to collect data; 步骤二,通过无线、有线的方式将采集的数据传输至服务器;Step 2, transmitting the collected data to the server by wireless and wired means; 步骤三,服务器对接收到的参数进行分析处理。Step 3, the server analyzes and processes the received parameters. 9.一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如下步骤:9. A computer-readable storage medium storing a computer program, when the computer program is executed by a processor, the processor is caused to perform the following steps: 步骤一,利用多个传感器进行数据采集;Step 1, using multiple sensors to collect data; 步骤二,通过无线、有线的方式将采集的数据传输至服务器;Step 2, transmitting the collected data to the server by wireless and wired means; 步骤三,服务器对接收到的参数进行分析处理。Step 3, the server analyzes and processes the received parameters. 10.一种终端,其特征在于,所述终端搭载权利要求1-3任意一项所述的基于蓝牙温度监控锅炉控制系统。10. A terminal, characterized in that, the terminal is equipped with the boiler control system based on Bluetooth temperature monitoring according to any one of claims 1-3.
CN202010743568.8A 2020-07-29 2020-07-29 Boiler control system and method based on Bluetooth temperature monitoring, storage medium and terminal Pending CN111932855A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010743568.8A CN111932855A (en) 2020-07-29 2020-07-29 Boiler control system and method based on Bluetooth temperature monitoring, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010743568.8A CN111932855A (en) 2020-07-29 2020-07-29 Boiler control system and method based on Bluetooth temperature monitoring, storage medium and terminal

Publications (1)

Publication Number Publication Date
CN111932855A true CN111932855A (en) 2020-11-13

Family

ID=73315925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010743568.8A Pending CN111932855A (en) 2020-07-29 2020-07-29 Boiler control system and method based on Bluetooth temperature monitoring, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN111932855A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115417263A (en) * 2022-10-12 2022-12-02 江苏省特种设备安全监督检验研究院 AGV and elevator interaction system based on Bluetooth technology and use method thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731025A (en) * 2013-12-19 2015-06-24 南京华欣分析仪器制造有限公司 High-performance stokehole liquid iron management analysis system
CN105240820A (en) * 2015-11-23 2016-01-13 重庆安迈科技有限公司 Boiler monitoring method based on internet of things
CN105721501A (en) * 2016-04-09 2016-06-29 杭州迈欧科技有限公司 Boiler Internet of Things monitoring system
CN106899470A (en) * 2015-12-17 2017-06-27 南京南瑞继保电气有限公司 A kind of data acquisition network framework and planing method
WO2019101153A1 (en) * 2017-11-23 2019-05-31 捷开通讯(深圳)有限公司 Bluetooth-grid-protocol-based outdoor communication method, and mobile terminal and storage medium
CN109838774A (en) * 2017-11-27 2019-06-04 西安市永鑫科技有限公司 The automated sensor of wireless signal transmission data is used in a kind of boiler
CN111457345A (en) * 2020-04-13 2020-07-28 重庆城市管理职业学院 A boiler monitoring system and method based on industrial internet of things

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731025A (en) * 2013-12-19 2015-06-24 南京华欣分析仪器制造有限公司 High-performance stokehole liquid iron management analysis system
CN105240820A (en) * 2015-11-23 2016-01-13 重庆安迈科技有限公司 Boiler monitoring method based on internet of things
CN106899470A (en) * 2015-12-17 2017-06-27 南京南瑞继保电气有限公司 A kind of data acquisition network framework and planing method
CN105721501A (en) * 2016-04-09 2016-06-29 杭州迈欧科技有限公司 Boiler Internet of Things monitoring system
WO2019101153A1 (en) * 2017-11-23 2019-05-31 捷开通讯(深圳)有限公司 Bluetooth-grid-protocol-based outdoor communication method, and mobile terminal and storage medium
CN109838774A (en) * 2017-11-27 2019-06-04 西安市永鑫科技有限公司 The automated sensor of wireless signal transmission data is used in a kind of boiler
CN111457345A (en) * 2020-04-13 2020-07-28 重庆城市管理职业学院 A boiler monitoring system and method based on industrial internet of things

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115417263A (en) * 2022-10-12 2022-12-02 江苏省特种设备安全监督检验研究院 AGV and elevator interaction system based on Bluetooth technology and use method thereof

Similar Documents

Publication Publication Date Title
CN111536499A (en) A boiler energy efficiency detection system, method, and boiler monitoring system
CN105098975B (en) Power network Intelligent remote monitoring system and monitoring method based on Big Dipper short message communication
CN105871426B (en) Low power consumption bluetooth transmission apparatus and low power consumption bluetooth reception apparatus and method thereof
CN112399394A (en) A smart energy meter system based on bluetooth communication and its communication method
CN204810278U (en) Early warning information distribution terminal
CN102547944B (en) Realize the thing net gateway without long-term work under electrical environment and implementation method
CN101843150A (en) Radio communication device, terminal, system, and program
CN105898893B (en) Full-duplex communication method for mobile terminal and Internet of things equipment
WO2012097756A2 (en) Electrical gateway and communication method therefor
CN102368873B (en) Double-path connection M2M (machine-to-machine) system, terminal and connection method thereof
CN204836212U (en) Gateway system is fused in many communications based on WSN meteorological observation
WO2023098615A1 (en) Wake-up method, gateway and system
CN111932855A (en) Boiler control system and method based on Bluetooth temperature monitoring, storage medium and terminal
CN111457345A (en) A boiler monitoring system and method based on industrial internet of things
CN208141584U (en) A kind of energy measurement data online acquisition and monitoring system
CN105070022A (en) Meter end device and wireless meter reading system and method
CN108898814B (en) Electric power data acquisition and transmission method and system
CN117693001B (en) Low-power distribution network and operation monitoring system and method based on BLE protocol
Yang Design and implementation of intelligent home wireless gateway based on STM32
US10772041B2 (en) Beacon signal processing system
EP2775265B1 (en) Method and apparatus for reducing power consumption in a metering device
CN215734315U (en) Ad-hoc network communication system based on hybrid modulation
CN205178645U (en) Burden accuse terminal is treated to bimodulus double cassette list
CN103167632A (en) An oilfield data transmission system and method thereof
CN211481286U (en) An edge computing gateway based on LoRa technology

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201113

RJ01 Rejection of invention patent application after publication