WO2012152133A1 - Method and system for implementing sensor adaptation - Google Patents
Method and system for implementing sensor adaptation Download PDFInfo
- Publication number
- WO2012152133A1 WO2012152133A1 PCT/CN2012/072747 CN2012072747W WO2012152133A1 WO 2012152133 A1 WO2012152133 A1 WO 2012152133A1 CN 2012072747 W CN2012072747 W CN 2012072747W WO 2012152133 A1 WO2012152133 A1 WO 2012152133A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- sensor
- message
- adaptation module
- module
- different
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/70—Services for machine-to-machine communication [M2M] or machine type communication [MTC]
Definitions
- the present invention relates to the field of communications, and in particular, to a method and system for implementing sensor adaptation. Background technique
- the Internet of Things technology is a very popular technology in the communications industry.
- the Internet of Things is the Internet that connects things.
- the Internet of Things has two meanings: First, the core and foundation of the Internet of Things is still the Internet, which is a network that extends and expands on the Internet. Second, the user end of the Internet of Things extends and extends between any item and item. For information exchange and communication.
- IoT technology integrates communication and network technologies to connect machines and devices that are used in people's daily lives into a network, making these devices smarter, thus creating rich applications for everyday life, industrial production, etc.
- the Internet of Things has huge market potential, and the main body of future communication will be Internet of Things communication.
- the Internet of Things is generally divided into three levels: the sensing layer, the network layer, and the application layer.
- the IoT gateway is located between the sensing layer and the network layer. It is an access gateway for sensor networks and provides users with IoT access services.
- Sensor network nodes are rich in types and complex in use environment.
- the number of sensor terminals in a service application varies according to service complexity. If each sensor terminal accesses the telecommunication network through its own access module, the complexity of the sensor terminal will increase. Degree and cost, the main role of the IoT gateway is to solve the bottleneck of sensor terminals accessing the Internet of Things.
- the IoT gateway can easily collect sensory data; at the same time, through the connection with the operator's existing public network, sensor data forwarding, control, and information are completed. Let exchange and codec and other functions.
- IoT gateway Through the IoT gateway, you can connect distributed and independent sensor devices that have been built and to be built, and the ubiquitous telecom carrier network to achieve unified management and resource sharing across regions and globally. Decision makers offer a new intuitive management tool to improve job performance.
- IoT gateways need to be able to adapt to many different types of sensors, while traditional IoT gateways are only suitable for a single type of sensor and cannot accommodate multiple different types of sensors at the same time. Summary of the invention
- the main object of the present invention is to provide a method and system for implementing sensor adaptation, which enables an IoT gateway to simultaneously adapt to a plurality of different types of sensors, and solves the problem that the traditional IoT gateway can only be used for a single type of sensor. The problem.
- a method for implementing sensor adaptation comprising:
- the sensor adaptation module adapts different sensor types, and processes the uplink message and/or the downlink message according to the corresponding sensor type; the sensor interaction module implements the message between the sensor adaptation module and the sensor for the uplink message and/or the downlink message. Interaction.
- the process of adapting the sensor adaptation module to different sensor types and processing the uplink message according to the corresponding sensor type includes:
- the sensor interaction module receives the sensor message and sends the sensor message to the sensor adaptation module.
- the sensor adaptation module determines the sensor type according to the received sensor message, and searches for the sensor data structure according to the sensor type, according to which the received sensor message is parsed.
- Sensor data
- the result of processing the uplink message is sent to the Internet of Things platform when needed.
- the uplink message is analyzed and processed according to different IoT platforms, so that the Internet of Things platform can be parsed.
- the process of adapting the sensor adaptation module to different sensor types and processing the downlink message according to the corresponding sensor type includes:
- the sensor adaptation module determines the sensor type according to the received protocol data, searches for the sensor data structure according to the determined sensor type, and applies the sensor data structure to encapsulate the sensor data;
- the result of processing the downlink message is sent to the sensor through the sensor interaction module when needed.
- the downlink message Before processing the downlink message, the downlink message is pre-processed according to different IoT platforms to facilitate analysis and processing by the sensor adaptation module.
- the maintenance includes saving, adding, and deleting different sensor types.
- a system for implementing sensor adaptation comprising a sensor adaptation module and a sensor interaction module;
- the sensor adaptation module is configured to adapt different sensor types, and process uplink messages and/or downlink messages according to corresponding sensor types;
- the sensor interaction module is configured to implement message interaction between the sensor adaptation module and the sensor for the uplink message and/or the downlink message.
- the sensor adaptation module adapts to different sensor types and processes the uplink message according to the corresponding sensor type, and is used for:
- the sensor adaptation module is further configured to: analyze and process the uplink message according to different IoT platforms, so that the Internet of Things platform can be parsed before sending the result to the Internet of Things platform.
- the sensor adaptation module adapts to different sensor types, and when processing the downlink message according to the corresponding sensor type, is used for:
- Determining the sensor type according to the received protocol data searching for the sensor data structure according to the determined sensor type, and applying the sensor data structure to encapsulate the sensor data;
- the result of processing the downlink message is sent to the sensor through the sensor interaction module when needed.
- the sensor adaptation module is further configured to: preprocess the downlink message according to different IoT platforms to facilitate analysis and processing by the sensor adaptation module.
- the sensor adaptation module is further configured to: maintain different sensor types; and the maintenance includes saving, adding, and deleting different sensor types.
- the sensor adaptation module and the sensor interaction module are disposed in the Internet of Things gateway; or are disposed independently of each other or in a functional entity other than the IoT gateway.
- the technology of the sensor adaptation of the invention can simultaneously adapt to a plurality of different types of sensors, and solves the problem that the traditional IoT gateway can only be used for a single type of sensor.
- FIG. 1 is a schematic structural diagram of an Internet of Things gateway according to an embodiment of the present invention.
- FIG. 2 is a flowchart of initializing a sensor adaptation module according to an embodiment of the present invention
- FIG. 3 is a flowchart of uplink processing of an Internet of Things gateway according to an embodiment of the present invention.
- FIG. 4 is a flowchart of downlink processing of an Internet of Things gateway according to an embodiment of the present invention.
- FIG. 5 is a schematic flowchart of implementing sensor adaptation according to an embodiment of the present invention. detailed description
- an IoT gateway capable of adapting multiple sensors may include a sensor adaptation module and a sensor interaction module, as shown in FIG. among them,
- the sensor adapter module can achieve the following functions:
- the sensor adaptation module can adapt to different sensor types and process upstream messages. For example: Analyze and process messages from sensor interaction modules based on different sensor types. If necessary, the result of processing the message is sent to the Internet of Things platform. Before sending the results to the IoT platform, messages can be analyzed and processed according to different IoT platforms for IoT platform resolution.
- the sensor adaptation module can adapt to different sensor types and process downstream messages. For example: Analyze and process related messages from the IoT platform based on different sensor types. Before processing the message, the message can be pre-processed according to different IoT platforms to facilitate sensor adaptation module analysis and processing. And, if desired, the results of processing the message can be sent to the sensor via the sensor interaction module.
- the sensor adapter module can easily maintain different sensor types, such as: save, increase, and delete different sensor types.
- the sensor type can be registered in the sensor adapter module; when a sensor type is no longer needed, the sensor type can be deregistered in the sensor adapter module.
- the sensor adaptation module can adapt different sensor types and process uplink messages and/or downlink messages according to the corresponding sensor type.
- the sensor interaction module can achieve the following functions:
- the sensor interaction module can implement message interaction between the sensor adaptation module and the sensor for the uplink message and/or the downlink message.
- SXC type (temporarily named SXC) temperature sensor and temperature controller
- TNW type (temporarily named TNW) smoke sensor and audible alarm sensor.
- SXC temperature sensor, temperature controller and TNW smoke sensor, audible alarm sensor sensor numbers are 1, 2, 3, 4, respectively, the address is "11111111” , "22222222", "33333333", "44444444”.
- the SXC sensor uses the ttyUSBO device file to interact with the IoT gateway.
- the TNW sensor uses the ttyUSBl device file to interact with the IoT gateway.
- the sensor data structure includes, but is not limited to, at least one of the following elements:
- the sensor control instruction encapsulates the function pointer.
- the initialization process of the sensor adaptation module includes the following steps:
- Step 1 Define the SXC sensor data structure and the TNW sensor data structure.
- Step 2 Register the SXC sensor data structure and the TNW sensor data structure in the IoT gateway, and use the registered data structure as the sensor data structure.
- Step 1 The sensor interaction module reads the data of the device file ttyUSBO and transmits it to the sensor adaptation module.
- Step 2 The sensor adaptation module determines that the received sensor data is sent by the SXC sensor
- Step 3 The sensor adaptation module acquires SXC sensing in the registered sensor data structure Data structure
- Step 4 The sensor adaptation module uses the "sensor data analysis function pointer" in the SXC sensor data structure to resolve the sensor data.
- the uplink processing flow can be represented as shown in Figure 3.
- the sensor interaction module needs to receive the sensor message and send it to the sensor adaptation module; the sensor adaptation module determines the sensor type according to the received sensor message, and searches for the sensor data structure according to the sensor type, according to which the received Sensor data in sensor messages.
- Step 1 The sensor adaptation module receives the message from the Internet of Things platform
- Step 2 The sensor adaptation module obtains the sensor number 4 from the message, according to which it is confirmed that the message corresponds to the TNW sensor, and the sensor that sends the message is a TNW type sound alarm sensor;
- Step 3 The sensor adaptation module acquires the TNW sensor data structure in the registered sensor structure
- Step 4 The sensor adaptation module parses the data of the TNW sensor from the Internet of Things platform according to the “sensor control instruction package function pointer” in the data structure of the TNW sensor, and encapsulates the parsed data into sensor data;
- Step 5 The sensor adaptation module sends the encapsulated TNW sensor data to the sensor interaction module, and the sensor interaction module sends the signal to the sensor through the device driver file ttyUSB 1.
- the sensor adaptation module needs to determine the sensor type according to the received protocol data, search for the sensor data structure according to the determined sensor type, and apply the sensor data structure to encapsulate the sensor data, and then send the sealed sensor data.
- the sensor interaction module can then receive sensor data from the sensor adapter module and then send it out.
- the sensor adaptation module and the sensor interaction module may also be independent of each other. Set up or co-located in a functional entity other than the IoT gateway.
- the operation of the sensor adaptation of the present invention may represent the process shown in FIG. 5, and the process includes the following steps:
- Step 510 The sensor adaptation module adapts different sensor types, and processes uplink messages and/or downlink messages according to corresponding sensor types.
- Step 520 The sensor interaction module implements message interaction between the sensor adaptation module and the sensor for the uplink message and/or the downlink message.
- the sensor adaptation technology of the present invention can simultaneously adapt to a plurality of different types of sensors, and solves the problem that the traditional IoT gateway can only be used for a single type of sensor.
- the division of the Internet of Things gateway is not limited to the above division and name, and any code that can implement the corresponding function is
- the present invention is not limited to the use of the sensor structure, and any code that can implement the adaptation function is within the scope of the present invention; the sensor type is not limited to two, and any number of sensor types are in the present invention.
- the sensor function is not limited to the temperature sensor, temperature controller, smoke sensor and audible alarm sensor, any sensor is within the scope of the invention;
- the sensor interface device file is not limited to ttyUSBO and ttyUSBl, any device file is in this Within the scope of the invention. Any changes or substitutions that may be readily conceived within the scope of the present invention are intended to be included within the scope of the present invention.
- the present invention provides a method and system for implementing sensor adaptation, which can be adapted by the sensor adaptation module to different sensor types, and the uplink message and/or the downlink message are processed according to the corresponding sensor type; Messages and/or downstream messages, enabling message interaction between the sensor adaptation module and the sensor.
- the technology for realizing sensor adaptation of the present invention can be the same Adapting to many different types of sensors solves the problem that traditional IoT gateways can only be used with a single type of sensor.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Telephonic Communication Services (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
Description
一种实现传感器适配的方法和系统 技术领域 Method and system for realizing sensor adaptation
本发明涉及通信领域, 具体涉及一种实现传感器适配的方法和系统。 背景技术 The present invention relates to the field of communications, and in particular, to a method and system for implementing sensor adaptation. Background technique
物联网 ( The Internet of Things )技术是目前通讯行业非常热门的一项 技术。 简而言之, 物联网就是物物相连的互联网。 物联网具有两层含义: 第一, 物联网的核心和基础仍然是互联网, 是在互联网基础上延伸和扩展 的网络; 第二, 物联网的用户端延伸和扩展到了任何物品与物品之间, 以 进行信息交换和通讯。 The Internet of Things technology is a very popular technology in the communications industry. In short, the Internet of Things is the Internet that connects things. The Internet of Things has two meanings: First, the core and foundation of the Internet of Things is still the Internet, which is a network that extends and expands on the Internet. Second, the user end of the Internet of Things extends and extends between any item and item. For information exchange and communication.
随着社会经济的不断发展和市场竟争的日益深化, 各行各业都希望通 过加快自身信息化建设来提高工作效率、 降低生产和运行成本, 全面增强 市场竟争力。 物联网技术综合了通信和网络技术, 将遍布在人们日常生活 中的机器设备连接成网络, 使这些设备变得更加智能, 从而可以创造出丰 富的应用, 给日常生活、 工业生产等方式带来新一轮的变革。 在当今世界, 物联网具有巨大的市场潜力, 未来通信的主体将是物联网通信。 With the continuous development of the social economy and the deepening of market competition, all walks of life hope to improve work efficiency, reduce production and operation costs, and comprehensively enhance market competitiveness by accelerating their own information construction. IoT technology integrates communication and network technologies to connect machines and devices that are used in people's daily lives into a network, making these devices smarter, thus creating rich applications for everyday life, industrial production, etc. A new round of change. In today's world, the Internet of Things has huge market potential, and the main body of future communication will be Internet of Things communication.
物联网一般分为三个层次: 传感层、 网络层和应用层。 物联网网关位 于传感层和网络层之间, 是面向传感器网络的接入网关, 为用户提供物联 网接入业务。 传感器网络节点类型丰富, 使用环境复杂, 一个业务应用中 的传感器终端数量根据业务复杂度而有所不同, 如果每个传感器终端都通 过自身接入模块来接入电信网络, 将增加传感器终端的复杂度和成本, 物 联网网关的主要作用是解决传感器终端接入物联网的瓶颈。 通过与传感器 网络之间采用短距离无线通信技术, 物联网网关可以方便地采集感知数据; 同时通过与运营商已有公共网络的连接, 完成传感器数据转发、 控制、 信 令交换以及编解码等功能。 The Internet of Things is generally divided into three levels: the sensing layer, the network layer, and the application layer. The IoT gateway is located between the sensing layer and the network layer. It is an access gateway for sensor networks and provides users with IoT access services. Sensor network nodes are rich in types and complex in use environment. The number of sensor terminals in a service application varies according to service complexity. If each sensor terminal accesses the telecommunication network through its own access module, the complexity of the sensor terminal will increase. Degree and cost, the main role of the IoT gateway is to solve the bottleneck of sensor terminals accessing the Internet of Things. Through the use of short-range wireless communication technology with the sensor network, the IoT gateway can easily collect sensory data; at the same time, through the connection with the operator's existing public network, sensor data forwarding, control, and information are completed. Let exchange and codec and other functions.
通过物联网网关, 可以将已建和待建的分散、 独立的传感器设备和无 处不在的电信运营商网络连接起来, 实现跨区域、 全球范围内的统一管理 和资源共享, 为各行业的管理决策者提供一种全新的直观管理工具, 以提 高工作绩效。 Through the IoT gateway, you can connect distributed and independent sensor devices that have been built and to be built, and the ubiquitous telecom carrier network to achieve unified management and resource sharing across regions and globally. Decision makers offer a new intuitive management tool to improve job performance.
目前, 传统的物联网网关的功能仅是实现某一种类型的传感器协议的 处理。 但目前市场上的传感器存在以下问题: 很多厂家都在生产传感器, 而不同厂家的传感器对外硬件接口各不相同, 传感器数据格式也各不相同。 因此, 物联网网关需要能适配多种不同类型的传感器, 而传统的物联网网 关只适用于单一类型的传感器, 不能同时适配多种不同类型的传感器。 发明内容 At present, the function of the traditional IoT gateway is only to realize the processing of a certain type of sensor protocol. However, the current sensors on the market have the following problems: Many manufacturers are producing sensors, and the sensors of different manufacturers have different external hardware interfaces, and the sensor data formats are also different. Therefore, IoT gateways need to be able to adapt to many different types of sensors, while traditional IoT gateways are only suitable for a single type of sensor and cannot accommodate multiple different types of sensors at the same time. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种实现传感器适配的方法和 系统, 使物联网网关能够同时适配多种不同类型的传感器, 解决了传统物 联网网关只能用于单一类型传感器的问题。 In view of this, the main object of the present invention is to provide a method and system for implementing sensor adaptation, which enables an IoT gateway to simultaneously adapt to a plurality of different types of sensors, and solves the problem that the traditional IoT gateway can only be used for a single type of sensor. The problem.
为达到上述目的, 本发明的技术方案是这样实现的: In order to achieve the above object, the technical solution of the present invention is achieved as follows:
一种实现传感器适配的方法, 包括: A method for implementing sensor adaptation, comprising:
传感器适配模块适配不同的传感器类型, 按照对应的传感器类型处理 上行消息和 /或下行消息; 传感器交互模块针对所述上行消息和 /或下行消 息, 实现传感器适配模块与传感器之间的消息交互。 The sensor adaptation module adapts different sensor types, and processes the uplink message and/or the downlink message according to the corresponding sensor type; the sensor interaction module implements the message between the sensor adaptation module and the sensor for the uplink message and/or the downlink message. Interaction.
其中, 所述传感器适配模块适配不同的传感器类型, 按照对应的传感 器类型处理上行消息的过程包括: The process of adapting the sensor adaptation module to different sensor types and processing the uplink message according to the corresponding sensor type includes:
传感器交互模块接收传感器消息并发送给传感器适配模块; 传感器适 配模块根据收到的传感器消息判断传感器类型, 并根据该传感器类型搜索 传感器数据结构, 据此解析收到的所述传感器消息中的传感器数据; The sensor interaction module receives the sensor message and sends the sensor message to the sensor adaptation module. The sensor adaptation module determines the sensor type according to the received sensor message, and searches for the sensor data structure according to the sensor type, according to which the received sensor message is parsed. Sensor data
并且, 在需要时将处理所述上行消息的结果发送给物联网平台。 其中, 发送所述结果给物联网平台之前, 还根据不同的物联网平台对 所述上行消息进行分析和处理, 以便物联网平台解析。 And, the result of processing the uplink message is sent to the Internet of Things platform when needed. Before sending the result to the Internet of Things platform, the uplink message is analyzed and processed according to different IoT platforms, so that the Internet of Things platform can be parsed.
其中, 所述传感器适配模块适配不同的传感器类型, 按照对应的传感 器类型处理下行消息的过程包括: The process of adapting the sensor adaptation module to different sensor types and processing the downlink message according to the corresponding sensor type includes:
传感器适配模块根据接收的协议数据判断传感器类型, 根据判断出的 传感器类型搜索传感器数据结构, 并应用该传感器数据结构封装传感器数 据; The sensor adaptation module determines the sensor type according to the received protocol data, searches for the sensor data structure according to the determined sensor type, and applies the sensor data structure to encapsulate the sensor data;
并且, 在需要时将处理所述下行消息所得的结果通过传感器交互模块 发送给传感器。 And, the result of processing the downlink message is sent to the sensor through the sensor interaction module when needed.
其中, 在处理所述下行消息之前, 还根据不同的物联网平台对下行消 息进行预处理, 以方便传感器适配模块分析和处理。 Before processing the downlink message, the downlink message is pre-processed according to different IoT platforms to facilitate analysis and processing by the sensor adaptation module.
其中, 还由传感器适配模块维护不同的传感器类型; 所述维护包括保 存、 增加、 删减不同的传感器类型。 Among them, different sensor types are also maintained by the sensor adaptation module; the maintenance includes saving, adding, and deleting different sensor types.
一种实现传感器适配的系统, 包括传感器适配模块、 传感器交互模块; 其中, A system for implementing sensor adaptation, comprising a sensor adaptation module and a sensor interaction module; wherein
所述传感器适配模块, 用于适配不同的传感器类型, 按照对应的传感 器类型处理上行消息和 /或下行消息; The sensor adaptation module is configured to adapt different sensor types, and process uplink messages and/or downlink messages according to corresponding sensor types;
所述传感器交互模块, 用于针对所述上行消息和 /或下行消息, 实现传 感器适配模块与传感器之间的消息交互。 The sensor interaction module is configured to implement message interaction between the sensor adaptation module and the sensor for the uplink message and/or the downlink message.
其中, 所述传感器适配模块适配不同的传感器类型, 按照对应的传感 器类型处理上行消息时, 用于: The sensor adaptation module adapts to different sensor types and processes the uplink message according to the corresponding sensor type, and is used for:
根据来自传感器交互模块的传感器消息判断传感器类型, 并根据该传 感器类型搜索传感器数据结构 , 据此解析收到的所述传感器消息中的传感 器数据; Determining the sensor type according to the sensor message from the sensor interaction module, and searching the sensor data structure according to the sensor type, and analyzing the sensor data in the received sensor message according to the sensor data;
并且, 在需要时将处理所述上行消息的结果发送给物联网平台。 其中, 发送所述结果给物联网平台之前, 所述传感器适配模块还用于: 根据不同的物联网平台对所述上行消息进行分析和处理, 以便物联网平台 解析。 And, the result of processing the uplink message is sent to the Internet of Things platform when needed. The sensor adaptation module is further configured to: analyze and process the uplink message according to different IoT platforms, so that the Internet of Things platform can be parsed before sending the result to the Internet of Things platform.
其中, 所述传感器适配模块适配不同的传感器类型, 按照对应的传感 器类型处理下行消息时, 用于: The sensor adaptation module adapts to different sensor types, and when processing the downlink message according to the corresponding sensor type, is used for:
根据接收的协议数据判断传感器类型, 根据判断出的传感器类型搜索 传感器数据结构, 并应用该传感器数据结构封装传感器数据; Determining the sensor type according to the received protocol data, searching for the sensor data structure according to the determined sensor type, and applying the sensor data structure to encapsulate the sensor data;
并且, 在需要时将处理所述下行消息所得的结果通过传感器交互模块 发送给传感器。 And, the result of processing the downlink message is sent to the sensor through the sensor interaction module when needed.
其中, 在处理所述下行消息之前, 所述传感器适配模块还用于: 根据 不同的物联网平台对下行消息进行预处理, 以方便传感器适配模块分析和 处理。 The sensor adaptation module is further configured to: preprocess the downlink message according to different IoT platforms to facilitate analysis and processing by the sensor adaptation module.
其中, 所述传感器适配模块, 还用于: 维护不同的传感器类型; 所述 维护包括保存、 增加、 删减不同的传感器类型。 The sensor adaptation module is further configured to: maintain different sensor types; and the maintenance includes saving, adding, and deleting different sensor types.
其中, 所述传感器适配模块、 传感器交互模块设置于物联网网关中; 或者, 相互独立或共同设置于物联网网关以外的功能实体中。 The sensor adaptation module and the sensor interaction module are disposed in the Internet of Things gateway; or are disposed independently of each other or in a functional entity other than the IoT gateway.
本发明实现传感器适配的技术能够同时适配多种不同类型的传感器, 解决了传统物联网网关只能用于单一类型的传感器的问题。 附图说明 The technology of the sensor adaptation of the invention can simultaneously adapt to a plurality of different types of sensors, and solves the problem that the traditional IoT gateway can only be used for a single type of sensor. DRAWINGS
图 1为本发明实施例的物联网网关架构示意图; 1 is a schematic structural diagram of an Internet of Things gateway according to an embodiment of the present invention;
图 2为本发明实施例的传感器适配模块初始化流程图; 2 is a flowchart of initializing a sensor adaptation module according to an embodiment of the present invention;
图 3为本发明实施例的物联网网关的上行链路处理流程图; 3 is a flowchart of uplink processing of an Internet of Things gateway according to an embodiment of the present invention;
图 4为本发明实施例的物联网网关的下行链路处理流程图; 4 is a flowchart of downlink processing of an Internet of Things gateway according to an embodiment of the present invention;
图 5为本发明实施例实现传感器适配的流程简图。 具体实施方式 FIG. 5 is a schematic flowchart of implementing sensor adaptation according to an embodiment of the present invention. detailed description
在实际应用中, 能够适配多种传感器的物联网网关可以包括传感器适 配模块、 传感器交互模块, 如图 1所示。 其中, In practical applications, an IoT gateway capable of adapting multiple sensors may include a sensor adaptation module and a sensor interaction module, as shown in FIG. among them,
传感器适配模块能够实现以下功能: The sensor adapter module can achieve the following functions:
1、 传感器适配模块能适配不同的传感器类型, 处理上行消息。 如: 根 据不同的传感器类型, 分析和处理来自传感器交互模块的消息。 如果需要, 则将处理所述消息的结果发送给物联网平台。 发送所述结果给物联网平台 之前, 可以根据不同的物联网平台对消息进行分析和处理, 以便物联网平 台解析。 1. The sensor adaptation module can adapt to different sensor types and process upstream messages. For example: Analyze and process messages from sensor interaction modules based on different sensor types. If necessary, the result of processing the message is sent to the Internet of Things platform. Before sending the results to the IoT platform, messages can be analyzed and processed according to different IoT platforms for IoT platform resolution.
2、 传感器适配模块能适配不同的传感器类型, 处理下行消息。 如: 根 据不同的传感器类型, 分析和处理来自物联网平台的相关消息。 在处理所 述消息之前, 可以根据不同的物联网平台对消息进行预处理, 以方便传感 器适配模块分析和处理。 并且, 如果需要, 可以将处理所述消息所得的结 果通过传感器交互模块发送给传感器。 2. The sensor adaptation module can adapt to different sensor types and process downstream messages. For example: Analyze and process related messages from the IoT platform based on different sensor types. Before processing the message, the message can be pre-processed according to different IoT platforms to facilitate sensor adaptation module analysis and processing. And, if desired, the results of processing the message can be sent to the sensor via the sensor interaction module.
3、 传感器适配模块能很方便地维护不同的传感器类型, 如: 保存、 增 加、 删减不同的传感器类型。 当需要使用某传感器类型时, 可以在传感器 适配模块中注册该传感器类型; 当不再需要使用某传感器类型时, 可以在 传感器适配模块中注销该传感器类型。 3. The sensor adapter module can easily maintain different sensor types, such as: save, increase, and delete different sensor types. When a sensor type is required, the sensor type can be registered in the sensor adapter module; when a sensor type is no longer needed, the sensor type can be deregistered in the sensor adapter module.
可见, 传感器适配模块能够适配不同的传感器类型, 按照对应的传感 器类型处理上行消息和 /或下行消息。 It can be seen that the sensor adaptation module can adapt different sensor types and process uplink messages and/or downlink messages according to the corresponding sensor type.
传感器交互模块则能够实现以下功能: The sensor interaction module can achieve the following functions:
1、 接收来自传感器适配模块的消息, 发送给传感器; 1. Receive a message from the sensor adaptation module and send it to the sensor;
2、 接收来自传感器的消息, 发送给传感器适配模块。 2. Receive a message from the sensor and send it to the sensor adapter module.
可见, 传感器交互模块能够针对所述上行消息和 /或下行消息, 实现传 感器适配模块与传感器之间的消息交互。 下面结合附图及具体实施例对本发明作进一步的详细描述。 假设有某种类型 (暂命名为 SXC ) 的温度传感器和温度控制器, 以及 另外一种类型 (暂命名为 TNW )的烟雾传感器和声音告警传感器。 在对这 几个传感器进行适配时, 可以约定: SXC 的温度传感器、 温度控制器以及 TNW的烟雾传感器、 声音告警传感器的传感器编号分别为 1、 2、 3、 4, 地 址分别为 " 11111111 "、 "22222222", "33333333"、 "44444444"。 SXC传感 器使用 ttyUSBO设备文件与物联网网关交互信息, TNW传感器使用 ttyUSBl 设备文件与物联网网关交互信息。 It can be seen that the sensor interaction module can implement message interaction between the sensor adaptation module and the sensor for the uplink message and/or the downlink message. The present invention will be further described in detail below with reference to the drawings and specific embodiments. Suppose there is a type (temporarily named SXC) temperature sensor and temperature controller, and another type (temporarily named TNW) smoke sensor and audible alarm sensor. When adapting these sensors, it can be agreed that: SXC temperature sensor, temperature controller and TNW smoke sensor, audible alarm sensor sensor numbers are 1, 2, 3, 4, respectively, the address is "11111111" , "22222222", "33333333", "44444444". The SXC sensor uses the ttyUSBO device file to interact with the IoT gateway. The TNW sensor uses the ttyUSBl device file to interact with the IoT gateway.
传感器数据结构包括但不限于以下元素中至少之一: The sensor data structure includes, but is not limited to, at least one of the following elements:
1、 传感器类型; 1, sensor type;
2、 传感器接入设备文件输出句柄; 2. The sensor access device file output handle;
3、 传感器数据解析函数指针; 3. Sensor data analysis function pointer;
4、 传感器控制指令封装函数指针。 4. The sensor control instruction encapsulates the function pointer.
传感器适配模块的初始化过程包括以下步驟: The initialization process of the sensor adaptation module includes the following steps:
步驟一: 定义 SXC传感器数据结构和 TNW传感器数据结构; 步驟二: 在物联网网关中注册 SXC传感器数据结构和 TNW传感器数 据结构, 以注册的所述数据结构作为传感器数据结构。 Step 1: Define the SXC sensor data structure and the TNW sensor data structure. Step 2: Register the SXC sensor data structure and the TNW sensor data structure in the IoT gateway, and use the registered data structure as the sensor data structure.
可见, 传感器适配模块的初始化流程可以表示如图 2所示: 需要定义 传感器数据结构, 并注册传感器数据结构。 It can be seen that the initialization process of the sensor adaptation module can be represented as shown in Figure 2: It is necessary to define the sensor data structure and register the sensor data structure.
在进行上行链路处理时, 可以执行如下步驟: When performing uplink processing, the following steps can be performed:
步驟一: 传感器交互模块读取设备文件 ttyUSBO 的数据, 传给传感器 适配模块; Step 1: The sensor interaction module reads the data of the device file ttyUSBO and transmits it to the sensor adaptation module.
步驟二: 传感器适配模块判断出收到的传感器数据是由 SXC的传感器 发出; Step 2: The sensor adaptation module determines that the received sensor data is sent by the SXC sensor;
步驟三: 传感器适配模块在已注册的传感器数据结构中获取 SXC传感 器数据结构; Step 3: The sensor adaptation module acquires SXC sensing in the registered sensor data structure Data structure
步驟四: 传感器适配模块使用 SXC传感器数据结构中的 "传感器数据 解析函数指针", 解析传感器数据。 Step 4: The sensor adaptation module uses the "sensor data analysis function pointer" in the SXC sensor data structure to resolve the sensor data.
可见, 上行链路处理流程可以表示如图 3 所示。 其中, 传感器交互模 块需要接收传感器消息并发送给传感器适配模块; 传感器适配模块则根据 收到的传感器消息判断传感器类型, 并根据该传感器类型搜索传感器数据 结构, 据此解析收到的所述传感器消息中的传感器数据。 It can be seen that the uplink processing flow can be represented as shown in Figure 3. The sensor interaction module needs to receive the sensor message and send it to the sensor adaptation module; the sensor adaptation module determines the sensor type according to the received sensor message, and searches for the sensor data structure according to the sensor type, according to which the received Sensor data in sensor messages.
在进行下行链路处理时, 可以执行如下步驟: When performing downlink processing, the following steps can be performed:
步驟一: 传感器适配模块接收来自物联网平台的消息; Step 1: The sensor adaptation module receives the message from the Internet of Things platform;
步驟二: 传感器适配模块从所述消息中得到传感器编号为 4,据此确认 该消息对应于 TNW传感器, 以及发送所述消息的传感器是 TNW类型的声 音告警传感器; Step 2: The sensor adaptation module obtains the sensor number 4 from the message, according to which it is confirmed that the message corresponds to the TNW sensor, and the sensor that sends the message is a TNW type sound alarm sensor;
步驟三:传感器适配模块在已注册的传感器结构中获取 TNW传感器数 据结构; Step 3: The sensor adaptation module acquires the TNW sensor data structure in the registered sensor structure;
步驟四: 传感器适配模块根据 TNW传感器数据结构中的 "传感器控制 指令封装函数指针", 解析来自物联网平台的所述 TNW传感器的数据, 并 将解析所得数据封装成传感器数据; Step 4: The sensor adaptation module parses the data of the TNW sensor from the Internet of Things platform according to the “sensor control instruction package function pointer” in the data structure of the TNW sensor, and encapsulates the parsed data into sensor data;
步驟五:传感器适配模块将封装好的 TNW传感器数据发送给传感器交 互模块, 由传感器交互模块通过设备驱动文件 ttyUSB 1发送给传感器。 Step 5: The sensor adaptation module sends the encapsulated TNW sensor data to the sensor interaction module, and the sensor interaction module sends the signal to the sensor through the device driver file ttyUSB 1.
可见, 下行链路处理流程可以表示如图 4所示。 其中, 传感器适配模 块需要根据接收的协议数据判断传感器类型, 根据判断出的传感器类型搜 索传感器数据结构, 并应用该传感器数据结构封装传感器数据, 再发送封 装好的传感器数据。 传感器交互模块则可以接收来自传感器适配模块的传 感器数据, 之后再发送出去。 It can be seen that the downlink processing flow can be represented as shown in FIG. 4. The sensor adaptation module needs to determine the sensor type according to the received protocol data, search for the sensor data structure according to the determined sensor type, and apply the sensor data structure to encapsulate the sensor data, and then send the sealed sensor data. The sensor interaction module can then receive sensor data from the sensor adapter module and then send it out.
需要说明的是, 所述传感器适配模块、 传感器交互模块也可以相互独 立或共同设置于物联网网关以外的功能实体中。 It should be noted that the sensor adaptation module and the sensor interaction module may also be independent of each other. Set up or co-located in a functional entity other than the IoT gateway.
结合以上各实施例可见, 本发明实现传感器适配的操作思路可以表示 如图 5所示的流程, 该流程包括以下步驟: As shown in the above embodiments, the operation of the sensor adaptation of the present invention may represent the process shown in FIG. 5, and the process includes the following steps:
步驟 510: 传感器适配模块适配不同的传感器类型,按照对应的传感器 类型处理上行消息和 /或下行消息; Step 510: The sensor adaptation module adapts different sensor types, and processes uplink messages and/or downlink messages according to corresponding sensor types.
步驟 520: 传感器交互模块针对所述上行消息和 /或下行消息, 实现传 感器适配模块与传感器之间的消息交互。 Step 520: The sensor interaction module implements message interaction between the sensor adaptation module and the sensor for the uplink message and/or the downlink message.
综上所述可见, 无论是方法还是系统, 本发明实现传感器适配的技术 能够同时适配多种不同类型的传感器, 解决了传统物联网网关只能用于单 一类型的传感器的问题。 In summary, whether the method or the system, the sensor adaptation technology of the present invention can simultaneously adapt to a plurality of different types of sensors, and solves the problem that the traditional IoT gateway can only be used for a single type of sensor.
以上所述, 仅为本发明较有代表性的具体实施方式, 但本发明的保护 范围并不局限于此, 物联网网关的划分不限于上述划分和名字, 任何能实 现相应功能的代码都在本发明保护范围之内; 具体实现方式不限于使用传 感器结构体, 任何能实现适配功能的代码都在本发明保护范围之内; 传感 器类型不限于两个, 任何数量的传感器类型都在本发明保护范围之内; 传 感器功能不限于温度传感器、 温度控制器、 烟雾传感器和声音告警传感器, 任何传感器都在本发明保护范围之内;传感器接口设备文件不限于 ttyUSBO 和 ttyUSBl ,任何设备文件都在本发明保护范围之内。任何熟悉本技术领域 的技术人员在本发明揭露的技术范围内, 可轻易想到的变化或替换, 都应 涵盖在本发明的保护范围之内。 工业实用性 The foregoing is only a representative embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. The division of the Internet of Things gateway is not limited to the above division and name, and any code that can implement the corresponding function is The present invention is not limited to the use of the sensor structure, and any code that can implement the adaptation function is within the scope of the present invention; the sensor type is not limited to two, and any number of sensor types are in the present invention. The sensor function is not limited to the temperature sensor, temperature controller, smoke sensor and audible alarm sensor, any sensor is within the scope of the invention; the sensor interface device file is not limited to ttyUSBO and ttyUSBl, any device file is in this Within the scope of the invention. Any changes or substitutions that may be readily conceived within the scope of the present invention are intended to be included within the scope of the present invention. Industrial applicability
本发明提供了一种实现传感器适配的方法和系统, 均可由传感器适配 模块适配不同的传感器类型, 按照对应的传感器类型处理上行消息和 /或下 行消息; 由传感器交互模块针对所述上行消息和 /或下行消息, 实现传感器 适配模块与传感器之间的消息交互。 本发明实现传感器适配的技术能够同 时适配多种不同类型的传感器, 解决了传统物联网网关只能用于单一类型 的传感器的问题。 The present invention provides a method and system for implementing sensor adaptation, which can be adapted by the sensor adaptation module to different sensor types, and the uplink message and/or the downlink message are processed according to the corresponding sensor type; Messages and/or downstream messages, enabling message interaction between the sensor adaptation module and the sensor. The technology for realizing sensor adaptation of the present invention can be the same Adapting to many different types of sensors solves the problem that traditional IoT gateways can only be used with a single type of sensor.
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110122767.8 | 2011-05-12 | ||
| CN201110122767.8A CN102202093B (en) | 2011-05-12 | 2011-05-12 | A kind of method and system realizing transducer adaptation |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2012152133A1 true WO2012152133A1 (en) | 2012-11-15 |
Family
ID=44662483
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2012/072747 Ceased WO2012152133A1 (en) | 2011-05-12 | 2012-03-21 | Method and system for implementing sensor adaptation |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN102202093B (en) |
| WO (1) | WO2012152133A1 (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10230681B2 (en) | 2015-12-14 | 2019-03-12 | International Business Machines Corporation | Method and apparatus for unified message adaptation |
| CN111435947A (en) * | 2019-01-11 | 2020-07-21 | 阿姆Ip有限公司 | Electronic message control |
| GB2580420A (en) * | 2019-01-11 | 2020-07-22 | Arm Ip Ltd | Electronic message adaptation |
| US10997376B2 (en) | 2019-01-11 | 2021-05-04 | Arm Ip Limited | Electronic message translation management |
| US12102590B2 (en) | 2020-03-30 | 2024-10-01 | Zoll Medical Corporation | Medical device system and hardware for sensor data acquisition |
Families Citing this family (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102202093B (en) * | 2011-05-12 | 2016-01-20 | 南京中兴新软件有限责任公司 | A kind of method and system realizing transducer adaptation |
| CN102638560A (en) * | 2011-12-14 | 2012-08-15 | 中兴通讯股份有限公司 | Gateway of internet of things and method for connecting gateway with sensing equipment |
| CN102594871B (en) * | 2011-12-31 | 2016-03-02 | 山东中创软件工程股份有限公司 | A kind of data encapsulation method, system, adapter and Internet of things middleware |
| US9057801B2 (en) * | 2012-01-11 | 2015-06-16 | Kjt Enterprises, Inc. | Geophysical data acquisition system |
| CN103428627B (en) * | 2012-05-22 | 2016-12-14 | 中国移动通信集团江苏有限公司 | The transfer approach of data, Internet of things system and related device in Internet of things system |
| US8886785B2 (en) * | 2012-07-17 | 2014-11-11 | The Procter & Gamble Company | Home network of connected consumer devices |
| CN103973717B (en) * | 2013-01-24 | 2017-11-21 | 中国科学院计算技术研究所 | A kind of internet-of-things terminal remolded |
| CN104010005A (en) * | 2013-02-21 | 2014-08-27 | 中兴通讯股份有限公司 | Method and system supporting access of sensors of different types |
| BR112015032084A2 (en) * | 2013-06-27 | 2017-07-25 | Koninklijke Philips Nv | monitoring device having a sensor interface, and method for verifying compatibility of a sensor type |
| CN103791925B (en) * | 2014-03-03 | 2017-01-11 | 西南大学 | Reconfigurable temperature transmitter and reconfiguration method |
| CN104348921B (en) * | 2014-10-30 | 2019-01-04 | 江苏博大光通物联科技有限公司 | Multisensor unified access method and system |
| CN107332849A (en) * | 2017-07-06 | 2017-11-07 | 李长云 | A kind of sensing data analysis method and device |
| CN108667805A (en) * | 2018-04-08 | 2018-10-16 | 贵州云通曙光技术服务有限公司 | The analytic method and its device and computer readable storage medium of data |
| CN109814501B (en) * | 2018-12-29 | 2020-03-31 | 北京农业信息技术研究中心 | An information collection system and method for flexible access of field detection equipment |
| CN113034873A (en) * | 2019-12-25 | 2021-06-25 | 西安诺瓦星云科技股份有限公司 | Sensor communication method, device and system |
| CN115720231A (en) * | 2022-11-22 | 2023-02-28 | 重庆长安汽车股份有限公司 | Sensing data processing method and device, electronic equipment and storage medium |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101984706A (en) * | 2010-11-04 | 2011-03-09 | 中国电信股份有限公司 | Gateway of Internet of things and automatic adaptation method of communication protocol |
| CN102202093A (en) * | 2011-05-12 | 2011-09-28 | 南京中兴新软件有限责任公司 | Method for realizing sensor adaption and system thereof |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101739594B (en) * | 2009-12-28 | 2013-08-28 | 中国人民解放军总后勤部军事交通运输研究所 | Sensor virtual spreadsheet-based self-descriptive sensing tag system |
-
2011
- 2011-05-12 CN CN201110122767.8A patent/CN102202093B/en active Active
-
2012
- 2012-03-21 WO PCT/CN2012/072747 patent/WO2012152133A1/en not_active Ceased
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101984706A (en) * | 2010-11-04 | 2011-03-09 | 中国电信股份有限公司 | Gateway of Internet of things and automatic adaptation method of communication protocol |
| CN102202093A (en) * | 2011-05-12 | 2011-09-28 | 南京中兴新软件有限责任公司 | Method for realizing sensor adaption and system thereof |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10230681B2 (en) | 2015-12-14 | 2019-03-12 | International Business Machines Corporation | Method and apparatus for unified message adaptation |
| US10680996B2 (en) | 2015-12-14 | 2020-06-09 | International Business Machines Corporation | Method and apparatus for unified message adaptation |
| US11290415B2 (en) | 2015-12-14 | 2022-03-29 | International Business Machines Corporation | Method and apparatus for unified message adaptation |
| CN111435947A (en) * | 2019-01-11 | 2020-07-21 | 阿姆Ip有限公司 | Electronic message control |
| GB2580419A (en) * | 2019-01-11 | 2020-07-22 | Arm Ip Ltd | Electronic message control |
| GB2580420A (en) * | 2019-01-11 | 2020-07-22 | Arm Ip Ltd | Electronic message adaptation |
| US10997376B2 (en) | 2019-01-11 | 2021-05-04 | Arm Ip Limited | Electronic message translation management |
| GB2580419B (en) * | 2019-01-11 | 2021-07-07 | Arm Ip Ltd | Electronic message control |
| US11245567B2 (en) | 2019-01-11 | 2022-02-08 | Arm Ip Limited | Electronic message adaptation |
| GB2580420B (en) * | 2019-01-11 | 2022-02-16 | Arm Ip Ltd | Electronic message adaptation |
| US12102590B2 (en) | 2020-03-30 | 2024-10-01 | Zoll Medical Corporation | Medical device system and hardware for sensor data acquisition |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102202093B (en) | 2016-01-20 |
| CN102202093A (en) | 2011-09-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2012152133A1 (en) | Method and system for implementing sensor adaptation | |
| WO2012152132A1 (en) | Method and system for realizing application platform adaptation | |
| CN102136933B (en) | Equipment management method, middleware and machine communication platform, equipment and system | |
| CN104052759B (en) | System for realizing add-and-play technology of internet of things | |
| CN109889416B (en) | A smart home system and construction method based on microservice architecture | |
| CN115278638A (en) | Perceptual data acquisition method, device, device and storage medium | |
| CN115278639A (en) | Perceptual data acquisition method, device, device and storage medium | |
| CN110365758A (en) | A Protocol Adaptive IoT Gateway System | |
| EP4024763A1 (en) | Network congestion control method, node, system and storage medium | |
| CN102802139A (en) | Gateway data adapting system and method of Internet of Things | |
| CN101964739B (en) | Data transmission method, device and system | |
| CN103051426B (en) | The sending method of a kind of data or signaling and device | |
| CN103179133B (en) | Based on the client of entity class and the method for server communication | |
| WO2012092735A1 (en) | Internet of things network system and data processing method | |
| CN102567026B (en) | Mobile solution constructing system and Mobile solution construction method | |
| CN113207194B (en) | Multi-mode communication implementation method and device based on kylin mobile operating system | |
| CN101141419A (en) | Communication method between digital home devices based on heterogeneous network protocol | |
| Azzarà et al. | Middleware solutions in WSN: The IoT oriented approach in the ICSI project | |
| WO2015103848A1 (en) | Method, system and terminal for realizing network access via wifi | |
| CN110851252A (en) | Protocol conversion equipment and protocol conversion method based on TSN (traffic service network) architecture | |
| CN103117881A (en) | Resource management system of Internet of Things | |
| CN114338340A (en) | System and method for fusing short-distance wireless communication network and narrow-band broadband network | |
| CN115022901A (en) | 5G side service flow resource allocation method for 5G-TSN convergence | |
| WO2018130161A1 (en) | Cloud computing service-based efficient transmission method and device | |
| CN110460662A (en) | Method and system for processing internet of things data |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12782313 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 12782313 Country of ref document: EP Kind code of ref document: A1 |