CN102801818A - Universal sensor interface acquisition system based on ZigBee technology - Google Patents

Universal sensor interface acquisition system based on ZigBee technology Download PDF

Info

Publication number
CN102801818A
CN102801818A CN2012103013377A CN201210301337A CN102801818A CN 102801818 A CN102801818 A CN 102801818A CN 2012103013377 A CN2012103013377 A CN 2012103013377A CN 201210301337 A CN201210301337 A CN 201210301337A CN 102801818 A CN102801818 A CN 102801818A
Authority
CN
China
Prior art keywords
sensor
module
line
pin
data
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.)
Granted
Application number
CN2012103013377A
Other languages
Chinese (zh)
Other versions
CN102801818B (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.)
Jilin University
Original Assignee
Jilin University
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 Jilin University filed Critical Jilin University
Priority to CN201210301337.7A priority Critical patent/CN102801818B/en
Publication of CN102801818A publication Critical patent/CN102801818A/en
Application granted granted Critical
Publication of CN102801818B publication Critical patent/CN102801818B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

本发明涉及一种基于ZigBee技术的传感器通用接口采集系统,属于无线通信和电子技术领域。包括ZigBee模块、电源模块、传感器通用接口模块和数字封装传感器模块;ZigBee模块的微控制器将其I/O口模拟为串行传输总线时钟线和数据线,与传感器通用接口模块连接;电源模块通过电源线和接地线为ZigBee模块提供电源;传感器通用接口模块包括时钟线、电源线、接地线和数据线;数字封装传感器模块通过时钟线、电源线、接地线和数据线与传感器通用接口模块连接。本发明通过传感器通用接口实现了特定封装传感器的即插即用,避免了不同类型数据采集的电路变化,提高了系统的兼容性和有效性,并降低了成本。

Figure 201210301337

The invention relates to a sensor universal interface acquisition system based on ZigBee technology, which belongs to the field of wireless communication and electronic technology. Including ZigBee module, power supply module, sensor general interface module and digital packaging sensor module; the microcontroller of ZigBee module simulates its I/O port as a serial transmission bus clock line and data line, and connects with the sensor general interface module; power supply module Provide power to the ZigBee module through the power line and ground line; the sensor general interface module includes clock line, power line, ground line and data line; the digital package sensor module and the sensor general interface module through the clock line, power line, ground line and data line connect. The invention realizes the plug-and-play of specific packaged sensors through the common interface of the sensor, avoids the circuit change of different types of data acquisition, improves the compatibility and effectiveness of the system, and reduces the cost.

Figure 201210301337

Description

基于ZigBee技术的传感器通用接口采集系统Sensor general interface acquisition system based on ZigBee technology

技术领域 technical field

本发明涉及一种基于ZigBee技术的采集系统,特别是一种传感器通用接口,属于无线通信和电子技术领域。The invention relates to an acquisition system based on ZigBee technology, in particular to a sensor general interface, which belongs to the field of wireless communication and electronic technology.

背景技术 Background technique

微电子技术、计算技术和无线通信等技术的发展,推动了低功耗多功能传感器的发展,使其在微小体积内能够集成信息采集、数据处理和无线通信等多种功能。无线传感器网络就是将逻辑上的信息世界与客观上的物理世界融合在一起,实现客观物理世界信息的采集、传输、处理。无线传感器网络的数据采集单元传感器节点主要由传感器模块、处理器模块、无线通信模块和能量供应模块四部分组成。ZigBee技术是一种短距离、低复杂度、低功耗、低数据速率、低成本的双向无线通信技术或无线网络技术,是一组基于IEEE 802.15.4无线标准研制开发的有关组网、安全和应用软件方面的通信技术。然而目前我国的基于无线传感器网络的数据采集系统尚且存在以下问题:The development of microelectronics technology, computing technology and wireless communication technology has promoted the development of low-power multifunctional sensors, which can integrate multiple functions such as information collection, data processing and wireless communication in a small volume. The wireless sensor network is to integrate the logical information world and the objective physical world to realize the collection, transmission and processing of information in the objective physical world. The data acquisition unit sensor node of the wireless sensor network is mainly composed of four parts: sensor module, processor module, wireless communication module and energy supply module. ZigBee technology is a two-way wireless communication technology or wireless network technology with short distance, low complexity, low power consumption, low data rate and low cost. and communication technology in terms of application software. However, the current data acquisition system based on wireless sensor networks in my country still has the following problems:

1.传感器节点结构复杂。在无线传感器网络中传感器节点一般由四个模块组成:传感器模块、处理器模块、无线通信模块和能量供应模块,实际应用中需要针对各模块要求选取各种芯片,同时还要考虑芯片间的引脚连接和外围电路,导致电路复杂连线多,一旦连接不易更改。1. The sensor node structure is complex. In a wireless sensor network, a sensor node is generally composed of four modules: sensor module, processor module, wireless communication module and energy supply module. Pin connections and peripheral circuits, resulting in complex circuits and many connections, once connected, it is not easy to change.

2.传感器种类繁多,每种传感器都需要一种连接电路。按照被测物理量类型的不同、工作原理的不同、输出信号类型的不同可以划分出多种多样的传感器,每一种传感器都有自己的引脚结构、工作时序、与处理器的连接方法,当数据采集系统需要采集多种数据时,需要针对不用的传感器设计不同的连接电路。2. There are many types of sensors, and each sensor requires a connection circuit. According to the different types of measured physical quantities, different working principles, and different types of output signals, various sensors can be divided. Each sensor has its own pin structure, working sequence, and connection method with the processor. When the data acquisition system needs to collect a variety of data, it is necessary to design different connection circuits for different sensors.

3.传感器设计不统一,缺少通用性。即使是同一种类的传感器也有不同的引脚设计和输出信号类型,有的是三个引脚、有的是四个引脚、有的是数字输出、有的是模拟输出,造成需要采集一种物理数据时还要考虑多种连接方式,缺少通用性。3. The sensor design is not uniform and lacks versatility. Even the same type of sensor has different pin designs and output signal types, some have three pins, some have four pins, some have digital output, and some have analog output, resulting in the need to collect a variety of physical data. The connection method lacks versatility.

4.无法实现传感器的即插即用。一旦传感器节点的电路焊接完成,就无法再更改电路除非重新焊接电路,而一般情况下传感器节点需要通过更换传感器来采集不同的物理数据,因此需要不断的更改、焊接电路,缺少一个传感器的即插即用接口。4. The plug and play of the sensor cannot be realized. Once the circuit welding of the sensor node is completed, the circuit cannot be changed unless the circuit is re-soldered. In general, the sensor node needs to collect different physical data by replacing the sensor, so it needs to be constantly changed and welded. The lack of a sensor plug-in Ready-to-use interface.

5.兼容性差,成本高。基于无线传感器网络的数据采集系统需要采集各种类型的数据,不同的数据采集对应不同的传感器、不同的连接电路、不断的更改、焊接电路,系统兼容性差,同时也浪费了不必要的资源。5. Poor compatibility and high cost. A data acquisition system based on a wireless sensor network needs to collect various types of data. Different data acquisition corresponds to different sensors, different connection circuits, constant changes, and welding circuits. The system compatibility is poor, and unnecessary resources are wasted.

发明内容 Contents of the invention

本发明针对现有技术存在的缺陷,提供一种基于ZigBee技术的传感器通用接口采集系统,系统结构简单连接线少,无需更改电路,统一封装的传感器通过传感器通用接口即插即用,可以测量多种数据,成本低、效率高、兼容性好。Aiming at the defects existing in the prior art, the present invention provides a sensor universal interface acquisition system based on ZigBee technology. The system structure is simple and there are few connecting lines, no need to change the circuit. A variety of data, low cost, high efficiency, good compatibility.

本发明的技术方案是:Technical scheme of the present invention is:

本发明提供了一种基于ZigBee技术的传感器通用接口采集系统,该系统由ZigBee模块1、电源模块2、传感器通用接口模块3和数字封装传感器模块4四部分组成。The invention provides a sensor general interface acquisition system based on ZigBee technology, the system is composed of four parts: ZigBee module 1, power supply module 2, sensor general interface module 3 and digital packaging sensor module 4.

ZigBee模块1负责控制整个传感器节点的操作,包括传输控制命令、存储和处理本身采集的数据;负责与其他传感器节点进行无线通信,交换控制信息和收发采集数据。ZigBee模块1引用ZigBee芯片的电源引脚、接地引脚和两个I/O引脚,作为电源线、接地线、时钟线和数据线,并通过时钟线、电源线、接地线和数据线与传感器通用接口模块3连接。其中电源线和接电线为传感器通用接口模块3提供工作电压;ZigBee模块1通过微控制器将端口1的两个I/O引脚模拟为串行传输总线,分别为时钟线和数据线,用于传输控制命令和采集的监测数据。ZigBee module 1 is responsible for controlling the operation of the entire sensor node, including transmitting control commands, storing and processing the data collected by itself; responsible for wireless communication with other sensor nodes, exchanging control information and sending and receiving collected data. ZigBee module 1 refers to the power supply pin, ground pin and two I/O pins of the ZigBee chip, as the power line, ground line, clock line and data line, and through the clock line, power line, ground line and data line and The sensor common interface module 3 is connected. Wherein the power supply line and the connection line provide the operating voltage for the sensor general interface module 3; the ZigBee module 1 simulates the two I/O pins of the port 1 as a serial transmission bus through a microcontroller, which are clock lines and data lines respectively. It is used to transmit control commands and collect monitoring data.

电源模块2由两节五号电池构成,由电池的正、负两极分别引出电源线和接地线。电源模块2通过电源线和接地线与ZigBee模块1连接,并为ZigBee模块1提供3V的工作电压。The power supply module 2 is composed of two AA batteries, and the positive and negative poles of the batteries lead out a power line and a grounding line respectively. The power supply module 2 is connected with the ZigBee module 1 through a power line and a ground line, and provides the ZigBee module 1 with a working voltage of 3V.

传感器通用接口模块3包括时钟线、电源线、接电线和数据线,外形采用PIN插孔。传感器通用接口模块3通过时钟线、电源线、接地线和数据线与数字封装传感器模块4连接。其中PIN插孔采用单排四孔插孔形式,1号插孔为时钟线、2号插孔为电源线、3号插孔为接地线、4号插孔为数据线,插孔间距为2.54mm。传感器通用接口模块3为多功能统一数字封装传感器提供一个即插即用的插孔,方便、快捷、效率高。The sensor general interface module 3 includes a clock line, a power line, a connection line and a data line, and the shape adopts a PIN jack. The sensor general interface module 3 is connected with the digital packaging sensor module 4 through clock lines, power lines, ground lines and data lines. Among them, the PIN jack adopts a single-row four-hole jack form, the No. 1 jack is the clock line, the No. 2 jack is the power line, the No. 3 jack is the grounding line, and the No. 4 jack is the data line. The jack spacing is 2.54 mm. The sensor universal interface module 3 provides a plug-and-play jack for the multifunctional unified digital package sensor, which is convenient, fast and efficient.

数字封装传感器模块4将传感器及其外围电路封装在一个PCB板上,并引出四个引脚分别为时钟线、电源线、接地线和数据线。传感器负责感知、采集监测区域内的监测信息,外围电路是为了保证数字封装传感器模块4的数字输出。当封装的传感器为数字型传感器时,可按照四线输出直接封装;当封装的传感器为模拟型传感器时,需要将传感器与A/D转换器与串行接口这样的外围电路连接,保证四线数字输出。其中电源线和接地线通过传感器通用接口模块3为数字封装传感器模块4提供3V的工作电压;时钟线和数据线相互配合完成控制命令的发送和采集的监测数据的传输。数字封装传感器模块4的外形采用四针单排PIN插针作为引脚,1号引脚为时钟线、2号引脚为电源线、3号引脚为接地线、4号引脚为数据线,引脚间距为2.54mm,引脚长度为6.35mm,引脚尺寸与传感器通用接口模块3的PIN插孔一致,实现即插即用无缝连接。The digital packaging sensor module 4 packages the sensor and its peripheral circuits on a PCB board, and leads out four pins which are respectively clock lines, power lines, ground lines and data lines. The sensor is responsible for sensing and collecting monitoring information in the monitoring area, and the peripheral circuit is to ensure the digital output of the digital package sensor module 4 . When the packaged sensor is a digital sensor, it can be directly packaged according to the four-wire output; when the packaged sensor is an analog sensor, it is necessary to connect the sensor to peripheral circuits such as A/D converters and serial interfaces to ensure four-wire output. digital output. The power line and the ground line provide 3V working voltage for the digital packaging sensor module 4 through the sensor general interface module 3; the clock line and the data line cooperate with each other to complete the transmission of the control command and the transmission of the collected monitoring data. The shape of the digital package sensor module 4 uses four-pin single-row PIN pins as pins, pin 1 is the clock line, pin 2 is the power line, pin 3 is the ground wire, and pin 4 is the data line , the pin spacing is 2.54mm, the pin length is 6.35mm, and the pin size is consistent with the PIN jack of the sensor universal interface module 3, realizing plug-and-play seamless connection.

本发明的有益效果是:The beneficial effects of the present invention are:

1.本发明的节点电路用一个ZigBee模块代替处理器模块和无线通信模块两个模块,整个电路只有时钟线、电源线、接地线和数据线四根连接线,结构简单清晰,降低了生产成本,并以最少的模块和连接线完成最需要的功能。1. The node circuit of the present invention replaces two modules of the processor module and the wireless communication module with a ZigBee module, and the whole circuit only has four connecting wires of the clock line, the power supply line, the ground wire and the data line, and the structure is simple and clear, which reduces the production cost , and complete the most needed functions with the least modules and connecting lines.

2.本发明的传感器通用接口为各种传感器接入电路提供一个插座,根据测量数据类型的不同选取不同的传感器插入插座,无需更改电路,方便快捷。2. The sensor universal interface of the present invention provides a socket for connecting various sensors to the circuit, and selects different sensors to insert into the socket according to different types of measurement data, without changing the circuit, which is convenient and quick.

3.本发明的数字封装传感器为实现对通用接口的即插即用功能,出厂前根据发明要求的硬件规范和时序规范统一封装,实现传感器的封装统一化,易于安装并提高了利用率。3. In order to realize the plug-and-play function of the universal interface, the digital packaging sensor of the present invention is uniformly packaged according to the hardware specification and timing specification required by the invention before leaving the factory, so as to realize the unified packaging of the sensor, which is easy to install and improves the utilization rate.

4.本发明适用于同时采集多种类型数据的采集系统,针对不同采集任务只需更换特定封装传感器,无需其他操作,高效、快捷、节约资源。4. The present invention is applicable to a collection system that collects multiple types of data at the same time. For different collection tasks, it only needs to replace specific packaged sensors without other operations, which is efficient, fast, and resource-saving.

附图说明 Description of drawings

图1为本发明提供的基于ZigBee技术的传感器通用接口采集系统的结构示意图;Fig. 1 is the structural representation of the sensor general interface acquisition system based on ZigBee technology that the present invention provides;

图2为本发明提供的传感器通用接口和数字封装传感器的外形尺寸示意图;Fig. 2 is a schematic diagram of the general interface of the sensor provided by the present invention and the external dimensions of the digital package sensor;

其中:图2(a)是传感器通用接口的外形尺寸示意图;图2(b)是数字封装传感器的外形尺寸示意图;Among them: Figure 2(a) is a schematic diagram of the external dimensions of the sensor's general interface; Figure 2(b) is a schematic diagram of the external dimensions of the digital package sensor;

图3为本发明实施例提供的一种基于ZigBee技术的传感器通用接口采集系统的结构示意图;Fig. 3 is the structural representation of a kind of sensor universal interface acquisition system based on ZigBee technology that the embodiment of the present invention provides;

图4为本发明实施例提供的数字温湿度传感器DHT90的数据采集程序流程图。Fig. 4 is a flow chart of the data acquisition program of the digital temperature and humidity sensor DHT90 provided by the embodiment of the present invention.

具体实施方式 Detailed ways

以下结合附图对本发明的一个具体的实施方式进行说明。A specific embodiment of the present invention will be described below in conjunction with the accompanying drawings.

本发明所述的基于ZigBee技术的传感器通用接口采集系统的结构示意图如图1所示。包括ZigBee模块1、电源模块2、传感器通用接口模块3和数字封装传感器模块4;ZigBee模块1通过时钟线、电源线、接地线和数据线与传感器通用接口模块3连接;电源模块2通过电源线和接地线与ZigBee模块1连接;传感器通用接口模块3通过时钟线、电源线、接地线和数据线与数字封装传感器模块4连接。The structural diagram of the general interface acquisition system for sensors based on ZigBee technology in the present invention is shown in FIG. 1 . Including ZigBee module 1, power supply module 2, sensor general interface module 3 and digital packaging sensor module 4; ZigBee module 1 is connected with sensor general interface module 3 through clock line, power line, ground line and data line; power supply module 2 is through power line and the ground wire are connected to the ZigBee module 1; the sensor general interface module 3 is connected to the digital package sensor module 4 through the clock wire, the power wire, the ground wire and the data wire.

附图3是基于ZigBee技术的传感器通用接口采集系统的一个实施方案:Accompanying drawing 3 is an embodiment of the sensor general interface acquisition system based on ZigBee technology:

选用HFZ-CC2430EM-22模块作为ZigBee模块1,负责控制整个节点的操作,发送控制命令、处理和发送采集数据,并与其他节点无线通信形成一个多跳的自组织的网络系统。该模块,采用德州仪器(TI)的ZigBee射频芯片CC2430,片上集成高性能8051内核、ADC、USART等,支持ZigBee协议栈。该模块共引出24个引脚分别为19个I/O口,包括所有P1口、P0口和P2_0、P2_1、P2_2三个口,2个电源引脚,2个接地引脚,一个复位引脚,引脚间距为2.54mm。其中CC2430芯片上集成的8051微控制器将引出的P1_1和P1_3口模拟为串行传输总线作为时钟线和数据线,分别与传感器通用接口模块3的1号插孔和4号插孔连接;电源引脚与接地引脚分别与传感器通用接口模块3的2号插孔和3号插孔连接。The HFZ-CC2430EM-22 module is selected as ZigBee module 1, which is responsible for controlling the operation of the entire node, sending control commands, processing and sending collected data, and wirelessly communicating with other nodes to form a multi-hop self-organizing network system. This module adopts the ZigBee radio frequency chip CC2430 of Texas Instruments (TI), integrates high-performance 8051 core, ADC, USART, etc. on the chip, and supports the ZigBee protocol stack. The module has a total of 24 pins that are 19 I/O ports, including all P1 ports, P0 ports and P2_0, P2_1, P2_2 ports, 2 power pins, 2 ground pins, and a reset pin , The pin pitch is 2.54mm. Among them, the 8051 microcontroller integrated on the CC2430 chip simulates the P1_1 and P1_3 ports as a serial transmission bus as a clock line and a data line, which are respectively connected to the No. 1 jack and No. 4 jack of the sensor general interface module 3; The pin and the ground pin are respectively connected to the No. 2 jack and the No. 3 jack of the sensor general interface module 3 .

选用两节五号电池最为电源模块2,负责为ZigBee模块1、传感器通用接口模块3和数字封装传感器模块4提供3V的工作电压。两节五号电池串联,正极与HFZ-CC2430EM-22模块的电源引脚连接,负极与HFZ-CC2430EM-22模块的接地引脚连接。Two AA batteries are selected as the power module 2, which is responsible for providing 3V working voltage for the ZigBee module 1, sensor general interface module 3 and digital package sensor module 4. Two AAA batteries are connected in series, the positive pole is connected to the power pin of the HFZ-CC2430EM-22 module, and the negative pole is connected to the ground pin of the HFZ-CC2430EM-22 module.

选用单排四孔的PIN插孔作为传感器通用接口模块3,负责为数字封装的传感器提供一个即插即用的插座。其中1号插孔为时钟线、2号插孔为电源线、3号插孔为接地线、4号插孔为数据线,插孔间距为2.54mm,外形尺寸示意图参阅图2(a)所示。其中1号插孔、2号插孔、3号插孔、4号插孔分别与数字封装传感器模块4的1号引脚、2号引脚、3号引脚、4号引脚连接。A single-row four-hole PIN jack is selected as the sensor general interface module 3, which is responsible for providing a plug-and-play socket for digitally packaged sensors. The No.1 jack is the clock line, the No.2 jack is the power cord, the No.3 jack is the ground wire, and the No.4 jack is the data line. Show. The No. 1 jack, the No. 2 jack, the No. 3 jack, and the No. 4 jack are respectively connected to the No. 1 pin, the No. 2 pin, the No. 3 pin, and the No. 4 pin of the digital packaging sensor module 4 .

选用插针型封装的数字温湿度传感器DHT90作为数字封装传感器模块4,负责采集数据的感知、采集和转换。DHT90包括一个电容性聚合体测湿敏感元件、一个用能隙材料制成的测温元件、并在同一芯片上与14位的A/D转换器以及串行接口电路实现无缝连接;提供四针单排引脚封装,从上至下依次为1号引脚至4号引脚,其中1号引脚为时钟线SCK、2号引脚为电源线VDD、3号引脚为接电线GND、4号引脚为数据线DATA,引脚间距为2.54mm,引脚长度为6.35mm,传感器封装在PCB板上,外形尺寸示意图参阅图2(b)所示。DHT90的工作电压范围为2.4-5.5V,本实施例选用3V的工作电压,因而2号引脚和3号引脚通过PIN插孔的2号插孔和3号插孔与HFZ-CC2430EM-22模块的电源引脚和接地引脚连接;DHT90的1号引脚和4号引脚通过PIN插孔的1号插孔和4号插孔与HFZ-CC2430EM-22模块的P1_0和P1_3连接,DHT90的1号至4号引脚对应插入PIN插孔的1号至4号插孔。The digital temperature and humidity sensor DHT90 in the pin type package is selected as the digital package sensor module 4, which is responsible for the perception, collection and conversion of the collected data. DHT90 includes a capacitive polymer humidity sensor, a temperature sensor made of energy gap material, and seamless connection with 14-bit A/D converter and serial interface circuit on the same chip; four pins Single-row pin package, from top to bottom are pins 1 to 4, of which pin 1 is the clock line SCK, pin 2 is the power line VDD, pin 3 is the wire GND, The No. 4 pin is the data line DATA, the pin pitch is 2.54mm, and the pin length is 6.35mm. The sensor is packaged on the PCB. The schematic diagram of the external dimensions is shown in Figure 2(b). The operating voltage range of DHT90 is 2.4-5.5V, and the working voltage of 3V is selected in this embodiment, so the No. 2 pin and No. 3 pin are connected to the No. 2 jack and No. The power pin and ground pin of the module are connected; pin 1 and pin 4 of the DHT90 are connected to P1_0 and P1_3 of the HFZ-CC2430EM-22 module through the pin 1 and pin 4 of the PIN jack, and the DHT90 Pins 1 to 4 of the corresponding to jacks 1 to 4 inserted into the PIN jack.

按照以上方法完成实施例的硬件连接后,开始对整个系统进行软件设计。采用IAREmbedded Workbench(IAR嵌入式工作台)作为软件开发平台,因其调试功能强大,界面友好而被广泛应用,适合开发基于32/16/8位微处理器的嵌入式操作系统。IAR集C-SPY调试器、工程管理器、文件编辑器、库管理器、链接器、汇编工具和C/C++编辑器于一体。IAR软件内还有一个代码优化器,使得IAR嵌入式工作台可以为8051系列芯片生成可靠高效的FLASH代码。IAR Embedded Workbench的编译器具有以下特点:内存模式选择,高效浮点支持,瓶颈性能分析,便捷的中断模拟和处理,扩展工具和版本控制支持良好,目标特性扩充,完全与标准C兼容。After the hardware connection of the embodiment is completed according to the above method, the software design of the whole system is started. IARE Embedded Workbench (IAR Embedded Workbench) is used as the software development platform. It is widely used because of its powerful debugging function and friendly interface. It is suitable for developing embedded operating systems based on 32/16/8-bit microprocessors. IAR integrates C-SPY debugger, project manager, file editor, library manager, linker, assembly tool and C/C++ editor in one. There is also a code optimizer in the IAR software, which enables the IAR embedded workbench to generate reliable and efficient FLASH codes for 8051 series chips. The compiler of IAR Embedded Workbench has the following features: memory mode selection, high-efficiency floating-point support, bottleneck performance analysis, convenient interrupt simulation and processing, good support for extended tools and version control, extended target features, and is fully compatible with standard C.

使用IAR EW对实施例系统进行开发的步骤如下:The steps for developing the embodiment system using IAR EW are as follows:

(1)设置工程选项。(1) Set project options.

(2)编辑并编译源文件,生成应用程序文件。(2) Edit and compile source files to generate application program files.

(3)连接目标模块,包含调试选项。(3) Connect the target module, including debugging options.

(4)调试程序,如果出现错误返回到第二步修改文件然后重新调试。(4) Debug the program, if there is an error, return to the second step to modify the file and then re-debug.

(5)调试成功后,退出调试选项,完成片上系统的程序下载。(5) After the debugging is successful, exit the debugging option and complete the program download of the SoC.

实施例系统中的传感器节点的程序设计主要有两部分组成,一部分负责实现节点间的组网和数据传输,另一部分负责实现传感器监测数据的采集及读取。The program design of the sensor nodes in the system of the embodiment mainly consists of two parts, one part is responsible for realizing networking and data transmission between nodes, and the other part is responsible for realizing the collection and reading of sensor monitoring data.

节点间的组网及数据传输的工作流程为先对传感器节点进行初始化,初始化完成后,节点发出信号请求加入网络,可以采用父节点直接加入网络的方法来实现,如果传感器节点入网成功,传感器节点开始对监测区域内的对象进行数据采集,数据采集结束后向汇聚节点即协调器发送采集数据,发送成功之后返回到信息采集阶段,继续采集数据,周而复始不断采集数据发送数据。The working process of networking and data transmission between nodes is to initialize the sensor nodes first. After the initialization is completed, the nodes send a signal to request to join the network, which can be realized by directly joining the network with the parent node. If the sensor node is successfully connected to the network, the sensor node Start to collect data on the objects in the monitoring area. After the data collection is completed, send the collected data to the sink node, that is, the coordinator. After the sending is successful, return to the information collection stage, continue to collect data, and collect data and send data repeatedly.

DHT90和CC2430芯片上集成的8051微控制器通过时钟线和数据线的相互配合完成控制命令的发送和采集数据的传输。温湿度传感器DHT90的数据采集程序流程参阅图4所示,具体过程是:首先上电启动传感器,使传感器进入休眠状态;传感器启动后,由微控制器向传感器发送一个启动传输时序,完成初始化工作;初始化时序发送之后,微控制器向传感器发送测量命令,传感器确定是否接受命令;确定接收命令之后,等待测量数据直到传感器表示数据测量完毕;数据测量完毕后重新启动时钟,微控制器读取测量数据,数据读取完毕后通信结束。The integrated 8051 microcontroller on DHT90 and CC2430 completes the sending of control commands and the transmission of collected data through the mutual cooperation of clock lines and data lines. Refer to Figure 4 for the data acquisition program flow of the temperature and humidity sensor DHT90. The specific process is: first power on the sensor to make the sensor enter a dormant state; after the sensor is started, the microcontroller sends a start transmission sequence to the sensor to complete the initialization work ;After the initialization sequence is sent, the microcontroller sends a measurement command to the sensor, and the sensor determines whether to accept the command; after confirming that the command is received, wait for the measurement data until the sensor indicates that the data measurement is completed; restart the clock after the data measurement is completed, and the microcontroller reads the measurement Data, the communication ends after the data is read.

Claims (9)

1.一种基于ZigBee技术的传感器通用接口采集系统,其特征在于,所述系统由ZigBee模块(1)、电源模块(2)、传感器通用接口模块(3)和数字封装传感器模块(4)组成;所述ZigBee模块(1)通过时钟线、电源线、接地线和数据线与传感器通用接口模块(3)连接;所述电源模块(2)通过电源线和接地线与ZigBee模块(1)连接;所述传感器通用接口模块(3)通过时钟线、电源线、接地线和数据线与所述数字封装传感器模块(4)连接。1. a sensor general interface acquisition system based on ZigBee technology, is characterized in that, described system is made up of ZigBee module (1), power supply module (2), sensor general interface module (3) and digital encapsulation sensor module (4) ; Described ZigBee module (1) is connected with sensor universal interface module (3) by clock line, power line, ground wire and data line; Described power supply module (2) is connected with ZigBee module (1) by power line and ground wire ; The sensor general interface module (3) is connected to the digital packaging sensor module (4) through a clock line, a power line, a ground line and a data line. 2.按照权利要求1所述的基于ZigBee技术的传感器通用接口采集系统,其特征在于,所述ZigBee模块(1)通过微控制器将端口1的两个I/O引脚模拟为串行传输总线,分别为时钟线和数据线,用于传输控制命令和采集数据;ZigBee模块(1)只引用电源引脚、接地引脚和上述两个I/O引脚,作为电源线、接地线、时钟线和数据线。2. according to the sensor universal interface collection system based on ZigBee technology according to claim 1, it is characterized in that, described ZigBee module (1) is simulated as serial transmission by two I/O pins of port 1 by microcontroller Bus, which are clock lines and data lines, are used to transmit control commands and collect data; the ZigBee module (1) only uses power pins, ground pins and the above two I/O pins as power lines, ground lines, clock and data lines. 3.按照权利要求1所述的基于ZigBee技术的传感器通用接口采集系统,其特征在于,所述电源模块(2)采用两节五号电池通过电源线和接地线为ZigBee模块(1)提供3V的工作电压。3. according to the sensor universal interface collection system based on ZigBee technology according to claim 1, it is characterized in that, described power supply module (2) adopts two joints No. 5 batteries to provide 3V for ZigBee module (1) by power line and ground wire working voltage. 4.按照权利要求1所述的基于ZigBee技术的传感器通用接口采集系统,其特征在于,所述传感器通用接口模块(3)包括时钟线、电源线、接电线和数据线,外形采用PIN插孔。4. according to the sensor universal interface collection system based on ZigBee technology according to claim 1, it is characterized in that, described sensor universal interface module (3) comprises clock line, power supply line, connecting wire and data line, and profile adopts PIN jack . 5.按照权利要求4所述的传感器通用接口模块(3),其特征在于,所述PIN插孔采用单排四孔插孔形式,1号插孔为时钟线、2号插孔为电源线、3号插孔为接地线、4号插孔为数据线,插孔间距为2.54mm。5. according to the sensor universal interface module (3) described in claim 4, it is characterized in that, described PIN jack adopts single-row four-hole jack form, and No. 1 jack is clock line, and No. 2 jack is power cord , The No. 3 jack is the ground wire, the No. 4 jack is the data line, and the distance between the jacks is 2.54mm. 6.按照权利要求1所述的基于ZigBee技术的传感器通用接口采集系统,其特征在于,所述数字封装传感器模块(4)是将传感器及其外围电路封装在一个PCB板上,并引出四个引脚分别为时钟线、电源线、接地线和数据线;数字封装传感器模块(4)通过时钟线、电源线、接电线和数据线与传感器通用接口模块(3)连接;外形采用四针单排引脚封装;输出的采集数据为数字输出。6. according to the sensor general interface acquisition system based on ZigBee technology according to claim 1, it is characterized in that, described digital encapsulation sensor module (4) is that sensor and peripheral circuit thereof are packaged on a PCB board, and draw four The pins are clock line, power line, ground line and data line respectively; the digital package sensor module (4) is connected with the sensor general interface module (3) through the clock line, power line, connection line and data line; the shape adopts four-pin single Pin row package; the output acquisition data is digital output. 7.按照权利要求1所述的基于ZigBee技术的传感器通用接口采集系统,其特征在于,所述电源线和接地线通过传感器通用接口模块(3)为数字封装传感器模块(4)提供3V的工作电压;所述的时钟线和数据线相互配合完成控制命令的发送和采集数据的传输。7. according to the sensor universal interface collection system based on ZigBee technology according to claim 1, it is characterized in that, described power line and ground wire provide the work of 3V for digital encapsulation sensor module (4) by sensor universal interface module (3) voltage; the clock line and the data line cooperate with each other to complete the sending of control commands and the transmission of collected data. 8.按照权利要求6所述的基于ZigBee技术的传感器通用接口采集系统,其特征在于,所述四针单排引脚封装采用PIN插针作为引脚,1号引脚为时钟线、2号引脚为电源线、3号引脚为接地线、4号引脚为数据线,引脚间距为2.54mm,引脚长度为6.35mm。8. according to the sensor universal interface acquisition system based on ZigBee technology according to claim 6, it is characterized in that, described four pin single-row pin package adopts PIN pin as pin, No. 1 pin is clock line, No. 2 The pin is the power line, the 3rd pin is the grounding line, and the 4th pin is the data line, the pin spacing is 2.54mm, and the pin length is 6.35mm. 9.按照权利要求6所述的基于ZigBee技术的传感器通用接口采集系统,其特征在于,当封装传感器为数字型传感器时,可按照四线输出直接封装;当封装的传感器为模拟型传感器时,需要将传感器经A/D转换器与串行接口连接,保证四线数字输出。9. according to the sensor universal interface acquisition system based on ZigBee technology according to claim 6, it is characterized in that, when packaged sensor is digital sensor, can output according to four wires and directly package; When the sensor of package is analog sensor, The sensor needs to be connected to the serial interface through the A/D converter to ensure the four-wire digital output.
CN201210301337.7A 2012-08-22 2012-08-22 Universal sensor interface acquisition system based on ZigBee technology Expired - Fee Related CN102801818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210301337.7A CN102801818B (en) 2012-08-22 2012-08-22 Universal sensor interface acquisition system based on ZigBee technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210301337.7A CN102801818B (en) 2012-08-22 2012-08-22 Universal sensor interface acquisition system based on ZigBee technology

Publications (2)

Publication Number Publication Date
CN102801818A true CN102801818A (en) 2012-11-28
CN102801818B CN102801818B (en) 2015-05-20

Family

ID=47200778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210301337.7A Expired - Fee Related CN102801818B (en) 2012-08-22 2012-08-22 Universal sensor interface acquisition system based on ZigBee technology

Country Status (1)

Country Link
CN (1) CN102801818B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458535A (en) * 2013-08-28 2013-12-18 北京师范大学 Low-power-consumption weak signal data acquisition and wireless transmission module
CN104376665A (en) * 2014-11-28 2015-02-25 中国电子科技集团公司第二十八研究所 Monitoring node of perimeter protection system of wireless sensor network
CN104992551A (en) * 2015-07-30 2015-10-21 成都泰盟软件有限公司 Universal sensor interface
CN105812030A (en) * 2016-03-10 2016-07-27 东华大学 Sensor general interface based on low power consumption bluetooth technology
CN106707853A (en) * 2016-12-09 2017-05-24 广州云雾小桥信息科技有限公司 Network equipment controller
CN107918080A (en) * 2016-10-11 2018-04-17 大陆汽车电子(连云港)有限公司 Sensor connection state detection method, device and sensor
CN111127860A (en) * 2019-12-25 2020-05-08 重庆特斯联智慧科技股份有限公司 Sensor access device based on Internet of things
CN113467594A (en) * 2020-03-30 2021-10-01 北京小米移动软件有限公司 Connecting module and terminal equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201465282U (en) * 2009-07-13 2010-05-12 北京交通大学 A Wireless Sensor Network Node Based on Universal Modular Interface
CN202121791U (en) * 2011-07-18 2012-01-18 国电南京自动化股份有限公司 Modular Zigbee wireless sensor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201465282U (en) * 2009-07-13 2010-05-12 北京交通大学 A Wireless Sensor Network Node Based on Universal Modular Interface
CN202121791U (en) * 2011-07-18 2012-01-18 国电南京自动化股份有限公司 Modular Zigbee wireless sensor

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458535A (en) * 2013-08-28 2013-12-18 北京师范大学 Low-power-consumption weak signal data acquisition and wireless transmission module
CN103458535B (en) * 2013-08-28 2016-08-10 北京师范大学 A low power consumption weak signal data acquisition and wireless transmission module
CN104376665A (en) * 2014-11-28 2015-02-25 中国电子科技集团公司第二十八研究所 Monitoring node of perimeter protection system of wireless sensor network
CN104992551A (en) * 2015-07-30 2015-10-21 成都泰盟软件有限公司 Universal sensor interface
CN104992551B (en) * 2015-07-30 2018-05-18 成都泰盟软件有限公司 Universal sensor interface
CN105812030A (en) * 2016-03-10 2016-07-27 东华大学 Sensor general interface based on low power consumption bluetooth technology
CN107918080A (en) * 2016-10-11 2018-04-17 大陆汽车电子(连云港)有限公司 Sensor connection state detection method, device and sensor
CN107918080B (en) * 2016-10-11 2020-12-18 大陆汽车电子(连云港)有限公司 Sensor connection state detection method and device and sensor
CN106707853A (en) * 2016-12-09 2017-05-24 广州云雾小桥信息科技有限公司 Network equipment controller
CN111127860A (en) * 2019-12-25 2020-05-08 重庆特斯联智慧科技股份有限公司 Sensor access device based on Internet of things
CN113467594A (en) * 2020-03-30 2021-10-01 北京小米移动软件有限公司 Connecting module and terminal equipment

Also Published As

Publication number Publication date
CN102801818B (en) 2015-05-20

Similar Documents

Publication Publication Date Title
CN102801818B (en) Universal sensor interface acquisition system based on ZigBee technology
CN101902831B (en) Node in wireless sensor network, applicable to detection of mechanical equipment vibration
CN103453985B (en) Distributed wireless light intensity measuring instrument
CN102982671A (en) Mechanical vibration monitoring special-purposed wireless sensor network node
CN102938897B (en) Wireless charging node capable of monitoring signal strength in real time
CN102520961B (en) Off-chip online programmable SOC (system on a chip) and control method for same
CN103279125B (en) Response simulation and test equipment for CPCI (Compact Peripheral Component Interconnect) bus missile-borne components and implementation method of response simulation and test equipment
CN201654162U (en) Secondary Cable Aligner
CN105812030A (en) Sensor general interface based on low power consumption bluetooth technology
CN203179279U (en) Remote transparent data acquisition and transmission system based on optical fiber
CN104317691A (en) Simulation debugging and code downloading tool
CN110532010A (en) A kind of method of the volume production device upgrading solid state hard disk of band USB
CN209842365U (en) Signal processing system
CN105573957A (en) Measuring instrument programmable interface conversion system and method
CN202495038U (en) ZigBee product development device
CN201550286U (en) Wireless Communication Module Based on Wireless Sensor Network and GPRS
CN209086727U (en) The field bus communication device of PLC extension based on ARM
CN204667082U (en) A kind of mainboard of bus Internet of Things peace control terminal device
CN201000625Y (en) Field programmable gate array online configuration device
CN223513465U (en) Mobile robot motion control module
CN206575430U (en) It is conveniently replaceable the electric energy data access interface equipment of module
CN205693902U (en) A kind of USB interface intelligence sensor is powered and wireless networked device
CN203122381U (en) Highly integrated electronic sphygmomanometer module
CN103530262A (en) Multifunctional download line with USB interface
CN218211411U (en) Self-programming electrical signal detection board, detection device and detection system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150520