CN101820695B - Embedded gateway of indoor photo sensor wireless network - Google Patents

Embedded gateway of indoor photo sensor wireless network Download PDF

Info

Publication number
CN101820695B
CN101820695B CN2010101082871A CN201010108287A CN101820695B CN 101820695 B CN101820695 B CN 101820695B CN 2010101082871 A CN2010101082871 A CN 2010101082871A CN 201010108287 A CN201010108287 A CN 201010108287A CN 101820695 B CN101820695 B CN 101820695B
Authority
CN
China
Prior art keywords
module
wireless network
main control
gateway
control module
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.)
Expired - Fee Related
Application number
CN2010101082871A
Other languages
Chinese (zh)
Other versions
CN101820695A (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN2010101082871A priority Critical patent/CN101820695B/en
Publication of CN101820695A publication Critical patent/CN101820695A/en
Application granted granted Critical
Publication of CN101820695B publication Critical patent/CN101820695B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses an embedded gateway of indoor photo sensor wireless network, mainly comprising a wireless network communication control device and an information management control device. The wireless network communication control device comprises a first master control module, a general photo sensor interface module, a wireless network communication module and a gateway access module; the information management control device comprises a second master control module, a man-machine interaction module, an information configuration module, a power management module and a clock management module, wherein the first master control module is respectively connected with the general photo sensor interface module, the wireless network communication module and the gateway access module; the second master control module is respectively connected with the man-machine interaction module, the information configuration module, the power management module and the clock management module; the power management module is connected with the general photo sensor interface module; and the first master control module is connected with the second master control module. In the invention, the data processing capability of the photo sensor wireless network is improved through the dual core control structure.

Description

The embedded gateway of indoor photo sensor wireless network
Technical field
The present invention relates to a kind of computer access scheme of Interior Illumination Environment wireless sensor network, relate in particular to a kind of embedded gateway based on indoor photo sensor wireless network.
Background technology
Luminous environment is one of important indicator of indoor environment, need satisfy requirements such as people's work, life, aesthetic and vision protection.Luminous environment parameter commonly used comprises illumination, brightness, space illumination, uv radiation intensity, year exposure, colourity etc.Test data can provide real luminous environment information to assessment, planning and the design of room lighting the basis to be provided, the harm that can prevent unreasonable illumination or lamp failure to bring simultaneously accurately.Present photometry technology is as independent technique; Fairly perfect; But in the luminous environment testing evaluation, just seeming lacks systematicness and versatility, mainly shows as: (1) concentrates in the period some key component is measured, and can't implement monitoring for a long time; (2) measurement parameter is single, and versatility is poor, poor expandability; (3) each transducer independent measurement lacks contact each other, can not positional information and luminous environment information is unified; (4) lack effective network management, automaticity is not high.
If different types of optical sensor is linked to be wireless network; Set up the contact between sensing station information and the sample information; The unification that realizes data compiles processing, just can on the basis of existing photometry technology, realize the distributed real-time system monitoring of luminous environment.The Zigbee technology because of its closely, the characteristic of low complex degree, low-power consumption, low data rate, can be applied in well in the indoor photo sensor wireless network; The advantage of its radio communication has been saved the trouble of wiring, saves and installs and improvement expenses, and greatly reduce disaster hidden-trouble.Along with computer technology, network communications technology, development of auto-control technology; Intelligent requirements to network of light sensors is also increasingly high; The user hopes and can carry out visualization display to the sensor sample result through computer, and utilizes the processed offline result that the optical sensor wireless network is reconfigured.
Summary of the invention
To the demand, the purpose of this invention is to provide a kind of embedded gateway of indoor photo sensor wireless network, to improve the data-handling capacity of optical sensor wireless network.
For achieving the above object; Technical solution of the present invention is: the embedded gateway of this indoor photo sensor wireless network mainly comprises wireless network communication control apparatus and information management control device, and said wireless network communication control apparatus comprises first main control module, general light sensor interface module, wireless network communication module and gateway AM access module; Said information management control device comprises second main control module, human-computer interaction module, information collocation module, power management module and Clock management module; AM access module links to each other said first main control module with gateway with general light sensor interface module, wireless network communication module respectively; Second main control module links to each other with human-computer interaction module, information collocation module, power management module and Clock management module respectively, and power management module is connected with the general light sensor interface module; First main control module is connected with second main control module.
Further; The circuit of general light sensor interface module according to the invention is: an end of resistance R 1 is connected with the NO pin of super-low impedance analog switch S1, and the other end of resistance R 1 is connected with the negative terminal of amplifier A1, the COM pin of super-low impedance analog switch S1 and the RL pin of digital regulation resistance U2 respectively; The RH pin of digital regulation resistance U2 is connected with the output of amplifier A1 and the input of A/D converter respectively; The positive ending grounding of amplifier A1.
Further, wireless network communication module according to the invention is connected with the network state monitor.
Further, gateway AM access module according to the invention is connected with the communication quality indicating device.
It is thus clear that what the embedded gateway of indoor photo sensor wireless network of the present invention adopted is the double-core control structure, first main control module is the wireless communication controller, integrated wireless network communication module, expanding universal optical sensor interface module, gateway AM access module; Second main control module is the information management controller, expansion human-computer interaction module, information collocation module, power management module and Clock management module.Two group controller concurrent workings can realize the task independent operating, also can realize collaborative work through data passes and external interface.
Compared with prior art, advantage of the present invention is:
1) two group controller parallel processings task separately, transfer of data and fast operation, the data-handling capacity of optical sensor wireless network is improved thus;
2) control module adopts the low-power consumption on-chip system chip, and cost is low, and good reliability is portable strong;
3) adopt the general light sensor interface module, extensibility is strong;
4) utilize the Zigbee wireless communication technology to carry out Long-distance Control to optical sensor easily, reduce the risk and cost that network layout brings greatly, the convenient installation and transformation;
5) embedded gateway of the present invention both can be connected between optical sensor wireless network and the host computer, also can break away from host computer and work alone.When being connected between optical sensor wireless network and the host computer, the user can monitor and manage distributed optical sensor wireless network from far-end through host computer easily, also makes intelligent management, centralized control become possibility simultaneously.When the disengaging host computer works alone, obtain sample information or assign the adjustment instruction through man-machine interface.
Description of drawings
Fig. 1 is the structural representation block diagram of embedded gateway of the present invention;
Fig. 2 is the structural representation block diagram of wireless network communication control apparatus of the present invention;
Fig. 3 is the circuit theory diagrams of general light sensor interface module of the present invention;
Fig. 4 is the structural representation block diagram of information management control device of the present invention;
Fig. 5 is the double-core parallel organization schematic diagram of embedded gateway of the present invention;
Fig. 6 is the flow chart of embedded gateway of the present invention and optical sensor wireless communication under the host computer effect.
Embodiment
The embedded gateway of indoor photo sensor wireless network of the present invention provides man-machine interface, realizes the computer access function of network of light sensors; Gateway adopts the double-core control structure, handles wireless communication and information management task respectively; Expanding universal optical sensor interface is supported standard USB access way; Use graphic user interface to realize visual monitoring and control through host computer, set up rapid and reliable with the sensor node in the optical sensor wireless network and be connected, detect network state in real time.
With reference to Fig. 1, the embedded gateway of indoor photo sensor wireless network of the present invention comprises wireless network communication control apparatus and information management control device.Wherein, wireless network communication control apparatus comprises first main control module 1, general light sensor interface module 2, wireless network communication module 3, gateway AM access module 4, network state monitor 10 and communication quality indicating device 11; The information management control device comprises second main control module 5, human-computer interaction module 6, information collocation module 7, power management module 8 and Clock management module 9; First main control module 1 links to each other with general light sensor interface module 2, wireless network communication module 3 and gateway AM access module 4 respectively; Wireless network communication module 3 connects network state monitor 10; Gateway AM access module 4 connects communication quality indicating device 11; Second main control module 5 links to each other with human-computer interaction module 6, information collocation module 7, power management module 8 and Clock management module 9 respectively, and power management module 8 is connected with general light sensor interface module 2; First main control module 1 is connected with second main control module 5.
Wherein, general light sensor interface module 2 links to each other with the I/O mouth of first main control module 1; Gateway AM access module 4 links to each other with the data/address bus of first main control module 1; First main control module 1 links to each other through serial ports with second main control module 5; Human-computer interaction module 6 links to each other with the I/O mouth of second main control module 5 respectively with information collocation module 7; Power management module 8 links to each other with the spi bus of second main control module 5; Clock management module 9 links to each other with the I/O interface of second main control module 5.
Fig. 2 shows a kind of embodiment of wireless network communication control apparatus.Wherein, first main control module 1 adopts the CC2430 chip of Chipcon company production.General light sensor interface module 2 is the optical sensor general-purpose interface; This general light sensor interface module 2 can be connected with chromaticity transducer, illuminance transducer and luminance sensor etc.; Convert dissimilar light signals to digital signal corresponding thus; And the basis signal characteristic carries out data processing, realizes multiplexed.The circuit theory diagrams of general light sensor interface module 2 are as shown in Figure 3.Wherein, an end of resistance R 1 connects the input signal of optical sensor and the NO pin of super-low impedance analog switch S1 respectively, and the other end of resistance R 1 connects the negative terminal of amplifier A1, the COM pin of super-low impedance analog switch S1 and the RL pin of digital regulation resistance U2 respectively; The RH pin of digital regulation resistance U2 connect respectively amplifier A1 output and the input of A/D converter; The positive ending grounding of amplifier A1.During work, the IN pin of super-low impedance analog switch S1 connects the IO mouth of CC2430 chip, and the NC pin is unsettled; The RW pin of digital regulation resistance U2 connects the IO mouth of CC2430 chip.The ISL84780 chip that super-low impedance analog switch S1 adopts Intersil company to produce.The curtage signal of the program-controlled switching input of the parallel-connection structure of resistance R 1 and super-low impedance analog switch S1 is realized the general access of transducer.The model of digital regulation resistance U2 is X9241AWP, can be by the size of program control resistance.The OP27 chip that amplifier A1 adopts AD company to produce.The AD9225 chip that A/D converter adopts AD company to produce.Amplifier A1 and A/D converter all distribute voltage by power supervisor module 8.
Wireless network communication module 3 is integrated in first main control module 1.As shown in Figure 2, wireless network communication module 3 communicates through the less radio-frequency transmission with extraneous child node.Further, in first main control module 1, also be integrated with network state monitor 10, confirm link quality, judge sensor node working region and fault message, in real time monitoring state of network to utilize the relevant information that packet carries in the wireless communication procedure.USB interface is adopted in gateway AM access module 4, specifically can be the PDIUSBD12 chip, carries out the transmission of high speed batch data.Communication quality indicating device 11 utilizes the external LED light of GL pin of PDIUSBD12 chip; Realize the indicative function of the communications status that gateway inserts; Can judge the physical connection of USB interface whether normal and with the stage condition of compunication: in enumeration stage; LED intermittently glimmers, and USB correctly discerns, and then LED keeps illuminating state.In addition, as shown in Figure 2, first main control module 1 is connected with second main control module 5 through serial ports.
Wherein a kind of execution mode of information management control device can be referring to Fig. 4.The MSP430F449 chip that second main control module 5 adopts TI company to produce; It is the infrared receiving terminal of ATA2526S338 that human-computer interaction module 6 adopts 240*160 black-and-white crystal screen and atmel corp's model.Liquid crystal display screen is connected with the MSP430F449 chip respectively with infrared receiving terminal.It is the IS61WV20488 chip that information collocation module 7 adopts the static RAM (SRAM) model of ISSI company, can store pending data.It is the chip of FS1610 that power management module 8 adopts ETC company model, and the multi-source output of this chip can be satisfied the different voltage requirements of each module of system.It is the DS1307 chip that Clock management module 9 adopts MAXIM company models, and this chip is not shaken by the CPU oikocryst and the influence of electric capacity, accurate timing.
The embedded gateway of indoor photo sensor wireless network of the present invention; Adopt the double-core control structure; Two group controllers (be wireless communication controller and information management controller, correspond respectively to first main control module 1 and second main control module 5) are parallel, and each controller can the independent process data task; Also can utilize data passes realization collaborative work between two group controllers, thereby improve the data-handling capacity of optical sensor wireless network.Fig. 5 is the double-core parallel organization schematic diagram of embedded gateway.First main control module is the wireless communication controller; Carrying out active data through its inner integrated RF transceiver with the optical sensor wireless network node communicates by letter; The image data of each test point sensor unit is transmitted along other sensor node hop-by-hops; To gateway node, gateway node receives the ordinary node data to data after the multi-hop route, data is analyzed the fusion back send to host computer through gateway AM access module 4; The wireless communication controller need be managed and be provided with sensor network, comprises scanning and selected physical channel, distributes the network address in the wireless sensor network, the initialization network settings; Cooperate MAC algorithm and Routing Protocol that network adopted, assist other network nodes to set up route; Receive the control command of host computer simultaneously, accomplish user's request.First main control module 1 has also been expanded the general light sensor interface module, can realize illumination, brightness; Space illumination, uv radiation intensity, the unified of multiple photometric and chromatric transducer such as colourity inserts; Can carry out local measurement to multiple luminous environment parameter, strengthen its versatility and extensibility; Through data format corresponding with it to the setting of variety classes parameter on software design; After sampled data gets into network communication controller; Controller carries out corresponding conversion process according to different data formats and becomes uniform data form and mark in addition, uploads and stores to make things convenient for classification of Data.
Embedded gateway of the present invention is realized double-core control as follows:
The data of one, finishing dealing with through first main control module 1 (being the wireless communication controller) transmit to second main control module 5 through serial ports; Second main control module 5 at first to reception data physical message classification (like illumination; Brightness, space illumination, parameters such as uv radiation intensity) analyze according to its data frame format; Handle accordingly then, and the storage after will handling is to information collocation module 7.The control command that same host computer is assigned also can be sent to second main control module 5 through serial line interface from first main control module 1, the information collocation module 7 of its expansion is reset adjustment data storage location and mode; According to user's request power management module 8 and Clock management module 9 are adjusted accordingly, and control, change the displaying contents and the form of man-machine interface, the conversion keys function through set inside to human-computer interaction module.
Two, same, the external information collocation module 7 inner storage data of second main control module 5 (being the information management controller) also transmit to first main control module 1 through serial ports, show, handle and store through USB interface to host computer; Also can be to the control information of first main control module, 1 transmission man-machine interface; Realize the optical sensor radio network configuration; The adjustment network configuration; Add, deletion of node, change the general light sensor interface sample frequency and the dormancy period etc. of external transducer, and adjustment information uploaded to host computer synchronously; When breaking away from host computer, can carry out online data to the optical sensor wireless network and handle and monitor, realize that embedded gateway works alone through the expansion man-machine interface.
Fig. 6 shows under the host computer effect, the flow chart of embedded gateway of the present invention and optical sensor wireless communication.After powering on, system carries out initialization; Handle the USB incident; The instruction of monitoring PC control; After PDIUSBD12 receives host computer data sent bag, thereby data are got back to the CPU memory and judge that according to interrupt register the type of usb data bag sets up correct event flag and handle with the notice main circulating program from the inside FIFO of PDIUSBD12.When receiving correct controlling of sampling information, message is handled, store data is to EpBuf, and the foreground gets into the wireless receiving state, waits for the information of informing of waking up that receives child node.If do not receive any packet information in the latent period 20s, then transmit corresponding error reporting to host computer through USB equally; Need judge when receiving packet whether this packet is the information of waking up of interdependent node.Successfully receive after the information of waking up of correlator node to the child node wireless transmission controlling of sampling order of correspondence and get into the wireless receiving state; Wait for and receive sampled data; If receive correct optical information sampled data bag at the appointed time, then send packet to host computer and remove corresponding control bit and get into circulation again; The repeating transmission that circulates when not receiving the proper data bag in the stipulated time is retransmitted and is withdrawed from circulation when number of times surpasses 3 times and report an error to host computer.Whole communication process can be divided into two parts, host computer communication and communicate by letter with sensor network nodes.In the upper machine communication process; The function of major control program is in the embedded gateway: adopt drives interrupts to realize that the main operation controller foreground task is independent of the backstage execution of USB transmission;, main circulating program utilizes the subprogram of each layer functions of event flag serial connection in handling; Set up overall situation contact with this, final data reaches host computer by the end points 2 of PDIUSBD12 through the bulk transfer mode.Form by two parts with the communication protocol of sensor node; Upper strata communications protocol and lower floor's communications protocol: mechanism such as the communications protocol utilization on upper strata is shaken hands, repeating transmission are managed the communication between the adjacent node; After sending node receives that data are divided into groups; Through data being added stem and the link layer packet of a verification and structure that pre-sets, then this grouping is sent to receiver, receiver utilizes verification and detects the integrality of grouping; And provide and feed back to the success of transmitter with expression branch group of received; Accomplish rational information exchanging process, phenomenon of reflection, diffraction and scattering of reduction signal waveform and so on and path consume and barrier exists the wireless channel that is caused unstable, guarantee reliable, high efficiency transfer of data.The home control network communication protocol of lower floor is to be responsible for the data flow on upper strata is exchanged between wireless radio frequency modules through wireless mode; The data buffer zone receives data through the mode of first in first out; Use the special function register interface to read the first in first out data, internal memory and FIFO buffer data move uses dma mode to realize.Be that unit carries out communication with the Frame between the upper-layer protocol; For lower floor's wireless telecommunications is that unit carries out communication with the data byte just then; Be about to each frame data and all resolve into data byte,, data byte is reformulated Frame as useful data transmit then according to protocol format.Data frame format comprises length mark position that the agreement of IEEE301.15.4 adds automatically and RSSI, LQI position, the source the destination address position, keep fault-tolerant position and valid data position.RSSI (Receive signal StrengthIndicator) is an indicating device of accepting intensity data; LQI (Link Quality Indicator) is the link-quality indicating device; These two is the important parameter of reflection communication quality, is generated automatically by hardware, can be through link quality is confirmed in the collection of these two parameters; Judge sensor node working region and fault message, in real time monitoring state of network.

Claims (3)

1. the embedded gateway of an indoor photo sensor wireless network; It is characterized in that: comprise wireless network communication control apparatus and information management control device, said wireless network communication control apparatus comprises first main control module (1), general light sensor interface module (2), wireless network communication module (3) and gateway AM access module (4); Said information management control device comprises second main control module (5), human-computer interaction module (6), information collocation module (7), power management module (8) and Clock management module (9); Said first main control module (1) links to each other with general light sensor interface module (2), wireless network communication module (3) and gateway AM access module (4) respectively; Second main control module (5) links to each other with human-computer interaction module (6), information collocation module (7), power management module (8) and Clock management module (9) respectively, and power management module (8) is connected with general light sensor interface module (2); First main control module (1) is connected with second main control module (5); The circuit of said general light sensor interface module (2) is: an end of resistance R 1 is connected with the NO pin of super-low impedance analog switch S1, and the other end of resistance R 1 is connected with the negative terminal of amplifier A1, the COM pin of super-low impedance analog switch S1 and the RL pin of digital regulation resistance U2 respectively; The RH pin of digital regulation resistance U2 is connected with the output of amplifier A1 and the input of A/D converter respectively; The positive ending grounding of amplifier A1.
2. the embedded gateway based on indoor photo sensor wireless network according to claim 1 is characterized in that: said wireless network communication module (3) is connected with network state monitor (10).
3. the embedded gateway based on indoor photo sensor wireless network according to claim 1 is characterized in that: said gateway AM access module (4) is connected with communication quality indicating device (11).
CN2010101082871A 2010-02-09 2010-02-09 Embedded gateway of indoor photo sensor wireless network Expired - Fee Related CN101820695B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101082871A CN101820695B (en) 2010-02-09 2010-02-09 Embedded gateway of indoor photo sensor wireless network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101082871A CN101820695B (en) 2010-02-09 2010-02-09 Embedded gateway of indoor photo sensor wireless network

Publications (2)

Publication Number Publication Date
CN101820695A CN101820695A (en) 2010-09-01
CN101820695B true CN101820695B (en) 2012-07-04

Family

ID=42655575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101082871A Expired - Fee Related CN101820695B (en) 2010-02-09 2010-02-09 Embedded gateway of indoor photo sensor wireless network

Country Status (1)

Country Link
CN (1) CN101820695B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387185B (en) * 2011-06-07 2014-10-22 浙江大学 Double-frequency-band communication device for indoor light sensor wireless network
CN103124202A (en) * 2012-11-29 2013-05-29 浙江大学 System and method for testing signal path losses and average correlation values of ZigBee
CN106128118A (en) * 2016-06-08 2016-11-16 青岛交通科技信息有限公司 A kind of wireless vehicle detecting system
CN106899498A (en) * 2017-04-13 2017-06-27 山东万腾电子科技有限公司 Embedded industry intelligent gateway and its real-time data acquisition method based on SoC

Also Published As

Publication number Publication date
CN101820695A (en) 2010-09-01

Similar Documents

Publication Publication Date Title
CN100514233C (en) EPA on-site controller based on SOPC
CN201750562U (en) Device for interconnecting the wireless sensor network with the internet and the mobile communication net
CN101719922B (en) Device and method of protocol conversion between PROFIBUS-DP industrial fieldbus and wireless ZIGBEE
CN101820695B (en) Embedded gateway of indoor photo sensor wireless network
CN104950760A (en) Power supply management integrated marine monitoring general data collector
CN102387185B (en) Double-frequency-band communication device for indoor light sensor wireless network
CN205430732U (en) Configuration device based on DALI system
CN107015507B (en) Comprehensive expansion system of central controller
CN103453985A (en) Distribution type wireless luminous intensity measurement instrument
Gomes et al. WECO: A wireless platform for monitoring recycling point spots
CN107896120B (en) Automatic environmental information monitoring method and system
CN102833142A (en) Profibus-DP slave station device on basis of FDGA (Field Programmable Gate Array)
CN104932373A (en) Intelligent industrial network protocol wireless converter
CN107547475A (en) A kind of data processing equipment and its system for supporting more communication protocol conversions
CN204406757U (en) A kind of Internet of Things experimental box based on embedded system
CN205176626U (en) Intelligent movement communication base station energy management device
CN110248332A (en) A kind of substation field SF6 leakage alarm monitoring device and monitoring method
CN204928872U (en) Gateway equipment with touch screen
CN105049311A (en) Two-bus communication method and system
CN201797603U (en) Embedded gateway of indoor light sensor wireless network
KR20140145306A (en) Lighting system
CN205071023U (en) Gateway equipment with dual controller
CN1303162A (en) Communication management device of measuring and control unit in automatization system of transformer station
CN201345391Y (en) Control panel system used in electric automobile battery charger
CN210202093U (en) Wireless communication module for live-action stage and live-action stage 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

Granted publication date: 20120704

Termination date: 20150209

EXPY Termination of patent right or utility model