CN102387185B - 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
CN102387185B
CN102387185B CN201110150814.XA CN201110150814A CN102387185B CN 102387185 B CN102387185 B CN 102387185B CN 201110150814 A CN201110150814 A CN 201110150814A CN 102387185 B CN102387185 B CN 102387185B
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.)
Expired - Fee Related
Application number
CN201110150814.XA
Other languages
Chinese (zh)
Other versions
CN102387185A (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

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 is by the irradiation formed environment of the external space in the inner, comprises outdoor lighting environment and Interior Illumination Environment.Light Environment Design is an organic component of modern building design, its objective is and pursue rational design standard and lighting apparatus that energy savings meets the requirements such as people's work, life, aesthetic and vision protection simultaneously.Conventional luminous environment parameter 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 basis, and the harm that can prevent unreasonable illumination or lighting apparatus fault to bring simultaneously.Current photometry technology is as independent technique, fairly perfect, but in luminous environment testing evaluation, just seems shortage systematicness and versatility, and main manifestations is:
(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 cannot carry out full-duplex communication;
(3) with the easy phase mutual interference of the radio communication between frequency range sensor node;
(4) lack effective network management, automaticity is not high;
(5) easily lose important measurement data;
(6) concentrate in the period some key component is measured, cannot implement for a long time monitoring.
Indoor photo sensor wireless network is comprised of the node of One's name is legion, and each node gathers luminous environment data by optical sensor and beams back host computer in the mode of wireless multi-hop, realizes the interested region of user is monitored.For improving the operating efficiency of indoor photo sensor wireless network, the signal simultaneously reducing between similar frequency bands disturbs, and indoor photo sensor wireless network node is made as to clustered network topological structure, between different bunches, uses different communication frequency range.Due to cluster head node be responsible for gateway node and bunch in data communication between child node, and gateway node and bunch in child node use different communications bands, this makes cluster head node need to receive simultaneously and to send the wireless data of two different frequency ranges.
Summary of the invention
For the demand, the two-band communicator that the object 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 connection network artis and bunch in the wireless network communication apparatus of child node, can receive the wireless data of two different frequency ranges simultaneously, the loss of significant data while effectively avoiding co-channel interference easily to cause the danger of whole system collapse and frequency range to switch, has improved 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; Described wireless network data processing unit comprises:
The first main control module, for the treatment of radio network netgate node control signal;
The first wireless network communication module, for the radio communication between described two-band communicator and gateway node;
First frequency setting module, for arranging the communication frequency of the first wireless network communication module;
Usb interface module, for communicating by letter between described two-band communicator and host computer;
Communication quality indicating module, for monitoring and indicate the communications status accessing by USB interface;
Double-core communication quality monitoring modular, for making the first main control module and the mutual co-ordination of the second main control module;
Described wireless network data harvester comprises:
The second main control module, for the treatment of child node sample information in wireless network bunch;
Second wireless network communication module, for described two-band communicator and bunch in radio communication between child node;
Second frequency setting module is for arranging the communication frequency of second wireless network communication module;
Data acquisition indicating module, is used to indicate and whether receives relevant image data;
Power management module, is used to the first main control module and the second main control module that power supply support is provided;
The first main control module is connected 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 communication quality indicating module is connected with usb interface module; The second main control module is connected with second wireless network communication module, double-core communication quality monitoring modular and power management module respectively; Power management module is connected with the second main control module with the first main control module respectively, between the first main control module and the second main control module, by double-core communication quality monitoring modular, is connected.
Further, in wireless network data processing unit of the present invention, be also provided with first frequency immunity module, described first frequency immunity module is connected with first frequency setting module; In described wireless network data harvester, be also provided with second frequency immunity module, described second frequency immunity module is connected with second frequency setting module; Described first frequency immunity module and second frequency immunity module are used for realizing automatic search frequency range function, can the interior existing working frequency range signal of automatic search the same area.When self communications band is set, avoids and have conflicting between working frequency range.
Further, the automatic search frequency range function of described first frequency immunity module and second frequency immunity module, realizes by the following method:
Setting for wireless communication frequency, first the feasible zone at k generates a k value at random, the frequency of setting described two-band communicator is that Fc=2405+5 (k-11) MHz is Fc=(2350+5k) MHz, stand-by period T in this random setting frequency range, observes whether can receive communication data.If do not receive any data in time T, represent that this frequency range is probably unoccupied, this frequency range is set to one of working frequency range of described two-band communicator, records now k value simultaneously, deposits database in; If receive data in time T, illustrate that this frequency range is occupied, abandon this frequency range, then generate immediately a k value, according to above-mentioned steps, reselect frequency range, k=11 wherein, 12 ..., 26.
Further, double-core communication quality monitoring modular is realized double-core communication quality monitoring function by the following method:
After described two-band communicator powers on, carry out initialization, the first main control module sends data acquisition signal by serial ports to the second main control module, if the second main control module does not receive data acquisition signal, resends data acquisition signal; If the second main control module receives the data acquisition signal of the first main control module, the second main control module is to the first main control module passback packet; The passback packet that the first main control module storing received arrives sends data acquisition signal to the second main control module simultaneously again, and waits for the packet that reception the second main control module postbacks; The packet receiving for twice is done to XOR, if result is 0, illustrate that packet is correct, data are sent to upper level; If result is not 0, illustrate that packet makes mistakes, the first main control module sends data acquisition signal to the second main control module again; By data re-transmitting mechanism, front and back two secondary data are compared, with this determine the data of being sent out whether correct, thereby realize communication quality monitoring function.
Further, described wireless network is the wireless network based on Zigbee agreement, and described the first wireless network communication module and second wireless network communication module are respectively Zigbee wireless network communication module.
Further, the main control chip in the first main control module and the second main control module adopts respectively CC2430 chip, and its microprocessor is enhancement mode MCS-51 processor.
In described wireless network data harvester, be also provided with photosensor signal input module, described photosensor signal input module comprises multiplexer 74HC151 chip and 4520 chips, 74HC151 chip comprises 3 address input pins, be connected with 3 the GPIO mouths of main control chip CC2430 in the second main control module respectively, be used for selecting different data input pins; 8 bit data inputs of 74HC151 chip, receive two kinds of signal inputs, respectively the digital signal that sampling output can directly be used, and the digital signal of exporting after A/D conversion and 4520 chip frequency divisions, thereby realize the input for multiple sampled signals such as illumination, brightness, colour temperatures.
Further, in described wireless network data harvester, be also provided with photosensor signal input module, photosensor signal input module is connected with the second main control module, for the luminous environment sampled data of optical sensor is passed to the second main control module.
Further, photosensor signal input module of the present invention is connected with data acquisition and monitoring module.
Further, in the first main control module and the second main control module, adopt respectively the main control chip that comprises microprocessor, the second main control module includes two interfaces, be connected with described photosensor signal input module data-interface, it is respectively input data-interface and input gating interface, the interface of photosensor signal input module is divided into two classes, be connected with sensor signal input with the second main control module respectively, the interface being connected with sensor signal input comprises polytype interface, coupling multi-signal input pattern.
Owing to adopting technical scheme of the present invention, what the two-band communicator of indoor photo sensor wireless network of the present invention adopted is two-band communication structure, by the frequency setting module in wireless network data processing unit and wireless network data harvester, different frequency range is set, simultaneously by frequency immunity module, realize frequency band search function, existing working frequency range signal in automatic search the same area, when self communications band is set, avoids and have conflicting between working frequency range, reduce the phase mutual interference between frequency range, and deposit newly-installed frequency range in database, thereby realize two group controller concurrent workings, independent transceiving data, by serial port setting, realize collaborative work simultaneously.
The present invention can be linked to be wireless network by different types of optical sensor, set up the contact between sensing station information and sample information, the unification that realizes data collects 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, avoid the loss of significant data while switching between co-channel interference and different frequency range;
2), frequency setting module is connected with 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 enhancement mode MCS-51 processor, can better improve performance and meet and take ZigBee as basic 2.4GHz ISM wave band application, and to low cost, the requirement of low-power consumption, there is high integration, good reliability, the portable advantage such as strong simultaneously.
4), utilize Zigbee wireless communication technology to optical sensor, to carry out Long-distance Control easily, greatly reduce the risk and cost that network layout brings.
Zigbee networking technology, there is the features such as high integration, low-power consumption, use the free frequency range of international communication, and transmit in the strong direct sequence spread spectrum mode of antijamming capability, there is the functions such as luminous environment parameter measurement, data acquisition calculating, radio communication and distributed information processing, can be applied in well in 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.
5), adopt general light sensor signal input module, extensibility is strong, can realize illumination, brightness, uv radiation intensity, the unified access of the multiple photometric and chromatric transducer such as colourity, carries out local measurement to multiple luminous environment parameter.
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 cluster head node be connected in Interior Illumination Environment wireless sensor network gateway node and bunch between child node, also can be connected between host computer and ordinary node by usb interface module.When be connected in Interior Illumination Environment wireless sensor network gateway node and bunch between child node time, by the gateway node being connected with host computer, obtain sample information or control command, and child node in signal is sent to bunch; When being connected between optical sensor wireless network ordinary node and host computer, user can directly obtain sample information or control command by USB interface from host computer.
Accompanying drawing explanation
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 the frequency range automatic search software flow pattern in 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 cluster head node be indoor photo sensor wireless network gateway node and bunch in the child node use that connects, by two-band communicator, realize the data that cluster head node receives different frequency range simultaneously.Two-band communicator adopts dual master control module controls structure, process respectively radio network netgate node and bunch in child node control signal or Information Monitoring; Expanding universal photosensor signal input interface, supports standard USB access way; Set up being connected of fast and reliable, real time monitoring network state with other sensor nodes in luminous environment wireless sensor network.
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, wireless network data processing unit comprises the 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; Wireless network data harvester comprises the second main control module 8, 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; The first main control module 1 is connected 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; The second main control module 8 is connected with double-core communication quality monitoring modular 7, second wireless network communication module 9, second frequency setting module 10, photosensor signal input module 12 and power management module 14 respectively; Between the first main control module 1 and the second main control module 8, by double-core communication quality monitoring modular 7, be connected; Power management module 14 is connected with the second main control module 8 respectively at the first main control module 1.
Wherein, the first main control module 1 is connected with double-core communication quality monitoring modular 7 respectively by serial ports with the second main control module 8; Usb interface module 5 is connected with the data/address bus of the first main control module 1; Photosensor signal input module 12 is connected with the universaling I/O port of the second main control module 8; Data acquisition and monitoring module 13 is connected with photosensor signal input module 12; Power management module 14 is connected with the P0.1 port of the second main control module 8 with the first main control module 1 respectively;
As shown in Figure 2, be the structural representation block diagram of wireless network data processing unit.Wherein, the chip of the first main control module 1 adopts the CC2430 chip that Chipcon company produces; The first wireless network communication module 2 communicates by wireless radio frequency transmission with extraneous gateway node; Further, by first frequency setting module 3 is carried out to software setting, make the 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, by first frequency immunity module 4 is arranged, can realize frequency band search function, existing working frequency range signal in can automatic search the same area is avoided and has conflicting between working frequency range when self communications band is set; The chip of usb interface module 5 adopts PDIUSBD12 chip, carries out high speed bulk data transfer; Communication quality indicating module 6 utilizes the external LED light of GL pin of PDIUSBD12 chip, the indicative function of realization to the communications status of USB access, the physical connection that can judge USB interface whether normal and and the state of compunication: in enumeration stage, LED intermittently glimmers, USB correctly identifies, and LED keeps illuminating state; In addition, the first main control module 1 is connected with double-core communication quality monitoring modular 7, by corresponding software, arranges, and makes the first main control module 1 and the mutual co-ordination of the second main control module 8.The voltage stabilizing chip that the step-down chip that the chip employing model of power management module 14 is TPS7233QP and model are TPS78001, can realize described power management module and both can adopt the power supply of 3V burning voltage, also can export 5V voltage by USB interface and power after the step-down of TPS7233QP reducing transformer.
As shown in Figure 3, be the structural representation block diagram of wireless network data harvester.Wherein, the chip of the second main control module 8 adopts the CC2430 chip that Chipcon company produces; Second wireless network communication module 9 with extraneous bunch in child node by wireless radio frequency transmission, communicate; Further, by second frequency setting module 10 is carried out to software setting, make the 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, by second frequency immunity module 11 is arranged, can realize frequency band search function, existing working frequency range signal in can automatic search the same area is avoided and has conflicting between working frequency range when self communications band is set; Further, the interface of photosensor signal input module 12 is 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 signal to corresponding digital signal thus, and carry out data processing according to unlike signal feature, realize multiplexed; Further, photosensor signal input module 12 is connected with data acquisition indicating module 13, is used to indicate and whether receives relevant image data; Further, the second main control module 8 is also connected with double-core communication quality monitoring modular 7.
The second main control module 8 has been expanded photosensor signal input interface module 12, can realize illumination, brightness, uv radiation intensity, the unified access of the multiple photometric and chromatric transducer such as colourity, can carry out local measurement to multiple luminous environment parameter, strengthens its versatility and extensibility; By on Software for Design to variety classes parameter setting corresponding data format with it, sampled data enters after wireless network data harvester, the second main control module 8 carries out corresponding conversion process according to different data formats and becomes Uniform data format mark in addition, to facilitate the classification of data to upload and store.
As shown in Figure 4, be the circuit theory diagrams of photosensor signal input module 12.Photosensor signal input module comprises multiplexer 74HC151 chip and 4520 chips, and 74HC151 chip comprises 3 address input pins, is connected respectively with 3 GPIO mouths of main control chip CC2430, is used for selecting different data input pins; 8 bit data inputs of 74HC151 chip, receive two kinds of signal inputs, it is respectively the digital signal that sampling output can directly be used, and the digital signal of exporting after A/D conversion and 4520 chip frequency divisions, thereby realize illumination, brightness, uv radiation intensity, the unified access of the multiple photometric and chromatric transducer such as colourity, measures multiple luminous environment parameter.
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 the data that simultaneously receive two different frequency ranges.The first main control module 1 and the second main control module 8 concurrent workings, each main control module can independent process data task, also can realize collaborative work by serial data transmission between two groups of main control modules, thereby improves the data-handling capacity of optical sensor wireless network.The first main control module 1, by first frequency setting module 3 is arranged, the first wireless network communication module 2 is arranged to same communication frequency range with gateway node, thereby carrying out active data with gateway node communicates by letter, by serial ports, received valid data are passed to the second main control module 8 simultaneously, and wait for the sampled signal that receives the second main control module 8 transmission; The second main control module 8 is by arranging second frequency setting module 10, child node in second wireless network communication module 9 and 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, by serial ports, the luminous environment sampled data of each optical sensor child node is passed between the first main control module 1, the first main control module 1 and the second main control module 8 by 7 collaborative works of double-core communication quality monitoring modular simultaneously.The first main control module 1 is undertaken data to send to gateway node after fusion for classification by the first wireless network communication module 2, 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, the first main control module 1 passes to the second main control module 8 by data acquisition command by serial line interface, the second main control module 8 receive after data acquisition command second wireless network communication module 9 by wireless network data harvester to bunch in child node send wake command and data acquisition command, deposit the sampled data receiving in serial ports transmit buffer; The first main control module 1 receives after the luminous environment sampled data that the second main control module 8 transmits, to received data physical message classification (as illumination, brightness, space illumination, the parameters such as uv radiation intensity) according to the communication protocol with host computer, repack, the packet after processing is sent to gateway node by the first wireless network communication module 2, gateway node data analysis sends to host computer after merging.
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.After system powers on, carry out initialization, the first main control module 1 sends data acquisition signal by serial ports to the second main control module 8, if the second main control module 8 does not receive collection signal, resends collection signal; If the second main control module 8 receives the data acquisition signal of the first main control module 1, the second main control module 8 is to the first main control module 1 passback packet; The passback packet that the first main control module 1 storing received arrives sends data acquisition signal to the second main control module 8 simultaneously again, and waits for the packet that reception the second main control module 8 postbacks; The packet receiving for twice is done to XOR, if result is 0, illustrate that packet is correct, data are sent to upper level; If result is not 0, illustrate that packet makes mistakes, the first main control module 1 sends data acquisition signals to the second main control module 8 again.By data re-transmitting mechanism, front and back two secondary data are compared, with this determine the data of being sent out whether correct, realize double-core communication quality monitoring function.
Wireless communication need to manage and arrange first frequency setting module 3 and second frequency setting module 10, comprises scanning selected physical channel, distributes the network address in wireless sensor network, initialization network settings; The MAC algorithm and the Routing Protocol that coordinate network to adopt, assist other network nodes to set up route; The control command that simultaneously receives gateway node, realizes user's request.
In the present invention, first frequency setting module 3 and second frequency setting module 10 are mainly realized the setting of different frequency range wireless communication frequency by following Software for Design:
By to being positioned at FSCTRLH.FREQ[9:8] and FSCTRLL.FREQF[7:0] 10 bit frequency words programming setting operation frequencies.The frequency of operation Fc of YiMHzWei unit is expressed from the next: Fc=2048+FREQ[9:0], FREQ[9:0 in formula] be by FSCTRLH.FREQ[9:8] and FSCTRLL.FREQ[7:0] value that provides.Under receiving mode, because intermediate frequency used (IF) is 2MHz, therefore actual local oscillator (LO) frequency is Fc-2MHz.Under sending mode, adopt directly conversion, now local oscillator frequencies equals Fc, and intermediate frequency 2MHz is provided automatically by CC2430.IEEE802.15.4 specifies 16 channels.Within they are positioned at 2.4GHz frequency range, 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) 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 second wireless network communication module 9 are mainly realized the transmitting-receiving of data in the following way:
1, the realization that wireless data sends
Carry out according to the following steps data transmission:
1). empty TX FIFO.
2). data flow is deposited in to TX FIFO in order, to writing data in RFD:
A. the length of MPDU in Frame, here be 10 ((2)+fault-tolerant (1), source address (1)+destination address (1)+command byte (1)+data (4)+reservation position), at this moment should in RFD, pack length+2 into, the SFD being generated by hardware accounts for two bytes.
B. local address.
C. recipient address or broadcast address 0x00.
D. command character, in the design, the definition of command character is as shown in table 3-1.
E. four data bytes for sending, if only send order, this place is data writing not.
3). guarantee that without the single node communication of other Communication Jamming, can omit this step checks CCA signal and just operate when the channel idle.Another way is to replace the 2nd and the 3rd step with STXCCA command register.No matter adopt any method to carry out CCA, retry just after the wait of the time that all will grow through one " at random ".
4). carry out STXON command register.
5). before any new data writes TX FIFO, need to confirm SFD uprise after step-down and waited at least 60 clock cycle.
2, the realization of receive data by wireless
During receiving data frames, the first byte of depositing RX FIFO is 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 in 12 signal periods of receiving mode with interior.Need in the process of transmitting of packet, add the stand-by period so that CC2430 checks and receive data.
Carry out according to the following steps data receiver:
1). check FIFO and FIFOP signal, be confirmed whether that new data arrives.
2) if. have new data to arrive, start to read from RX FIFO.
A. first byte is length byte.Need to preserve, because its unique sign that to be Frame finish.If not being 0x10, its length do not remove RX FIFO at once.
B. reception sources address also checks whether it matches with the sender of hope.If do not mated, random abandon whole frame.
C. receive destination address and check that it is match with local address or broadcast ground 0xFF.If do not mated, random abandon whole frame.
D. receive command character and check it whether with the commands match of hope.If coupling is carried out respectively the corresponding command, if do not mated, the whole frame of random drop.
E. receiving and preserve 4 bytes loads in a FIFO that will design.
F. receive the CRC information of two bytes.If CRC does not check, abandon the data payload of previous preservation.
3). whenever RX FIFO, as long as underflow occurs or overflow, removes FIFO at once.
Fig. 7 has provided the software flow pattern of automatic search frequency range function in the frequency immunity module of two-band communicator of indoor photo sensor wireless network of the present invention.Setting for above-mentioned wireless communication frequency, first at the feasible zone (k=11 of k, 12,26) generate at random a k value, the frequency of setting double frequency communicator of the present invention is that Fc=2405+5 (k-11) MHz is Fc=(2350+5k) MHz, stand-by period T=60s in this random setting frequency range, observes whether can receive communication data.If do not receive any data in 60s, represent that this frequency range is probably unoccupied, this frequency range is set to one of working frequency range of this two-band communicator, records now k value simultaneously, deposits database in; If receive related data in 60s, illustrate that this frequency range is occupied, consider to abandon this frequency range, reselect frequency range, while avoiding thus arranging self communications band with existing working frequency range between conflict, thereby realize automatic search frequency range function in the frequency immunity module of this two-band communicator.
The frequency immunity module of the two-band communicator of indoor photo sensor wireless network of the present invention mainly realizes anti-interference function by following Software for Design:
1) by software trap, tackle the program disorderly flying.
A) design of software trap: when random flight distance order enters non-program area, redundant instruction just cannot work.By software trap, tackle random flight distance order, guided into assigned address, then carried out error handling processing.Software trap refers to for the random flight distance order of catching being guided into the instruction of reset entry address 0000H.In the present invention, in EPROM, non-program area is filled out people and is usingd and give an order as software trap:
NOP
NOP
UMP?0000
Its machine code is 0000020000.
B) arrangement of trap: in the present invention, untapped EPROM fills out 0000020000 in space in program, and the last item inserts 020000.When random flight distance order, fall this district, can automatically enter the orbit.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 corresponding interrupt service routine, software trap is set, can catch in time wrong interruption.Though do not use external interrupt 1 as 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 enter fault diagnostic program, the as soon as possible operation of handling failure recovery routine.
2) output port Anti-Jamming Technique.While transmitting due to data wireless, often produce electromagnetic pulse, output signal is impacted.Interference to output channel, adopts the method for periodically adding output port refreshing instruction in program, to reduce interference.In program, specify ram cell, the state that storage delivery outlet should be located at that time, when program is moved 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 obtains an interference and also has little time to respond like this, correct signal arrives, and 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.After system powers on, carry out initialization, by first frequency setting module 3 is carried out to software setting, its wireless communication frequency band and gateway node communications band are arranged to similar frequency bands; Process serial ports interrupt event, the control command of motoring gateway node.When the first wireless network communication module 2 of wireless network data processing unit receives after the packet order that gateway node sends, data are got back to CPU memory from receive data by wireless register RXFIFO, and the type of data packet transmitting according to interrupt register judgement gateway, set up correct Data Labels, simultaneously by serial ports by data packet delivery the second main control module 8 to wireless network data harvester; In 30s, wait for to receive the packet information that postbacks of the second main control module 8, if do not receive repeatings transmission that circulate of any packet information, sending times reports an error to gateway node over exiting for 3 times to circulate; If receive packet information, judge whether it is correct data package informatin, if packet is correct, by the first wireless network communication module 2, send packets to gateway node, and remove corresponding control bit and reenter circulation; If misdata bag, exits 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.After system powers on, carry out initialization, by second frequency setting module 10 is carried out to software setting, by its wireless communication frequency range with bunch in child node communications band be arranged to similar frequency bands; Process serial ports interrupt event, monitor the control command of the first main control module 1.When the second main control module 8 of wireless network data harvester receives after the data acquisition command that the first main control module 1 transmits by serial line interface, control command is processed, be stored in EpBuf buffer, by second wireless network communication module 9, to child node, send wake command, in 20s, wait for and receive the child node signal of waking up; If do not receive the child node signal of waking up, the repeating transmission that circulates, sending times surpasses and sends error reporting for 3 times to the first main control module 1; If receive the child node signal of waking up in 20s, to child node, send controlling of sampling order and wait for and receive child node sampled data; If receive correct data package informatin, by serial ports, send packet to the first main control module 1 and remove corresponding control bit and reenter circulation; If do not receive correct data package informatin, the repeating transmission that circulates, sending times is over reporting an error to the first main control module 1 for 3 times.
Formed by two parts with the communication protocol of sensor node, upper strata communications protocol and lower floor's communications protocol, levels agreement realizes under different 2.4GHz frequency ranges, thereby realize full-duplex communication work: the communications protocol utilization on upper strata is shaken hands, the mechanism such as repeating transmission manage the communication between adjacent node, after sending node is received a packet, by data being added to stem and the verification pre-setting and constructing a link layer packet, 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 to represent that grouping receives, complete rational information exchanging process, reduce the reflection of signal waveform, the phenomenon of diffraction and scattering and so on and routing cost and barrier exist the wireless channel causing 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 to exchange between wireless radio frequency modules by wireless mode, data buffer zone receives data by the mode of first in first out, use special function register interface to read first in first out data, internal memory and first in first out buffer area data mobile are realized with dma mode.The Frame of take between upper-layer protocol carries out communication as unit, for lower floor's wireless telecommunications, just take data byte and carry out communication as unit, be about to each frame data and all resolve into data byte, then according to protocol format, using data byte as useful data, reformulate Frame and transmit.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, retains fault-tolerant position and valid data position.RSSI (Receive signal Strength Indicator) is the indicating device of accepting intensity data, LQI (Link Quality Indicator) is link-quality indicating device, these two is the important parameter of reflection communication quality, by hardware, automatically generated, can be by the collection of these two parameters be determined to link quality, judgement sensor node working region and fault message, in real time monitoring state of network.

Claims (8)

1. a two-band communicator for indoor photo sensor wireless network, is characterized in that it comprises wireless network data processing unit and wireless network data harvester;
Described wireless network data processing unit comprises:
The first main control module, for the treatment of radio network netgate node control signal;
The first wireless network communication module, for the radio communication between described two-band communicator and gateway node;
First frequency setting module, for arranging the communication frequency of the first wireless network communication module;
Usb interface module, for communicating by letter between described two-band communicator and host computer;
Communication quality indicating module, for monitoring and indicate the communications status accessing by USB interface;
Double-core communication quality monitoring modular, for making the first main control module and the mutual co-ordination of the second main control module;
Described wireless network data harvester comprises:
The second main control module, for the treatment of child node sample information in wireless network bunch;
Second wireless network communication module, for described two-band communicator and bunch in radio communication between child node;
Second frequency setting module is for arranging the communication frequency of second wireless network communication module;
Data acquisition indicating module, is used to indicate and whether receives relevant image data;
Power management module, is used to the first main control module and the second main control module that power supply support is provided;
The first main control module is connected 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 communication quality indicating module is connected with usb interface module; The second main control module is connected with second wireless network communication module, double-core communication quality monitoring modular and power management module respectively; Power management module is connected with the second main control module with the first main control module respectively, between the first main control module and the second main control module, by double-core communication quality monitoring modular, is connected;
In described wireless network data processing unit, be also provided with first frequency immunity module, described first frequency immunity module is connected with first frequency setting module; In described wireless network data harvester, be also provided with second frequency immunity module, described second frequency immunity module is connected with second frequency setting module;
Described first frequency immunity module and second frequency immunity module are used for realizing automatic search frequency range function, can automatic search the same area in existing working frequency range signal;
The automatic search frequency range function of described first frequency immunity module and second frequency immunity module, realizes by the following method:
Setting for wireless communication frequency, first the feasible zone at k generates a k value at random, the frequency of setting described two-band communicator is that Fc=2405+5 (k-11) MHz is Fc=(2350+5k) MHz, stand-by period T in this random setting frequency range, observes whether can receive communication data; If do not receive any data in time T, represent that this frequency range is probably unoccupied, this frequency range is set to one of working frequency range of described two-band communicator, records now k value simultaneously, deposits database in; If receive data in time T, illustrate that this frequency range is occupied, abandon this frequency range, then generate immediately a k value, according to above-mentioned steps, reselect frequency range, k=11 wherein, 12 ..., 26.
2. 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 by the following method:
After described two-band communicator powers on, carry out initialization, the first main control module sends data acquisition signal by serial ports to the second main control module, if the second main control module does not receive data acquisition signal, resends data acquisition signal; If the second main control module receives the data acquisition signal of the first main control module, the second main control module is to the first main control module passback packet; The passback packet that the first main control module storing received arrives sends data acquisition signal to the second main control module simultaneously again, and waits for the packet that reception the second main control module postbacks; The packet receiving for twice is done to XOR, if result is 0, illustrate that packet is correct, data are sent to upper level; If result is not 0, illustrate that packet makes mistakes, the first main control module sends data acquisition signal to the second main control module again; By data re-transmitting mechanism, front and back two secondary data are compared, with this determine the data of being sent out whether correct, thereby realize communication quality monitoring function.
3. the two-band communicator of indoor photo sensor wireless network according to claim 1, is characterized in that the main control chip in the first main control module and the second main control module adopts respectively CC2430 chip, and its microprocessor is enhancement mode MCS-51 processor.
4. the two-band communicator of indoor photo sensor wireless network according to claim 1, it is characterized in that described wireless network is for the wireless network based on Zigbee agreement, described the first wireless network communication module and second wireless network communication module are respectively Zigbee wireless network communication module.
5. the two-band communicator of indoor photo sensor wireless network according to claim 1, it is characterized in that being also provided with photosensor signal input module in described wireless network data harvester, photosensor signal input module is connected with the second main control module, for the luminous environment sampled data of optical sensor is passed to the second main control module.
6. the two-band communicator of indoor photo sensor wireless network according to claim 3, it is characterized in that being also provided with photosensor signal input module in described wireless network data harvester, described photosensor signal input module comprises multiplexer 74HC151 chip and 4520 chips, wherein 74HC151 chip comprises 3 address input pins, be connected with 3 GPIO mouths of microprocessor in the second main control module respectively, be used for selecting different data input pins; The data output end of 74HC151 chip, is connected with 1 GPIO mouth of microprocessor in the second main control module; 8 bit data inputs of 74HC151 chip, receive two kinds of signal inputs, are respectively the digital signals that sampling output can directly be used, and the digital signal of exporting after A/D conversion and 4520 chip frequency divisions.
7. the two-band communicator of indoor photo sensor wireless network according to claim 1, is characterized in that described photosensor signal input module is connected with data acquisition and monitoring module.
8. according to the two-band communicator of the indoor photo sensor wireless network described in claim 5 or 6, it is characterized in that the main control chip that in the first main control module and the second main control module, employing comprises microprocessor respectively, the second main control module includes two interfaces, be connected with described photosensor signal input module data-interface, it is respectively input data-interface and input gating interface, the interface of photosensor signal input module is divided into two classes, be connected with sensor signal input with the second main control module respectively, the interface being connected with sensor signal input comprises polytype interface, coupling multi-signal input pattern.
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 CN102387185A (en) 2012-03-21
CN102387185B true 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)

Families Citing this family (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
CN104734785B (en) * 2015-01-26 2018-04-10 华北水利水电大学 A kind of visible optical pickup apparatus and visible method for optical reception
CN106775659B (en) * 2016-11-28 2020-01-31 四川航天系统工程研究所 Embedded dual-core flight control software architecture method based on high-speed Linkport interface
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
CN111417127B (en) * 2020-03-25 2022-08-30 中乾思创(北京)科技有限公司 Sensor network formed by sensor nodes with 5G communication capability
CN113190291B (en) * 2021-05-25 2023-06-02 电子科技大学 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

Also Published As

Publication number Publication date
CN102387185A (en) 2012-03-21

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
CN103021154B (en) Wireless meter reading system based on Ad Hoc
CN103781088B (en) Two point four gigahertz full-channel data collection and protocol analysis instrument based on IEEE802.15.4
CN201741262U (en) Wireless mine monitoring system
CN102693615B (en) Gatherer device of wireless ad-hoc network meter reading system, and operation method
CN201174706Y (en) Ethernet serial power converter based on FPGA technique
CN105976134B (en) Enterprise energy management information acquisition system and method based on ZigBee wireless networking technology
CN102883340B (en) Remote transfer transmission system suitable for network-free areas and transmission method thereof
CN107613583A (en) A kind of distributed wireless sensor network data summarization gateway
CN101713652A (en) Intelligent multi-sensor system and working method thereof
CN202838664U (en) Multi-signal and multi-communication protocol data acquisition equipment based on STM32
CN102194304A (en) Method and system for wireless concentrated collection and management of energy measurement data
CN101446205A (en) Coal-mine gas monitoring system comprising wireless sensor network
CN102892212A (en) System for measuring illumination by using wireless sensor network
CN107065706A (en) A kind of distributed telemetry station working-condition monitoring system
CN103680110A (en) All-track 16Kbps telemetering data multi-path downloading system
Hongjiang et al. The application of ARM and ZigBee technology wireless networks in monitoring mine safety system
CN100525286C (en) Multi-path line adapter
CN102957473A (en) Circulation monitoring data management relay of urban network cable
CN201589614U (en) Multiple-carrier channel accessed wireless communication network hydrographic multiparameter metering instrument
CN206894665U (en) A kind of switchgear house monitoring system for reducing things-internet gateway congestion
CN101820695B (en) Embedded gateway of indoor photo sensor wireless network
CN104483936A (en) Wireless network information collection platform of wireless data access system
CN107949045A (en) A kind of environmental data acquisition system and method

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