Wireless switch controller based on Lora technologies
Technical field
The utility model belongs to wireless signal transmission techniques field, and in particular to a kind of switch control based on Lora technologies
Device.
Background technology
Traditional relay control system is wanted to carry out a controlling behavior, needs various command input devices with conducting wire
The tool of the compositions such as (control switch, control button, sensor etc.) and several intermediate relays, the time relay, counting relay
There is the control circuit of certain logic to be connected, control quilt is then gone by output equipment (executive components such as contact net, solenoid valve)
It controls object to close or run, in this control system, the transmission for controlling requirement must be by the hardwire of control circuit come complete
At.Therefore, although its is simple in structure understandable, be widely used for a long time in industrial control field, because its maintenance difficulties is big, at
This height, have a single function, wiring is complicated, versatility and flexibility are poor, cannot more and more meet complicated and changeable in modern society
Control requires, and is also not suitable with modern society's intelligence, the common requirements of ease for use.
For a long time, it is desirable to which it is exactly to improve transmission power apart from most common method to improve twireless radio-frequency communication, but in this way
It can bring about higher energy consumption.The LoRa radio-frequency techniques that SemTech companies released in 2013, use spread-spectrum modulation technique,
Farther communication distance can be obtained under same power consumption.This product is one based on Lora radio-frequency techniques institute utility model
Kind low-power consumption, remote wireless switching control device.Under traditional mode, light-current system construction needs the cloth in building
Apply a large amount of data transmission wires, it is difficulty of construction, of high cost, and later maintenance difficulty is big, spends human and material resources, for example some are high
Shelves office building, high-grade hotel, market, airport etc., the requirement to finishing is very high, and many architectural designs have the laying of circuit
Prodigious limitation, and once need to carry out maintenance or amending plans to circuit, it is required for undertaking prodigious maintenance cost.
Utility model content
In view of this, the utility model embodiment provides a kind of wireless switch controller based on Lora technologies, by this
Product can be improved existing light-current system, wirelessly realize the detection to each terminal device and control
System.Specifically, the utility model provides following technical scheme:
A kind of wireless switch controller based on Lora technologies comprising radio frequency units, MCU circuits, switching value inspection
Survey unit, simulation amount detection unit, digital output modul unit, AD conversion unit, reset circuit, indicator unit, antenna list
Member.The MCU circuits and switching value unit, digital output modul unit, D/A conversion unit, reset chip unit, antenna
Unit, indicator unit are connected, the data passed over for handling each unit;The radio frequency units and MCU circuits, day
Line unit is connected, and is used for wireless data delivery;The switching value unit, digital output modul unit and outer contact relay phase
Even, for detecting, controlling relay;The simulation amount detection unit is connected with external sensor, for detecting external sensor
Information.
Preferably, the radio frequency units, including data transmitter unit, register cell, receiver unit, Lora tune
Modulator-demodulator unit, FSK/OOK modulator-demods, wherein data transmitter unit are for transmitting wirelessly the completion of MCU processing of circuit
Data;Register cell includes 113 registers, for keeping in different data or code;Receiver unit is for receiving
Wireless data, two kinds of modems are respectively used to the data modem under different mode.
Preferably, radio frequency units use Lora modem modules, the unit to modulate skill using linear frequency modulation spread spectrum
Art and forward error correction technique, this technology can not only expand the coverage area of radio communication chain circuit, but also enhance the stabilization of link
Property.By adjusting spreading factor and error correction rate both variables, to bandwidth occupancy, data rate, link budget improve with
And reach better balance between anti-interference.
Preferably, the Lora modulator-demods, FSK/OOK modulator-demods, the Lora modulation /demodulation
Device unit is used to modulate the data that the receiver unit receives, or the modulation MCU circuits transmit the data of coming;It is described
FSK/OOK modulator-demods include fsk demodulator and OOK demodulators, and digital letter is transmitted for the carrier wave of different frequency
Number.
Preferably, the data transmitter unit include, frequency synthesis unit, radiofrequency power amplification unit.The frequency synthesis
Unit includes crystal oscillator, RC oscillators, PLL unit, the frequency sweep output signal for generating high accuracy and stability;
Preferably, the Lora modulator-demods, using spread-spectrum modulation technique and forward error correction technique.With traditional skill
Art is compared, and this technology can not only expand the coverage area of radio communication chain circuit, but also enhance the stability of link.By adjusting
Spreading factor and error correction rate both variables, to improve in bandwidth occupancy, data rate, link budget and anti-interference it
Between reach better balance.
Preferably, FSK/OOK modulator-demods include fsk demodulator and OOK demodulators;The FSK demodulators are used
Then digital signal is transmitted with the carrier wave of different frequency, has many advantages, such as strong antijamming capability, long transmission distance.The OOK
Demodulator is adjusted to be used to compare RSSI outputs with threshold value.
Preferably, the crystal oscillator is the main time reference source of wireless signal administrative unit, is used as PLL frequencies
The time reference of synthesis and the clock signal of all digital processings, crystal oscillator start the time depending on crystal reference source used
Electrical characteristic, which is connected by two pins with Pierce oscillator.
Preferably, the RC oscillators are under low-power sleep state, all fixed cycle operators of top sequencer all according to
The precision of low-power RC oscillators inside Lai Yu.The oscillator can be calibrated automatically when device powers on, and be intervened without user.
Preferably, the PLL unit with crystal-oscillator circuit as reference.The startup time is optimized and shaken
Automatic trigger PLL when swinging device signal stabilization.
Preferably, the radiofrequency power amplification unit, for amplifying radiofrequency signal;The register cell includes multiple posts
Storage, for keeping in different data or code, the preferably described register cell includes 113 registers.
Preferably, the receiver unit, the receiver is after receiving the electromagnetic signal that transmission comes, by frequency synthesis
The digital conversion process of execution can be simulated after cell processing.Receiver can also carry out automatic gain calibration, be surveyed to improve RSSI
Accuracy of measurement.
Preferably, the switching value unit, is made of optic coupling element, pull-up resistor, current-limiting resistance, terminal module.
The switching value unit is converted to input switch amount for detecting the input switch amount being passed to by external adaptive polarizing memory voltage time constant
The on-off model that MCU chip is identified, passes to MCU chip;The optic coupling element is used for the input switch amount to being detected
It is isolated with the on-off model for passing to MCU chip, ensures that the integrated circuits such as the MCU being connected with detection module are normally transported
Row.
Preferably, the digital output modul unit, the control signal for MCU circuits to be transmitted to are converted into switching value
Extraneous relay is passed to, to achieve the purpose that control relay.Outer contact relay can connect various device ends, including in
Entreat air-conditioning system, lighting system, access control system etc..
Preferably, the simulation amount detection unit, the analog signal transmitted for detecting external sensor, external sensor
Including temperature sensor, humidity sensor, smoke alarm etc..The Sensor Analog Relay System that the simulation amount detection unit will detect
Signal passes to AD conversion unit.
Preferably, the AD conversion unit, the analog signals conversion for will be transmitted from sensor or relay
For digital quantity signal, MCU chip is passed to;The AD conversion unit is the analog quantity in connection variation and discrete number
It is converted between amount, analog quantity is converted to digital quantity;The AD conversion unit analog signal is kept through bandlimiting filtering, sampling
Circuit becomes stairstepping signal, then becomes the digital quantity of binary code by encoder;The AD conversion unit is used for
The analog signals transmitted from sensor or relay are converted into digital quantity, and pass to MCU chip;The power amplifier chips
Corresponding digital quantity electric signal is amplified at double, ensures that data normally return.
Preferably, the reset chip unit, including reset circuit, counter;The reset chip unit, passes through one
Pin is connected with MCU circuits, when power on circuitry, MCU chip due to interference causes program fleet and when being absorbed in endless loop state or
When person's counter counts spill-over goes out, counter can be zeroed, system reset.
Preferably, using the 220VAC/2A power supply adaptors of standard configuration, built-in reverse-phase protection and overvoltage protection, in order to
Complicated application environment is adapted to, improves the job stability of system, the utility model uses advanced power technology, Yong Huke
It is powered to this product using the 220VAC/2A power supply adaptors of standard configuration.When user is powered using additional power source to this product
When, it is necessary to assure the stability of power supply, and ensure that power is more than 10W or more.Recommend the 220VAC/2A electricity of standard configuration
Source.
Preferably, antenna element interface is SMA the moon connectors, and interface lightning protection is safe.
Preferably, ten indicator lights of the indicator unit CY-LR-100 offers, including a power supply indicator, one
The switch shape of 1~8 relay of relay terminal can be presented in signal control feedback lamp, eight channels DO on off operating mode indicator lights
State gives conducting to open between two of every group of terminal ends, gives to be broken as closing, indicator light can be corresponded to and be lighted, and original state is
It closes.
Preferably, low power testing circuit is used to generate interrupt signal, user Ke Gen when supply voltage is less than setting threshold value
It is handled according to interrupt signal.
This product main working process uses the following two kinds scheme:
1:Order control relay terminal is received from vulnerabilities scan center.
Radio frequency units receive the order sent from weak electricity system control centre first, by MCU processing of circuit, transmit
Give digital output modul unit, external relay terminal passed to after digital output modul unit resolves, to final impulse optor program into
Row control.
2:External contact relay or sensor states are detected
Switching value unit is responsible for acquiring external relay terminal on off state, and collected switching value directly passes
MCU is given, simulation amount detection unit is responsible for acquiring the analog quantity of sensor, and analog quantity is passed to AD conversion unit, modulus
Converting unit is responsible for analog signals being converted to digital quantity signal, is passing to MCU, various signal processings are completed it by MCU
Afterwards, radio frequency units are sent to, pass to weak electricity system control centre in the form of wireless by radio frequency units.
Compared with prior art, technical solutions of the utility model can wirelessly with various Internet of Things weak electricity systems
It is connected, to detect or control the status information of each terminal, controllable or detection specific equipment includes air-conditioning system, gate inhibition system
System, lighting system, alarm system and various internet of things sensors, greatly reduce construction cost and maintenance cost, simultaneously
(most common be exactly DDC to the mainstreams weak electricity systems such as the currently marketed Siemens of the hardware compatibility, Honeywell, Johnson controls
Controller), equipment plug and play, difficulty of construction is low, and autgmentability is strong.
Description of the drawings
In order to illustrate the embodiment of the utility model or the technical proposal in the existing technology more clearly, below will be to embodiment
Or attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only
It is some embodiments of the utility model, for those of ordinary skill in the art, in the premise not made the creative labor
Under, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the utility model structure chart;
Fig. 2 is the utility model switching value element circuit schematic diagram;
Fig. 3 is the application scenario diagram of the utility model;
Fig. 4 is utility model works flow chart;
Fig. 5 is the utility model AD conversion unit fundamental diagram;
Fig. 6 is the utility model filter circuit fundamental diagram;
Fig. 7 is the utility model radio frequency units overall construction drawing;
Fig. 8 is the utility model radio frequency units front radio-frequency structure chart;
Fig. 9 is the utility model radio frequency units modem working method figure;
Figure 10 is the circuit diagram of the utility model reset circuit unit.
Specific implementation mode
The utility model embodiment is described in detail below in conjunction with the accompanying drawings.It will be appreciated that described embodiment is only
It is the utility model a part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, this field is general
All other embodiment that logical technical staff is obtained without creative efforts belongs to the utility model guarantor
The range of shield.
Those skilled in the art it is to be understood that following specific embodiments or specific implementation mode, be the utility model be into
One step explains specific utility model content and the set-up mode of series of optimum enumerated, and is between those set-up modes
Can be combined with each other or it is interrelated use, unless clearly propose some of which or a certain specific reality in the utility model
Setting can not be associated or be used in conjunction with other embodiments or embodiment by applying example or embodiment.Meanwhile it is following
The set-up mode of specific embodiment or embodiment only as optimization, and not as restriction the scope of protection of the utility model
Understand.
Embodiment 1:
As shown in Figure 1:The utility model includes mainly radio frequency units, MCU circuits, switching value unit, simulation
Amount detection unit, digital output modul unit, AD conversion unit, reset circuit, indicator unit, antenna element.
Radio frequency units are responsible for the transmitting-receiving of Lora signals;Antenna element is amplified transmitting signal;MCU circuits are negative
The data for sending each unit are blamed to handle;The external contact relay SOT state of termination of switching value unit is acquired;Switch
The amount external contact relay terminal of control unit is controlled;Simulation amount detection unit externally connects sensor terminal and is acquired;Mould
Number converting unit is converted into digital quantity by the analog signals that amount detection unit is transmitted to are simulated, and is passing to MCU;Reset electricity
Road is used for the anti-crash of equipment;Power supply unit is used to power to whole equipment;The information of equipment is presented in indicator unit.
Fig. 2 be to the description of the parts of the utility model application scenarios, as shown in Figure 3, the utility model mainly application with
To the wireless control of weak electricity system terminal device, for wireless control distance up to 10KM, controllable terminal device includes central hollow
Adjusting system, lighting system, access control system, window magnetic system etc.;And various kinds of sensors equipment is measured in real time:Including temperature
Sensor, humidity sensor, smoke alarm, PM2.5 etc.;Pass through the utility model, it is convenient to omit control from weak electricity system
End wirelessly carries out data transmission to the wiring flow of terminal device control switch, and data transmission is stablized.Greatly
Reduce construction cost and later maintenance cost.
Fig. 3 is the detailed description to utility model works flow:As shown in figure 4, the utility model is mainly to terminal
Equipment is controlled and is detected.
(1) it controls:It sends and instructs from weak electricity system control centre first, by wireless form by the nothing of the utility model
Line radio frequency unit receives, and the instruction that control centre sends is passed to MCU units by radio frequency units, and MCU is sent to
Digital output modul unit is given, digital output modul unit is converted into the on-off model that outer contact relay can identify, then passes
Pass relay, relay is closed according to instructing the switch for controlling each terminal.
(2) it detects:The status information of itself is sent to simulation amount detection unit by each sensor timing, and analog quantity detection is single
The continuous analog signals detected are passed to AD conversion unit by member, and AD conversion unit filters analog signal through band limit
Wave, sampling hold circuit become stairstepping signal, then become the number of the identifiable binary codes of MCU by encoder
Amount, MCU pass to radio frequency units after receiving digital quantity signal, signal amplification are carried out through antenna element, with wireless shape
Formula passes to vulnerabilities scan center.
Embodiment 2:
It is as shown in Figure 4 according to switching value element circuit, schematic diagram described in embodiment 1:The switching value
Unit is made of optic coupling element, pull-up resistor, current-limiting resistance, terminal module.
Include AD conversion chip, power amplification unit, filter circuit, pipe according to AD conversion unit described in embodiment 1
Manage circuit.The AD conversion unit is used to the analog signals transmitted from simulation amount detection unit being converted to output number
Amount, passes to MCU;The AD conversion chip is converted between the analog quantity and discrete digital quantity of connection variation;Mould
For quasi- signal through bandlimiting filtering, sampling hold circuit becomes stairstepping signal, then becomes the number of binary code by encoder
Word amount;The AD analog-digital chips are used to the analog signals transmitted from simulation amount detection unit being converted to digital quantity,
And pass to power amplifier chips;The power amplifier chips amplify corresponding digital quantity signal at double, ensure that MCU can be normally received.
As shown in figure 5, the product AD conversion unit uses 12 resolution A/D converters, conversion accuracy high, when conversion
Between within 10 μ s, possess 11 analog input channels, sampling rate can reach 66kbps, be provided simultaneously with conversion end output
EOC has the output of single, double polarity, and programmable MSB or LSB are leading, may be programmed output data length, can be to various in the market
The sensor of common type is acquired.
As shown in fig. 6, the filter circuit is RC filter circuits, the filter circuit is small, and power consumption is extremely low, for direct current
Voltage segment, since capacitor is to the barrier-like state of direct current, at this moment capacitor does not divide resistor effect, and direct current will not
Flow through capacitor.In this filter circuit, if the resistance value of resistor is constant, increasing the capacity of filter capacitor can improve
The capacity of filter effect, filter capacitor is the bigger the better.If the capacity of filter capacitor is constant, the resistance value for increasing resistor can also
Improve filter effect.
It is as shown in Figure 7 according to radio frequency units, overall structure described in embodiment 1:
Radio frequency units are a kind of Low Medium Frequency transceivers of half-duplex transmission.The radiofrequency signal that it is received is first by low
Noise amplifier amplifies.Then signal is switched to difference form, and to improve, the second level is linear and harmonics restraint.Then by a pair
Analog-digital converter carries out data conversion, and all signal processings and demodulation later are carried out in digital field.
According to radio frequency units described in example 1, radio-frequency structure is as shown in figure 8, include two high-efficiency amplifiers
(PA_HF and PA_LF), adjustable radio-frequency power that can be by step-length within 1dB (from -4dBm to+14dBm) is with very low electricity
Stream consumption is directly output to 50 ohm of load.The lower frequency range (525MHz frequency ranges below) of wherein PA_LF coverings, and PA_
HF then covers higher frequency range (frequency range of 860MHz or more).Its continuous work power can reach+17dBm, periodic duty
Power can reach+20dBm.The utility model also provides an overcurrent protection module, is applied in unfavorable rf load item
Under part, power amplifier is protected to be influenced from overcurrent.Such protected mode is also prevented from the chemical composition of battery by overcurrent
It influences, and prevents unfavorable PA consumption as far as possible, duration is used to extend battery.Its computational methods is as follows:
When current limiter value Z is (0-12), calculation formula is:
45+5×Z[mA]
When current limiter value Z is (12-22), calculation formula is:
-30+10×Z[mA]
When current limiter value is (22 or more), maximum power dissipation is restricted to 210MA, to ensure the characteristic of its low-power consumption.
As shown in figure 9, the modulator-demod belongs to radio frequency units, which uses linear frequency modulation spread spectrum tune
Technology and forward error correction technique processed, this technology can not only expand the coverage area of radio communication chain circuit, but also enhance link
Stability.By adjusting spreading factor and error correction rate both variables, to change in bandwidth occupancy, data rate, link budget
Reach better balance between kind and anti-interference.Switch LoRa/FSK modulation /demodulation by configuration register RegOpMode
Device, switching can carry out (acquiescence enters sleep pattern after the every task of chip), both realize so remote in a sleep mode
Modulation capability, and the FSK/OOK modulation techniques of standard can be used.The process that simple displaying sent and received information is gone back in figure.
Transmission data is generally:FIFO extracts Payload->Group packet->Coding->Modulation;
Receive data generally:Demodulation->Error correction->Extract Payload->It is put into FIFO.
Wherein, there is the Modulater of Lora independent dual port data to buffer FIFO, and in all operation modes
Under, the FIFO can be accessed by SPI.
Above-mentioned FSK/OOK modems can be used for acquiring the received signal power of rf inputs mouth
(RSSIVALUE), it is measured in receiver bandwidth.RSSIVALUE contains signal power.The value is absolute value, with dBm
For unit, resolution ratio 0.5dB.Wherein RssiOffset compensates RSSI value, thus by the loss of matching network or volume
The gain of outer LNA counts.The offset can be selected from using 1dB between the -16dB of step-length to+15dB.
Figure 10 is the reset chip element circuit figure of the utility model, and by this unit, product can connect under unmanned state
Continuous work, when CPU is worked normally, timing reset counter so that the value of counter is no more than the threshold values set;Work as CPU
When cisco unity malfunction, since counter cannot be reset, therefore it is more than threshold values that it, which is counted, to generate reset pulse so that
CPU restores normal operating conditions.
Embodiment 3:
In yet another embodiment, it can be controlled with following system module structure to design the switch of the utility model
Device.
Switch controller includes radio frequency units, MCU circuits, switching value unit, simulation amount detection unit, switch
Measure control unit, AD conversion unit, reset circuit, indicator unit, antenna element.The MCU circuits and switching value
Unit, digital output modul unit, D/A conversion unit, reset chip unit, antenna element, indicator unit are connected, for locating
The data that reason each unit passes over;The radio frequency units are connected with MCU circuits, antenna element, are passed for wireless data
It passs;The switching value unit, digital output modul unit are connected with outer contact relay, for detecting, controlling relay;It is described
Simulation amount detection unit is connected with external sensor, for detecting external sensor information.
Preferably, the radio frequency units, including data transmitter unit, register cell, receiver unit, Lora tune
Modulator-demodulator unit, FSK/OOK modulator-demods, wherein data transmitter unit are for transmitting wirelessly the completion of MCU processing of circuit
Data;Register cell includes 113 registers, for keeping in different data or code;Receiver unit is for receiving
Wireless data, two kinds of modems are respectively used to the data modem under different mode.
Preferably, radio frequency units use Lora modem modules, the unit to modulate skill using linear frequency modulation spread spectrum
Art and forward error correction technique, this technology can not only expand the coverage area of radio communication chain circuit, but also enhance the stabilization of link
Property.By adjusting spreading factor and error correction rate both variables, to bandwidth occupancy, data rate, link budget improve with
And reach better balance between anti-interference.
Preferably, the Lora modulator-demods, FSK/OOK modulator-demods, the lora modulation /demodulation
Device unit is used to modulate the data that the receiver unit receives, or the modulation MCU circuits transmit the data of coming;It is described
FSK/OOK modulator-demods include fsk demodulator and OOK demodulators, and digital letter is transmitted for the carrier wave of different frequency
Number.
Preferably, the data transmitter unit include, frequency synthesis unit, radiofrequency power amplification unit.The frequency synthesis
Unit includes crystal oscillator, RC oscillators, PLL unit, the frequency sweep output signal for generating high accuracy and stability;
Preferably, the Lora modulator-demods, using spread-spectrum modulation technique and forward error correction technique.With traditional skill
Art is compared, and this technology can not only expand the coverage area of radio communication chain circuit, but also enhance the stability of link.By adjusting
Spreading factor and error correction rate both variables, to improve in bandwidth occupancy, data rate, link budget and anti-interference it
Between reach better balance.
Preferably, FSK/OOK modulator-demods include fsk demodulator and OOK demodulators;The FSK demodulators are used
Then digital signal is transmitted with the carrier wave of different frequency, has many advantages, such as strong antijamming capability, long transmission distance.The OOK
Demodulator is adjusted to be used to compare RSSI outputs with threshold value.
Preferably, the crystal oscillator is the main time reference source of wireless signal administrative unit, is used as PLL frequencies
The time reference of synthesis and the clock signal of all digital processings, crystal oscillator start the time depending on crystal reference source used
Electrical characteristic, which is connected by two pins with Pierce oscillator.
Preferably, the RC oscillators are under low-power sleep state, all fixed cycle operators of top sequencer all according to
The precision of low-power RC oscillators inside Lai Yu.The oscillator can be calibrated automatically when device powers on, and be intervened without user.
Preferably, the PLL unit with crystal-oscillator circuit as reference.The startup time is optimized and shaken
Automatic trigger PLL when swinging device signal stabilization.
Preferably, the radiofrequency power amplification unit, for amplifying radiofrequency signal;The register cell includes multiple posts
Storage, for keeping in different data or code, wherein it is preferred that 113 registers.
Preferably, the receiver unit, the receiver is after receiving the electromagnetic signal that transmission comes, by frequency synthesis
The digital conversion process of execution can be simulated after cell processing.Receiver can also carry out automatic gain calibration, be surveyed to improve RSSI
Accuracy of measurement.
Preferably, the MCU circuits include MCU chip, and the MCU circuits are by data to be processed, computational methods, step
Suddenly, operational order is compiled into program, deposits in inside MCU chip.Specific data processing method is to be received and detected by the ports I/O
The on-off model of unit, and it is converted into digital signaling zero or 1, it is stored in corresponding position in transport protocol, and be stored in
In reservoir, waiting is broadcasted.
Preferably, the switching value unit, is made of optic coupling element, pull-up resistor, current-limiting resistance, terminal module.
The switching value unit is converted to input switch amount for detecting the input switch amount being passed to by external adaptive polarizing memory voltage time constant
The on-off model that MCU chip is identified, passes to MCU chip;The optic coupling element is used for the input switch amount to being detected
It is isolated with the on-off model for passing to MCU chip, ensures that the integrated circuits such as the MCU being connected with detection module are normally transported
Row.
Preferably, the digital output modul unit, the control signal for MCU circuits to be transmitted to are converted into switching value
Extraneous relay is passed to, to achieve the purpose that control relay.Outer contact relay can connect various device ends, including in
Entreat air-conditioning system, lighting system, access control system etc..
Preferably, the simulation amount detection unit, the analog signal transmitted for detecting external sensor, external sensor
Including temperature sensor, humidity sensor, smoke alarm etc..The Sensor Analog Relay System that the simulation amount detection unit will detect
Signal passes to AD conversion unit.
Preferably, the AD conversion unit, the analog signals conversion for will be transmitted from sensor or relay
For digital quantity signal, MCU chip is passed to;The AD conversion unit is the analog quantity in connection variation and discrete number
It is converted between amount, analog quantity is converted to digital quantity;The AD conversion unit analog signal is kept through bandlimiting filtering, sampling
Circuit becomes stairstepping signal, then becomes the digital quantity of binary code by encoder;The AD conversion unit is used for
The analog signals transmitted from sensor or relay are converted into digital quantity, and pass to MCU chip;The power amplifier chips
Corresponding digital quantity electric signal is amplified at double, ensures that data normally return.
Preferably, the reset chip unit, including reset circuit, counter;The reset chip unit, passes through one
Pin is connected with MCU circuits, when power on circuitry, MCU chip due to interference causes program fleet and when being absorbed in endless loop state or
When person's counter counts spill-over goes out, counter can be zeroed, system reset.
Preferably, using the 220VAC/2A power supply adaptors of standard configuration, built-in reverse-phase protection and overvoltage protection, in order to
Complicated application environment is adapted to, improves the job stability of system, the utility model uses advanced power technology, Yong Huke
It is powered to this product using the 220VAC/2A power supply adaptors of standard configuration.When user is powered using additional power source to this product
When, it is necessary to assure the stability of power supply, and ensure that power is more than 10W or more.Recommend the 220VAC/2A electricity of standard configuration
Source.
Preferably, antenna element interface is SMA the moon connectors, and interface lightning protection is safe.
Preferably, ten indicator lights of the indicator unit CY-LR-100 offers, including a power supply indicator, one
The switch shape of 1~8 relay of relay terminal can be presented in signal control feedback lamp, eight channels DO on off operating mode indicator lights
State gives conducting to open between two of every group of terminal ends, gives to be broken as closing, indicator light can be corresponded to and be lighted, and original state is
It closes.
Preferably, low power testing circuit is used to generate interrupt signal, user Ke Gen when supply voltage is less than setting threshold value
It is handled according to interrupt signal.
This product main working process uses the following two kinds scheme:
1:Order control relay terminal is received from vulnerabilities scan center.
Radio frequency units receive the order sent from weak electricity system control centre first, by MCU processing of circuit, transmit
Give digital output modul unit, external relay terminal passed to after digital output modul unit resolves, to final impulse optor program into
Row control.
2:External contact relay or sensor states are detected
Switching value unit is responsible for acquiring external relay terminal on off state, and collected switching value directly passes
MCU is given, simulation amount detection unit is responsible for acquiring the analog quantity of sensor, and analog quantity is passed to AD conversion unit, modulus
Converting unit is responsible for analog signals being converted to digital quantity signal, is passing to MCU, various signal processings are completed it by MCU
Afterwards, radio frequency units are sent to, pass to weak electricity system control centre in the form of wireless by radio frequency units.
Above description is only a specific implementation of the present invention, but the scope of protection of the utility model is not limited to
In this, any one skilled in the art within the technical scope disclosed by the utility model, the change that can be readily occurred in
Change or replace, should be covered within the scope of the utility model.Therefore, the scope of protection of the utility model should be with right
It is required that protection domain subject to.