+

CN105763426B - A kind of internet of things service processing system based on multi-protocol instant messaging system - Google Patents

A kind of internet of things service processing system based on multi-protocol instant messaging system Download PDF

Info

Publication number
CN105763426B
CN105763426B CN201610224211.2A CN201610224211A CN105763426B CN 105763426 B CN105763426 B CN 105763426B CN 201610224211 A CN201610224211 A CN 201610224211A CN 105763426 B CN105763426 B CN 105763426B
Authority
CN
China
Prior art keywords
message
module
protocol
internet
things
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610224211.2A
Other languages
Chinese (zh)
Other versions
CN105763426A (en
Inventor
邓方
吕建耀
陈杰
窦丽华
张乐乐
李佳洪
樊欣宇
李阳
马丽秋
桂鹏
于承航
刘畅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Institute of Technology BIT
Original Assignee
Beijing Institute of Technology BIT
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 Beijing Institute of Technology BIT filed Critical Beijing Institute of Technology BIT
Priority to CN201610224211.2A priority Critical patent/CN105763426B/en
Publication of CN105763426A publication Critical patent/CN105763426A/en
Application granted granted Critical
Publication of CN105763426B publication Critical patent/CN105763426B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明提供一种基于多协议即时通信系统的物联网业务处理系统,其多协议终端设备与物联网中其他设备进行业务处理时发送相关请求信息;协议编译模块解析所述协议中多协议终端设备发送的相关请求消息,生成格式统一的物联网消息;安全验证模块验证物联网消息的合法性,不合法则向多协议终端设备返回相应错误信息,合法则将物联网消息传输至消息管理模块;消息管理模块根据物联网消息的目的地址将物联网消息推送至对应多协议终端设备,实现多协议终端设备与其他多协议终端设备之间的通信。协议编译模块的各编译器通过不同的端口分别侦听、解析来自多协议终端设备的相关请求信息,将其格式化为安全验证模块和消息管理模块识别的格式统一的物联网消息。

The present invention provides an Internet of Things business processing system based on a multi-protocol instant communication system, in which a multi-protocol terminal device sends relevant request information when performing business processing with other devices in the Internet of Things; a protocol compiling module analyzes the multi-protocol terminal device in the protocol The relevant request message sent generates an IoT message with a uniform format; the security verification module verifies the legitimacy of the IoT message, returns the corresponding error message to the multi-protocol terminal device if it is illegal, and transmits the IoT message to the message management module if it is legal; The management module pushes the Internet of Things message to the corresponding multi-protocol terminal device according to the destination address of the Internet of Things message, so as to realize the communication between the multi-protocol terminal device and other multi-protocol terminal devices. Each compiler of the protocol compilation module listens to and parses relevant request information from multi-protocol terminal devices through different ports, and formats it into an IoT message with a unified format recognized by the security verification module and the message management module.

Description

一种基于多协议即时通信系统的物联网业务处理系统An Internet of Things business processing system based on a multi-protocol instant messaging system

技术领域technical field

本发明涉及物联网技术领域,尤其涉及一种基于多协议即时通信系统的物联网业务处理系统。The invention relates to the technical field of the Internet of Things, in particular to an Internet of Things business processing system based on a multi-protocol instant communication system.

技术背景technical background

物联网是新一代信息技术的重要组成部分,旨在利用局部网络或互联网等通信技术把传感器、控制器、机器、人和物等通过新的方式联在一起,形成人与物、物与物相联,实现信息化、远程管理控制和智能化的网络。The Internet of Things is an important part of the new generation of information technology. It aims to use communication technologies such as local networks or the Internet to connect sensors, controllers, machines, people and things together in a new way to form a human-thing, thing-thing relationship. Connected to realize informatization, remote management control and intelligent network.

物联网主要由多协议终端设备和数据处理系统组成。种类繁多的多协议终端设备为适应不同的工作场景,必须采用不同的通信协议以满足数据传输时的速率、功耗、实时性和安全性等要求。然而,传统的物联网数据处理系统中,不同协议间的设备无法实现即时通信和数据共享,并没有真正实现人与物、物与物的互联互通,大大降低了物联网系统的实用性和可行性。物联网系统要实用化,就必须解决不同协议间的设备即时通信和数据共享的问题。The Internet of Things is mainly composed of multi-protocol terminal devices and data processing systems. In order to adapt to different working scenarios, a wide variety of multi-protocol terminal devices must adopt different communication protocols to meet the requirements of data transmission rate, power consumption, real-time performance and security. However, in the traditional IoT data processing system, devices between different protocols cannot realize instant communication and data sharing, and the interconnection between people and things, and things and things has not been truly realized, which greatly reduces the practicability and feasibility of the IoT system. sex. In order for the IoT system to be practical, it is necessary to solve the problems of instant communication and data sharing between different protocols.

为解决这一关键问题,需要建立不同协议间设备的即时通信系统,并基于该系统建立数据共享、分析平台,真正实现人与物、物与物的互联互通,让物联网收集的大量数据发挥更大的价值。In order to solve this key problem, it is necessary to establish an instant communication system for devices between different protocols, and establish a data sharing and analysis platform based on this system, so as to truly realize the interconnection between people and things, and things and things, so that a large amount of data collected by the Internet of Things can be brought into play. greater value.

现在的物联网系统业务处理方法主要实现了单一协议下设备传输数据、存储数据的功能,设备与设备的通信功能简单甚至缺失,数据传输的安全性也难以得到保证。The current business processing method of the Internet of Things system mainly realizes the functions of equipment to transmit data and store data under a single protocol. The communication function between equipment is simple or even missing, and the security of data transmission is difficult to be guaranteed.

例如李引在其专利《一种基于物联网的web服务方法及物联网系统》(CN104468830A)中公开了一种包括至少一个物联网中间件、至少一个物联网应用程序、多个物联网网关的web服务方法和物联网系统。物联网应用程序通过物联网中间件与物联网网关、物联网硬件节点进行数据交互。所有通讯基于web服务接口调用实现。这种采用物联网中间件、物联网网关的系统设计过于复杂,不能基于现有的互联网基础设施部署物联网,使得物联网部署的成本和通用性大大降低。该系统采用REST方法实现的web服务仅仅是抽象化了硬件节点,简化了数据交互方式,并没有解决不同协议间的设备进行通信的问题和数据共享问题。For example, Li Yin disclosed in his patent "A Web Service Method Based on the Internet of Things and the Internet of Things System" (CN104468830A) that includes at least one Internet of Things middleware, at least one Internet of Things application program, and multiple Internet of Things gateways. Web service method and internet of things system. IoT applications interact with IoT gateways and IoT hardware nodes through IoT middleware. All communication is implemented based on web service interface calls. This kind of system design using IoT middleware and IoT gateway is too complicated to deploy IoT based on the existing Internet infrastructure, which greatly reduces the cost and versatility of IoT deployment. The web service implemented by the system using the REST method only abstracts the hardware nodes and simplifies the way of data interaction, but does not solve the problem of communication between devices with different protocols and the problem of data sharing.

又如陈圣群在其专利《一种物联网消息推送系统及其方法》(CN104468819A)中描述了一种物联网消息推送系统及其方法,该系统通过物联网消息生成模块对物联网中的重要事件和数据进行识别和分类,生成物联网消息;生成消息队列模块依据物联网消息和用户类型分组,并依据消息与用户优先级进行排序,生成物联网消息队列;消息处理模块根据物联网消息类型及其优先级推送对应的物联网消息至用户,并对反馈消息做选择性处理。该方法只提供了消息从设备推送到用户的单向通道,无法传送用户到设备、设备到设备的消息。将消息从设备推送到用户的过程中缺少对数据安全性的检测模块,导致系统运行时存在较大的安全隐患,难以应用于生产环境。Another example is Chen Shengqun's patent "A Message Push System and Method for the Internet of Things" (CN104468819A) describing a message push system for the Internet of Things and its method. and data to identify and classify, and generate IoT messages; the message queue generation module is grouped according to IoT messages and user types, and sorted according to the priority of messages and users, to generate IoT message queues; the message processing module is based on the types of IoT messages and Its priority pushes corresponding IoT messages to users, and selectively processes feedback messages. This method only provides a one-way channel for messages to be pushed from the device to the user, and cannot transmit messages from the user to the device or from the device to the device. In the process of pushing the message from the device to the user, there is no data security detection module, which leads to a large security risk when the system is running, and it is difficult to apply it to the production environment.

刘润滋在其专利《一种物联网交换系统及数据处理方法》(CN 103001862A)中公开了一种包含交换模块、收发模块、编译模块、分析模块和存储模块的物联网交换系统。该系统接收数据,对其进行分析编译后发送。该系统旨在为底层标准不同的硬件设备提供一个发送、接收消息的通用系统平台。然而,随着行业标准化的发展,物联网设备发送、接收消息的方法在不同的应用场景下不外乎WebSocket、MQTT、CoAP等几大类。这些方法都有成熟的数据封装、消息路由等体系,物联网系统不再需要直接面向硬件编译数据以统一消息。该系统中的交换模块只能针对经过统一分析编译的数据进行交换,不同协议间的设备并不能相互传递消息,并没有真正实现设备到设备(M2M)的通信功能。In his patent "An Internet of Things Exchange System and Data Processing Method" (CN 103001862A), Liu Runzi discloses an Internet of Things exchange system including an exchange module, a transceiver module, a compilation module, an analysis module and a storage module. The system receives data, analyzes it, compiles it, and sends it. The system aims to provide a general system platform for sending and receiving messages for hardware devices with different underlying standards. However, with the development of industry standardization, the methods for IoT devices to send and receive messages in different application scenarios are nothing more than WebSocket, MQTT, CoAP and other categories. These methods have mature data encapsulation, message routing and other systems, and the IoT system no longer needs to directly compile data for hardware to unify messages. The exchange module in this system can only exchange the data that has been analyzed and compiled uniformly, and devices of different protocols cannot transmit messages to each other, and the communication function of device-to-device (M2M) has not really been realized.

发明内容Contents of the invention

有鉴于此,本发明提供了一种基于多协议即时通信系统的物联网业务处理系统,达到了不同协议中多协议终端设备的点对点、点对多即时通信和数据共享的目的。In view of this, the present invention provides an Internet of Things business processing system based on a multi-protocol instant communication system, which achieves the purpose of point-to-point, point-to-multiple instant communication and data sharing of multi-protocol terminal devices in different protocols.

为实现上述目的,本发明的技术方案是:For realizing the above object, technical scheme of the present invention is:

一种基于多协议即时通信系统的物联网业务处理系统,其包括:消息管理模块、缓存模块、存储模块、数据处理模块、安全验证模块、协议编译模块和多协议终端设备;其中,缓存模块、存储模块中存储有多协议终端设备的设备通用唯一识别码UUID和令牌;An Internet of Things business processing system based on a multi-protocol instant messaging system, which includes: a message management module, a cache module, a storage module, a data processing module, a security verification module, a protocol compilation module, and a multi-protocol terminal device; wherein, the cache module, The device universal unique identification code UUID and the token of the multi-protocol terminal device are stored in the storage module;

多协议终端设备,与物联网中其他多协议终端设备进行业务处理时发送相关请求信息,将相关请求信息以设定协议进行发送;The multi-protocol terminal device sends relevant request information when performing business processing with other multi-protocol terminal devices in the Internet of Things, and sends the relevant request information with the set protocol;

协议编译模块,解析所述协议中多协议终端设备发送的相关请求消息,生成格式统一的物联网消息,并将该物联网消息传输至安全验证模块;The protocol compiling module parses the relevant request message sent by the multi-protocol terminal device in the protocol, generates an Internet of Things message with a unified format, and transmits the Internet of Things message to the security verification module;

安全验证模块,验证物联网消息的合法性,不合法则向多协议终端设备返回相应错误信息,合法则将物联网消息传输至消息管理模块;The security verification module verifies the legitimacy of the Internet of Things message. If it is not legal, it will return the corresponding error message to the multi-protocol terminal device. If it is legal, it will transmit the Internet of Things message to the message management module;

消息管理模块,根据物联网消息的目的地址将物联网消息推送至对应多协议终端设备,实现多协议终端设备与其他多协议终端设备之间的通信,或者同时将物联网消息推送至缓存模块暂存、存储模块固存、数据处理模块进行数据处理。The message management module pushes the IoT message to the corresponding multi-protocol terminal device according to the destination address of the IoT message, so as to realize the communication between the multi-protocol terminal device and other multi-protocol terminal devices, or push the IoT message to the cache module temporarily storage, storage module solid storage, and data processing module for data processing.

所述协议编译模块包括:CoAP协议编译器、MQTT协议编译器、Socket.io协议编译器、WebSocket协议编译器、HTTPREST协议编译器和协议编译器;所述协议编译器是预留的协议扩展接口;各编译器通过不同的端口分别侦听、解析来自多协议终端设备的相关请求信息,并将其格式化为安全验证模块和消息管理模块识别的格式统一的物联网消息。The protocol compilation module includes: CoAP protocol compiler, MQTT protocol compiler, Socket.io protocol compiler, WebSocket protocol compiler, HTTPREST protocol compiler and protocol compiler; the protocol compiler is a reserved protocol extension interface ; Each compiler listens to and parses relevant request information from multi-protocol terminal devices through different ports, and formats it into an IoT message with a unified format recognized by the security verification module and the message management module.

效果较好的,所述安全验证模块包括路径校验模块、消息校验模块、请求参数校验模块及操作校验模块;The effect is better, the safety verification module includes a path verification module, a message verification module, a request parameter verification module and an operation verification module;

路径校验模块,验证物联网消息请求路径的合法性,不合法则向多协议终端设备返回相应错误信息;如果合法,则判断该物联网消息是否需要进行消息校验,若需要进行消息校验,则将物联网消息发送至消息校验模块;否则将物联网消息发送至请求参数校验模块;The path verification module verifies the legitimacy of the Internet of Things message request path. If it is not legal, it returns a corresponding error message to the multi-protocol terminal device; if it is legal, it judges whether the Internet of Things message needs to be verified. If it needs to be verified, Then send the Internet of Things message to the message verification module; otherwise, send the Internet of Things message to the request parameter verification module;

消息校验模块,根据物联网消息中附带的UUID从缓存模块或存储模块中获取UUID的对应令牌;若物联网消息中令牌与获取的令牌一致则校验通过,进入请求参数校验模块;否则返回相应的错误信息给多协议终端设备;The message verification module obtains the corresponding token of the UUID from the cache module or storage module according to the UUID attached to the Internet of Things message; if the token in the Internet of Things message is consistent with the obtained token, the verification passes and enters the request parameter verification module; otherwise, return the corresponding error message to the multi-protocol terminal device;

请求参数校验模块,校验多协议终端设备发来的物联网消息中参数是否合法,若合法则进入操作校验模块(640),否则返回相应的错误信息给多协议终端设备;Request parameter checking module, check whether the parameters in the Internet of Things message sent by the multi-protocol terminal device are legal, if legal, then enter the operation verification module (640), otherwise return corresponding error information to the multi-protocol terminal device;

操作校验模块,验证物联网消息中目标设备是否允许业务请求,若允许,则发送物联网消息至消息管理模块,否则返回相应的错误信息给多协议终端设备。Operate the verification module to verify whether the target device in the Internet of Things message allows the service request. If allowed, send the Internet of Things message to the message management module, otherwise return the corresponding error message to the multi-protocol terminal device.

所述存储模块将数据存储在硬盘,包括设备存储模块和数据存储模块;The storage module stores data in the hard disk, including a device storage module and a data storage module;

所述设备存储模块,存储已注册的多协议终端设备的设备属性,设备属性包括UUID和令牌;The device storage module stores device attributes of registered multi-protocol terminal devices, and the device attributes include UUID and token;

所述数据存储模块,存储各多协议终端设备进行业务处理的各类数据。The data storage module stores various types of data for business processing by each multi-protocol terminal device.

效果较好的,所述消息管理模块包括消息路由模块、消息通道模块、消息发布订阅模块、日志记录模块;其中,消息通道模块,根据消息类型分为配置消息类通道、控制消息类通道、数据消息类通道;The effect is better, and the message management module includes a message routing module, a message channel module, a message publishing and subscription module, and a logging module; wherein, the message channel module is divided into a configuration message channel, a control message channel, and a data channel according to message types. message channel;

所述消息路由模块,解析多协议终端设备发送的物联网消息,根据消息类型和目的地址将其送入相应的消息通道模块;若物联网消息属于配置设备属性的消息,则物联网消息进入配置消息类通道;若物联网消息属于发布订阅类消息或回传确认消息,则物联网消息进入控制消息类通道;若物联网消息属于数据消息,则物联网消息进入数据消息类通道;The message routing module analyzes the Internet of Things message sent by the multi-protocol terminal device, and sends it to the corresponding message channel module according to the message type and destination address; if the Internet of Things message belongs to the message of configuring device attributes, the Internet of Things message enters the configuration Message channel; if the IoT message belongs to the publish and subscribe message or return confirmation message, the IoT message enters the control message channel; if the IoT message belongs to the data message, the IoT message enters the data message channel;

配置消息类通道与设备存储模块连接,将进入该配置消息类通道的物联网消息传给设备存储模块进行处理;The configuration message channel is connected to the device storage module, and the Internet of Things messages entering the configuration message channel are sent to the device storage module for processing;

控制消息类通道分别与消息订阅模块、协议编译模块连接,将发布订阅类消息发往消息订阅发布模块进行处理,将回传确认消息发往协议编译模块;The control message channel is respectively connected with the message subscription module and the protocol compilation module, sends the publish subscription message to the message subscription publishing module for processing, and sends the return confirmation message to the protocol compilation module;

数据消息类通道分别与协议编译模块、数据存储模块连接,若数据消息的目的地址是设备,则将该数据消息发往协议编译模块(700),编译消息格式后传递给目的设备;若数据消息的目的地址是数据存储模块,则将其发往数据存储模块存储;The data message class channel is respectively connected with the protocol compiling module and the data storage module, if the destination address of the data message is equipment, then the data message is sent to the protocol compiling module (700), and is passed to the destination device after compiling the message format; if the data message If the destination address is the data storage module, it will be sent to the data storage module for storage;

所述消息发布订阅模块,接收控制消息类通道发送的发布订阅类消息,若订阅目标设备允许订阅请求,则所述消息发布订阅模块建立订阅双方设备之间的消息通道,否则发送相应错误给请求订阅设备;The message publishing and subscribing module receives the publishing and subscribing messages sent by the control message channel. If the subscription target device allows the subscription request, the message publishing and subscribing module establishes a message channel between the subscribing devices, otherwise it sends a corresponding error to the requesting device. subscription device;

所述日志记录模块,监测记录消息管理模块的运行状态,并在消息管理模块产生过载、故障情况时发出预警并生成日志。The log recording module monitors and records the running status of the message management module, and issues an early warning and generates a log when the message management module is overloaded or fails.

效果较好的,配置消息类通道优先级最高,控制消息类通道次之,数据消息类通道最低。If the effect is good, the configuration message channel has the highest priority, the control message channel takes the second place, and the data message channel has the lowest priority.

效果较好的,所述缓存模块的数据存储在内存;The effect is better, the data of the cache module is stored in the memory;

所述消息管理模块访问设备信息或者消息校验模块进行消息校验时,首先在缓存模块中查找对应数据;若找到则直接获取,找不到则进入存储模块的设备存储模块或数据存储模块中查找;When the message management module accesses the device information or the message verification module performs message verification, it first searches for the corresponding data in the cache module; if it finds it, it directly obtains it, and if it cannot find it, it enters the device storage module or data storage module of the storage module find;

并将在设定时间内存储模块中被访问超过3次的数据导入缓存模块。And the data accessed more than 3 times in the storage module within the set time is imported into the cache module.

效果较好的,所述数据处理模块包括实时数据处理模块和离线数据处理模块;The effect is better, the data processing module includes a real-time data processing module and an offline data processing module;

所述离线数据处理模块,提供对存储模块所存储的数据进行汇总处理的平台,用于对历史时间段内采集的各类信息进行分析挖掘,并将分析结果存入存储模块,或将分析结果通过消息管理模块直接推送给相关设备;The offline data processing module provides a platform for summarizing and processing the data stored in the storage module, which is used to analyze and mine various types of information collected in the historical time period, and store the analysis results in the storage module, or store the analysis results Push it directly to related devices through the message management module;

实时数据处理模块,携带需要实时处理数据的消息由消息管理模块直接推送到实时数据处理模块,实时数据处理模块提供要求实时处理数据的平台,并将处理结果存储模块,或将处理结果通过消息管理模块直接推送给相关设备。The real-time data processing module, which carries the messages that need to be processed in real time, is directly pushed to the real-time data processing module by the message management module. The real-time data processing module provides a platform that requires real-time data processing, and stores the processing results in the module, or passes the processing results through message management Modules are pushed directly to related devices.

有益效果:Beneficial effect:

本发明为不同协议中的多协议终端设备提供唯一标识符UUID。UUID即通用唯一识别码(Universally Unique Identifier),它能保证不同协议中每个多协议终端设备生成的标识不会重复。多协议终端设备第一次加入本发明系统中时首先执行注册操作获取UUID,将其作为该设备在本发明系统中的唯一标识符。不同协议中的多协议终端设备基于UUID来识别、定位其它多协议终端设备,从而实现多协议间多协议终端设备即时通信功能,真正实现人与物、物与物的互联互通。The present invention provides a unique identifier UUID for multi-protocol terminal equipment in different protocols. UUID is the Universally Unique Identifier (Universally Unique Identifier), which can ensure that the identifiers generated by each multi-protocol terminal device in different protocols will not be repeated. When a multi-protocol terminal device joins the system of the present invention for the first time, it first performs a registration operation to obtain a UUID, which is used as the unique identifier of the device in the system of the present invention. Multi-protocol terminal devices in different protocols identify and locate other multi-protocol terminal devices based on UUID, so as to realize the instant communication function of multi-protocol terminal devices between multiple protocols, and truly realize the interconnection between people and things, and things and things.

本发明通过编译模块和消息管理模块实现了多协议间设备即时通信功能,解决了物联网人与设备,设备与设备(M2M)通信的最基本需求。其他物联网应用在本发明系统多协议即时通信功能的基础上实现更复杂的物联网应用,降低了物联网应用的开发成本和技术难度。The present invention realizes the device instant communication function between multi-protocols through the compiling module and the message management module, and solves the most basic requirement of communication between people and devices and between devices and devices (M2M) in the Internet of Things. Other Internet of Things applications implement more complex Internet of Things applications on the basis of the multi-protocol instant communication function of the system of the present invention, reducing the development cost and technical difficulty of Internet of Things applications.

本发明将编译模块与安全验证模块、消息管理模块、数据处理模块等解耦,实现了不改变系统整体结构和多协议终端设备的条件下快速扩展协议支持的功能。私有协议、新型协议只要在本发明中加入对应的协议编译模块,该协议中的多协议终端设备即可加入本发明系统,与其他协议中的设备进行即时通信和数据共享。The invention decouples the compilation module from the safety verification module, message management module, data processing module, etc., and realizes the function of rapidly expanding protocol support without changing the overall structure of the system and multi-protocol terminal equipment. As long as the corresponding protocol compiling module is added to the proprietary protocol and the new protocol, the multi-protocol terminal equipment in the protocol can join the system of the present invention, and perform instant communication and data sharing with devices in other protocols.

本发明采用缓存模块将经常访问查询的数据从硬盘导入内存,大大缩短了消息管理模块查找设备信息和数据信息的时间。极大提高了系统的运行、响应速度,使本发明系统可以满足实际应用的需求。The invention adopts the caching module to import frequently accessed and queried data from the hard disk into the memory, which greatly shortens the time for the message management module to search for device information and data information. The operation and response speed of the system are greatly improved, so that the system of the present invention can meet the requirements of practical applications.

本发明采用缓存模块建立消息等待队列,数据运算和硬盘存储的速度相对I/O操作较慢,当数据运算和硬盘存储的负荷过重不能及时处理接收到的数据时,缓存模块的消息等待对了提高了系统的并发性和稳定性。The present invention adopts the cache module to establish a message waiting queue, and the speed of data calculation and hard disk storage is relatively slow compared with I/O operations. When the load of data calculation and hard disk storage is too heavy to process the received data in time, the message waiting queue of the cache module It improves the concurrency and stability of the system.

本发明中,不同协议中多协议终端设备采集的数据统一存储在数据存储模块,数据处理模块经授权可以对其进行分析挖掘。本发明将底层多协议终端设备开发和上层数据挖掘的过程分离,降低了物联网应用的开发门槛,让多协议终端设备采集的数据发挥更大的价值,从而降低了物联网部署的成本,具有节约人力物力、智能化程度高、可广泛应用到各领域的积极效应。In the present invention, the data collected by multi-protocol terminal devices in different protocols are uniformly stored in the data storage module, and the data processing module can analyze and mine the data upon authorization. The present invention separates the bottom layer multi-protocol terminal device development from the upper layer data mining process, lowers the development threshold of the Internet of Things application, allows the data collected by the multi-protocol terminal device to play a greater value, thereby reducing the cost of the Internet of Things deployment, and has the advantages of It saves manpower and material resources, has a high degree of intelligence, and can be widely used in various fields.

附图说明Description of drawings

图1是本发明的整体结构图。Fig. 1 is the overall structure diagram of the present invention.

图2是本发明具体实施用例的系统结构图。Fig. 2 is a system structure diagram of a specific implementation example of the present invention.

图3是本发明的安全验证模块结构图。Fig. 3 is a structural diagram of the safety verification module of the present invention.

图4是本发明的消息管理模块结构图。Fig. 4 is a structural diagram of the message management module of the present invention.

具体实施方式Detailed ways

下面结合技术方案和附图详细说明本发明的具体实施例,但本发明的实施方式不限于此。Specific embodiments of the present invention will be described in detail below in conjunction with the technical solutions and drawings, but the embodiments of the present invention are not limited thereto.

本发明提供了一种基于多协议即时通信系统的物联网业务处理系统,如图1所示,其特征在于,包括消息管理模块(100)、缓存模块(200)、存储模块(300)、数据处理模块(400)、安全验证模块(600)、编译模块(700)和多协议终端设备(800)。The present invention provides a business processing system for the Internet of Things based on a multi-protocol instant messaging system, as shown in Figure 1, characterized in that it includes a message management module (100), a cache module (200), a storage module (300), A processing module (400), a security verification module (600), a compiling module (700) and a multi-protocol terminal device (800).

任意多协议终端设备加入网络时,向服务器请求注册,注册成功后,服务器为其分配多协议终端设备唯一的设备UUID和令牌;服务器同时将该多协议终端设备的设备UUID和令牌存储至存储模块(300);When any multi-protocol terminal device joins the network, it requests registration from the server. After the registration is successful, the server allocates a unique device UUID and token for the multi-protocol terminal device; the server also stores the device UUID and token of the multi-protocol terminal device in the storage module (300);

多协议终端设备(800)需要与网络中其他多协议终端设备进行业务处理时发送相关信息,以设备之间通信的设定协议进行发送;协议编译模块(700)解析所述协议中多协议终端设备(800)发送的消息,生成格式统一的物联网消息(500),并将该物联网消息传输至安全验证模块(600);The multi-protocol terminal device (800) sends relevant information when it needs to perform business processing with other multi-protocol terminal devices in the network, and sends it with the set protocol for communication between devices; the protocol compilation module (700) parses the multi-protocol terminal in the protocol The message sent by the device (800) generates an Internet of Things message (500) with a unified format, and transmits the Internet of Things message to a security verification module (600);

安全验证模块(600)验证物联网消息(500)的合法性,不合法则以多协议终端设备(800)所在协议返回相应错误信息,合法则将物联网消息传输至消息管理模块(100);The security verification module (600) verifies the validity of the Internet of Things message (500), if it is not legal, the corresponding error message will be returned with the protocol of the multi-protocol terminal device (800), and if it is legal, the Internet of Things message will be transmitted to the message management module (100);

消息管理模块(100)根据物联网消息的目的地址,将物联网消息推送至其他多协议终端设备,实现多协议终端设备(800)与其他多协议终端设备之间的通信,或者同时将物联网消息推送至缓存模块(200)暂存、存储模块(300)固存、数据处理模块(400)进行数据处理。The message management module (100) pushes the Internet of Things message to other multi-protocol terminal devices according to the destination address of the Internet of Things message, so as to realize the communication between the multi-protocol terminal device (800) and other multi-protocol terminal devices, or simultaneously send the Internet of Things message to other multi-protocol terminal devices. The message is pushed to the cache module (200) for temporary storage, the storage module (300) for permanent storage, and the data processing module (400) for data processing.

进一步的,如图2所示,本发明所述协议编译模块(700)连接各多协议终端设备和安全验证模块,且协议编译模块(700)包括CoAP协议编译器(710)、MQTT协议编译器(720)、Socket.io协议编译器(730)、WebSocket协议编译器(740)、HTTPREST协议编译器(750)和协议编译器(760)。上述编译器使本实施例具有了支持MQTT、CoAP、WebSocket、Socket.io、WebSocket、HTTPREST等协议中多协议终端设备相互通信的功能。本发明通过不同的端口侦听来自不同协议中多协议终端设备的请求。所述不同协议的编译器分别负责解析来自对应协议的请求,将其格式化为安全验证模块(600)和消息管理模块(100)可以处理的格式统一的物联网消息(500)。其中,本发明所述协议编译器(760)是预留的协议扩展接口,目的在于针对新发展的协议或私有协议开发相应的协议编译模块,将新协议的请求格式化为格式统一的物联网消息(500)。不同协议编译模块的解耦设计使得本发明能够在不改动系统整体和不改变设备终端的条件下扩展对其它协议的支持,让其它协议中的设备可以快速加入到本发明系统中。协议支持的灵活性和扩展的快速性使得本发明可以将使用各种联网协议的多协议终端设备加入到同一个即时通信系统中,从而真正实现物联网的万物互联的目的。Further, as shown in Figure 2, the protocol compilation module (700) of the present invention is connected to each multi-protocol terminal device and the security verification module, and the protocol compilation module (700) includes a CoAP protocol compiler (710), an MQTT protocol compiler (720), Socket.io protocol compiler (730), WebSocket protocol compiler (740), HTTPREST protocol compiler (750) and protocol compiler (760). The above-mentioned compiler makes this embodiment have the function of supporting mutual communication between multi-protocol terminal devices in MQTT, CoAP, WebSocket, Socket.io, WebSocket, HTTPREST and other protocols. The invention monitors requests from multi-protocol terminal equipment in different protocols through different ports. The compilers of the different protocols are respectively responsible for parsing the requests from the corresponding protocols, and formatting them into IoT messages (500) with a uniform format that can be processed by the security verification module (600) and the message management module (100). Wherein, the protocol compiler (760) of the present invention is a reserved protocol extension interface, the purpose of which is to develop a corresponding protocol compilation module for a newly developed protocol or a private protocol, and to format the request of the new protocol into an Internet of Things with a unified format. message(500). The decoupling design of different protocol compilation modules enables the present invention to expand the support for other protocols without changing the whole system and the device terminal, so that devices in other protocols can be quickly added to the system of the present invention. The flexibility of protocol support and the rapidity of expansion enable the present invention to add multi-protocol terminal devices using various networking protocols into the same instant communication system, thereby truly realizing the goal of Internet of Things.

如图3所示,本发明所述安全验证模块(600)连接各协议编译模块和消息管理模块,安全验证模块(600)包括路径校验模块(610)、消息校验模块(620)、请求参数校验模块(630)及操作校验模块(640)。不同协议中多协议终端设备(800)的请求通过编译模块(700)格式化为格式统一的物联网消息(500)后进入安全验证模块(600)的路径校验模块(610),路径校验模块(610)首先验证物联网消息(500)请求路径的合法性,不合法则向多协议终端设备返回相应错误信息;如果合法,则判断该物联网消息(500)是否需要进行消息校验,若物联网消息(500)目的是访问其他多协议终端设备数据或与其他多协议终端设备进行通信,则需要进行设备校验,该物联网消息(500)进入消息校验模块(620);否则不需要进行设备校验,该物联网消息(500)直接进入请求参数校验模块(630)。As shown in Figure 3, the safety verification module (600) of the present invention is connected to each protocol compilation module and message management module, and the safety verification module (600) includes a path verification module (610), a message verification module (620), a request A parameter verification module (630) and an operation verification module (640). The request of the multi-protocol terminal device (800) in different protocols is formatted into an Internet of Things message (500) with a unified format through the compiling module (700), and then enters the path verification module (610) of the security verification module (600), and the path verification The module (610) first verifies the legitimacy of the Internet of Things message (500) request path, and returns corresponding error information to the multi-protocol terminal device if it is not legal; if it is legal, then judges whether the Internet of Things message (500) needs to be verified. The purpose of the Internet of Things message (500) is to access the data of other multi-protocol terminal devices or to communicate with other multi-protocol terminal devices, so device verification is required, and the Internet of Things message (500) enters the message verification module (620); otherwise, no Equipment verification is required, and the Internet of Things message (500) directly enters the request parameter verification module (630).

消息校验模块(620)后根据物联网消息(500)中附带的设备UUID和令牌从缓存模块(200)获取设备UUID的对应令牌,若缓存模块(200)中无获取设备UUID的对应令牌。若物联网消息(500)中令牌与获取的令牌一致则校验通过,进入请求参数校验模块(630);否则返回相应的错误信息给多协议终端设备(800)。After the message verification module (620) obtains the corresponding token of the device UUID from the cache module (200) according to the attached device UUID and the token in the Internet of Things message (500), if there is no corresponding token for obtaining the device UUID in the cache module (200) token. If the token in the Internet of Things message (500) is consistent with the obtained token, the verification is passed, and the request parameter verification module (630) is entered; otherwise, corresponding error information is returned to the multi-protocol terminal device (800).

请求参数校验模块(630)校验多协议终端设备发来的物联网消息(500)中参数是否合法,参数包括请求字段的合法性、请求值的合法性等。若通过校验则进入操作校验模块(640),否则返回相应的错误信息给多协议终端设备(800)。The request parameter verification module (630) verifies whether the parameters in the Internet of Things message (500) sent by the multi-protocol terminal device are legal, and the parameters include the legality of the request field, the legality of the request value, and the like. If the verification is passed, enter the operation verification module (640), otherwise return corresponding error information to the multi-protocol terminal device (800).

操作校验模块(640)验证物联网消息(500)中目标多协议终端设备是否允许业务请求。若允许则校验通过,进入消息管理模块(100)执行相应的操作,否则返回相应的错误信息给多协议终端设备(800)。The operation verification module (640) verifies whether the target multi-protocol terminal device in the Internet of Things message (500) allows the service request. If it is allowed, the verification is passed, and the message management module (100) is entered to perform corresponding operations, otherwise corresponding error information is returned to the multi-protocol terminal device (800).

所述消息管理模块(100)是本发明的核心模块,该模块与安全验证模块、缓存模块、存储模块和数据处理模块连接,所有设备的数据交互、数据操作和控制操作都要通过该模块实现消息传递。所述消息管理模块(100)包括消息路由模块(110)、消息通道模块(120)、消息发布订阅模块(130)、日志记录模块(140)。The message management module (100) is the core module of the present invention, and this module is connected with the safety verification module, cache module, storage module and data processing module, and the data interaction, data operation and control operation of all devices will be realized through this module messaging. The message management module (100) includes a message routing module (110), a message channel module (120), a message publishing and subscribing module (130), and a log recording module (140).

本发明所述存储模块(300)的数据存储在硬盘,连接消息管理模块(100)、缓存模块(200)和数据处理模块(400),主要包括设备存储模块(310)和数据存储模块(320)。The data of the storage module (300) of the present invention is stored in the hard disk, connected to the message management module (100), the cache module (200) and the data processing module (400), mainly including the device storage module (310) and the data storage module (320) ).

所述设备存储模块(310)存储已注册的多协议终端设备(800)的各种属性,包括设备UUID、状态、地理位置、令牌、配置黑白名单、访问黑白名单、父设备等。其中,设备UUID指通用唯一识别码(Universally Unique Identifier),它能保证每个多协议终端设备(800)生成的标识不会重复。多协议终端设备(800)第一次加入本发明系统中时首先进行注册操作获取UUID,将其作为该设备在本发明系统中的唯一标识符,不同协议中的多协议终端设备(800)基于UUID来识别、定位其它多协议终端设备(800)。The device storage module (310) stores various attributes of the registered multi-protocol terminal device (800), including device UUID, state, geographic location, token, configuration black and white list, access black and white list, parent device, etc. Wherein, the device UUID refers to a universally unique identifier (Universally Unique Identifier), which can ensure that the identifier generated by each multi-protocol terminal device (800) will not be repeated. When a multi-protocol terminal device (800) joins the system of the present invention for the first time, it first performs a registration operation to obtain a UUID, which is used as the unique identifier of the device in the system of the present invention. Multi-protocol terminal devices (800) in different protocols are based on UUID to identify and locate other multi-protocol terminal devices (800).

所述数据存储模块(320)存储各类设备采集、推送的各类数据,包括采集位置、采集时间、采集值等,为数据处理模块(400)提供材料库。The data storage module (320) stores various types of data collected and pushed by various devices, including collection location, collection time, collection value, etc., and provides a material library for the data processing module (400).

所述消息路由模块(110)解析多协议终端设备(800)发送的物联网消息(500),将消息按类别和目的地址将其送入相应的消息通道模块(120)。消息通道模块(120)根据消息类型分为配置消息类通道(121)、控制消息类通道(122)、数据消息类通道(123)三大类。The message routing module (110) parses the Internet of Things message (500) sent by the multi-protocol terminal device (800), and sends the message to the corresponding message channel module (120) according to its category and destination address. The message channel module (120) is divided into three categories according to message types: configuration message channel (121), control message channel (122), and data message channel (123).

若物联网消息(500)属于配置设备属性的消息,则物联网消息(500)进入配置消息类通道(121);若物联网消息(500)属于发布订阅类消息或回传确认消息,则物联网消息(500)进入控制消息类通道(122);若物联网消息(500)属于数据消息,则物联网消息(500)进入数据消息类通道(123)。If the Internet of Things message (500) belongs to the message of configuring device attributes, then the Internet of Things message (500) enters the configuration message channel (121); The networking message (500) enters the control message channel (122); if the IoT message (500) is a data message, the IoT message (500) enters the data message channel (123).

配置消息类通道(121)与设备存储模块(310)连接,传递配置设备各属性的消息,包括设备注册、设备删除、令牌更新、父设备设置、黑白名单列表设置等,进入该通道的消息将传给设备存储模块进行处理。The configuration message channel (121) is connected with the device storage module (310), and transmits messages for configuring various attributes of the device, including device registration, device deletion, token update, parent device settings, black and white list list settings, etc., and the messages entering the channel It will be passed to the device storage module for processing.

控制消息类通道(122)与消息订阅模块(130)和编译模块(700)连接,传递设备控制消息,包括消息订阅、回传确认等消息。若控制消息是发布订阅类消息,将该消息发往消息订阅发布模块(130)进行处理。若是回传确认消息,将该消息发往目的设备所在的协议编译模块(700),编译为该协议可以传输的消息格式后传递给目的设备。The control message channel (122) is connected with the message subscription module (130) and the compilation module (700), and transmits device control messages, including messages such as message subscription and return confirmation. If the control message is a publish-subscribe message, send the message to the message subscription publishing module (130) for processing. If a confirmation message is sent back, the message is sent to the protocol compilation module (700) where the destination device is located, compiled into a message format that can be transmitted by the protocol, and then delivered to the destination device.

数据消息类通道(123)与协议编译模块(700)和数据存储模块(320)连接,传递数据消息,主要包括设备采集的数据和存储模块中的数据。若数据消息的目的地址是设备,将该消息发往目的设备所在的协议编译模块,编译为该协议可以传输的消息格式后传递给目的设备。若数据消息的目的地址是数据存储模块(320),则将其发往数据存储模块(320)存储、获取数据。The data message channel (123) is connected with the protocol compilation module (700) and the data storage module (320) to transmit data messages, mainly including data collected by the equipment and data in the storage module. If the destination address of the data message is a device, send the message to the protocol compilation module where the destination device is located, compile it into a message format that can be transmitted by the protocol, and then pass it to the destination device. If the destination address of the data message is the data storage module (320), it is sent to the data storage module (320) to store and acquire data.

配置消息类通道(121)优先级最高,控制消息类通道(122)次之,数据消息类通道(123)最低。不同类型通道的信息优先级不同,从而保证实时性要求高的消息能够尽快到达目的设备。本发明中的每一类通道是相同类型通道组成的集合,集合中的元素是目的地址不同的消息通道,一个目的地址对应一个消息通道。The configuration message channel (121) has the highest priority, followed by the control message channel (122), and the data message channel (123) is the lowest. Different types of channels have different information priorities, so as to ensure that messages with high real-time requirements can reach the destination device as soon as possible. Each type of channel in the present invention is a set of channels of the same type, and the elements in the set are message channels with different destination addresses, and one destination address corresponds to one message channel.

所述消息发布订阅模块(130)处理多协议终端设备的订阅请求,相当于消息管理模块中的“接线员”,为不同协议中的各种设备建立、取消传递消息的通道,使不同协议间的设备能够无障碍通信。其特征在于,多协议终端设备A要订阅多协议终端设备B的某类型消息则发送对应请求,消息发布订阅模块校验多协议终端设备B是否允许多协议终端设备A订阅其该类型消息。若允许则消息发布订阅模块建立多协议终端设备B到多协议终端设备A的消息通道。若不允许则将相应错误发送给请求多协议终端设备A。The message publishing and subscribing module (130) handles the subscription requests of multi-protocol terminal devices, which is equivalent to the "operator" in the message management module, and establishes and cancels channels for transmitting messages for various devices in different protocols, so that the communication between different protocols The device is able to communicate without hindrance. It is characterized in that, if the multi-protocol terminal device A wants to subscribe to a certain type of message of the multi-protocol terminal device B, it sends a corresponding request, and the message publishing and subscribing module checks whether the multi-protocol terminal device B allows the multi-protocol terminal device A to subscribe to its type of message. If allowed, the message publishing and subscribing module establishes a message channel from the multi-protocol terminal device B to the multi-protocol terminal device A. If not allowed, the corresponding error is sent to the requesting multi-protocol terminal device A.

所述日志记录模块(140)监测记录消息管理模块的运行状态,消息管理模块(100)产生过载、故障等情况时发出预警并生成日志,提高本发明系统的运行稳定性。The log recording module (140) monitors and records the operating status of the message management module, and when the message management module (100) generates overload, failure, etc., it issues an early warning and generates a log, so as to improve the operating stability of the system of the present invention.

本发明所述缓存模块(200)的数据存储在内存,该模块位于消息管理模块(100)和存储模块(300)之间。其特征在于,所述消息管理模块(200)访问设备信息或者设备采集的数据时,首先在缓存模块(200)中查找。若找到则直接获取数据,找不到则进入存储模块(300)的设备存储模块(310)和数据存储模块(320)查找获取相应数据。设备信息再次被访问到的可能性很大,因此本发明直接将设备存储模块(310)中查找获取的设备信息存入缓存模块(200),提高消息管理模块(100)下次访问设备信息的速度。The data of the cache module (200) in the present invention is stored in the internal memory, and the module is located between the message management module (100) and the storage module (300). It is characterized in that, when the message management module (200) accesses the device information or the data collected by the device, it first searches in the cache module (200). If found, the data is directly acquired, and if not found, the device storage module (310) and the data storage module (320) of the storage module (300) are searched to obtain corresponding data. The possibility that the device information is accessed again is very high, so the present invention directly stores the device information obtained by searching in the device storage module (310) into the cache module (200), and improves the efficiency of the message management module (100) to access the device information next time. speed.

然而,存储模块(320)中的数据被再次访问的可能性较低,只有在较短时间t秒内被访问超过3次的数据才从数据存储模块(320)导入缓存模块(200),其中t值的大小视数据所在具体应用确定。物联网系统时刻在接收、处理、存储大量数据,而数据运算和硬盘存储的速度相对I/O操作较慢,当数据运算和硬盘存储的负荷过重不能及时处理接收到的数据时,缓存模块(200)建立消息处理等待队列,从而提高系统的并发性能。所述缓存模块(200)大大缩短了消息管理模块查找设备信息和数据信息的时间,极大提高了系统的运行、响应速度,使本发明系统可以满足实际应用的需求。However, the data in the storage module (320) is less likely to be accessed again, and only the data that is accessed more than 3 times in a short time t second is imported from the data storage module (320) into the cache module (200), wherein The size of the t value depends on the specific application where the data is located. The Internet of Things system is receiving, processing, and storing a large amount of data all the time, and the speed of data calculation and hard disk storage is slower than that of I/O operations. When the load of data calculation and hard disk storage is too heavy to process the received data in time, the cache module (200) Establishing a waiting queue for message processing, thereby improving the concurrent performance of the system. The cache module (200) greatly shortens the time for the message management module to search for device information and data information, greatly improves the operation and response speed of the system, and enables the system of the present invention to meet the requirements of practical applications.

所述数据处理模块(400)是一种进行数据分析、数据挖掘的平台,与消息管理模块(100)、缓存模块(200)和存储模块(300)连接,主要包括实时数据处理模块和离线数据处理模块。基于该平台可以对授权数据进行分析挖掘,使本发明收集的数据在保证安全的前提下发挥更大的价值,提高不同协议中每个多协议终端设备的价值。所述离线数据处理模块提供对数据存储模块所存储的数据进行汇总处理的平台,利用该模块可以对过去一段时间内采集的各类信息进行分析挖掘,得到相应结论后可以将分析结果存入数据存储模块,也可以通过消息管理模块直接推送给相关设备。实时数据处理模块提供分析处理实时性要求较高的数据的平台,携带需要实时处理数据的消息由消息管理模块直接推送到实时数据处理模块,处理模块运行实时处理算法,快速运算得出相应结果后将其存储入数据存储模块,也可以直接推送给相关设备,应用于提示预警、发出警报等。The data processing module (400) is a platform for data analysis and data mining, connected with the message management module (100), cache module (200) and storage module (300), mainly including real-time data processing module and offline data processing module. Based on the platform, the authorization data can be analyzed and mined, so that the data collected by the present invention can exert greater value under the premise of ensuring safety, and increase the value of each multi-protocol terminal device in different protocols. The offline data processing module provides a platform for summarizing and processing the data stored in the data storage module. Using this module, various types of information collected in the past period of time can be analyzed and mined, and the analysis results can be stored in the data after corresponding conclusions are obtained. The storage module can also be directly pushed to related devices through the message management module. The real-time data processing module provides a platform for analyzing and processing data with high real-time requirements. Messages carrying data that require real-time processing are directly pushed to the real-time data processing module by the message management module. It can be stored in the data storage module, and can also be directly pushed to related devices, which can be used to prompt early warning and issue alarms, etc.

综上所述,以上仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。To sum up, the above are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (7)

1.一种基于多协议即时通信系统的物联网业务处理系统,其特征在于,包括:消息管理模块(100)、缓存模块(200)、存储模块(300)、数据处理模块(400)、安全验证模块(600)、协议编译模块(700)和多协议终端设备(800);其中,缓存模块(200)、存储模块(300)中存储有多协议终端设备(800)的设备通用唯一识别码UUID和令牌;1. An Internet of Things business processing system based on a multi-protocol instant messaging system, characterized in that it comprises: a message management module (100), a cache module (200), a storage module (300), a data processing module (400), a security Verification module (600), protocol compilation module (700) and multi-protocol terminal device (800); wherein, the device general unique identification code of the multi-protocol terminal device (800) is stored in the cache module (200) and the storage module (300) UUID and token; 多协议终端设备(800),与物联网中其他多协议终端设备进行业务处理时发送相关请求信息,将相关请求信息以设定协议进行发送;The multi-protocol terminal device (800), when performing business processing with other multi-protocol terminal devices in the Internet of Things, sends relevant request information, and sends the relevant request information with a set protocol; 协议编译模块(700),解析所述协议中多协议终端设备(800)发送的相关请求消息,生成格式统一的物联网消息(500),并将该物联网消息(500)传输至安全验证模块(600);The protocol compiling module (700) parses the relevant request message sent by the multi-protocol terminal device (800) in the protocol, generates an Internet of Things message (500) with a unified format, and transmits the Internet of Things message (500) to the security verification module (600); 安全验证模块(600),验证物联网消息(500)的合法性,不合法则向多协议终端设备(800)返回相应错误信息,合法则将物联网消息(500)传输至消息管理模块(100);The safety verification module (600) verifies the legitimacy of the Internet of Things message (500), returns corresponding error information to the multi-protocol terminal device (800) if it is illegal, and transmits the Internet of Things message (500) to the message management module (100) if it is legal ; 消息管理模块(100),根据物联网消息(500)的目的地址将物联网消息(500)推送至对应多协议终端设备,实现多协议终端设备(800)与其他多协议终端设备之间的通信,或者同时将物联网消息(500)推送至缓存模块(200)暂存、存储模块(300)固存、数据处理模块(400)进行数据处理;The message management module (100) pushes the Internet of Things message (500) to the corresponding multi-protocol terminal device according to the destination address of the Internet of Things message (500), so as to realize communication between the multi-protocol terminal device (800) and other multi-protocol terminal devices , or simultaneously push the IoT message (500) to the cache module (200) for temporary storage, the storage module (300) for solid storage, and the data processing module (400) for data processing; 所述安全验证模块(600)包括路径校验模块(610)、消息校验模块(620)、请求参数校验模块(630)及操作校验模块(640);The safety verification module (600) includes a path verification module (610), a message verification module (620), a request parameter verification module (630) and an operation verification module (640); 路径校验模块(610),验证物联网消息(500)请求路径的合法性,不合法则向多协议终端设备(800)返回相应错误信息;如果合法,则判断该物联网消息(500)是否需要进行消息校验,若需要进行消息校验,则将物联网消息(500)发送至消息校验模块(620);否则将物联网消息(500)发送至请求参数校验模块(630);The path check module (610) verifies the legitimacy of the Internet of Things message (500) request path, and returns corresponding error information to the multi-protocol terminal device (800) if it is not legal; if legal, then judges whether the Internet of Things message (500) needs Carry out message verification, if need to carry out message verification, then send Internet of Things message (500) to message verification module (620); Otherwise, send Internet of Things message (500) to request parameter verification module (630); 消息校验模块(620),根据物联网消息(500)中附带的UUID从缓存模块(200)或存储模块(300)中获取UUID的对应令牌;若物联网消息(500)中令牌与获取的令牌一致则校验通过,进入请求参数校验模块(630);否则返回相应的错误信息给多协议终端设备(800);The message verification module (620), obtains the corresponding token of the UUID from the cache module (200) or the storage module (300) according to the attached UUID in the Internet of Things message (500); if the token in the Internet of Things message (500) and If the obtained token is consistent, the verification is passed, and the request parameter verification module (630) is entered; otherwise corresponding error information is returned to the multi-protocol terminal device (800); 请求参数校验模块(630),校验多协议终端设备(800)发来的物联网消息(500)中参数是否合法,若合法则进入操作校验模块(640),否则返回相应的错误信息给多协议终端设备(800);Request the parameter verification module (630), check whether the parameters in the Internet of Things message (500) sent by the multi-protocol terminal device (800) are legal, if legal, then enter the operation verification module (640), otherwise return the corresponding error message To multi-protocol terminal equipment (800); 操作校验模块(640),验证物联网消息(500)中目标设备是否允许业务请求,若允许,则发送物联网消息(500)至消息管理模块(100),否则返回相应的错误信息给多协议终端设备(800)。Operate the check module (640), verify whether the target device in the Internet of Things message (500) allows the service request, if allowed, then send the Internet of Things message (500) to the message management module (100), otherwise return the corresponding error message to multiple A protocol terminal device (800). 2.如权利要求1所述的基于多协议即时通信系统的物联网业务处理系统,其特征在于,所述协议编译模块(700)包括:CoAP协议编译器(710)、MQTT协议编译器(720)、Socket.io协议编译器(730)、WebSocket协议编译器(740)、HTTPREST协议编译器(750)和协议编译器(760);所述协议编译器(760)是预留的协议扩展接口;各编译器通过不同的端口分别侦听、解析来自多协议终端设备的相关请求信息,并将其格式化为安全验证模块(600)和消息管理模块(100)识别的格式统一的物联网消息(500)。2. the Internet of Things business processing system based on multi-protocol instant messaging system as claimed in claim 1, is characterized in that, described protocol compiling module (700) comprises: CoAP protocol compiler (710), MQTT protocol compiler (720 ), Socket.io protocol compiler (730), WebSocket protocol compiler (740), HTTPREST protocol compiler (750) and protocol compiler (760); the protocol compiler (760) is a reserved protocol extension interface ; Each compiler listens to and parses relevant request information from multi-protocol terminal devices through different ports, and formats it into an Internet of Things message with a unified format recognized by the security verification module (600) and the message management module (100) (500). 3.如权利要求1所述的基于多协议即时通信系统的物联网业务处理系统,其特征在于,所述存储模块(300)将数据存储在硬盘,包括设备存储模块(310)和数据存储模块(320);3. the Internet of Things business processing system based on multi-protocol instant messaging system as claimed in claim 1, is characterized in that, described storage module (300) stores data in hard disk, comprises equipment storage module (310) and data storage module (320); 所述设备存储模块(310),存储已注册的多协议终端设备(800)的设备属性,设备属性包括UUID和令牌;The device storage module (310) stores the device attributes of the registered multi-protocol terminal device (800), and the device attributes include UUID and token; 所述数据存储模块(320),存储各多协议终端设备(800)进行业务处理的各类数据。The data storage module (320) stores various types of data for business processing by each multi-protocol terminal device (800). 4.如权利要求3所述的基于多协议即时通信系统的物联网业务处理系统,其特征在于,所述消息管理模块(100)包括消息路由模块(110)、消息通道模块(120)、消息发布订阅模块(130)、日志记录模块(140);其中,消息通道模块(120),根据消息类型分为配置消息类通道(121)、控制消息类通道(122)、数据消息类通道(123);4. the Internet of Things business processing system based on multi-protocol instant messaging system as claimed in claim 3, is characterized in that, described message management module (100) comprises message routing module (110), message channel module (120), message Publish and subscribe module (130), log recording module (140); wherein, the message channel module (120), according to the message type, is divided into configuration message class channel (121), control message class channel (122), data message class channel (123 ); 所述消息路由模块(110),解析多协议终端设备(800)发送的物联网消息(500),根据消息类型和目的地址将其送入相应的消息通道模块(120);若物联网消息(500)属于配置设备属性的消息,则物联网消息(500)进入配置消息类通道(121);若物联网消息(500)属于发布订阅类消息或回传确认消息,则物联网消息(500)进入控制消息类通道(122);若物联网消息(500)属于数据消息,则物联网消息(500)进入数据消息类通道(123);The message routing module (110) parses the Internet of Things message (500) sent by the multi-protocol terminal device (800), and sends it to the corresponding message channel module (120) according to message type and destination address; if the Internet of Things message ( 500) belongs to the message of configuring device attributes, then the Internet of Things message (500) enters the configuration message channel (121); Enter the control message class channel (122); if the Internet of Things message (500) belongs to the data message, then the Internet of Things message (500) enters the data message class channel (123); 配置消息类通道(121)与设备存储模块(310)连接,将进入该配置消息类通道(121)的物联网消息(500)传给设备存储模块(310)进行处理;The configuration message channel (121) is connected with the device storage module (310), and the Internet of Things message (500) entering the configuration message channel (121) is passed to the device storage module (310) for processing; 控制消息类通道(122)分别与消息订阅模块(130)、协议编译模块(700)连接,将发布订阅类消息发往消息订阅发布模块(130)进行处理,将回传确认消息发往协议编译模块;The control message channel (122) is respectively connected with the message subscription module (130) and the protocol compilation module (700), sends the publish and subscribe message to the message subscription release module (130) for processing, and sends the return confirmation message to the protocol compile module; 数据消息类通道(123)分别与协议编译模块(700)、数据存储模块(320)连接,若数据消息的目的地址是设备,则将该数据消息发往协议编译模块(700),编译消息格式后传递给目的设备;若数据消息的目的地址是数据存储模块(320),则将其发往数据存储模块(320)存储;The data message channel (123) is connected with the protocol compilation module (700) and the data storage module (320) respectively, if the destination address of the data message is equipment, then the data message is sent to the protocol compilation module (700), and the message format is compiled Pass to destination equipment after; If the destination address of data message is data storage module (320), then it is sent to data storage module (320) storage; 所述消息发布订阅模块(130),接收控制消息类通道(122)发送的发布订阅类消息,若订阅目标设备允许订阅请求,则所述消息发布订阅模块(130)建立订阅双方设备之间的消息通道,否则发送相应错误给请求订阅设备;The message publishing and subscribing module (130) receives the publishing and subscribing message sent by the control message channel (122), and if the subscription target device allows the subscription request, the message publishing and subscribing module (130) establishes a subscription between the devices of both parties Message channel, otherwise send the corresponding error to the requesting subscription device; 所述日志记录模块(140),监测记录消息管理模块(100)的运行状态,并在消息管理模块(100)产生过载、故障情况时发出预警并生成日志。The log recording module (140) monitors and records the running state of the message management module (100), and issues an early warning and generates a log when the message management module (100) is overloaded or fails. 5.如权利要求4所述的基于多协议即时通信系统的物联网业务处理系统,其特征在于,5. the Internet of Things business processing system based on multi-protocol instant messaging system as claimed in claim 4, is characterized in that, 配置消息类通道(121)优先级最高,控制消息类通道(122)次之,数据消息类通道(123)最低。The configuration message channel (121) has the highest priority, followed by the control message channel (122), and the data message channel (123) is the lowest. 6.如权利要求1所述的基于多协议即时通信系统的物联网业务处理系统,其特征在于,6. the Internet of Things business processing system based on multi-protocol instant messaging system as claimed in claim 1, is characterized in that, 所述缓存模块(200)的数据存储在内存;The data of the cache module (200) is stored in memory; 所述消息管理模块(100)访问设备信息或者消息校验模块(620)进行消息校验时,首先在缓存模块(200)中查找对应数据;若找到则直接获取,找不到则进入存储模块(300)的设备存储模块(310)或数据存储模块(320)中查找;When the message management module (100) accesses the device information or the message verification module (620) performs message verification, it first searches the corresponding data in the cache module (200); (300) in the device storage module (310) or the data storage module (320); 并将在设定时间内存储模块(300)中被访问超过3次的数据导入缓存模块(200)。And the data accessed more than 3 times in the storage module (300) within the set time is imported into the cache module (200). 7.如权利要求1所述的基于多协议即时通信系统的物联网业务处理系统,其特征在于,所述数据处理模块(400)包括实时数据处理模块和离线数据处理模块;7. the Internet of Things business processing system based on multi-protocol instant messaging system as claimed in claim 1, is characterized in that, described data processing module (400) comprises real-time data processing module and off-line data processing module; 所述离线数据处理模块,提供对存储模块(300)所存储的数据进行汇总处理的平台,用于对历史时间段内采集的各类信息进行分析挖掘,并将分析结果存入存储模块(300),或将分析结果通过消息管理模块(100)直接推送给相关设备;The off-line data processing module provides a platform for summarizing and processing the data stored in the storage module (300), for analyzing and mining various types of information collected in historical time periods, and storing the analysis results in the storage module (300) ), or directly push the analysis results to relevant devices through the message management module (100); 实时数据处理模块,携带需要实时处理数据的消息由消息管理模块(100)直接推送到实时数据处理模块,实时数据处理模块提供要求实时处理数据的平台,并将处理结果存储模块(300),或将处理结果通过消息管理模块(100)直接推送给相关设备。The real-time data processing module carries the message that needs to be processed in real time and is directly pushed to the real-time data processing module by the message management module (100). The real-time data processing module provides a platform that requires real-time data processing, and stores the processing results in the module (300), or The processing results are directly pushed to relevant devices through the message management module (100).
CN201610224211.2A 2016-04-12 2016-04-12 A kind of internet of things service processing system based on multi-protocol instant messaging system Active CN105763426B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610224211.2A CN105763426B (en) 2016-04-12 2016-04-12 A kind of internet of things service processing system based on multi-protocol instant messaging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610224211.2A CN105763426B (en) 2016-04-12 2016-04-12 A kind of internet of things service processing system based on multi-protocol instant messaging system

Publications (2)

Publication Number Publication Date
CN105763426A CN105763426A (en) 2016-07-13
CN105763426B true CN105763426B (en) 2018-04-06

Family

ID=56334780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610224211.2A Active CN105763426B (en) 2016-04-12 2016-04-12 A kind of internet of things service processing system based on multi-protocol instant messaging system

Country Status (1)

Country Link
CN (1) CN105763426B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI726431B (en) 2019-10-01 2021-05-01 中華電信股份有限公司 A methodology and architecture of task nodes systems

Families Citing this family (43)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107769941A (en) * 2016-08-16 2018-03-06 中兴通讯股份有限公司 A kind of method and device for managing data
US10185550B2 (en) 2016-09-28 2019-01-22 Mcafee, Inc. Device-driven auto-recovery using multiple recovery sources
CN106445705B (en) * 2016-10-08 2020-06-02 武汉烽火众智数字技术有限责任公司 Platform cascading method and system based on RabbitMQ and socket
EP3563521B1 (en) 2016-12-30 2025-05-28 INTEL Corporation Service provision to iot devices
CN107016056B (en) * 2017-03-07 2021-01-12 西安电子科技大学 Distributed storage system and method for large-volume heterogeneous sensing data in Internet of things
CN108874796B (en) * 2017-05-08 2021-12-14 中车株洲电力机车研究所有限公司 Method and system for returning data of converter
CN107018147B (en) * 2017-05-09 2020-09-08 南京云岸信息科技有限公司 Internet of things communication method and system and gateway module
CN109788014A (en) * 2017-11-14 2019-05-21 阿里巴巴集团控股有限公司 The message treatment method and device of a kind of Message Processing, Internet of things system
CN108390917B (en) * 2018-01-25 2021-02-02 珠海金山网络游戏科技有限公司 Intelligent message sending method and device
CN109756550B (en) * 2018-06-01 2021-12-21 启迪云控(北京)科技有限公司 Intelligent internet driving vehicle cloud communication method, device and system
CN109257337B (en) * 2018-08-28 2021-09-07 科大国创软件股份有限公司 Internet of things equipment protocol conversion method and lamp pole operation platform based on same
CN110224972A (en) * 2019-04-19 2019-09-10 凯通科技股份有限公司 One kind is towards multi-protocols polymorphic type equipment access system, method and device
CN110290107A (en) * 2019-05-15 2019-09-27 江苏链达教育科技有限公司 The general O&M monitor supervision platform of scientific instrument and monitoring method
CN110113359A (en) * 2019-05-28 2019-08-09 济南浪潮高新科技投资发展有限公司 A kind of platform of internet of things protocol fitting method
CN110290176B (en) * 2019-05-28 2020-07-28 必成汇(成都)科技有限公司 Point-to-point information pushing method based on MQTT
CN112787974B (en) * 2019-11-05 2024-01-02 杭州海康威视数字技术股份有限公司 Gateway, data transmission method and electronic equipment
CN111132076B (en) * 2019-12-31 2024-04-09 斑马网络技术有限公司 Vehicle-mounted communication method and device, vehicle-mounted and terminal
CN113452732B (en) * 2020-03-25 2023-08-01 河南许继仪表有限公司 Electric power internet of things network management system and method
CN111885197B (en) * 2020-07-31 2022-11-25 平安国际融资租赁有限公司 Data transmission method and device based on Internet of things, cloud platform and computer equipment
CN111970363B (en) * 2020-08-17 2022-08-16 北京金山云网络技术有限公司 Data processing method and device based on Internet of things
CN112333227B (en) * 2020-09-11 2022-07-15 浙江工业大学 Internet of things platform of mixed type protocol based on rule engine
CN112487218B (en) * 2020-11-27 2023-07-14 北京百度网讯科技有限公司 Content processing method, system, device, computing device and storage medium
CN112751842A (en) * 2020-12-25 2021-05-04 广东南方新媒体科技有限公司 High-performance instant messaging method
CN113162989A (en) * 2021-03-29 2021-07-23 华东师范大学 MQTT-Websocket-based message transceiving method
CN113127081B (en) * 2021-04-19 2023-09-15 浪潮金融信息技术有限公司 Lightweight interactive method, system and medium for terminal
CN113132407A (en) * 2021-04-29 2021-07-16 国网上海市电力公司 Communication multi-protocol conversion device
CN113259231B (en) * 2021-05-12 2022-03-15 中移(上海)信息通信科技有限公司 Gateway device, information transmission method and device
CN113329064B (en) * 2021-05-13 2022-11-25 河南中州智慧水利研究院有限公司 Communication method of Internet of things interaction protocol based on water conservancy data acquisition and control
CN113347195B (en) * 2021-06-18 2022-12-23 山东产研信息与人工智能融合研究院有限公司 Dynamic mounting system and method for communication protocol packet of Internet of things equipment
CN113609047B (en) * 2021-07-16 2024-03-19 华中科技大学 A data adapter and data adaptation method
CN113542300B (en) * 2021-07-29 2022-04-01 国家工业信息安全发展研究中心 Node access authentication method and system supporting multi-protocol identification analysis
CN114172971B (en) * 2021-10-22 2024-05-14 杭州鸿雁电力电气有限公司 Gateway application system and method compatible with multiple different protocol sub-devices
CN114338736B (en) * 2021-12-07 2023-08-01 中国人民解放军总医院 Data transmission management system, method and computer device for Internet of things equipment
CN114157537A (en) * 2021-12-08 2022-03-08 东风悦享科技有限公司 System and method for realizing multi-source heterogeneous data access by general equipment gateway
CN114172978B (en) * 2021-12-30 2024-09-03 中国电信股份有限公司 Multi-protocol equipment access method and related device
CN114115832A (en) * 2022-01-25 2022-03-01 北京微芯区块链与边缘计算研究院 Internet of things embedded equipment and cloud platform communication protocol implementation method
CN115002198B (en) * 2022-05-23 2024-11-08 支付宝(杭州)信息技术有限公司 Information processing method, device, equipment and medium for Internet of Things equipment
CN115426420A (en) * 2022-09-01 2022-12-02 江苏华电昆山热电有限公司 Multi-protocol real-time communication method and system for pipeline robot
CN115914393B (en) * 2022-11-29 2024-11-08 北京科银京成技术有限公司 A communication method, device, equipment and medium
CN116016181A (en) * 2022-12-06 2023-04-25 南方电网数字平台科技(广东)有限公司 Remote operation and maintenance method and device for intranet gateway based on MQTT protocol
CN116346534A (en) * 2022-12-29 2023-06-27 易视腾科技股份有限公司 A multi-network fusion communication method and system thereof
CN116708596A (en) * 2023-06-13 2023-09-05 煤炭科学研究总院有限公司 High concurrent data processing method, device and storage medium based on Ethernet/IP
CN116996495B (en) * 2023-09-26 2024-02-02 中节能晶和科技有限公司 System and method for supporting automatic access to multiple types of single lamp controls

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045896A (en) * 2010-11-22 2011-05-04 中山爱科数字科技有限公司 Virtual Internet-of-things gateway system capable of realizing multiprotocol and network self-adapting
CN102137131A (en) * 2010-01-27 2011-07-27 广州盛华信息技术有限公司 System for realizing access of internet of things
CN102573047A (en) * 2012-03-11 2012-07-11 上海宜云物联科技有限公司 Data transmission method of multi-protocol gateway in wireless sensor network, and gateway
CN102857566A (en) * 2012-09-06 2013-01-02 上海计算机软件技术开发中心 Intelligent gateway of internet of things capable of being customized by software
CN104038414A (en) * 2013-08-21 2014-09-10 江南大学 Multiprotocol intelligent household gateway apparatus and system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137131A (en) * 2010-01-27 2011-07-27 广州盛华信息技术有限公司 System for realizing access of internet of things
CN102045896A (en) * 2010-11-22 2011-05-04 中山爱科数字科技有限公司 Virtual Internet-of-things gateway system capable of realizing multiprotocol and network self-adapting
CN102573047A (en) * 2012-03-11 2012-07-11 上海宜云物联科技有限公司 Data transmission method of multi-protocol gateway in wireless sensor network, and gateway
CN102857566A (en) * 2012-09-06 2013-01-02 上海计算机软件技术开发中心 Intelligent gateway of internet of things capable of being customized by software
CN104038414A (en) * 2013-08-21 2014-09-10 江南大学 Multiprotocol intelligent household gateway apparatus and system thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种多协议融合的物联网节点设计;张倩倩; 章亦葵; 潘勇;《电子测量技术》;20110815;第34卷(第8期);第85-87页 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI726431B (en) 2019-10-01 2021-05-01 中華電信股份有限公司 A methodology and architecture of task nodes systems

Also Published As

Publication number Publication date
CN105763426A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
CN105763426B (en) A kind of internet of things service processing system based on multi-protocol instant messaging system
CN104640237B (en) A kind of Internet of things system
CN102186164B (en) Method and management device for operating device resource
Alaya et al. Toward semantic interoperability in oneM2M architecture
WO2022262465A1 (en) Opc ua-based centralized user configuration method and system for time sensitive network
KR102094041B1 (en) System having the Semantic Engine based on RDF Graph for Autonomous Interaction between IoT Devices in Real-Time
CN111095904A (en) Service layer message template in a communication network
Elmangoush et al. Application-derived communication protocol selection in M2M platforms for smart cities
Farahzadi et al. A survey on IoT fog nano datacenters
CN102523630A (en) Wireless ubiquitous network system structure
CN103647663A (en) Resource management method in server cluster
CN111201804A (en) Ways to Enable Data Continuity Services
CN101873592A (en) A dynamic management device for heterogeneous wireless equipment
US20190104084A1 (en) Managing access to logical objects in software defined networks
Kamoun et al. Improvement of MQTT semantic to minimize data flow in IoT platforms based on distributed brokers
CN105245579B (en) A kind of distribution network system mass data Communication processing method and system
CN112367297B (en) Service control method and device
US12155541B2 (en) Data sample template (DST) management for enabling fog-based data processing
Li et al. Efficient oneM2M protocol conversion platform based on NB-IoT access
Rodrigues et al. Zigzag: A middleware for service discovery in future internet
CN105743675A (en) Method and device for acquiring information
CN117202134A (en) Communication method, device and system
CN114866600B (en) Internet of things terminal access management method and device based on intelligent integration identification
CN119854095B (en) Information transmission method and device for distributed joint simulation system
Nguyen et al. ECHONET Lite-based IoT Platform for Smart Homes

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载