CN102387185A - Double-frequency-band communication device for indoor light sensor wireless network - Google Patents

Double-frequency-band communication device for indoor light sensor wireless network Download PDF

Info

Publication number
CN102387185A
CN102387185A CN201110150814XA CN201110150814A CN102387185A CN 102387185 A CN102387185 A CN 102387185A CN 201110150814X A CN201110150814X A CN 201110150814XA CN 201110150814 A CN201110150814 A CN 201110150814A CN 102387185 A CN102387185 A CN 102387185A
Authority
CN
China
Prior art keywords
module
wireless network
main control
control module
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
CN201110150814XA
Other languages
Chinese (zh)
Other versions
CN102387185B (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 ZHIGUANG ILLUMINATION TECHNOLOGY RESEARCH Co Ltd
Zhejiang University ZJU
Original Assignee
ZHEJIANG UNIVERSITY ZHIGUANG ILLUMINATION TECHNOLOGY RESEARCH Co Ltd
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 ZHIGUANG ILLUMINATION TECHNOLOGY RESEARCH Co Ltd, Zhejiang University ZJU filed Critical ZHEJIANG UNIVERSITY ZHIGUANG ILLUMINATION TECHNOLOGY RESEARCH Co Ltd
Priority to CN201110150814.XA priority Critical patent/CN102387185B/en
Publication of CN102387185A publication Critical patent/CN102387185A/en
Application granted granted Critical
Publication of CN102387185B publication Critical patent/CN102387185B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention provides a double-frequency-band communication device for an indoor light sensor wireless network. The double-frequency-band communication device is a wireless network communication device of a tree cluster shape which is connected with gateway nodes and sub nodes in a cluster in an indoor light environment wireless network and can receive wireless data in two different frequency bands, so danger of breakdown of the whole system due to the same frequency interference and loss of important data during switching of the frequency bands can be avoided effectively, and the data processing capacity of the light sensor wireless network is improved. The double-frequency-band communication device comprises a wireless network data processing device and a wireless network data acquisition device, wherein the wireless network data processing device comprises a first main control module, a first wireless network communication module, a first frequency setting module, a universal serial bus (USB) interface module, a communication quality indication module and a double-core communication quality monitoring module; and the wireless network data acquisition device comprises a second main control module, a second wireless network communication module, a second frequency setting module, a data acquisition indication module and a power supply management module.

Description

The two-band communicator of indoor photo sensor wireless network
Technical field
The present invention relates to a kind of Interior Illumination Environment wireless sensor network monitoring system, relate in particular to a kind of two-band communicator based on indoor photo sensor wireless network.
Background technology
Luminous environment be by rayed in the formed environment of its interior or exterior space, comprise outdoor lighting environment and Interior Illumination Environment.Luminous environment design is an organic component of modern building design, its objective is to pursue rational design standard and lighting apparatus that energy savings satisfies requirements such as people's work, life, aesthetic and vision protection simultaneously.Luminous environment parameter commonly used comprises illumination, brightness, colourity, uv radiation intensity, year exposure etc.Test data can provide real luminous environment information accurately, for assessment, planning and the design of interior lighting system provides the basis, and the harm that can prevent unreasonable illumination or lighting apparatus fault to bring simultaneously.Present photometry technology is as independent technique, and is fairly perfect, but in the luminous environment testing evaluation, just seems shortage systematicness and versatility, mainly shows as:
(1) independent measurement between each transducer lacks general networking agreement and grid;
(2) data-handling capacity of optical sensor wireless network a little less than, single optical sensor node can't carry out full-duplex communication;
(3) be prone to the phase mutual interference with the radio communication between the frequency range sensor node;
(4) lack effective network management, automaticity is not high;
(5) be prone to lose important measurement data;
(6) concentrate on and some key component is measured in a period, can't implement monitoring for a long time.
Indoor photo sensor wireless network is made up of the node of One's name is legion, and each node is gathered the luminous environment data through optical sensor and beamed back host computer with the mode of wireless multi-hop, realizes the user's interest zone is monitored.For improving the operating efficiency of indoor photo sensor wireless network, the signal that reduces simultaneously between the similar frequency bands disturbs, and the indoor photo sensor wireless network node is made as a bunch mesh network topological structure, uses the different communication frequency range between different bunches.Since bunch first node be responsible for gateway node with bunch in data communication between the child node, and gateway node with bunch in child node use different communications bands, this feasible bunch first node needs can receive and send the wireless data of two different frequency ranges simultaneously.
Summary of the invention
To the demand; The two-band communicator that the purpose of this invention is to provide a kind of indoor photo sensor wireless network; In it is (tree bunch shape) Interior Illumination Environment wireless network a kind of connect gateway node and bunch in the wireless network communication apparatus of child node; Can receive the wireless data of two different frequency ranges simultaneously, avoid losing of when frequently disturbing the danger that is prone to cause the whole system collapse and frequency range to switch significant data effectively, improve the data-handling capacity of optical sensor wireless network.
For achieving the above object, technical solution of the present invention is: a kind of two-band communicator of indoor photo sensor wireless network is characterized in that it comprises wireless network data processing unit and wireless network data harvester; Said wireless network data processing unit comprises:
First main control module is used to handle radio network netgate node control signal;
The first wireless network communication module is used for the radio communication between said two-band communicator and the gateway node;
The first frequency setting module is used for the communication frequency of the first wireless network communication module is provided with;
Usb interface module is used for communicating by letter between said two-band communicator and the host computer;
The communication quality indicating module is used to monitor and indicate the communications status that inserts through USB interface;
Double-core communication quality monitoring modular is used to make first main control module and the mutual co-ordination of second main control module;
Said wireless network data harvester comprises:
Second main control module is used to handle child node sample information in the wireless network bunch;
The second wireless network communication module, be used for said two-band communicator and bunch in radio communication between the child node;
The second frequency setting module is used for the communication frequency of the second wireless network communication module is provided with;
The data acquisition indicating module is used to indicate whether to receive relevant image data;
Power management module is used to first main control module and second main control module provides the power supply support;
First main control module links to each other with the first wireless network communication module, first frequency setting module, usb interface module, double-core communication quality monitoring modular and power management module respectively, and the communication quality indicating module links to each other with usb interface module; Second main control module links to each other with the second wireless network communication module, double-core communication quality monitoring modular and power management module respectively; Power management module is connected with second main control module with first main control module respectively, is connected through double-core communication quality monitoring modular between first main control module and second main control module.
Further, also be provided with the first frequency immunity module in the wireless network data processing unit according to the invention, said first frequency immunity module is connected with the first frequency setting module; Also be provided with the second frequency immunity module in the said wireless network data harvester, said second frequency immunity module is connected with the second frequency setting module; Said first frequency immunity module and second frequency immunity module are used to realize automatic search bins function, can search for existing working frequency range signal in the same area automatically.When self communications band is set, avoid and have conflicting between the working frequency range.
Further, the automatic search bins function of said first frequency immunity module and second frequency immunity module, realize through following method:
Setting to wireless communication frequency; At first the feasible zone at k generates a k value at random; The frequency of setting said two-band communicator is that Fc=2405+5 (k-11) MHz is Fc=(2350+5k) MHz, sets stand-by period T on the frequency range at random at this, observes whether can receive communication data.If in time T, do not receive any data, represent that then this frequency range is unoccupied probably, this frequency range is set to one of working frequency range of said two-band communicator, and record k value this moment deposits database in simultaneously; If in time T, receive data, explain that then this frequency range is occupied, abandon this frequency range, generate a k value more immediately, reselect frequency range according to above-mentioned steps, k=11 wherein, 12 ..., 26.
Further, double-core communication quality monitoring modular is realized double-core communication quality monitoring function through following method:
Carry out initialization after said two-band communicator powers on, first main control module sends data acquisition signal through serial ports to second main control module, if second main control module does not receive data acquisition signal, then resends data acquisition signal; If second main control module receives the data acquisition signal of first main control module, then second main control module is to first main control module passback packet; The passback packet that the storage of first main control module receives sends data acquisition signal to second main control module simultaneously once more, and waits for the packet that reception second main control module postbacks; The packet that receives for twice is done XOR, if the result is 0, then the declarative data bag is correct, and data are sent to upper level; If the result is not 0, then declarative data contracts out mistake, and first main control module sends data acquisition signal to second main control module again; Through data re-transmitting mechanism, front and back two secondary data are compared, confirm with this whether institute's data of being sent out are correct, thus realization communication quality monitoring function.
Further, said wireless network is the wireless network based on the Zigbee agreement, and the said first wireless network communication module and the second wireless network communication module are respectively Zigbee wireless network communication module.
Further, the main control chip in first main control module and second main control module adopts the CC2430 chip respectively, and its microprocessor is an enhancement mode MCS-51 processor.
Also be provided with the photosensor signal input module in the said wireless network data harvester; Said photosensor signal input module comprises multiplexer 74HC151 chip and 4520 chips; The 74HC151 chip comprises 3 address input pins; Respectively with second main control module in 3 GPIO mouths of main control chip CC2430 link to each other, be used for selecting different data input pins; 8 bit data inputs of 74HC151 chip; Receive two kinds of signal inputs; Be respectively the digital signal that the sampling output can directly use, and the digital signal through exporting behind A/D conversion and the 4520 chip frequency divisions, thereby realization is used for the input of multiple sampled signals such as illumination, brightness, colour temperature.
Further, also be provided with the photosensor signal input module in the said wireless network data harvester, the photosensor signal input module links to each other with second main control module, is used for the luminous environment sampled data of optical sensor is passed to second main control module.
Further, photosensor signal input module according to the invention is connected with the data acquisition and monitoring module.
Further; Adopt the main control chip that comprises microprocessor in first main control module and second main control module respectively; Second main control module includes two interfaces, links to each other with said photosensor signal input module data-interface, is respectively input data-interface and input gating interface; The interface of photosensor signal input module is divided into two types; Link to each other with the sensor signal input with second main control module respectively, the interface that links to each other with the sensor signal input comprises the polytype interface, matees multiple signal input mode.
Owing to adopt technical scheme of the present invention; What the two-band communicator of indoor photo sensor wireless network of the present invention adopted is the two-band communication structure; Through the frequency setting module in wireless network data processing unit and the wireless network data harvester is provided with different frequency range,, realize the frequency band search function simultaneously through the frequency immunity module; Automatically search for existing working frequency range signal in the same area; When self communications band is set, avoids and have conflicting between the working frequency range, reduce the phase mutual interference between the frequency range, and deposit newly-installed frequency range in database; Thereby realize two group controller concurrent workings, independent transceive data; Realize collaborative work through serial port setting simultaneously.
The present invention can be linked to be wireless network with different types of optical sensor; 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 monitoring system of luminous environment.
Compared with prior art, advantage of the present invention is:
1) be operated in two different frequency ranges, simultaneously, significant data loses when avoiding switching between interference and the different frequency range frequently together;
2), the frequency setting module is connected with the frequency means for anti-jamming, better avoids the interference of frequency;
3), main control module adopts low-power consumption on-chip system chip CC2430; Microprocessor is an enhancement mode MCS-51 processor, and can better improve performance and satisfy with ZigBee is the 2.4GHz ISM wave band application on basis, and to low cost; The requirement of low-power consumption; Has high integration simultaneously, good reliability, portable advantage such as 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 Zigbee networking technology; Have characteristics such as high integration, low-power consumption; Use the free frequency range of international communication; And transmit with the strong direct sequence spread spectrum mode of antijamming capability, having functions such as luminous environment parameter measurement, data acquisition calculating, radio communication and distributed information processing, 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 reduce disaster hidden-trouble greatly.
5), adopt general light sensor signal input module, extensibility is strong, can realize illumination, brightness, uv radiation intensity, the unified of multiple photometric and chromatric transducer such as colourity inserts, and multiple luminous environment parameter is carried out local measurement.
6), two group controller parallel processings task separately, transfer of data and fast operation effectively improve the data-handling capacity of luminous environment wireless sensor network.
7), two-band arrangement, communications network of the present invention both can be used as a bunch first node be connected in Interior Illumination Environment wireless sensor network gateway node and bunch between the child node, also can be connected between host computer and the ordinary node through usb interface module.When be connected in Interior Illumination Environment wireless sensor network gateway node and bunch between the child node time, obtain sample information or control command through the gateway node that is connected with host computer, and child node in signal sent to bunch; When being connected between optical sensor wireless network ordinary node and the host computer, the user can directly obtain sample information or control command through USB interface from host computer.
Description of drawings
Fig. 1 is the structural representation block diagram of the two-band communicator of indoor photo sensor wireless network of the present invention;
Fig. 2 is the structural representation block diagram of wireless network data processing unit of the present invention;
Fig. 3 is the structural representation block diagram of wireless network data harvester of the present invention;
Fig. 4 is the circuit theory diagrams of photosensor signal input module of the present invention;
Fig. 5 is the parallel organization schematic diagram of the two-band communicator of indoor photo sensor wireless network of the present invention;
Fig. 6 is the software flow pattern at the double-core communication quality monitoring modular of the two-band communicator of indoor photo sensor wireless network of the present invention.
Fig. 7 is at the automatic search software flow chart of the frequency range of the frequency immunity module of the two-band communicator of indoor photo sensor wireless network of the present invention.
Fig. 8 is the software flow pattern at the wireless network data processing unit of the two-band communicator of indoor photo sensor wireless network of the present invention.
Fig. 9 is the software flow pattern at the wireless network data harvester of the two-band communicator of indoor photo sensor wireless network of the present invention.
Embodiment
The two-band communicator of indoor photo sensor wireless network of the present invention as a bunch first node be the indoor photo sensor wireless network gateway node and bunch in the child node usefulness that connects, realize that through the two-band communicator bunch first node receives the data of different frequency range simultaneously.The two-band communicator adopts dual master control module controls structure, handle respectively the radio network netgate node and bunch in child node control signal or Information Monitoring; Expanding universal photosensor signal input interface is supported standard USB access way; Set up rapid and reliable with other sensor nodes in the luminous environment wireless sensor network and be connected, the real time monitoring network state.
With reference to Fig. 1, the two-band communicator of indoor photo sensor wireless network of the present invention comprises wireless network data processing unit and wireless network data harvester.Wherein, the wireless network data processing unit comprises first main control module 1, the first wireless network communication module 2, first frequency setting module 3, first frequency immunity module 4, usb interface module 5, communication quality indicating module 6, double-core communication quality monitoring modular 7; The wireless network data harvester comprises second main control module 8, the second wireless network communication module 9, second frequency setting module 10, second frequency immunity module 11, photosensor signal input module 12, data acquisition and monitoring module 13, power management module 14; First main control module 1 links to each other with the first wireless network communication module 2, first frequency setting module 3, usb interface module 5, double-core communication quality monitoring modular 7 and power management module 14 respectively; Second main control module 8 links to each other with double-core communication quality monitoring modular 7, the second wireless network communication module 9, second frequency setting module 10, photosensor signal input module 12 and power management module 14 respectively; Be connected through double-core communication quality monitoring modular 7 between first main control module 1 and second main control module 8; Power management module 14 is connected with second main control module 8 respectively at first main control module 1.
Wherein, first main control module 1 links to each other with double-core communication quality monitoring modular 7 respectively through serial ports with second main control module 8; Usb interface module 5 links to each other with the data/address bus of first main control module 1; Photosensor signal input module 12 links to each other with the universaling I/O port of second main control module 8; Data acquisition and monitoring module 13 links to each other with photosensor signal input module 12; Power management module 14 links to each other with the P0.1 port of first main control module 1 with second main control module 8 respectively;
As shown in Figure 2, be the structural representation block diagram of wireless network data processing unit.Wherein, the chip of first main control module 1 adopts the CC2430 chip that Chipcon company produces; The first wireless network communication module 2 communicates through the less radio-frequency transmission with extraneous gateway node; Further, through first frequency setting module 3 is carried out software setting, make first main control module 1 be operated in the frequency range identical with gateway node; Further; First frequency setting module 3 is connected with first frequency immunity module 4; Through first frequency immunity module 4 is provided with; Can realize the frequency band search function, promptly can search for existing working frequency range signal in the same area automatically, when self communications band is set, avoid and have conflicting between the working frequency range; The chip of usb interface module 5 adopts the PDIUSBD12 chip, carries out the transmission of high speed batch data; Communication quality indicating module 6 utilizes the external LED light of GL pin of PDIUSBD12 chip; Realization is to the indicative function of the communications status of USB access; Can judge the physical connection of USB interface whether normal and with the state of compunication: in enumeration stage; LED intermittently glimmers, and USB correctly discerns, and then LED keeps illuminating state; In addition, first main control module 1 is connected with double-core communication quality monitoring modular 7, through the corresponding software setting, makes first main control module 1 and the 8 mutual co-ordinations of second main control module.It is the step-down chip of TPS7233QP and the voltage stabilizing chip that model is TPS78001 that the chip of power management module 14 adopts model; Can realize that said power management module both can adopt the power supply of 3V burning voltage, also can export and supply power after 5V voltage passes through the step-down of TPS7233QP reducing transformer by USB interface.
As shown in Figure 3, be the structural representation block diagram of wireless network data harvester.Wherein, the chip of second main control module 8 adopts the CC2430 chip that Chipcon company produces; The second wireless network communication module 9 with extraneous bunch in child node communicate through the less radio-frequency transmission; Further, through second frequency setting module 10 is carried out software setting, make second main control module 8 be operated in bunch in the identical frequency range of child node; Further; Second frequency setting module 10 is connected with second frequency immunity module 11; Through second frequency immunity module 11 is provided with; Can realize the frequency band search function, promptly can search for existing working frequency range signal in the same area automatically, when self communications band is set, avoid and have conflicting between the working frequency range; Further; The interface of photosensor signal input module 12 is the optical sensor general-purpose interface; This photosensor signal input module 12 can be connected with optical pickocffs such as illuminance transducer, luminance sensor and chromaticity transducers; Convert dissimilar light signals to digital signal corresponding thus, and carry out data processing, realize multiplexed according to the unlike signal characteristic; Further, photosensor signal input module 12 is connected with data acquisition indicating module 13, is used to indicate whether to receive relevant image data; Further, second main control module 8 also is connected with double-core communication quality monitoring modular 7.
Second main control module 8 has been expanded photosensor signal input interface module 12, can realize illumination, brightness; Uv radiation intensity; The unified of multiple photometric and chromatric transducer such as colourity inserts, and can carry out local measurement to multiple luminous environment parameter, strengthens 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 the wireless network data harvester; Second main control module 8 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.
As shown in Figure 4, be the circuit theory diagrams of photosensor signal input module 12.The photosensor signal input module comprises multiplexer 74HC151 chip and 4520 chips, and the 74HC151 chip comprises 3 address input pins, links to each other with 3 GPIO mouths of main control chip CC2430 respectively, is used for selecting different data input pins; 8 bit data inputs of 74HC151 chip receive two kinds of signal inputs, are respectively the digital signals that the sampling output can directly use; And digital signal through exporting behind A/D conversion and the 4520 chip frequency divisions; Thereby realization illumination, brightness, uv radiation intensity; The unified of multiple photometric and chromatric transducer such as colourity inserts, and multiple luminous environment parameter is measured.
Fig. 5 is the dual master control module parallel organization schematic diagram of the two-band communicator of Interior Illumination Environment wireless sensor network.The two-band communicator of indoor photo sensor wireless network of the present invention adopts dual master control module controls structure to realize receiving simultaneously the data of two different frequency ranges.First main control module 1 and 8 concurrent workings of second main control module, each main control module can the independent process data task, also can realize collaborative work through serial data transmission between two groups of main control modules, thereby improve the data-handling capacity of optical sensor wireless network.First main control module 1; Through first frequency setting module 3 is provided with; The first wireless network communication module 2 is arranged to the same communication frequency range with gateway node; Communicate by letter thereby carry out active data, through serial ports the valid data that received are passed to second main control module 8 simultaneously, and wait for the sampled signal that receives 8 transmission of second main control module with gateway node; Second main control module 8 is through being provided with second frequency setting module 10; Child node in the second wireless network communication module 9 and the luminous environment wireless sensor network cluster is arranged to similar frequency bands; Thereby carrying out active data with luminous environment wireless sensor network child node communicates by letter; Pass between first main control module, 1, the first main control module 1 and second main control module 8 through 7 collaborative works of double-core communication quality monitoring modular through the luminous environment sampled data of serial ports simultaneously each optical sensor child node.First main control module 1 is classified data through the first wireless network communication module 2 and is sent to gateway node after merging, and gateway node sends the data to host computer.
Two-band communicator of the present invention is realized two-band communication as follows:
The first wireless network communication module 2 of wireless network data processing unit receives the data acquisition command that gateway node sends; First main control module 1 passes to second main control module 8 with data acquisition command through serial line interface; Second main control module 8 receive behind the data acquisition command through the wireless network data harvester the second wireless network communication module 9 to bunch in child node send wake command and data acquisition command, deposit the sampled data that receives in the serial ports transmit buffer; After first main control module 1 receives the luminous environment sampled data that second main control module 8 transmits; To reception data physical message classification (like illumination, brightness, space illumination; Parameters such as uv radiation intensity) communication protocol of foundation and host computer; Repack, the packet after handling is sent to gateway node through the first wireless network communication module 2, the gateway node data send to host computer after analyzing fusion.
Fig. 6 has provided the software flow pattern of double-core communication quality monitoring modular of the two-band communicator of indoor photo sensor wireless network of the present invention.Carry out initialization after system powers on, first main control module 1 sends data acquisition signal through serial ports to second main control module 8, if second main control module 8 does not receive acquired signal, then resends acquired signal; If second main control module 8 receives the data acquisition signal of first main control module 1, then second main control module 8 is to first main control module, 1 passback packet; The passback packet that 1 storage of first main control module receives sends data acquisition signal to second main control module 8 simultaneously once more, and waits for the packet that reception second main control module 8 postbacks; The packet that receives for twice is done XOR, if the result is 0, then the declarative data bag is correct, and data are sent to upper level; If the result is not 0, then declarative data contracts out mistake, and first main control module 1 sends data acquisition signal to second main control module 8 again.Through data re-transmitting mechanism, front and back two secondary data are compared, confirm with this whether institute's data of being sent out are correct, realization double-core communication quality monitoring function.
Wireless communication need be managed and be provided with first frequency setting module 3 and second frequency setting module 10, 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 gateway node simultaneously, realize user's request.
First frequency setting module 3 and the 10 main settings that realize the different frequency range wireless communication frequency through following software design of second frequency setting module among the present invention:
Through setting operation frequency that the 10 bit frequency words that are positioned at FSCTRLH.FREQ [9:8] and FSCTRLL.FREQF [7:0] are programmed.The frequency of operation Fc that with MHz is unit is expressed from the next: Fc=2048+FREQ [9:0], FREQ in the formula [9:0] are the values that is provided by FSCTRLH.FREQ [9:8] and FSCTRLL.FREQ [7:0].Under receiving mode, because used intermediate frequency (IF) is 2MHz, therefore actual local oscillator (LO) frequency is Fc-2MHz.Under sending mode, adopt directly conversion, this moment, local oscillator frequencies equaled Fc, and intermediate frequency 2MHz is provided by CC2430 automatically.IEEE802.15.4 specifies 16 channels.They are positioned within the 2.4GHz frequency range, and step-length is 5MHz, is numbered 11~26.The RF frequency of channel k is specified as follows by IEEE802.15.4: Fc=2405+5 (k-11) MHz (k=11; 12;, 26) and operate in channel k, register FSCTRLH.FREQ:FSCTRLL.FREQ should be set to: FSCTRLH.FREQ:FSCTRLL.FREQ=357+5 (k-11).
The first wireless network communication module 2 and the second wireless network communication module 9 mainly realize the transmitting-receiving of data through following mode:
1, the realization of wireless data transmission
Carrying out data according to the following steps sends:
1). empty TX FIFO.
2). deposit data flow in TX FIFO in order, i.e. write data in RFD:
A. the length of MPDU in the Frame is 10 (source addresses (1)+destination address (1)+command byte (1)+data (4)+(2)+fault-tolerant (1), reservation position) here, the length+2 that at this moment should in RFD, pack into, and the SFD that is generated by hardware accounts for two bytes.
B. local address.
C. recipient address or broadcast address 0x00.
D. command character, the definition of command character is shown in table 3-1 among the design.
E. four data bytes that are used to send, if only send order, this place can not write data.
3). the single node communication of other Communication Jamming of assurance nothing can be omitted this step inspection CCA signal and when channel idle, just operated.Another way is to replace for the 2nd and the 3rd step with the STXCCA command register.No matter adopt any method to carry out CCA, all will be through retry just after the wait of one " at random " long time.
4). carry out the STXON command register.
5)., any new data needs to confirm that SFD uprises the back step-down and waited at least 60 clock cycle before writing TX FIFO.
2, the realization of wireless data reception
During receiving data frames, the first byte of depositing RX FIFO is a length byte, and CC2430 can calculate the CRC check of frame automatically, the CRC check position of last byte of hand inspection received frame.CC2430 will can not receive any data with interior being in 12 signal periods of receiving mode.Need in the process of transmitting of packet, add the stand-by period so that CC2430 inspection and reception data.
Carry out Data Receiving according to the following steps:
1). inspection FIFO and FIFOP signal, confirm whether to have new data to arrive.
2) if. have new data to arrive, begin from RX FIFO, to read.
A. first byte is a length byte.Need to preserve, because it is unique sign that Frame finishes.If not being 0x10, its length do not remove RX FIFO at once.
B. the reception sources address also checks that whether it be complementary with the sender of hope.If do not match then at random abandon entire frame.
C. receive destination address and check it be complementary with local address or broadcast 0xFF.If do not match then at random abandon entire frame.
D. receive command character and check it whether with the commands match of hope.If coupling is carried out the corresponding command respectively, if do not match then the random drop entire frame.
E. receiving and preserve 4 bytes loads among the FIFO that will design.
F. receive the CRC information of two bytes.If CRC is inspection not, then abandon the data payload of previous preservation.
3). whenever RX FIFO removes FIFO at once as long as underflow takes place or overflow.
Fig. 7 has provided in the frequency immunity module of two-band communicator of indoor photo sensor wireless network of the present invention the software flow pattern of search bins function automatically.Setting to above-mentioned wireless communication frequency; At first the feasible zone of k (k=11,12 ... 26) generate a k value at random; The frequency of setting double frequency communicator of the present invention is that Fc=2405+5 (k-11) MHz is Fc=(2350+5k) MHz, sets stand-by period T=60s on the frequency range at random at this, observes whether can receive communication data.If in 60s, do not receive any data, represent that then this frequency range is unoccupied probably, this frequency range is set to one of working frequency range of this two-band communicator, and record k value this moment deposits database in simultaneously; If in 60s, receive related data; Explain that then this frequency range is occupied; Consider to abandon this frequency range; Reselect frequency range, when avoiding being provided with self communications band thus with existing working frequency range between conflict, thereby realize in the frequency immunity module of this two-band communicator search bins function automatically.
The frequency immunity module of the two-band communicator of indoor photo sensor wireless network of the present invention mainly realizes anti-interference function through following software design:
1) tackles the program that disorderly flies through software trap.
A) design of software trap: when random flight distance preface gets into non-program area, redundant instruction just can't work.Through software trap, tackle random flight distance preface, guide it into assigned address, carry out error handling processing again.Software trap is meant and is used for the random flight distance preface of catching is guided into the instruction of the entry address 0000H that resets.Among the present invention, the people is filled out to give an order as software trap in non-program area in EPROM:
NOP
NOP
UMP?0000
Its machine code is 0000020000.
B) arrangement of trap: among the present invention, untapped EPROM fills out 0000020000 in the space in program, and the last item inserts 020000.Fall this district when random flight distance preface, can enter the orbit automatically.Trap instruction also can be inserted in vacant unit between each module of user program area.When the interruption of using is opened because of interference, in the interrupt service routine of correspondence, software trap is set, can in time catch wrong interruption.Though do not use external interrupt 1 like certain system, the interrupt service routine of external interrupt l can be following form:
NOP
NOP
RETI
Return instruction can be used " RETI ", also available " LJMP 0000H "." LJMP0000H " makes return instruction can directly get into fault diagnostic program, the operation of handling failure and recovery routine as soon as possible.
2) output port Anti-Jamming Technique.Owing to during the data wireless transmission, often produce electromagnetic pulse, the output signal impacted.To the interference of output channel, be employed in periodic method of adding the output port refreshing instruction in the program, disturb to reduce.Specify ram cell in program, the state that the storage delivery outlet should be located at that time, when program running according to the content refresh I/0 mouth of these ram cells.Also can adopt the mode that repeatedly repeats to write control command, the repetition period is as far as possible short, and when output equipment obtained an interference and also has little time to respond like this, the correct signal arrival can prevent the generation of misoperation.
Fig. 8 has provided the software flow pattern of wireless network data processing unit of the two-band communicator of indoor photo sensor wireless network of the present invention.Carry out initialization after system powers on,, its wireless communication frequency band and gateway node communications band are arranged to similar frequency bands through first frequency setting module 3 is carried out software setting; Handle the serial ports interrupt event, the control command of motoring gateway node.After the first wireless network communication module 2 of wireless network data processing unit receives the order of gateway node data sent bag; Data are got back to the CPU memory from wireless data receiving register RXFIFO; And judge the type of data packet that gateway transmits according to interrupt register; Set up the proper data sign, through serial ports data packet delivery is given second main control module 8 of wireless network data harvester simultaneously; In 30s, wait for to receive the packet information that postbacks of second main control module 8,, retransmit number of times and withdraw from circulation above 3 times and report an error to gateway node if do not receive repeatings transmission that circulate of any packet information; If receive packet information, judge whether it is the correct data package informatin, if packet is correct, then send packets to gateway node, and remove corresponding control bit and get into circulation again through the first wireless network communication module 2; If the misdata bag then withdraws from circulation and sends error reporting to gateway node.
Fig. 9 is the software flow pattern at the wireless network data harvester of the double frequency communicator of indoor photo sensor wireless network of the present invention.Carry out initialization after system powers on, through second frequency setting module 10 is carried out software setting, with its wireless communication frequency range with bunch in the child node communications band be arranged to similar frequency bands; Handle the serial ports interrupt event, monitor the control command of first main control module 1.After second main control module 8 of wireless network data harvester receives the data acquisition command that first main control module 1 transmits through serial line interface; Control command is handled; Be stored in the EpBuf buffer; Send wake command through the second wireless network communication module 9 to child node, wait in the 20s receiving the child node signal of waking up; If do not receive child node wake up signal then the repeating transmission that circulates, retransmit number of times and surpass 3 times and then send error reporting to first main control module 1; If receive the child node signal of waking up in the 20s, then send the controlling of sampling order and wait for and receive the child node sampled data to child node; If receive the correct data package informatin, then send packet to first main control module 1 and remove corresponding control bit and get into circulation again through serial ports; If do not receive the correct data package informatin, the repeating transmission that then circulates is retransmitted number of times and is then reported an error to first main control module 1 above 3 times.
Form by two parts with the communication protocol of sensor node; Upper strata communications protocol and lower floor's communications protocol; The levels agreement realizes under different 2.4GHz frequency ranges; Thereby realize full-duplex communication work: 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 provides and feed back to the success of transmitter with expression branch group of received, accomplishes 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 first in first out buffer area 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 IEEE802.15.4 adds automatically and RSSI, LQI position, and source/destination address position keeps fault-tolerant position and valid data position.RSSI (Receive signal Strength Indicator) 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 (10)

1. the two-band communicator of an indoor photo sensor wireless network is characterized in that it comprises wireless network data processing unit and wireless network data harvester;
Said wireless network data processing unit comprises:
First main control module is used to handle radio network netgate node control signal;
The first wireless network communication module is used for the radio communication between said two-band communicator and the gateway node;
The first frequency setting module is used for the communication frequency of the first wireless network communication module is provided with;
Usb interface module is used for communicating by letter between said two-band communicator and the host computer;
The communication quality indicating module is used to monitor and indicate the communications status that inserts through USB interface;
Double-core communication quality monitoring modular is used to make first main control module and the mutual co-ordination of second main control module;
Said wireless network data harvester comprises:
Second main control module is used to handle child node sample information in the wireless network bunch;
The second wireless network communication module, be used for said two-band communicator and bunch in radio communication between the child node;
The second frequency setting module is used for the communication frequency of the second wireless network communication module is provided with;
The data acquisition indicating module is used to indicate whether to receive relevant image data;
Power management module is used to first main control module and second main control module provides the power supply support;
First main control module links to each other with the first wireless network communication module, first frequency setting module, usb interface module, double-core communication quality monitoring modular and power management module respectively, and the communication quality indicating module links to each other with usb interface module; Second main control module links to each other with the second wireless network communication module, double-core communication quality monitoring modular and power management module respectively; Power management module is connected with second main control module with first main control module respectively, is connected through double-core communication quality monitoring modular between first main control module and second main control module.
2. the two-band communicator of indoor photo sensor wireless network according to claim 1; It is characterized in that also being provided with the first frequency immunity module in the said wireless network data processing unit, said first frequency immunity module is connected with the first frequency setting module; Also be provided with the second frequency immunity module in the said wireless network data harvester, said second frequency immunity module is connected with the second frequency setting module;
Said first frequency immunity module and second frequency immunity module are used to realize automatic search bins function, can search for existing working frequency range signal in the same area automatically.
3. the two-band communicator of indoor photo sensor wireless network according to claim 2 is characterized in that realizing the automatic search bins function of said first frequency immunity module and second frequency immunity module through following method:
Setting to wireless communication frequency; At first the feasible zone at k generates a k value at random; The frequency of setting said two-band communicator is that Fc=2405+5 (k-11) MHz is Fc=(2350+5k) MHz, sets stand-by period T on the frequency range at random at this, observes whether can receive communication data; If in time T, do not receive any data, represent that then this frequency range is unoccupied probably, this frequency range is set to one of working frequency range of said two-band communicator, and record k value this moment deposits database in simultaneously; If in time T, receive data, explain that then this frequency range is occupied, abandon this frequency range, generate a k value more immediately, reselect frequency range according to above-mentioned steps, k=11 wherein, 12 ..., 26.
4. the two-band communicator of indoor photo sensor wireless network according to claim 1 is characterized in that double-core communication quality monitoring modular realizes double-core communication quality monitoring function through following method:
Carry out initialization after said two-band communicator powers on, first main control module sends data acquisition signal through serial ports to second main control module, if second main control module does not receive data acquisition signal, then resends data acquisition signal; If second main control module receives the data acquisition signal of first main control module, then second main control module is to first main control module passback packet; The passback packet that the storage of first main control module receives sends data acquisition signal to second main control module simultaneously once more, and waits for the packet that reception second main control module postbacks; The packet that receives for twice is done XOR, if the result is 0, then the declarative data bag is correct, and data are sent to upper level; If the result is not 0, then declarative data contracts out mistake, and first main control module sends data acquisition signal to second main control module again; Through data re-transmitting mechanism, front and back two secondary data are compared, confirm with this whether institute's data of being sent out are correct, thus realization communication quality monitoring function.
5. the two-band communicator of indoor photo sensor wireless network according to claim 1 is characterized in that the main control chip in first main control module and second main control module adopts the CC2430 chip respectively, and its microprocessor is an enhancement mode MCS-51 processor.
6. the two-band communicator of indoor photo sensor wireless network according to claim 1; It is characterized in that said wireless network is the wireless network based on the Zigbee agreement, the said first wireless network communication module and the second wireless network communication module are respectively Zigbee wireless network communication module.
7. the two-band communicator of indoor photo sensor wireless network according to claim 1; It is characterized in that also being provided with the photosensor signal input module in the said wireless network data harvester; The photosensor signal input module links to each other with second main control module, is used for the luminous environment sampled data of optical sensor is passed to second main control module.
8. the two-band communicator of indoor photo sensor wireless network according to claim 5; It is characterized in that also being provided with the photosensor signal input module in the said wireless network data harvester; Said photosensor signal input module comprises multiplexer 74HC151 chip and 4520 chips; Wherein the 74HC151 chip comprises 3 address input pins, links to each other with 3 GPIO mouths of microprocessor in second main control module respectively, is used for selecting different data input pins; The data output end of 74HC151 chip links to each other with 1 GPIO mouth of microprocessor in second main control module; 8 bit data inputs of 74HC151 chip receive two kinds of signal inputs, are respectively the digital signals that the sampling output can directly use, and the digital signal through exporting behind A/D conversion and the 4520 chip frequency divisions.
9. the two-band communicator of indoor photo sensor wireless network according to claim 1 is characterized in that said photosensor signal input module is connected with the data acquisition and monitoring module.
10. according to the two-band communicator of claim 7 or 8 described indoor photo sensor wireless networks; It is characterized in that adopting respectively in first main control module and second main control module main control chip that comprises microprocessor; Second main control module includes two interfaces, links to each other with said photosensor signal input module data-interface, is respectively input data-interface and input gating interface; The interface of photosensor signal input module is divided into two types; Link to each other with the sensor signal input with second main control module respectively, the interface that links to each other with the sensor signal input comprises the polytype interface, matees multiple signal input mode.
CN201110150814.XA 2011-06-07 2011-06-07 Double-frequency-band communication device for indoor light sensor wireless network Expired - Fee Related CN102387185B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110150814.XA CN102387185B (en) 2011-06-07 2011-06-07 Double-frequency-band communication device for indoor light sensor wireless network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110150814.XA CN102387185B (en) 2011-06-07 2011-06-07 Double-frequency-band communication device for indoor light sensor wireless network

Publications (2)

Publication Number Publication Date
CN102387185A true CN102387185A (en) 2012-03-21
CN102387185B CN102387185B (en) 2014-10-22

Family

ID=45826150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110150814.XA Expired - Fee Related CN102387185B (en) 2011-06-07 2011-06-07 Double-frequency-band communication device for indoor light sensor wireless network

Country Status (1)

Country Link
CN (1) CN102387185B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103874241A (en) * 2014-03-17 2014-06-18 清华大学 Gateway for supporting merging work of various kinds of radio frequency communication
CN104540242A (en) * 2015-01-09 2015-04-22 上海神开石油设备有限公司 Well site sensor system with wireless communication function and communication method thereof
CN104734785A (en) * 2015-01-26 2015-06-24 华北水利水电大学 Visible light receiving device and method
CN106775659A (en) * 2016-11-28 2017-05-31 四川航天***工程研究所 Embedded dual core Flight Control Software framework method based on high speed Linkport interfaces
CN107920344A (en) * 2017-11-22 2018-04-17 南京物联传感技术有限公司 A kind of Zigbee emergency communication systems and method of work
CN110415500A (en) * 2018-04-28 2019-11-05 北京群菱能源科技有限公司 One kind being based on RFID ammeter acquisition terminal kilowatt meter reading-out system
CN111417127A (en) * 2020-03-25 2020-07-14 杭州一鸣惊人网络科技有限公司 Sensor network formed by sensor nodes with 5G communication capability
CN113190291A (en) * 2021-05-25 2021-07-30 电子科技大学 Configurable protocol conversion system and method based on network-on-chip data acquisition

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350637A (en) * 2008-09-05 2009-01-21 清华大学 Networking method for two-channel wireless sensing terminal based on Zigbee
CN101820695A (en) * 2010-02-09 2010-09-01 浙江大学 Embedded gateway of indoor photo sensor wireless network
CN201797603U (en) * 2010-02-09 2011-04-13 浙江大学 Embedded gateway of indoor light sensor wireless network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350637A (en) * 2008-09-05 2009-01-21 清华大学 Networking method for two-channel wireless sensing terminal based on Zigbee
CN101820695A (en) * 2010-02-09 2010-09-01 浙江大学 Embedded gateway of indoor photo sensor wireless network
CN201797603U (en) * 2010-02-09 2011-04-13 浙江大学 Embedded gateway of indoor light sensor wireless network

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103874241A (en) * 2014-03-17 2014-06-18 清华大学 Gateway for supporting merging work of various kinds of radio frequency communication
CN104540242A (en) * 2015-01-09 2015-04-22 上海神开石油设备有限公司 Well site sensor system with wireless communication function and communication method thereof
CN104734785A (en) * 2015-01-26 2015-06-24 华北水利水电大学 Visible light receiving device and method
CN104734785B (en) * 2015-01-26 2018-04-10 华北水利水电大学 A kind of visible optical pickup apparatus and visible method for optical reception
CN106775659A (en) * 2016-11-28 2017-05-31 四川航天***工程研究所 Embedded dual core Flight Control Software framework method based on high speed Linkport interfaces
CN106775659B (en) * 2016-11-28 2020-01-31 四川航天***工程研究所 Embedded dual-core flight control software architecture method based on high-speed Linkport interface
CN107920344A (en) * 2017-11-22 2018-04-17 南京物联传感技术有限公司 A kind of Zigbee emergency communication systems and method of work
CN107920344B (en) * 2017-11-22 2020-11-03 南京物联传感技术有限公司 Zigbee emergency communication system and working method
CN110415500A (en) * 2018-04-28 2019-11-05 北京群菱能源科技有限公司 One kind being based on RFID ammeter acquisition terminal kilowatt meter reading-out system
CN111417127A (en) * 2020-03-25 2020-07-14 杭州一鸣惊人网络科技有限公司 Sensor network formed by sensor nodes with 5G communication capability
CN111417127B (en) * 2020-03-25 2022-08-30 中乾思创(北京)科技有限公司 Sensor network formed by sensor nodes with 5G communication capability
CN113190291A (en) * 2021-05-25 2021-07-30 电子科技大学 Configurable protocol conversion system and method based on network-on-chip data acquisition

Also Published As

Publication number Publication date
CN102387185B (en) 2014-10-22

Similar Documents

Publication Publication Date Title
CN102387185B (en) Double-frequency-band communication device for indoor light sensor wireless network
CN103149885B (en) A kind of low-power consumption industry wireless network data transmission set and using method
CN201741262U (en) Wireless mine monitoring system
CN103781088B (en) Two point four gigahertz full-channel data collection and protocol analysis instrument based on IEEE802.15.4
CN105976134B (en) Enterprise energy management information acquisition system and method based on ZigBee wireless networking technology
CN107613583A (en) A kind of distributed wireless sensor network data summarization gateway
CN101827007A (en) Method and device for interconnecting sensor network and mobile terminal and network connection equipment
CN102113367A (en) Wireless communication network analyzer
CN101646185B (en) Regulation and measurement equipment of wireless self-organizing network and use method thereof
CN103021154A (en) Wireless meter reading system based on Ad Hoc
CN102892212A (en) System for measuring illumination by using wireless sensor network
CN102523632A (en) Wireless sensor network system used for environmental monitoring inside spacecraft
CN101713652A (en) Intelligent multi-sensor system and working method thereof
CN103581004A (en) Multi-protocol network convergence information exchanger
CN201571081U (en) CAN bus and serial port bus protocol converter
CN102883340A (en) Remote transfer transmission system suitable for network-free areas and transmission method thereof
CN101072073A (en) Self-defined Ethernet optronic interface performance test method and device
CN101325530A (en) Two grade network and communication method thereof
Hongjiang et al. The application of ARM and ZigBee technology wireless networks in monitoring mine safety system
CN101567821A (en) Embedded industry intelligent wireless network data transfer platform
CN101178837A (en) Wireless sensor network controller
CN100525286C (en) Multi-path line adapter
CN202385126U (en) Gateway device for internet of things
CN102957473A (en) Circulation monitoring data management relay of urban network cable
CN114390374A (en) Broadband micropower multi-network comprehensive test system of electricity consumption information acquisition 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: 20141022

Termination date: 20210607

CF01 Termination of patent right due to non-payment of annual fee