[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN102573135B - Wireless sensor network node controller, core bottom plate and wireless network access method for sensor - Google Patents

Wireless sensor network node controller, core bottom plate and wireless network access method for sensor Download PDF

Info

Publication number
CN102573135B
CN102573135B CN201210034095.XA CN201210034095A CN102573135B CN 102573135 B CN102573135 B CN 102573135B CN 201210034095 A CN201210034095 A CN 201210034095A CN 102573135 B CN102573135 B CN 102573135B
Authority
CN
China
Prior art keywords
spi
uart
interface
communication interface
general communication
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
CN201210034095.XA
Other languages
Chinese (zh)
Other versions
CN102573135A (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.)
Shanghai Advanced Research Institute of CAS
Original Assignee
Shanghai Advanced Research Institute of CAS
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 Shanghai Advanced Research Institute of CAS filed Critical Shanghai Advanced Research Institute of CAS
Priority to CN201210034095.XA priority Critical patent/CN102573135B/en
Publication of CN102573135A publication Critical patent/CN102573135A/en
Application granted granted Critical
Publication of CN102573135B publication Critical patent/CN102573135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种无线传感网节点控制器,其包括一核心底板、多个接口转换子模块;核心底板包括多个通用通讯接口、多个UART/SPI复用选择开关、一协议解析处理模块;协议解析处理模块,用于对核心底板各个通用通讯接口接收的数据,或核心底板发往各个通用通讯接口的数据,按照UART、SPI或I2C通讯规约进行处理;接口转换子模块包括一同上述核心底板的通用通讯接口的相适配的子模块通用通讯接口、一传感器接口,接口转换子模块用于分别将各种类型的传感器接口的数据转换为UART、SPI或I2C数据,并输出至所述子模块通用通讯接口的相应脚。本发明还公开了一种核心底板、一种传感器无线入网方法。本发明能使传感网节点控制器的兼容性增强并且便于小型化。

The invention discloses a wireless sensor network node controller, which includes a core base board and multiple interface conversion sub-modules; the core base board includes multiple general communication interfaces, multiple UART/SPI multiplexing selection switches, and a protocol analysis process module; the protocol analysis and processing module, which is used to process the data received by each general communication interface of the core chassis, or the data sent by the core chassis to each general communication interface, according to the UART, SPI or I2C communication protocol; the interface conversion sub-module includes the above The general communication interface of the core base board is compatible with the sub-module general communication interface, a sensor interface, and the interface conversion sub-module is used to convert the data of various types of sensor interfaces into UART, SPI or I2C data, and output them to all The corresponding pin of the general communication interface of the sub-module. The invention also discloses a core bottom board and a wireless network access method for sensors. The invention can enhance the compatibility of the sensor network node controller and facilitate miniaturization.

Description

无线传感网节点控制器、核心底板及传感器无线入网方法Wireless sensor network node controller, core backplane and sensor wireless network access method

技术领域 technical field

本发明涉及信息采集和无线通信技术,特别涉及一种无线传感网节点控制器、核心底板及传感器无线入网方法。The invention relates to information collection and wireless communication technology, in particular to a wireless sensor network node controller, a core base board and a sensor wireless network access method.

背景技术 Background technique

随着无线通讯技术和集成电路技术的发展,许多领域(如环境监测、火灾逃生引导、工业设监控备)的数据采集已经逐渐脱离了原有的有线集中监测模式,演变成分布式无线传感网节点——网关汇聚节点——上位机系统。目前,这种体系中的传感网节点控制器,一种为固定组合的传感网节点控制器,即无线收发器——节点微处理系统——信号调理电路,再接4~20mA的传感器,该种传感网节点控制器只有一种传感器接口,集成化程度较高,但其不适于多种接口和多种数据格式的传感器入网;另一种为兼容性强的传感网节点控制器,该种传感网节点控制器有多种的外部传感器接口,如UART(Universal Asynchronous Receiver/Transmitter,通用异步收发器)、SPI(serial peripheral interface,串行外设接口)、I2C(Inter-Integrated Circuit,I2C总线)、RS485、RS232、RS422、CAN(Controller Area Network,控制器局域网络)、USB(Universal SerialBUS,通用串行总线)、TCP/IP(Transmission Control Protocol/InternetProtocol,中传输控制协议/因特网互联协议)或GPS(Global PositioningSystem,全球定位系统)等等接口,但该种传感网节点控制器由于外部传感器接口过多,不利于小型化,不够便携。With the development of wireless communication technology and integrated circuit technology, data collection in many fields (such as environmental monitoring, fire escape guidance, industrial equipment monitoring equipment) has gradually deviated from the original wired centralized monitoring mode and evolved into distributed wireless sensing Network node - gateway convergence node - host computer system. At present, the sensor network node controller in this system is a fixed combination sensor network node controller, that is, a wireless transceiver-node micro-processing system-signal conditioning circuit, and then connected to a 4-20mA sensor , this kind of sensor network node controller has only one sensor interface, which has a high degree of integration, but it is not suitable for sensors with multiple interfaces and multiple data formats to enter the network; the other is a sensor network node controller with strong compatibility This kind of sensor network node controller has a variety of external sensor interfaces, such as UART (Universal Asynchronous Receiver/Transmitter, Universal Asynchronous Receiver Transmitter), SPI (serial peripheral interface, serial peripheral interface), I2C (Inter- Integrated Circuit, I2C bus), RS485, RS232, RS422, CAN (Controller Area Network, controller area network), USB (Universal SerialBUS, universal serial bus), TCP/IP (Transmission Control Protocol/Internet Protocol, medium transmission control protocol /Internet Interconnection Protocol) or GPS (Global Positioning System, Global Positioning System) and other interfaces, but this kind of sensor network node controller is not conducive to miniaturization and portability due to too many external sensor interfaces.

发明内容 Contents of the invention

本发明要解决的技术间题是使传感网节点控制器的兼容性强并且便于小型化。The technical problem to be solved by the invention is to make the node controller of the sensor network highly compatible and easy to miniaturize.

为解决上述技术问题,本发明提供了一种无线传感网节点控制器,其包括一核心底板、多个接口转换子模块;In order to solve the above-mentioned technical problems, the present invention provides a wireless sensor network node controller, which includes a core backplane and a plurality of interface conversion sub-modules;

所述核心底板,包括多个通用通讯接口、多个UART/SPI复用选择开关、一协议解析处理模块;The core base plate includes a plurality of general communication interfaces, a plurality of UART/SPI multiplexing selection switches, and a protocol analysis processing module;

所述协议解析处理模块,用于根据各个UART/SPI复用选择开关的状态,对核心底板各个通用通讯接口接收的数据,或核心底板发往各个通用通讯接口的数据,按照UART、SPI或I2C通讯规约进行处理;The protocol analysis processing module is used for according to the state of each UART/SPI multiplexing selector switch, the data received by each general communication interface of the core chassis, or the data sent to each general communication interface by the core chassis, according to UART, SPI or I2C communication protocols for processing;

所述接口转换子模块,包括一与所述核心底板的通用通讯接口的相适配的子模块通用通讯接口、一专用接口,某种类型专用接口的接口转换子模块用于将该种类型专用接口的数据转换为UART、SPI或I2C数据,并输出至所述子模块通用通讯接口的相应脚,所述接口转换子模块通过其子模块通用通讯接口同所述核心底板的通用通讯接口通信。The interface conversion sub-module includes a sub-module general communication interface compatible with the general communication interface of the core backplane, and a dedicated interface. The interface conversion sub-module of a certain type of special interface is used for this type of dedicated The data of the interface is converted into UART, SPI or I2C data, and output to the corresponding pin of the general communication interface of the sub-module, and the interface conversion sub-module communicates with the general communication interface of the core baseboard through its general communication interface of the sub-module.

所述通用通讯接口,可以包括UART接收/SPI输入脚、UART发送/SPI输出脚、I2C串行数据线脚、I2C串行时钟线脚;The general communication interface may include a UART receiving/SPI input pin, a UART sending/SPI output pin, an I2C serial data pin, and an I2C serial clock pin;

所述UART/SPI复用选择开关,有1,0两个状态;The UART/SPI multiplexing selector switch has two states of 1 and 0;

当一通用通讯接口对应的UART/SPI复用选择开关为1时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照UART通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照UART通讯规约接收后进行解析处理;当一通用通讯接口对应的UART/SPI复用选择开关为0时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照SPI通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照SPI通讯规约接收后进行解析处理;无论一通用通讯接口对应的UART/SPI复用选择开关的状态如何,所述协议解析处理模块,对核心底板发往该通用通讯接口的I2C串行数据线脚的数据进行打包处理后按照I2C通讯规约发送数据,对该通用通讯接口的I2C串行数据线脚接收的数据按照I2C通讯规约接收后进行解析处理。When the UART/SPI multiplexing selector switch corresponding to a general communication interface is 1, the protocol analysis processing module sends the data of the UART transmission/SPI output pin of the general communication interface to the core baseboard to package and process according to the UART communication The protocol sends data, and the data received by the general communication interface UART/SPI input pin is analyzed and processed after receiving according to the UART communication protocol; when the UART/SPI multiplexing selection switch corresponding to a general communication interface is 0, the protocol analysis The processing module packs and processes the data sent by the core board to the UART sending/SPI output pin of the general communication interface, and then sends the data according to the SPI communication protocol, and the data received by the UART receiving/SPI input pin of the general communication interface follows the SPI communication protocol After receiving, analyze and process; no matter what the state of the UART/SPI multiplexing selector switch corresponding to a general communication interface is, the protocol analysis processing module packs the data of the I2C serial data pins sent to the general communication interface by the core backplane After processing, the data is sent according to the I2C communication protocol, and the data received by the I2C serial data pin of the general communication interface is analyzed and processed after being received according to the I2C communication protocol.

所述通用通讯接口,还可以包括一SPI时钟脚、一复位管脚/SPI使能脚、一电源脚、一地脚、多个预留控制信号脚。The general communication interface may also include an SPI clock pin, a reset pin/SPI enable pin, a power supply pin, a ground pin, and multiple reserved control signal pins.

所述接口转换子模块的专用接口可以为UART、SPI、I2C、RS485、RS232、RS422、CAN、USB、TCP/IP或GPS。The dedicated interface of the interface conversion sub-module can be UART, SPI, I2C, RS485, RS232, RS422, CAN, USB, TCP/IP or GPS.

为解决上述技术问题,本发明还提供了一种核心底板,其包括多个通用通讯接口、多个UART/SPI复用选择开关、一协议解析处理模块;In order to solve the above-mentioned technical problems, the present invention also provides a core backplane, which includes a plurality of general communication interfaces, a plurality of UART/SPI multiplexing selection switches, and a protocol analysis processing module;

所述通用通讯接口,包括UART接收/SPI输入脚、UART发送/SPI输出脚、I2C串行数据线脚、I2C串行时钟线脚;The general communication interface includes a UART receiving/SPI input pin, a UART sending/SPI output pin, an I2C serial data pin, and an I2C serial clock pin;

所述UART/SPI复用选择开关,有1,0两个状态;The UART/SPI multiplexing selector switch has two states of 1 and 0;

当一通用通讯接口对应的UART/SPI复用选择开关为1时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照UART通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照UART通讯规约接收后进行解析处理;当一通用通讯接口对应的UART/SPI复用选择开关为0时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照SPI通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照SPI通讯规约接收后进行解析处理;无论一通用通讯接口对应的UART/SPI复用选择开关的状态如何,所述协议解析处理模块,对核心底板发往该通用通讯接口的I2C串行数据线脚的数据进行打包处理后按照I2C通讯规约发送数据,对该通用通讯接口的I2C串行数据线脚接收的数据按照I2C通讯规约接收后进行解析处理。When the UART/SPI multiplexing selector switch corresponding to a general communication interface is 1, the protocol analysis processing module sends the data of the UART transmission/SPI output pin of the general communication interface to the core baseboard to package and process according to the UART communication The protocol sends data, and the data received by the general communication interface UART/SPI input pin is analyzed and processed after receiving according to the UART communication protocol; when the UART/SPI multiplexing selection switch corresponding to a general communication interface is 0, the protocol analysis The processing module packs and processes the data sent by the core board to the UART sending/SPI output pin of the general communication interface, and then sends the data according to the SPI communication protocol, and the data received by the UART receiving/SPI input pin of the general communication interface follows the SPI communication protocol After receiving, analyze and process; no matter what the state of the UART/SPI multiplexing selector switch corresponding to a general communication interface is, the protocol analysis processing module packs the data of the I2C serial data pins sent to the general communication interface by the core backplane After processing, the data is sent according to the I2C communication protocol, and the data received by the I2C serial data pin of the general communication interface is analyzed and processed after being received according to the I2C communication protocol.

所述通用通讯接口,还可以包括一SPI时钟脚、一复位管脚/SPI使能脚、一电源脚、一地脚、多个预留控制信号脚。The general communication interface may also include an SPI clock pin, a reset pin/SPI enable pin, a power supply pin, a ground pin, and multiple reserved control signal pins.

为解决上述技术问题,本发明还提供了一种传感器无线入网方法,其采用的技术方案是:In order to solve the above-mentioned technical problems, the present invention also provides a wireless network access method for sensors, and the technical solution adopted is:

某种类型接口的传感器通过该种类型专用接口的接口转换子模块接到一核心底板的一通用通讯接口,核心底板由另一通用通讯接口通过一种无线类型专用接口的接口转换子模块同网关汇聚节点无线通信;A sensor of a certain type of interface is connected to a general communication interface of a core chassis through an interface conversion submodule of this type of special interface, and the core chassis is connected to a gateway through another general communication interface through an interface conversion submodule of a wireless type special interface Sink node wireless communication;

接口转换子模块,包括一与所述核心底板的通用通讯接口的相适配的子模块通用通讯接口、一专用接口,某种类型专用接口的接口转换子模块用于将该种类型专用接口的数据转换为UART、SPI或I2C数据,并输出至所述子模块通用通讯接口的相应脚;The interface conversion sub-module includes a sub-module general communication interface adapted to the general communication interface of the core backplane, a special interface, and the interface conversion submodule of a certain type of special interface is used to use this type of special interface The data is converted into UART, SPI or I2C data, and output to the corresponding pin of the general communication interface of the sub-module;

某种类型专用接口的接口转换子模块,通过其专用接口同该种类型接口的传感器通信,通过其子模块通用通讯接口同所述核心底板的通用通讯接口通信;The interface conversion sub-module of a certain type of special interface communicates with the sensor of this type of interface through its special interface, and communicates with the general communication interface of the core base plate through its sub-module general communication interface;

核心底板包括多个通用通讯接口、多个UART/SPI复用选择开关、一协议解析处理模块;The core backplane includes multiple general communication interfaces, multiple UART/SPI multiplexing selection switches, and a protocol analysis and processing module;

所述协议解析处理模块,根据各个UART/SPI复用选择开关的状态,对核心底板各个通用通讯接口接收的数据,或核心底板发往各个通用通讯接口的数据,按照UART、SPI或I2C通讯规约进行处理;The protocol analysis processing module, according to the state of each UART/SPI multiplexing selector switch, to the data received by each general communication interface of the core chassis, or the data sent to each general communication interface by the core chassis, according to the UART, SPI or I2C communication protocol process;

核心底板的一通用通讯接口与一无线类型专用接口的接口转换子模块的子模块通用通讯接口通信,并通过该无线类型专用接口的接口转换子模块的无线类型专用接口与网关汇聚节点无线通信。A general communication interface of the core base board communicates with a submodule general communication interface of an interface conversion submodule of a wireless type special interface, and wirelessly communicates with the gateway convergence node through the wireless type special interface of the wireless type special interface conversion submodule.

所述通用通讯接口,可以包括UART接收/SPI输入脚、UART发送/SPI输出脚、I2C串行数据线脚、I2C串行时钟线脚;The general communication interface may include a UART receiving/SPI input pin, a UART sending/SPI output pin, an I2C serial data pin, and an I2C serial clock pin;

所述UART/SPI复用选择开关,有1,0两个状态;The UART/SPI multiplexing selector switch has two states of 1 and 0;

当一通用通讯接口对应的UART/SPI复用选择开关为1时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照UART通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照UART通讯规约接收后进行解析处理;当一通用通讯接口对应的UART/SPI复用选择开关为0时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照SPI通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照SPI通讯规约接收后进行解析处理;无论一通用通讯接口对应的UART/SPI复用选择开关的状态如何,所述协议解析处理模块,对核心底板发往该通用通讯接口的I2C串行数据线脚的数据进行打包处理后按照I2C通讯规约发送数据,对该通用通讯接口的I2C串行数据线脚接收的数据按照I2C通讯规约接收后进行解析处理。When the UART/SPI multiplexing selector switch corresponding to a general communication interface is 1, the protocol analysis processing module sends the data of the UART transmission/SPI output pin of the general communication interface to the core baseboard to package and process according to the UART communication The protocol sends data, and the data received by the general communication interface UART/SPI input pin is analyzed and processed after receiving according to the UART communication protocol; when the UART/SPI multiplexing selection switch corresponding to a general communication interface is 0, the protocol analysis The processing module packs and processes the data sent by the core board to the UART sending/SPI output pin of the general communication interface, and then sends the data according to the SPI communication protocol, and the data received by the UART receiving/SPI input pin of the general communication interface follows the SPI communication protocol After receiving, analyze and process; no matter what the state of the UART/SPI multiplexing selector switch corresponding to a general communication interface is, the protocol analysis processing module packs the data of the I2C serial data pins sent to the general communication interface by the core backplane After processing, the data is sent according to the I2C communication protocol, and the data received by the I2C serial data pin of the general communication interface is analyzed and processed after being received according to the I2C communication protocol.

所述通用通讯接口,还可以包括一SPI时钟脚、一复位管脚/SPI使能脚、一电源脚、一地脚、多个预留控制信号脚。The general communication interface may also include an SPI clock pin, a reset pin/SPI enable pin, a power supply pin, a ground pin, and multiple reserved control signal pins.

所述接口转换子模块的专用接口可以为UART、SPI、I2C、RS485、RS232、RS422、CAN、USB、TCP/IP或GPS。The dedicated interface of the interface conversion sub-module can be UART, SPI, I2C, RS485, RS232, RS422, CAN, USB, TCP/IP or GPS.

本发明的无线传感网节点控制器,采用核心底板加接口转换子模块组合的模式,通过通用通讯接口(USCI)进行连接,核心底板与接口转换子模块独立开来。核心底板上的各个通用通讯接口(USCI)都兼容SPI、UART和I2C,SPI和UART管脚通过UART/SPI复用选择开关分配置可以复用,依靠核心底板实现了UART/SPI和I2C接口选择,同时实现了UART和SPI接口的复用。本发明的无线传感网节点控制器,面对多种多样的数据接口的传感器,只需选择相应的接口转换子模块来实现不同通讯协议的转换,便可直接应用,实现传感器数据的读入,大大提高了节点控制器的兼容性,并且核心底板由于不必针对传感器的各种不同接口设置相应数据接口,便于核心底板的小型化从而也便于无线传感网节点控制器的小型化,而接口转换子模块接口转换的设计不涉及复杂处理器,大大降低了整个节点控制器的系统开发时间和开发难度,降低了开发成本。The wireless sensor network node controller of the present invention adopts the combination mode of a core base plate and an interface conversion sub-module, is connected through a universal communication interface (USCI), and the core base plate and the interface conversion sub-module are independent. Each universal communication interface (USCI) on the core base board is compatible with SPI, UART and I2C. The SPI and UART pins can be multiplexed through the UART/SPI multiplexing selection switch, and the UART/SPI and I2C interface selection is realized by relying on the core base board. , while realizing the multiplexing of UART and SPI interface. The wireless sensor network node controller of the present invention, facing a variety of sensors with data interfaces, only needs to select the corresponding interface conversion sub-module to realize the conversion of different communication protocols, and then it can be directly applied to realize the reading of sensor data , which greatly improves the compatibility of the node controller, and the core base board does not need to set corresponding data interfaces for various interfaces of the sensor, which facilitates the miniaturization of the core base board and thus facilitates the miniaturization of the wireless sensor network node controller, and the interface The design of the conversion sub-module interface conversion does not involve complex processors, which greatly reduces the system development time and development difficulty of the entire node controller, and reduces the development cost.

附图说明Description of drawings

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

图1是本发明的无线传感网节点控制器一实施方式的核心底板示意图;Fig. 1 is a schematic diagram of a core baseboard of an embodiment of a wireless sensor network node controller of the present invention;

图2是本发明的无线传感网节点控制器一实施方式的核心底板的通用通讯接口示意图;FIG. 2 is a schematic diagram of a general communication interface of a core backplane of an embodiment of a wireless sensor network node controller of the present invention;

图3是本发明的无线传感网节点控制器一实例的无线收发接口转换子模块示意图;Fig. 3 is a schematic diagram of a wireless transceiver interface conversion submodule of an example of a wireless sensor network node controller of the present invention;

图4是本发明的无线传感网节点控制器一实例的RS485接口转换子模块示意图;Fig. 4 is the RS485 interface conversion submodule schematic diagram of an example of the wireless sensor network node controller of the present invention;

图5是本发明的无线传感网节点控制器一实例的GPS接口转换子模块示意图。Fig. 5 is a schematic diagram of a GPS interface conversion sub-module of an example of a wireless sensor network node controller of the present invention.

具体实施方式 Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明。并且在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。基于本发明中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, not to limit the present invention. And in the case of no conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention belong to the protection scope of the present invention.

无线传感网节点控制器,包括一核心底板、多个接口转换子模块;A wireless sensor network node controller, including a core base board and multiple interface conversion sub-modules;

所述核心底板如图1所示,包括多个通用通讯接口(USCI)5、多个UART/SPI复用选择开关7、一协议解析处理模块1。As shown in FIG. 1 , the core baseboard includes a plurality of universal communication interfaces (USCI) 5 , a plurality of UART/SPI multiplexing selection switches 7 , and a protocol analysis processing module 1 .

所述通用通讯接口(USCI)一实施方式如图2所示,包括UART接收/SPI输入脚(RXx/SOMIx)1、SPI时钟脚(CLKx)2、复位管脚/SPI使能脚(Reset/STEx)3、电源脚(VCCx)4、UART发送/SPI输出脚(TXx/SIMOx)5、地脚(GND)6、I2C串行数据线脚(SDA)7、I2C串行时钟线脚(SCL)8、多个预留控制信号脚(Ctrlx_0,Ctrlx_1,Ctrlx_2,Ctrlx_3)9,10,11,12;Described universal communication interface (USCI) one embodiment is as shown in Figure 2, comprises UART receiving/SPI input pin (RXx/SOMIx) 1, SPI clock pin (CLKx) 2, reset pin/SPI enabling pin (Reset/ STEx) 3, power pin (VCCx) 4, UART send/SPI output pin (TXx/SIMOx) 5, ground pin (GND) 6, I2C serial data pin (SDA) 7, I2C serial clock pin (SCL) 8 , Multiple reserved control signal pins (Ctrlx_0, Ctrlx_1, Ctrlx_2, Ctrlx_3) 9, 10, 11, 12;

所述UART/SPI复用选择开关7,有1,0两个状态;The UART/SPI multiplexing selector switch 7 has two states of 1 and 0;

所述协议解析处理模块,用于根据各个UART/SPI复用选择开关的状态,对核心底板各个通用通讯接口接收的数据,或核心底板发往各个通用通讯接口的数据,按照UART(Universal Asynchronous Receiver/Transmitter,通用异步收发器)、SPI(serial peripheral interface,串行外设接口)或I2C(Inter-Integrated Circuit,I2C总线)通讯规约进行解析处理;并将应答封装成符合该相应应用层通讯协议标准的数据包;Described protocol analysis processing module is used for according to the state of each UART/SPI multiplexing selector switch, to the data that each general communication interface of core baseboard receives, or the data that core baseplate sends to each general communication interface, according to UART (Universal Asynchronous Receiver /Transmitter, universal asynchronous transceiver), SPI (serial peripheral interface, serial peripheral interface) or I2C (Inter-Integrated Circuit, I2C bus) communication protocol for analysis and processing; and the response is packaged to conform to the corresponding application layer communication protocol Standard data packets;

当一通用通讯接口对应的UART/SPI复用选择开关为1时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照UART通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照UART通讯规约接收后进行解析处理;When the UART/SPI multiplexing selector switch corresponding to a general communication interface is 1, the protocol analysis processing module sends the data of the UART transmission/SPI output pin of the general communication interface to the core baseboard to package and process according to the UART communication The protocol sends data, and the data received by the general communication interface UART/SPI input pin is analyzed and processed according to the UART communication protocol;

当一通用通讯接口对应的UART/SPI复用选择开关为0时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照SPI通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照SPI通讯规约接收后进行解析处理;When the UART/SPI multiplexing selection switch corresponding to a general communication interface is 0, the protocol analysis processing module sends the data of the UART sending/SPI output pin of the general communication interface to the core baseboard to package and process according to the SPI communication The protocol sends data, and the data received by the general communication interface UART/SPI input pin is analyzed and processed according to the SPI communication protocol;

无论一通用通讯接口对应的UART/SPI复用选择开关的状态如何,所述协议解析处理模块,对核心底板发往该通用通讯接口的I2C串行数据线脚的数据进行打包处理后按照I2C通讯规约发送数据,对该通用通讯接口的I2C串行数据线脚接收的数据按照I2C通讯规约接收后进行解析处理。Regardless of the state of the UART/SPI multiplexing selection switch corresponding to a general communication interface, the protocol analysis processing module, after packaging the data sent to the I2C serial data pins of the general communication interface by the core chassis, according to the I2C communication protocol To send data, analyze and process the data received by the I2C serial data pin of the general communication interface according to the I2C communication protocol.

所述核心底板,还可以包括多个模拟输入接口6、一电源模块2、一电量检测模块3、一配置信息存储模块4。The core backplane may also include a plurality of analog input interfaces 6 , a power supply module 2 , a power detection module 3 , and a configuration information storage module 4 .

所述模拟输入接口6,用于直接接入调理好的模拟信号;The analog input interface 6 is used to directly access the conditioned analog signal;

所述电源模块2,用于为核心底板供电;The power module 2 is used to supply power to the core backplane;

所述电量检测模块3,用于为核心底板提供系统电池电量信息;The power detection module 3 is used to provide system battery power information for the core chassis;

所述配置信息存储模块4,用于存储核心底板的配置信息;The configuration information storage module 4 is used to store the configuration information of the core backplane;

所述接口转换子模块,包括一与所述核心底板的通用通讯接口(USCI)的相适配的子模块通用通讯接口、一专用接口,某种类型专用接口的接口转换子模块用于将该种类型专用接口的数据转换为UART、SPI或I2C数据,并输出至所述子模块通用通讯接口的相应脚,所述接口转换子模块通过其子模块通用通讯接口同所述核心底板的通用通讯接口通信,同核心底板连接;The interface conversion sub-module includes a sub-module universal communication interface adapted to the universal communication interface (USCI) of the core backplane, a dedicated interface, and the interface conversion sub-module of a certain type of dedicated interface is used for the The data of each type of special interface is converted into UART, SPI or I2C data, and output to the corresponding pin of the general communication interface of the sub-module, and the interface conversion sub-module communicates with the general communication of the core chassis through its general communication interface of the sub-module Interface communication, connected with the core backplane;

所述接口转换子模块的传感器接口可以为UART、SPI、I2C、RS485、RS232、RS422、CAN、USB、TCP/IP或GPS等等接口。The sensor interface of the interface conversion sub-module can be UART, SPI, I2C, RS485, RS232, RS422, CAN, USB, TCP/IP or GPS and other interfaces.

采用上述无线传感网节点控制器实现传感器无线入网方法如下:Using the above wireless sensor network node controller to realize the sensor wireless network access method is as follows:

某种类型接口的传感器通过该种类型专用接口的接口转换子模块接到一核心底板的一通用通讯接口,核心底板由另一通用通讯接口通过一种无线类型专用接口的接口转换子模块同网关汇聚节点无线通信;A sensor of a certain type of interface is connected to a general communication interface of a core chassis through an interface conversion submodule of this type of special interface, and the core chassis is connected to a gateway through another general communication interface through an interface conversion submodule of a wireless type special interface Sink node wireless communication;

接口转换子模块,包括一与所述核心底板的通用通讯接口的相适配的子模块通用通讯接口、一专用接口,某种类型专用接口的接口转换子模块用于将该种类型专用接口的数据转换为UART、SPI或I2C数据,并输出至所述子模块通用通讯接口的相应脚;The interface conversion sub-module includes a sub-module general communication interface adapted to the general communication interface of the core backplane, a special interface, and the interface conversion submodule of a certain type of special interface is used to use this type of special interface The data is converted into UART, SPI or I2C data, and output to the corresponding pin of the general communication interface of the sub-module;

某种类型专用接口的接口转换子模块,通过其专用接口同该种类型接口的传感器通信,通过其子模块通用通讯接口同所述核心底板的通用通讯接口通信;The interface conversion sub-module of a certain type of special interface communicates with the sensor of this type of interface through its special interface, and communicates with the general communication interface of the core base plate through its sub-module general communication interface;

核心底板包括多个通用通讯接口、多个UART/SPI复用选择开关、一协议解析处理模块;The core backplane includes multiple general communication interfaces, multiple UART/SPI multiplexing selection switches, and a protocol analysis and processing module;

所述协议解析处理模块,根据各个UART/SPI复用选择开关的状态,对核心底板各个通用通讯接口接收的数据,或核心底板发往各个通用通讯接口的数据,按照UART、SPI或I2C通讯规约进行处理;The protocol analysis processing module, according to the state of each UART/SPI multiplexing selector switch, to the data received by each general communication interface of the core chassis, or the data sent to each general communication interface by the core chassis, according to the UART, SPI or I2C communication protocol process;

核心底板的一通用通讯接口与一无线类型专用接口的接口转换子模块的子模块通用通讯接口通信,并通过该无线类型专用接口的接口转换子模块的无线类型专用接口与网关汇聚节点无线通信。A general communication interface of the core base board communicates with a submodule general communication interface of an interface conversion submodule of a wireless type special interface, and wirelessly communicates with the gateway convergence node through the wireless type special interface of the wireless type special interface conversion submodule.

所述通用通讯接口,可以包括UART接收/SPI输入脚、UART发送/SPI输出脚、I2C串行数据线脚、I2C串行时钟线脚;The general communication interface may include a UART receiving/SPI input pin, a UART sending/SPI output pin, an I2C serial data pin, and an I2C serial clock pin;

所述UART/SPI复用选择开关,有1,0两个状态;The UART/SPI multiplexing selector switch has two states of 1 and 0;

当一通用通讯接口对应的UART/SPI复用选择开关为1时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照UART通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照UART通讯规约接收后进行解析处理;当一通用通讯接口对应的UART/SPI复用选择开关为0时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照SPI通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照SPI通讯规约接收后进行解析处理;无论一通用通讯接口对应的UART/SPI复用选择开关的状态如何,所述协议解析处理模块,对核心底板发往该通用通讯接口的I2C串行数据线脚的数据进行打包处理后按照I2C通讯规约发送数据,对该通用通讯接口的I2C串行数据线脚接收的数据按照I2C通讯规约接收后进行解析处理。When the UART/SPI multiplexing selector switch corresponding to a general communication interface is 1, the protocol analysis processing module sends the data of the UART transmission/SPI output pin of the general communication interface to the core baseboard to package and process according to the UART communication The protocol sends data, and the data received by the general communication interface UART/SPI input pin is analyzed and processed after receiving according to the UART communication protocol; when the UART/SPI multiplexing selection switch corresponding to a general communication interface is 0, the protocol analysis The processing module packs and processes the data sent by the core board to the UART sending/SPI output pin of the general communication interface, and then sends the data according to the SPI communication protocol, and the data received by the UART receiving/SPI input pin of the general communication interface follows the SPI communication protocol After receiving, analyze and process; no matter what the state of the UART/SPI multiplexing selector switch corresponding to a general communication interface is, the protocol analysis processing module packs the data of the I2C serial data pins sent to the general communication interface by the core backplane After processing, the data is sent according to the I2C communication protocol, and the data received by the I2C serial data pin of the general communication interface is analyzed and processed after being received according to the I2C communication protocol.

所述通用通讯接口,还可以包括一SPI时钟脚、一复位管脚/SPI使能脚、一电源脚、一地脚、多个预留控制信号脚。The general communication interface may also include an SPI clock pin, a reset pin/SPI enable pin, a power supply pin, a ground pin, and multiple reserved control signal pins.

所述接口转换子模块的专用接口为UART、SPI、I2C、RS485、RS232、RS422、CAN、USB、TCP/IP或GPS。The dedicated interface of the interface conversion sub-module is UART, SPI, I2C, RS485, RS232, RS422, CAN, USB, TCP/IP or GPS.

所述核心底板,还可以包括多个模拟输入接口;The core backplane may also include a plurality of analog input interfaces;

所述多个模拟输入接口,直接接入调理好的模拟信号。The multiple analog input interfaces are directly connected to conditioned analog signals.

所述核心底板,还可以包括配置信息存储模块;The core backplane may also include a configuration information storage module;

所述配置信息存储模块,存储核心底板的配置信息。The configuration information storage module stores the configuration information of the core backplane.

所述核心底板,还可以包括电源模块、电量检测模块;The core backplane may also include a power supply module and a power detection module;

所述电源模块,核心底板供电;The power supply module supplies power to the core backplane;

所述电量检测模块,为核心底板提供系统电池电量信息The power detection module provides system battery power information for the core chassis

一个具体实施例:A specific embodiment:

无线传感网节点控制器包括一核心底板及一个图3所示的无线收发接口转换子模块、两个图4所示的RS485接口转换子模块、一个图5所示的GPS接口转换子模块。The wireless sensor network node controller includes a core base board and a wireless transceiver interface conversion sub-module shown in FIG. 3 , two RS485 interface conversion sub-modules shown in FIG. 4 , and a GPS interface conversion sub-module shown in FIG. 5 .

核心底板,选择TI公司的MSP430F5438微控制器,功耗低,系统时钟最高18MHz,有内部锁相环,256KB FLASH,16KB的RAM;它集成有内部12bitADC,有12个外部模拟通道,可以直接接入调理好的模拟信号;有4个如图2所示的通用通讯接口(USCI),支持UART、SPI和I2C通讯,管脚支持UART和SPI口复用,如果对通用通讯接口(USCI)控制进行编程,还可以扩展更多的通用通讯接口。如图1所示,四个UART/SPI复用选择开关6,分别对应图2中的四个通用通讯接口(USCI),当一UART/SPI复用选择开关拔至0时,对应于该UART/SPI复用选择开关的通用通讯接口(USCI)支持SPI和I2C接口,当一UART/SPI复用选择开关拔至1时,对应于该UART/SPI复用选择开关的通用通讯接口(USCI)支持UART和I2C接口。As the core board, choose TI's MSP430F5438 microcontroller, low power consumption, system clock up to 18MHz, internal phase-locked loop, 256KB FLASH, 16KB RAM; it integrates internal 12bitADC and 12 external analog channels, which can be directly connected to Input the adjusted analog signal; there are 4 universal communication interfaces (USCI) as shown in Figure 2, which support UART, SPI and I2C communication, and the pins support UART and SPI port multiplexing. If the universal communication interface (USCI) is controlled Programming can also expand more general communication interfaces. As shown in Figure 1, four UART/SPI multiplexing selection switches 6 correspond to four universal communication interfaces (USCI) in Figure 2 respectively, when a UART/SPI multiplexing selection switch is pulled to 0, corresponding to the UART The universal communication interface (USCI) of the /SPI multiplexing selection switch supports SPI and I2C interfaces. When a UART/SPI multiplexing selection switch is pulled to 1, it corresponds to the universal communication interface (USCI) of the UART/SPI multiplexing selection switch. UART and I2C interfaces are supported.

如图3所示,无线收发接口转换子模块采用了集成240~960MHz的EZRadioPRO收发器的低功耗MCU-Si1000(Silicon Labs公司产品),该无线收发接口转换子模块集成了子模块通用通讯接口、TCP/IP无线专用接口,该无线收发接口转换子模块将TCP/IP接口数据转换为UART数据,并输出至所述子模块通用通讯接口的相应脚,无线收发接口转换子模块通过其子模块通用通讯接口与核心底板的通用通讯接口(USCI)相连,使用UART通讯协议,图2所示核心底板通用通讯接口(USCI)中的UART接收/SPI输入脚(RXx/SOMIx)接无线收发接口转换子模块的U_Tx信号,UART发送/SPI输出脚(TXx/SIMOx)接无线收发接口转换子模块的U_Rx信号,核心底板的通用通讯接口(USCI)的电源脚(VCCx)和地脚(GND)用于对无线收发接口转换子模块供电,UART波特率设为9600,数据位8位,1位停止位。As shown in Figure 3, the wireless transceiver interface conversion sub-module adopts the low-power MCU-Si1000 (product of Silicon Labs) integrating 240-960MHz EZRadioPRO transceiver. The wireless transceiver interface conversion sub-module integrates the general communication interface of the sub-module , TCP/IP wireless dedicated interface, the wireless transceiver interface conversion submodule converts TCP/IP interface data into UART data, and outputs to the corresponding pin of the general communication interface of the submodule, the wireless transceiver interface conversion submodule passes its submodule The universal communication interface is connected to the universal communication interface (USCI) of the core chassis, using the UART communication protocol, and the UART receiving/SPI input pin (RXx/SOMIx) in the universal communication interface (USCI) of the core chassis shown in Figure 2 is connected to the wireless transceiver interface conversion The U_Tx signal of the sub-module, the UART transmission/SPI output pin (TXx/SIMOx) is connected to the wireless transceiver interface to convert the U_Rx signal of the sub-module, and the power pin (VCCx) and ground pin (GND) of the universal communication interface (USCI) of the core board are used To supply power to the wireless transceiver interface conversion sub-module, the UART baud rate is set to 9600, the data bit is 8 bits, and the stop bit is 1.

如图4所示,RS485接口转换子模块采用TI公司的带隔离的两线RS485数据收发芯片ISO15,可以实现UART与半双工RS485信号之间的转换,该RS485接口转换子模块集成了子模块通用通讯接口、RS485专用接口,该RS485接口转换子模块将RS485接口数据转换为UART数据,并输出至所述子模块通用通讯接口的相应脚,RS485接口转换子模块通过其子模块通用通讯接口与核心底板的通用通讯接口(USCI)相连,使用UART通讯协议,图2所示核心底板通用通讯接口(USCI)中的UART接收/SPI输入脚(RXx/SOMIx)接RS485接口转换子模块的U_Tx信号,UART发送/SPI输出脚(TXx/SIMOx)接RS485接口转换子模块的U_Rx信号,核心底板的通用通讯接口(USCI)的电源脚(VCCx)和地脚(GND)用于对RS485接口转换子模块供电,UART波特率依据所连的RS485接口传感器设为4800,数据位8位,1位停止位。As shown in Figure 4, the RS485 interface conversion sub-module adopts TI's isolated two-wire RS485 data transceiver chip ISO15, which can realize the conversion between UART and half-duplex RS485 signals. The RS485 interface conversion sub-module integrates sub-modules General communication interface, RS485 dedicated interface, the RS485 interface conversion sub-module converts RS485 interface data into UART data, and outputs to the corresponding pin of the general communication interface of the sub-module, the RS485 interface conversion sub-module communicates with the general communication interface of its sub-module The universal communication interface (USCI) of the core chassis is connected, using the UART communication protocol. The UART receiving/SPI input pin (RXx/SOMIx) in the universal communication interface (USCI) of the core chassis shown in Figure 2 is connected to the U_Tx signal of the RS485 interface conversion sub-module , the UART sending/SPI output pin (TXx/SIMOx) is connected to the U_Rx signal of the RS485 interface conversion sub-module, and the power pin (VCCx) and ground pin (GND) of the universal communication interface (USCI) on the core board are used for the RS485 interface conversion sub-module The module is powered, the UART baud rate is set to 4800 according to the connected RS485 interface sensor, the data bit is 8 bits, and the stop bit is 1.

如图5所示,GPS接口转换子模块采用QUECTEL公司的L20GPS模块,具有高灵敏度,可快速获取卫星信号,该GPS接口转换子模块集成了子模块通用通讯接口、GPS无线专用接口,该GPS接口转换子模块将GPS无线接口数据转换为UART数据,并输出至所述子模块通用通讯接口的相应脚,GPS接口转换子模块通过其子模块通用通讯接口与核心底板的通用通讯接口(USCI)相连,使用UART通讯协议,图2所示核心底板通用通讯接口(USCI)中的UART接收/SPI输入脚(RXx/SOMIx)接GPS接口转换子模块的U_Tx信号,UART发送/SPI输出脚(TXx/SIMOx)接GPS接口转换子模块的U_Rx信号,核心底板的通用通讯接口(USCI)的电源脚(VCCx)和地脚(GND)用于对GPS接口转换子模块供电,UART波特率设为4800,数据位8位,1位停止位,由于GPS接口转换子模块持续工作时功耗很大,所述通用通讯接口(USCI)的复位管脚/SPI使能脚(Reset/STEx)的Reset信号用于唤醒/休眠GPS接口转换子模块以降低系统功耗。As shown in Figure 5, the GPS interface conversion sub-module adopts the L20GPS module of QUECTEL Company, which has high sensitivity and can quickly obtain satellite signals. The GPS interface conversion sub-module integrates the general communication interface of the sub-module and the dedicated GPS wireless interface. The conversion sub-module converts the GPS wireless interface data into UART data, and outputs them to the corresponding pins of the general communication interface of the sub-module, and the GPS interface conversion sub-module is connected to the universal communication interface (USCI) of the core baseboard through its general communication interface of the sub-module , using the UART communication protocol, the UART receiving/SPI input pin (RXx/SOMIx) in the core chassis universal communication interface (USCI) shown in Figure 2 is connected to the U_Tx signal of the GPS interface conversion sub-module, and the UART sending/SPI output pin (TXx/ SIMOx) is connected to the U_Rx signal of the GPS interface conversion sub-module, the power pin (VCCx) and ground pin (GND) of the universal communication interface (USCI) of the core board are used to supply power to the GPS interface conversion sub-module, and the UART baud rate is set to 4800 , 8 data bits, 1 stop bit, because the GPS interface conversion sub-module consumes a lot of power when it continues to work, the reset signal of the reset pin/SPI enable pin (Reset/STEx) of the universal communication interface (USCI) Used to wake up/sleep GPS interface conversion sub-module to reduce system power consumption.

该实施例中,核心底板可以接两路RS485接口的数字传感器(如数字气体传感器,气象仪等),12路4~20mA输出的模拟传感器、一路GPS信号,通过工作频点可调的无线收发接口转换子模块将有效信息发送至网关汇聚节点。In this embodiment, the core base board can be connected to two digital sensors with RS485 interface (such as digital gas sensors, meteorological instruments, etc.), 12 analog sensors with 4-20mA output, and one GPS signal. The interface conversion sub-module sends valid information to the gateway aggregation node.

本发明的无线传感网节点控制器,采用核心底板加接口转换子模块组合的模式,通过通用通讯接口(USCI)进行连接,核心底板与接口转换子模块独立开来。核心底板上的各个通用通讯接口(USCI)都兼容SPI、UART和I2C,SPI和UART管脚通过UART/SPI复用选择开关分配置可以复用,依靠核心底板实现了UART/SPI和I2C接口选择,同时实现了UART和SPI接口的复用。本发明的无线传感网节点控制器,面对多种多样的数据接口的传感器,只需选择相应的接口转换子模块来实现不同通讯协议的转换,便可直接应用,实现传感器数据的读入,大大提高了节点控制器的兼容性,并且核心底板由于不必针对传感器的各种不同接口设置相应数据接口,便于核心底板的小型化从而也便于无线传感网节点控制器的小型化,而接口转换子模块接口转换的设计不涉及复杂处理器,大大降低了整个节点控制器的系统开发时间和开发难度,降低了开发成本。The wireless sensor network node controller of the present invention adopts the combination mode of a core base plate and an interface conversion sub-module, is connected through a universal communication interface (USCI), and the core base plate and the interface conversion sub-module are independent. Each universal communication interface (USCI) on the core base board is compatible with SPI, UART and I2C. The SPI and UART pins can be multiplexed through the UART/SPI multiplexing selection switch, and the UART/SPI and I2C interface selection is realized by relying on the core base board. , while realizing the multiplexing of UART and SPI interface. The wireless sensor network node controller of the present invention, facing a variety of sensors with data interfaces, only needs to select the corresponding interface conversion sub-module to realize the conversion of different communication protocols, and then it can be directly applied to realize the reading of sensor data , which greatly improves the compatibility of the node controller, and the core base board does not need to set corresponding data interfaces for various interfaces of the sensor, which facilitates the miniaturization of the core base board and thus facilitates the miniaturization of the wireless sensor network node controller, and the interface The design of the conversion sub-module interface conversion does not involve complex processors, which greatly reduces the system development time and development difficulty of the entire node controller, and reduces the development cost.

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

Claims (15)

1.一种无线传感网节点控制器,其特征在于,包括一核心底板、多个接口转换子模块;1. A wireless sensor network node controller, characterized in that, comprises a core base plate, a plurality of interface conversion submodules; 所述核心底板,包括多个通用通讯接口、多个UART/SPI复用选择开关、一协议解析处理模块;The core base plate includes a plurality of general communication interfaces, a plurality of UART/SPI multiplexing selection switches, and a protocol analysis processing module; 所述协议解析处理模块,用于根据各个UART/SPI复用选择开关的状态,对核心底板各个通用通讯接口接收的数据,或核心底板发往各个通用通讯接口的数据,按照UART、SPI或I2C通讯规约进行处理;The protocol analysis processing module is used for according to the state of each UART/SPI multiplexing selector switch, the data received by each general communication interface of the core chassis, or the data sent to each general communication interface by the core chassis, according to UART, SPI or I2C communication protocols for processing; 所述接口转换子模块,包括一与所述核心底板的通用通讯接口的相适配的子模块通用通讯接口、一专用接口,某种类型专用接口的接口转换子模块用于将该种类型专用接口的数据转换为UART、SPI或I2C数据,并输出至所述子模块通用通讯接口的相应脚,所述接口转换子模块通过其子模块通用通讯接口同所述核心底板的通用通讯接口通信;The interface conversion sub-module includes a sub-module general communication interface compatible with the general communication interface of the core backplane, and a dedicated interface. The interface conversion sub-module of a certain type of special interface is used for this type of dedicated The data of the interface is converted into UART, SPI or I2C data, and output to the corresponding pin of the general communication interface of the sub-module, and the interface conversion sub-module communicates with the general communication interface of the core chassis through its general communication interface of the sub-module; 所述通用通讯接口,包括UART接收/SPI输入脚、UART发送/SPI输出脚、I2C串行数据线脚、I2C串行时钟线脚;The general communication interface includes a UART receiving/SPI input pin, a UART sending/SPI output pin, an I2C serial data pin, and an I2C serial clock pin; 所述UART/SPI复用选择开关,有1,0两个状态;The UART/SPI multiplexing selector switch has two states of 1 and 0; 当一通用通讯接口对应的UART/SPI复用选择开关为1时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照UART通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照UART通讯规约接收后进行解析处理;当一通用通讯接口对应的UART/SPI复用选择开关为0时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照SPI通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照SPI通讯规约接收后进行解析处理;无论一通用通讯接口对应的UART/SPI复用选择开关的状态如何,所述协议解析处理模块,对核心底板发往该通用通讯接口的I2C串行数据线脚的数据进行打包处理后按照I2C通讯规约发送数据,对该通用通讯接口的I2C串行数据线脚接收的数据按照I2C通讯规约接收后进行解析处理。When the UART/SPI multiplexing selector switch corresponding to a general communication interface is 1, the protocol analysis processing module sends the data of the UART transmission/SPI output pin of the general communication interface to the core baseboard to package and process according to the UART communication The protocol sends data, and the data received by the general communication interface UART/SPI input pin is analyzed and processed after receiving according to the UART communication protocol; when the UART/SPI multiplexing selection switch corresponding to a general communication interface is 0, the protocol analysis The processing module packs and processes the data sent by the core board to the UART sending/SPI output pin of the general communication interface, and then sends the data according to the SPI communication protocol, and the data received by the UART receiving/SPI input pin of the general communication interface follows the SPI communication protocol After receiving, analyze and process; no matter what the state of the UART/SPI multiplexing selector switch corresponding to a general communication interface is, the protocol analysis processing module packs the data of the I2C serial data pins sent to the general communication interface by the core backplane After processing, the data is sent according to the I2C communication protocol, and the data received by the I2C serial data pin of the general communication interface is analyzed and processed after being received according to the I2C communication protocol. 2.根据权利要求1所述的无线传感网节点控制器,其特征在于,2. wireless sensor network node controller according to claim 1, is characterized in that, 所述通用通讯接口,还包括一SPI时钟脚、一复位管脚/SPI使能脚、一电源脚、一地脚、多个预留控制信号脚。The general communication interface also includes an SPI clock pin, a reset pin/SPI enable pin, a power supply pin, a ground pin, and a plurality of reserved control signal pins. 3.根据权利要求1所述的无线传感网节点控制器,其特征在于,3. wireless sensor network node controller according to claim 1, is characterized in that, 所述接口转换子模块的专用接口为UART、SPI、I2C、RS485、RS232、RS422、CAN、USB、TCP/IP或GPS。The dedicated interface of the interface conversion sub-module is UART, SPI, I2C, RS485, RS232, RS422, CAN, USB, TCP/IP or GPS. 4.根据权利要求1所述的无线传感网节点控制器,其特征在于,4. wireless sensor network node controller according to claim 1, is characterized in that, 所述核心底板,还包括多个模拟输入接口;The core backplane also includes a plurality of analog input interfaces; 所述多个模拟输入接口,用于直接接入调理好的模拟信号。The multiple analog input interfaces are used to directly access the conditioned analog signals. 5.根据权利要求1所述的无线传感网节点控制器,其特征在于,5. wireless sensor network node controller according to claim 1, is characterized in that, 所述核心底板,还包括配置信息存储模块;The core backplane also includes a configuration information storage module; 所述配置信息存储模块,用于存储核心底板的配置信息。The configuration information storage module is used to store the configuration information of the core backplane. 6.根据权利要求1所述的无线传感网节点控制器,其特征在于,6. wireless sensor network node controller according to claim 1, is characterized in that, 所述核心底板,还包括电源模块、电量检测模块;The core backplane also includes a power supply module and a power detection module; 所述电源模块,用于为核心底板供电;The power module is used to supply power to the core backplane; 所述电量检测模块,用于为核心底板提供系统电池电量信息。The power detection module is used to provide system battery power information for the core backplane. 7.一种核心底板,其特征在于,包括多个通用通讯接口、多个UART/SPI复用选择开关、一协议解析处理模块;7. A core base plate, characterized in that, comprises a plurality of general communication interfaces, a plurality of UART/SPI multiplexing selection switches, and a protocol analysis processing module; 所述通用通讯接口,包括UART接收/SPI输入脚、UART发送/SPI输出脚、I2C串行数据线脚、I2C串行时钟线脚;The general communication interface includes a UART receiving/SPI input pin, a UART sending/SPI output pin, an I2C serial data pin, and an I2C serial clock pin; 所述UART/SPI复用选择开关,有1,0两个状态;The UART/SPI multiplexing selector switch has two states of 1 and 0; 当一通用通讯接口对应的UART/SPI复用选择开关为1时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照UART通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照UART通讯规约接收后进行解析处理;当一通用通讯接口对应的UART/SPI复用选择开关为0时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照SPI通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照SPI通讯规约接收后进行解析处理;无论一通用通讯接口对应的UART/SPI复用选择开关的状态如何,所述协议解析处理模块,对核心底板发往该通用通讯接口的I2C串行数据线脚的数据进行打包处理后按照I2C通讯规约发送数据,对该通用通讯接口的I2C串行数据线脚接收的数据按照I2C通讯规约接收后进行解析处理。When the UART/SPI multiplexing selector switch corresponding to a general communication interface is 1, the protocol analysis processing module sends the data of the UART transmission/SPI output pin of the general communication interface to the core baseboard to package and process according to the UART communication The protocol sends data, and the data received by the general communication interface UART/SPI input pin is analyzed and processed after receiving according to the UART communication protocol; when the UART/SPI multiplexing selection switch corresponding to a general communication interface is 0, the protocol analysis The processing module packs and processes the data sent by the core board to the UART sending/SPI output pin of the general communication interface, and then sends the data according to the SPI communication protocol, and the data received by the UART receiving/SPI input pin of the general communication interface follows the SPI communication protocol After receiving, analyze and process; no matter what the state of the UART/SPI multiplexing selector switch corresponding to a general communication interface is, the protocol analysis processing module packs the data of the I2C serial data pins sent to the general communication interface by the core backplane After processing, the data is sent according to the I2C communication protocol, and the data received by the I2C serial data pin of the general communication interface is analyzed and processed after being received according to the I2C communication protocol. 8.根据权利要求7所述的核心底板,其特征在于,8. The core base plate according to claim 7, characterized in that, 所述通用通讯接口,还包括一SPI时钟脚、一复位管脚/SPI使能脚、一电源脚、一地脚、多个预留控制信号脚。The general communication interface also includes an SPI clock pin, a reset pin/SPI enable pin, a power supply pin, a ground pin, and a plurality of reserved control signal pins. 9.根据权利要求7所述的核心底板,其特征在于,9. The core base plate according to claim 7, characterized in that, 所述核心底板,还包括多个模拟输入接口、一个配置信息存储模块;The core backplane also includes a plurality of analog input interfaces and a configuration information storage module; 所述模拟输入接口,用于直接接入调理好的模拟信号;The analog input interface is used to directly access the conditioned analog signal; 所述配置信息存储模块,用于存储核心底板的配置信息。The configuration information storage module is used to store the configuration information of the core backplane. 10.一种传感器无线入网方法,其特征在于,10. A sensor wireless network access method, characterized in that, 某种类型接口的传感器通过该种类型专用接口的接口转换子模块接到一核心底板的一通用通讯接口,核心底板由另一通用通讯接口通过一种无线类型专用接口的接口转换子模块同网关汇聚节点无线通信;A sensor of a certain type of interface is connected to a general communication interface of a core chassis through an interface conversion submodule of this type of special interface, and the core chassis is connected to a gateway through another general communication interface through an interface conversion submodule of a wireless type special interface Sink node wireless communication; 接口转换子模块,包括一与所述核心底板的通用通讯接口的相适配的子模块通用通讯接口、一专用接口,某种类型专用接口的接口转换子模块用于将该种类型专用接口的数据转换为UART、SPI或I2C数据,并输出至所述子模块通用通讯接口的相应脚;The interface conversion sub-module includes a sub-module general communication interface adapted to the general communication interface of the core backplane, a special interface, and the interface conversion submodule of a certain type of special interface is used to use this type of special interface The data is converted into UART, SPI or I2C data, and output to the corresponding pin of the general communication interface of the sub-module; 某种类型专用接口的接口转换子模块,通过其专用接口同该种类型接口的传感器通信,通过其子模块通用通讯接口同所述核心底板的通用通讯接口通信;The interface conversion sub-module of a certain type of special interface communicates with the sensor of this type of interface through its special interface, and communicates with the general communication interface of the core base plate through its sub-module general communication interface; 核心底板包括多个通用通讯接口、多个UART/SPI复用选择开关、一协议解析处理模块;The core backplane includes multiple general communication interfaces, multiple UART/SPI multiplexing selection switches, and a protocol analysis and processing module; 所述协议解析处理模块,根据各个UART/SPI复用选择开关的状态,对核心底板各个通用通讯接口接收的数据,或核心底板发往各个通用通讯接口的数据,按照UART、SPI或I2C通讯规约进行处理;The protocol analysis processing module, according to the state of each UART/SPI multiplexing selector switch, to the data received by each general communication interface of the core chassis, or the data sent to each general communication interface by the core chassis, according to the UART, SPI or I2C communication protocol process; 核心底板的一通用通讯接口与一无线类型专用接口的接口转换子模块的子模块通用通讯接口通信,并通过该无线类型专用接口的接口转换子模块的无线类型专用接口与网关汇聚节点无线通信;A general communication interface of the core base board communicates with a submodule general communication interface of an interface conversion submodule of a wireless type special interface, and wirelessly communicates with the gateway convergence node through the wireless type special interface of the interface conversion submodule of the wireless type special interface; 所述通用通讯接口,包括UART接收/SPI输入脚、UART发送/SPI输出脚、I2C串行数据线脚、I2C串行时钟线脚;The general communication interface includes a UART receiving/SPI input pin, a UART sending/SPI output pin, an I2C serial data pin, and an I2C serial clock pin; 所述UART/SPI复用选择开关,有1,0两个状态;The UART/SPI multiplexing selector switch has two states of 1 and 0; 当一通用通讯接口对应的UART/SPI复用选择开关为1时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照UART通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照UART通讯规约接收后进行解析处理;当一通用通讯接口对应的UART/SPI复用选择开关为0时,所述协议解析处理模块,对核心底板发往该通用通讯接口的UART发送/SPI输出脚的数据进行打包处理后按照SPI通讯规约发送数据,对该通用通讯接口UART接收/SPI输入脚接收的数据按照SPI通讯规约接收后进行解析处理;无论一通用通讯接口对应的UART/SPI复用选择开关的状态如何,所述协议解析处理模块,对核心底板发往该通用通讯接口的I2C串行数据线脚的数据进行打包处理后按照I2C通讯规约发送数据,对该通用通讯接口的I2C串行数据线脚接收的数据按照I2C通讯规约接收后进行解析处理。When the UART/SPI multiplexing selector switch corresponding to a general communication interface is 1, the protocol analysis processing module sends the data of the UART transmission/SPI output pin of the general communication interface to the core baseboard to package and process according to the UART communication The protocol sends data, and the data received by the general communication interface UART/SPI input pin is analyzed and processed after receiving according to the UART communication protocol; when the UART/SPI multiplexing selection switch corresponding to a general communication interface is 0, the protocol analysis The processing module packs and processes the data sent by the core board to the UART sending/SPI output pin of the general communication interface, and then sends the data according to the SPI communication protocol, and the data received by the UART receiving/SPI input pin of the general communication interface follows the SPI communication protocol After receiving, analyze and process; no matter what the state of the UART/SPI multiplexing selector switch corresponding to a general communication interface is, the protocol analysis processing module packs the data of the I2C serial data pins sent to the general communication interface by the core backplane After processing, the data is sent according to the I2C communication protocol, and the data received by the I2C serial data pin of the general communication interface is analyzed and processed after being received according to the I2C communication protocol. 11.根据权利要求10所述的传感器无线入网方法,其特征在于,11. The sensor wireless network access method according to claim 10, characterized in that, 所述通用通讯接口,还包括一SPI时钟脚、一复位管脚/SPI使能脚、一电源脚、一地脚、多个预留控制信号脚。The general communication interface also includes an SPI clock pin, a reset pin/SPI enable pin, a power supply pin, a ground pin, and a plurality of reserved control signal pins. 12.根据权利要求10所述的传感器无线入网方法,其特征在于,12. The sensor wireless network access method according to claim 10, characterized in that, 所述接口转换子模块的专用接口为UART、SPI、I2C、RS485、RS232、RS422、CAN、USB、TCP/IP或GPS。The dedicated interface of the interface conversion sub-module is UART, SPI, I2C, RS485, RS232, RS422, CAN, USB, TCP/IP or GPS. 13.根据权利要求10所述的传感器无线入网方法,其特征在于,13. The sensor wireless network access method according to claim 10, characterized in that, 所述核心底板,还包括多个模拟输入接口;The core backplane also includes a plurality of analog input interfaces; 所述多个模拟输入接口,直接接入调理好的模拟信号。The multiple analog input interfaces are directly connected to conditioned analog signals. 14.根据权利要求10所述的传感器无线入网方法,其特征在于,14. The sensor wireless network access method according to claim 10, characterized in that, 所述核心底板,还包括配置信息存储模块;The core backplane also includes a configuration information storage module; 所述配置信息存储模块,存储核心底板的配置信息。The configuration information storage module stores the configuration information of the core backplane. 15.根据权利要求10所述的传感器无线入网方法,其特征在于,15. The sensor wireless network access method according to claim 10, characterized in that, 所述核心底板,还包括电源模块、电量检测模块;The core base plate also includes a power supply module and a power detection module; 所述电源模块,核心底板供电;The power supply module supplies power to the core backplane; 所述电量检测模块,为核心底板提供系统电池电量信息。The power detection module provides system battery power information for the core backplane.
CN201210034095.XA 2012-02-15 2012-02-15 Wireless sensor network node controller, core bottom plate and wireless network access method for sensor Active CN102573135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210034095.XA CN102573135B (en) 2012-02-15 2012-02-15 Wireless sensor network node controller, core bottom plate and wireless network access method for sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210034095.XA CN102573135B (en) 2012-02-15 2012-02-15 Wireless sensor network node controller, core bottom plate and wireless network access method for sensor

Publications (2)

Publication Number Publication Date
CN102573135A CN102573135A (en) 2012-07-11
CN102573135B true CN102573135B (en) 2014-10-15

Family

ID=46417281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210034095.XA Active CN102573135B (en) 2012-02-15 2012-02-15 Wireless sensor network node controller, core bottom plate and wireless network access method for sensor

Country Status (1)

Country Link
CN (1) CN102573135B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297332A (en) * 2012-09-24 2013-09-11 天津思博科科技发展有限公司 Achievement of sampling terminal gateway based on Bluetooth technology
CN105871486B (en) * 2015-01-20 2018-01-30 中国科学院上海高等研究院 The channel model construction method and emulation mode of wireless sensor network
CN104678809B (en) * 2015-02-25 2018-01-26 刘彤 Generally applicable sensor control device and system
CN105991193A (en) * 2015-03-05 2016-10-05 中兴通讯股份有限公司 Communication method and device of optical module and system board, and optical module
CN106813659A (en) * 2015-11-27 2017-06-09 上海乐相科技有限公司 A kind of sensor device
CN106936762A (en) * 2015-12-30 2017-07-07 上海防灾救灾研究所 A kind of method integrated for many data access in experiment of preventing fires
CN109343387B (en) * 2018-09-29 2021-03-16 珠海格力电器股份有限公司 Data communication method, device, equipment and air conditioner
CN109211402B (en) * 2018-11-14 2023-09-26 深圳市丰巢科技有限公司 Sensing circuit and express cabinet
CN112242906B (en) * 2019-07-16 2022-08-23 信宇开发有限公司 Programmable communication device
CN112291256B (en) * 2020-11-06 2023-12-01 北京中航通用科技有限公司 UART gateway data transmission method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631394A (en) * 2009-08-21 2010-01-20 华东理工大学 Multi-interface coordinator of wireless sensor network
US7715433B2 (en) * 2006-07-14 2010-05-11 Boren Gary W Universal controller and signal monitor
CN201465282U (en) * 2009-07-13 2010-05-12 北京交通大学 A Wireless Sensor Network Node Based on Universal Modular Interface

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7715433B2 (en) * 2006-07-14 2010-05-11 Boren Gary W Universal controller and signal monitor
CN201465282U (en) * 2009-07-13 2010-05-12 北京交通大学 A Wireless Sensor Network Node Based on Universal Modular Interface
CN101631394A (en) * 2009-08-21 2010-01-20 华东理工大学 Multi-interface coordinator of wireless sensor network

Also Published As

Publication number Publication date
CN102573135A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN102573135B (en) Wireless sensor network node controller, core bottom plate and wireless network access method for sensor
CN104956347B (en) By a kind of interconnection agreement enumerate and/or configuration mechanism be used for different interconnection agreements
CN104507148B (en) A kind of low-consumption wireless Sensor Network
US20140138432A1 (en) Sensor tag and method of providing service using the same
WO2015083096A1 (en) A sensor probe and related systems and methods
CN103226346A (en) Configurable multi-channel analog and digital signal acquisition system
CN107561993A (en) A kind of reservoir level Internet of Things monitor and alarm system
CN102665292A (en) Sensor node device for wireless sensor network and operation method of sensor node device
CN203658883U (en) Temperature and humidity monitoring system for power battery pack of electric vehicle
KR101599905B1 (en) Wireless communication module and method for providing automatic configuration of network
CN111277493A (en) Internet of things gateway
Pang et al. Wireless smart home system based on zigbee
CN206452412U (en) A kind of HART instrumental analysis platforms based on Internet of Things
CN206133247U (en) Little control system based on multi -sensor data gathers and transmits
CN107621297A (en) A kind of long-range monitoring alarm of reservoir level
Kumar et al. Smart traffic control system for vehicles on roads using Raspberry Pi
CN210518838U (en) Wireless sensor network system based on smart phone terminal
CN209731277U (en) Development of intelligent laboratory gateway based on ZYNQ
CN103167039B (en) A kind of development platform towards polymorphic type ZigBee node
CN106546291A (en) A kind of control system for gathering various data
CN206311932U (en) Usb data transponder based on LoRa modulation techniques
CN105005246A (en) Portable data acquisition terminal
CN206312355U (en) A kind of remote wireless transmission equipment
CN214704377U (en) A dam remote safety monitoring device using drones as cluster head nodes
CN204695025U (en) A kind of wireless bus connector based on bluetooth

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHANGHAI ADVANCED RESEARCH INSTITUTE, CHINESE ACAD

Free format text: FORMER OWNER: SHANGHAI ZHONGKE INSTITUTE FOR ADVANCED STUDY

Effective date: 20131206

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20131206

Address after: 201210 Shanghai city Pudong New Area Hartcourt Road No. 99

Applicant after: Shanghai Advanced Research Institute, Chinese Academy of Sciences

Address before: 201210 Shanghai city Pudong New Area Hartcourt Road No. 99

Applicant before: Shanghai Zhongke Institute for Advanced Study

C14 Grant of patent or utility model
GR01 Patent grant