Summary of the invention
The purpose of this utility model provides that a kind of data rate is fast, and transmission contains much information, and message code favorable expandability, of many uses both can be transmitted general alarm information, can transmit the internet alarm system of specific information again as required.
The purpose of this utility model reaches like this: a kind of internet alarm system that adopts special communication format, contain the center of receiving a crime report and alarm controller, alarm controller is by the communication interface circuit, bus interface circuit, power circuit, the CPU single chip machine controlling circuit, the defence area signal acquisition circuit, output detects control circuit and the incident memory circuit constitutes, it is characterized in that: described bus interface adopts expansion structure, install expansion module and keyboard on the bus additional, voltage comparator ic 1A and IC1B constitute main frame respectively to module and the module signal level shift circuit to main frame; Described communication interface circuit is the transmission circuit of forming with the frame structure data signal generator and the answer signal testing circuit that are made of double-tone frequency combiner circuit, the control circuit that dials.
The described double-tone frame structure data signal generator of combiner circuit formation frequently is meant that low frequency and two kinds of square waves of high frequency of being exported by the LX6688 communication format by CPU are converted to sine wave through amplifier IC1C and IC1D, and sine-wave superimposed is after C point output double-tone signal generating circuit frequently.
The described double-tone frame structure data signal generator that constitutes of combiner circuit frequently is meant by CPU by the single square wave of LX6688 communication format output through amplifier IC1C or IC1D is converted to sine wave after the signal generating circuit of C point sine wave output.
The answer signal testing circuit is meant the circuit by two-stage is amplified and the one-level shaping circuit constitutes; the dialing control circuit is by MOV1 and MOV2 voltage dependent resistor (VDR) lightning protection circuit; and the off-hook control circuit of forming by J1, J2, Q5, Q6, voltage auto-adjusting circuit that Q4, LED, D1, D2 form and the automatic testing circuit of forming by D, IC3, R16, R17, R18, C11, T1 of telephone wire.
The utlity model has following advantage:
1, adopts the bus expansion structure, on bus, connect expansion module,, and be used to the keyboard operating and show as various switching values and data volume modules such as defence area expansion module, temperature detecting module, humidity detecting module, pressure detection modules.Except with general internet alarm system is the same can onsite alarming and to central transmission alert information, the data amount information that can also arrive to some sensor of central transmission makes internet alarm system more perfect, more reliable.The circuit that is connected with telephone wire has automatic detection and automatic voltage is regulated, and can adapt to different communication lines automatically, makes communication more reliable and more stable.
2, the communication interface circuit supports warning system to adopt frequency shift keying to press the combined network communication form that frame structure sends, and the transmission of every frame information all has start signal, data message, check information, improved the accuracy of data transmission effectively, realized receive a crime report exchanges data between the center of alarm controller and networking effectively, can realize that the center of receiving a crime report carries out remote programmable and control to the networking alarm controller.LX6688 communication format particularly, it is output as sine wave, improves transmission performance; Input is converted to square wave, has avoided the influence of waveform distortion, has improved antijamming capability.
3, the form of frame structure is freely set according to information content for transmission, data amount informations such as the temperature of gathering as alert time of origin, user grouping number, Customs Assigned Number, module numbering, zone number, alert information (status information, parameter information) and expansion module, humidity, pressure, when transmitting end of message (EOM) at every turn, the center temporal information is passed to alarm controller, automatic correcting time guarantees that the time of alarm controller and center are consistent.
Embodiment
Accompanying drawing also is embodiment.
In the present embodiment, the structure of alarm is provided by Fig. 1.Alarm controller is by the communication interface circuit, bus interface circuit, and power circuit, the CPU single chip machine controlling circuit, the defence area signal acquisition circuit, output detects control circuit and the incident memory circuit constitutes.
Bus interface has adopted expansion structure, installs expansion module and keyboard on bus additional.Bus interface circuit is referring to Fig. 2.Among the figure, the A point is the signal output part of CPU to bus transmission data, and the B point is the signal input part that CPU receives bus data; The C point is the bus IO interface.
IC1 is a voltage comparator, as the signal level conversion.When main frame when module sends data, the 5V data-signal of CPU output is sent into IC1A from the A point and is compared, and obtains being converted to the data-signal of 12V level at output terminal 1 pin.Equally, when module when main frame sends data, signal arrives the C point, the 12V level signal of transmitting on the bus is sent into IC1B carry out voltage ratio, gives CPU processing in B point output 5V level signal.Help reducing the loss of data transmission by level conversion, guarantee reliability of data transmission, increase the distance of transmission.
In order to connect up conveniently, save wire rod, adopted the three-wire system structure, input signal and output signal are all received on the bus by the C point.Here D1 plays buffer action, avoids the influence of comparer IC1A to input signal.
The transmission of every frame information all had start signal, data message, check information when the communication interface circuit supported that this network alarm device sends by frame structure.Referring to Fig. 3, Fig. 4 Fig. 5.In this example frame sends form and comprises 6 user grouping number, 6 Customs Assigned Numbers, 8 bit times, 8 event informations, at this called after LX6688 communication format.
In double-tone frequency combiner circuit, AB 2 points that the low frequency and the high-frequency square-wave signal of CPU output are delivered to circuit, change-over circuit through IC1C and IC1B and peripheral resistance capacitance composition is converted to sine wave signal with square wave, with two kinds of different sine wave signal stacks, after amplifying, Q1 exports double-audio signal then by the C point.Transmitting data information when this signal is used for dialing and DTMF communication modes.
When sending single-frequency signals, CPU output single-frequency square-wave signal delivers to 2 of AB or more arbitrarily, output single-frequency sine wave after Q1 amplifies, is exported by the C point behind change-over circuit.This signal is used for the answer signal of DTMF communication modes, or the modulation signal of LX6688 communication format.
The ringdown of sending here on the telephone wire, dialing tone, ring-back tone, busy tone, center answer signal tone, LX6688 communication format data information signal are imported by the A point of answer signal testing circuit, two-stage amplifying circuit through Q1 and IC1A and peripheral cell composition amplifies, the shaping circuit shaping of forming through IC1D and peripheral cell is handled again, is converted to pass to CPU behind the square-wave signal various signals are discerned processing.
2 lines of answering the call of AB in the dialing control circuit, 2 machines of answering the call of CD.D7~D10 forms reverse-connection preventing circuit.MOV1 and MOV2 are voltage dependent resistor (VDR), connect with the earth, play the lightning protection effect.D11 is two-way Transient Suppression Diode, is used to suppress the influence of the moment spike pulse on the telephone wire.
J1, J2, Q5, Q6 etc. form the off-hook control circuit, and when the needs dialing communication, J2 is action earlier, disconnects telephone set, and J1 moves the connection circuit more then, prepares communication, realizes that alarm communication system is preferential, i.e. ruthless pre-emption function.Q3 and peripheral resistance capacitance are formed amplifying circuit, deliver on the telephone wire after the signal that T1 is sent here amplifies.
Elements such as Q4, LED, D1, D2 are formed the voltage auto-adjusting circuit, and while LED is double as line work pilot lamp also.The conducting of Q4 increases when line voltage distribution is higher, and shunting increases, and voltage drop is got off; Otherwise the Q4 conducting reduced when voltage was low, and shunting reduces, and voltage rises, thereby plays the effect of automatic regulation voltage, and this circuit is improved greatly to the adaptive faculty of different telephone lines.
C3, R16, R17, R18, C11, T1 etc. form the automatic observation circuit of telephone line.When telephone line just often, the C11 two ends have the above voltage of 3V at least, CPU regularly to IC3 transmitting supervisory signal, makes the IC3 conducting, thereby has electric current to flow through T1, in 2 output signals of IJ; When telephone wire is undesired, there is not voltage on the C11, even IC3 obtains the monitor signal that CPU sends, IC3 can conducting yet, does not just have signal output at 2 of the IJ of T1, can judge thus whether telephone wire is normal.
This example adopts the alert information content of LX6688 communication format transmission as follows:
Byte 1:10H, byte 2:19H, byte 3-6: the time (life time-division), byte 7-9: center identification number, byte 10-12: Customs Assigned Number, byte 13: the module numbering, byte 14: the defence area label, byte: 15-16 alert code-, byte 17: check code.
Wherein, the value 10H of byte 1 represents to have thereafter 16 data to wait for reception; The value of byte 2 is 19H, and it is expressed as alert class event information; Time: the time (being as the criterion) that incident takes place, comprise month day time-division totally 4 bytes with host clock; User grouping number: user grouping is totally 3 byte six figure places number, and the concrete implication of its packet number can define by the center; Customs Assigned Number: for being applicable to the large-capacity user networking, the host subscriber numbers and adopts 6 figure places to represent; The module numbering: the module numbering of this incident takes place in expression; Defence area numbering: the defence area numbering adopts double figures to form, and can represent the defence area of the individual numbering of 00H~FFH (promptly 0~255); The alert code: alert code 2 bytes are totally 4 figure places, and first figure place is " 1 " expression kainogenesis incident, are " 3 " expression recovery incident; Second and third, four bit representation alert information category codes; Check code: byte 1 is to the data message proof test value of byte 16.
This example adopts LX6688 communication format transmitted data amount information format as follows:
Byte 1:10H, byte 2:19H, byte 3-6: time (life time-division), byte 7-9: user grouping number, byte 10-12: Customs Assigned Number, byte 13: module numbering, byte 14: data parameters, byte: 15-16 data amount information, byte 17: check code.
When transmit among the LX6688 be data message the time, the high four-figure table registration of its byte 15 it is believed that the breath classification, the numeric representation data volume radix of low four and byte 16, low three (d0~d2) numeric representation exponential quantity of byte 14, d3 (0/1) expression exponential quantity is positive and negative, and d4 represents that this group data are lower than lower limit numerical value, and d5 represents that this group data are higher than higher limit, d6 keeps not usefulness, and d7 represents numerical value positive and negative (" 0 " just " 1 " is negative).
Communication flow is seen Fig. 6.