CN102509431A - Wireless alarm terminal and method for realizing control on transmission of wireless alarm signals - Google Patents

Wireless alarm terminal and method for realizing control on transmission of wireless alarm signals Download PDF

Info

Publication number
CN102509431A
CN102509431A CN201210001105XA CN201210001105A CN102509431A CN 102509431 A CN102509431 A CN 102509431A CN 201210001105X A CN201210001105X A CN 201210001105XA CN 201210001105 A CN201210001105 A CN 201210001105A CN 102509431 A CN102509431 A CN 102509431A
Authority
CN
China
Prior art keywords
chip microcomputer
alarm
wireless
alerting signal
signal
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.)
Pending
Application number
CN201210001105XA
Other languages
Chinese (zh)
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.)
DAYA SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI
Original Assignee
DAYA SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI
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 DAYA SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI filed Critical DAYA SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI
Priority to CN201210001105XA priority Critical patent/CN102509431A/en
Publication of CN102509431A publication Critical patent/CN102509431A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a wireless alarm terminal which comprises an alarm signal acquisition module and a wireless communication module connected with the alarm signal acquisition module, wherein the alarm signal acquisition module is connected with all alarm sensors, the wireless communication module is connected with an external wireless network, and the alarm signal acquisition module is of a single-chip microcomputer. The invention further relates to a method for realizing control on transmission of wireless alarm signals based on the wireless alarm terminal. When the wireless alarm terminal and the method for realizing the control on the transmission of the wireless alarm signals, disclosed by the invention, are utilized, alarm can be performed on an alarm center or a user through the wireless communication module and the external wireless network after the single-chip microcomputer receives the alarm signals emitted by the alarm sensors. The wireless alarm terminal disclosed by the invention is simple in structure and can be used for effectively enhancing the reliability of the method for realizing the control on the transmission of the wireless alarm signals and further ensuring the whole performances of a product; and furthermore, the method for realizing the control on the transmission of the wireless alarm signals, disclosed by the invention, is low in realization cost and more extensive in application range.

Description

Radio alarming terminal and realization wireless alarm signal transmit the method for control
Technical field
The present invention relates to the wireless communication technique field, particularly radio alarming device technique field specifically is meant a kind of radio alarming terminal and realizes that wireless alarm signal transmits the method for control.
Background technology
Along with improving constantly of living standard, people are also increasingly high for the safety precaution demand of dwelling house or unit.Occur various security protection equipment on the market and satisfied this demand.Wherein, wireless alarm system is because its installation is simple, and it is accurate to report to the police, and performance is preferable, therefore extensively is received by the market.
Wireless alarm system is generally by four most of compositions, and one, the probe of sense object variation, like antitheft door magnetic, smoke detector, window infrared induction etc.; Two, realize mutual terminal wireless base; The terminal of three, reception information or command object action, the normally mobile phone in citizen's hand; Four, these equipment are connected to the 3G wireless network of net.Probe can be laid in any position as required, and through wireless signal connecting terminal wireless fixed telephone, realizes radio alarming.
But it is higher that the complex structure at existing radio alarming terminal, its alerting signal transmit the control difficulty, causes the alarm failure rate higher thus, and reliability of products is difficult to effectively ensured.
Summary of the invention
The objective of the invention is to have overcome above-mentioned shortcoming of the prior art; A kind of radio alarming terminal simple in structure is provided; Effectively promoted the reliability that alerting signal transmits; And then ensured the product overall performance, and with low cost, radio alarming terminal that has wide range of applications and realization wireless alarm signal transmit the method for control.
In order to realize above-mentioned purpose, radio alarming of the present invention terminal has following formation:
This radio alarming terminal comprises alerting signal acquisition module and the wireless communication module that is connected this alerting signal acquisition module; Described alerting signal acquisition module connects each alarm sensor; Described wireless communication module also connects the external wireless network; Wherein, described alerting signal acquisition module is a single-chip microcomputer.
In this radio alarming terminal; Described single-chip microcomputer comprises alerting signal receiving end and alarm signal output ends; Described alerting signal receiving end is communicated with each alarm sensor through wireless signal, and described alarm signal output ends connects described wireless communication module through the UART serial line interface.
In this radio alarming terminal; Described radio alarming terminal also comprises signal demodulation unit; The alerting signal receiving end of described single-chip microcomputer is the external interrupt mouth of single-chip microcomputer, and the alerting signal of described each alarm sensor connects the external interrupt mouth of described single-chip microcomputer through described signal demodulation unit.
In this radio alarming terminal, described wireless communication module is the 3G wireless communication module, and described 3G wireless communication module also has 3G network signal transmitting and receiving end.
The present invention also provides a kind of and realizes that based on described radio alarming terminal wireless alarm signal transmits the method for control, and this method may further comprise the steps:
(10) described single-chip microcomputer receives the alerting signal that alarm sensor sends;
(20) described single-chip microcomputer is sent to described wireless communication module with described alerting signal;
(30) described wireless communication module is reported to the police to alarm center or user through the external wireless network.
This realizes that wireless alarm signal transmits in the method for control; Described single-chip microcomputer comprises alerting signal receiving end and alarm signal output ends; Described alerting signal receiving end is communicated with each alarm sensor through wireless signal; Described alarm signal output ends connects described wireless communication module through the UART serial line interface; Described single-chip microcomputer receives the alerting signal of sending from alarm sensor, is specially: the alerting signal receiving end of described single-chip microcomputer receives the alerting signal of sending from alarm sensor; And described single-chip microcomputer is sent to described wireless communication module with described alerting signal, is specially: the alarm signal output ends of described single-chip microcomputer is sent to described wireless communication module through the UART serial line interface with described alerting signal.
This realizes that wireless alarm signal transmits in the method for control; Described wireless communication module is the 3G wireless communication module; Described 3G wireless communication module also has 3G network signal transmitting and receiving end; Described wireless communication module is reported to the police to alarm center or user through the external wireless network, is specially: the 3G network signal transmitting and receiving end of described 3G wireless communication module is reported to the police to alarm center or user through outside 3G network.
This realizes that wireless alarm signal transmits in the method for control; Described radio alarming terminal also comprises signal demodulation unit; The alerting signal receiving end of described single-chip microcomputer is the external interrupt mouth of single-chip microcomputer; The alerting signal of described each alarm sensor connects the external interrupt mouth of described single-chip microcomputer through described signal demodulation unit, and described method is further comprising the steps of before in step (10):
(1) described signal demodulation unit receives from alarm sensor and sends the alerting signal with simplifying mode frame structure;
(2) the ASK sign indicating number alerting signal formed of described signal demodulation unit tool lead code that described alerting signal with simplifying mode frame structure is demodulated into and numeric data code;
(3) described signal demodulation unit is sent to described ASK sign indicating number alerting signal in the external interrupt mouth of described single-chip microcomputer.
This realizes that wireless alarm signal transmits in the method for control, and described simplifying mode frame structure comprises in proper order: the CMD command word of the Res ID sign indicating number of the identification code of 1 byte long, 5 byte longs, 2 byte longs and the verification of 1 byte long and.
This realizes that wireless alarm signal transmits in the method for control, and described single-chip microcomputer stores the stage condition information that receives, and described single-chip microcomputer operation has first timer and second timer, and described step (3) specifically may further comprise the steps:
(3-1) the external interrupt mouth of described single-chip microcomputer receives the upper edge interruption;
(3-2) described single-chip microcomputer is judged the current reception stage according to described reception stage condition information, if preamble-phase then gets into step (3-3), if data phase then gets into step (3-5);
(3-3) described single-chip microcomputer judges whether the time counting of first timer and second timer meets the preamble-phase state, if, then get into step (3-4), if not, then get into step (3-12);
(3-4) described single-chip microcomputer receives lead code, and is data phase with described reception stage condition information setting, and gets into step (3-12);
(3-5) described single-chip microcomputer judges whether the time counting of described second timer is 4 unit durations, if, then get into step (3-6), if not, then get into step (3-7);
(3-6) described single-chip microcomputer is judged the time counting of described first timer, if 1 unit duration then gets into step (3-8), if 3 unit durations then get into step (3-9), and if other unit duration then gets into step (3-7),
(3-7) described single-chip microcomputer is a data phase with described reception stage condition information setting, and gets into step (3-12);
(3-8) described single-chip microcomputer enters the wireless data set of queues with data 0, and receives, and gets into step (3-10) then;
(3-9) described single-chip microcomputer enters the wireless data set of queues with data 1, and receives, and gets into step (3-10) then;
(3-10) described single-chip microcomputer is judged whether described wireless data set of queues receives and is finished, if, then get into step (3-11), if not, then get into step (3-13);
(3-11) described single-chip microcomputer receives the described alerting signal that the simplifying mode frame structure is arranged, and is preamble-phase with described reception stage condition information setting, gets into step (3-12) then;
(3-12) described first timer of described single-chip microcomputer zero clearing and second timer;
(3-13) the described external interrupt mouth of described singlechip interruption.
Adopted the radio alarming terminal of this invention; It comprises alerting signal acquisition module and the wireless communication module that is connected this alerting signal acquisition module; Described alerting signal acquisition module connects each alarm sensor; Described wireless communication module also connects the external wireless network, and wherein, described alerting signal acquisition module is a single-chip microcomputer.Adopt realization wireless alarm signal of the present invention to transmit the method for control, after single-chip microcomputer receives the alerting signal that alarm sensor sends, can report to the police to alarm center or user through described wireless communication module and external wireless network.Radio alarming of the present invention terminal simple in structure; Effectively promoted in order to realize that wireless alarm signal transmits the reliability of the method for control; And then ensured the product overall performance; And the method for radio alarming of the present invention terminal and realization wireless alarm signal transmission control is with low cost, and range of application is also comparatively extensive.
Description of drawings
Fig. 1 is the structural representation at radio alarming of the present invention terminal.
Fig. 2 is the flow chart of steps that realization wireless alarm signal of the present invention transmits the method for control.
Fig. 3 is the annexation synoptic diagram at radio alarming of the present invention terminal in the practical application.
Fig. 4 for wireless data in the practical application behind receiving demodulation with single-chip microcomputer external interrupt mouth (INT0) continuous be connected synoptic diagram.
Fig. 5 is the synoptic diagram of the single chip computer architecture in the radio alarming of the present invention terminal in the practical application.
Fig. 6 is in the single-chip microcomputer in the radio alarming of the present invention terminal in the practical application
Fig. 7 transmits reception and the parsing process flow diagram to wireless data in the externally middle fracture unit in the method for control for realization wireless alarm signal of the present invention in the practical application.
Embodiment
In order more to be expressly understood technology contents of the present invention, the special following examples of lifting specify.
See also shown in Figure 1ly, be the structural representation at radio alarming of the present invention terminal.
In one embodiment; Described radio alarming terminal comprises alerting signal acquisition module and the wireless communication module that is connected this alerting signal acquisition module; Described alerting signal acquisition module connects each alarm sensor; Described wireless communication module also connects the external wireless network, and wherein, described alerting signal acquisition module is a single-chip microcomputer.
Realize that based on the described radio alarming of this embodiment terminal wireless alarm signal transmits the method for control, as shown in Figure 2, described method may further comprise the steps:
(10) described single-chip microcomputer receives the alerting signal that alarm sensor sends;
(20) described single-chip microcomputer is sent to described wireless communication module with described alerting signal;
(30) described wireless communication module is reported to the police to alarm center or user through the external wireless network.
In a kind of more preferably embodiment; Described single-chip microcomputer comprises alerting signal receiving end and alarm signal output ends; Described alerting signal receiving end is communicated with each alarm sensor through wireless signal, and described alarm signal output ends connects described wireless communication module through the UART serial line interface.
More preferably realizing that wireless alarm signal transmits in the method for control in the described radio alarming of embodiment terminal based on this; Described step (10) single-chip microcomputer receives the alerting signal of sending from alarm sensor, is specially: the alerting signal receiving end of described single-chip microcomputer receives the alerting signal of sending from alarm sensor; And described step (20) single-chip microcomputer is sent to described wireless communication module with described alerting signal, and be specially: the alarm signal output ends of described single-chip microcomputer is sent to described wireless communication module through the UART serial line interface with described alerting signal.
More preferably in the embodiment, described wireless communication module is the 3G wireless communication module at another kind, and described 3G wireless communication module also has 3G network signal transmitting and receiving end.
More preferably realizing that wireless alarm signal transmits in the method for control in the described radio alarming of embodiment terminal based on this; Described step (30) wireless communication module is reported to the police to alarm center or user through the external wireless network, is specially: the 3G network signal transmitting and receiving end of described 3G wireless communication module is reported to the police to alarm center or user through outside 3G network.
In a kind of further preferred embodiment; Described radio alarming terminal also comprises signal demodulation unit; The alerting signal receiving end of described single-chip microcomputer is the external interrupt mouth of single-chip microcomputer, and the alerting signal of described each alarm sensor connects the external interrupt mouth of described single-chip microcomputer through described signal demodulation unit.
Realizing that based on the described radio alarming of this further preferred embodiment terminal wireless alarm signal transmits in the method for control, described method is further comprising the steps of before in step (10):
(1) described signal demodulation unit receives from alarm sensor and sends the alerting signal with simplifying mode frame structure;
(2) the ASK sign indicating number alerting signal formed of described signal demodulation unit tool lead code that described alerting signal with simplifying mode frame structure is demodulated into and numeric data code;
(3) described signal demodulation unit is sent to described ASK sign indicating number alerting signal in the external interrupt mouth of described single-chip microcomputer.
Wherein, described simplifying mode frame structure comprises in proper order: the CMD command word of the Res ID sign indicating number of the identification code of 1 byte long, 5 byte longs, 2 byte longs and the verification of 1 byte long and.
In a kind of preferred embodiment, described single-chip microcomputer stores the stage condition information that receives, and described single-chip microcomputer operation has first timer and second timer, and described step (3) specifically may further comprise the steps:
(3-1) the external interrupt mouth of described single-chip microcomputer receives the upper edge interruption;
(3-2) described single-chip microcomputer is judged the current reception stage according to described reception stage condition information, if preamble-phase then gets into step (3-3), if data phase then gets into step (3-5);
(3-3) described single-chip microcomputer judges whether the time counting of first timer and second timer meets the preamble-phase state, if, then get into step (3-4), if not, then get into step (3-12);
(3-4) described single-chip microcomputer receives lead code, and is data phase with described reception stage condition information setting, and gets into step (3-12);
(3-5) described single-chip microcomputer judges whether the time counting of described second timer is 4 unit durations, if, then get into step (3-6), if not, then get into step (3-7);
(3-6) described single-chip microcomputer is judged the time counting of described first timer, if 1 unit duration then gets into step (3-8), if 3 unit durations then get into step (3-9), and if other unit duration then gets into step (3-7),
(3-7) described single-chip microcomputer is a data phase with described reception stage condition information setting, and gets into step (3-12);
(3-8) described single-chip microcomputer enters the wireless data set of queues with data 0, and receives, and gets into step (3-10) then;
(3-9) described single-chip microcomputer enters the wireless data set of queues with data 1, and receives, and gets into step (3-10) then;
(3-10) described single-chip microcomputer is judged whether described wireless data set of queues receives and is finished, if, then get into step (3-11), if not, then get into step (3-13);
(3-11) described single-chip microcomputer receives the described alerting signal that the simplifying mode frame structure is arranged, and is preamble-phase with described reception stage condition information setting, gets into step (3-12) then;
(3-12) described first timer of described single-chip microcomputer zero clearing and second timer;
(3-13) the described external interrupt mouth of described singlechip interruption.
In practical application, radio alarming of the present invention terminal, as shown in Figure 3, mainly can be divided into following two parts:
A. wireless senser alerting signal collecting part is through chip microcontroller.Adopting model is the single-chip microcomputer of W78E054, and it has Flash and the 256 byte RAM of 16K.
B. alerting signal is handled, then transmitted data and give the alarm center platform, send alarm bell and report to the police, or send note automatically and notify related personnel etc. with calling.This part is handled through the TD wireless communication module and realizes.
Wherein, single-chip microcomputer and TD wireless communication module are taked following communication modes:
1, hardware interface: pass through UART interface communication, the signal of use: TXD, RXD and GND between security protection module and the phone.
2. messaging parameter:
Communication mode: UART;
Baud rate: 9600;
Data bit: 8;
Position of rest: 1;
Parity checking: do not have.
3. protocol format:
Adopt character string forms, each command string finishes with 0x0D (promptly " r "), and as if not receiving that in 1.5 seconds the other side replys, then repeating transmission was once sent at most three times after order had been sent.
4. command content:
(1) pairing enables: this instruction enables the security protection module and gets into the pairing state.
Data direction: TD module → single-chip microcomputer;
Command content: "+r ";
Reply:
Data direction: single-chip microcomputer → TD module;
Command content: " r ";
When single-chip microcomputer in pairing during state, if when receiving effective unpaired message, will send following information to the TD module, and withdraw from the pairing state, get into alarm condition;
Command content: " r ",
" XXXXXXXXXXXX " representative sensor ID wherein; " SS " represent verification with, be that ID by 5 bytes adds up and forms, such as:
Sensor ID={ 0X01,0X02,0X03,0X04,0X05,0X01};
Verification and=0X01+0X02+0X03+0X04+0X05+0X01=0X10;
Unpaired message: " r ",
Specify: form for " XXXXXXXXXXXX " content, wherein the first five group " XX " is the ID coding of sensor, and first group is used for indicating producer, and the meaning of the 6th group " XX " representative is a sensor type; For example: sensor ID={ 0X01,0X02,0X03; 0X04,0X05,0X01}; The 6th byte 0X01 representes that sensor type is a magnetic; If sensor ID={ 0X01,0X02,0X03,0X04,0X06,0X07}; The 6th byte 0X07 representes that sensor is a telepilot.
(2) pairing is withdrawed from: when at the pairing state, use this instruction can make the security protection single-chip microcomputer withdraw from the pairing state, get into alarm condition.
Data direction: TD module → single-chip microcomputer;
Command content: "+r ";
Reply:
Data direction: single-chip microcomputer → TD module;
Command content: " r ".
(3) deletion unpaired message, this instruction are that deletion is stored in the whole unpaired messages among the single-chip microcomputer EEPROM.
Data direction: TD module → single-chip microcomputer;
Command content: "+r ";
Reply:
Data direction: single-chip microcomputer → TD module;
Command content: " r ".
(4) read unpaired message, this instruction is to obtain the whole unpaired messages that are stored among the single-chip microcomputer EEPROM.
Data direction: TD module → single-chip microcomputer;
Command content: "+r ";
Reply:
Data direction: single-chip microcomputer → TD module;
Command content: " AT+YJTTOPAIR=CC, XXXXXXXXXXXX ... ";
Wherein " CC " representes unpaired message quantity, and " XXXXXXXXXXXX " representes sensor ID; For example:
EEPROM has stored 2 unpaired messages:
ID1={0X01,0X02,0X03,0X04,0X05,0X01};
ID2={0X01,0X02,0X03,0X04,0X06,0X01};
Report content to be:
“AT+YJTTOPAIR=02,010203040501,010203040601\r”
When not having unpaired message among the EEPROM, then reply: " r ".
(5) warning message: the security protection single-chip microcomputer is reported to the police to phone, sends this information when triggering like door magnetic.
Data direction: single-chip microcomputer → TD module;
Command content: " r ";
Wherein " XXXXXXXXXXXXSS " together " AT+YJTPAIR " instruction in meaning;
Reply:
Data direction: TD module → single-chip microcomputer;
Command content: "+r ".
(6) low pressure alarming: the security protection single-chip microcomputer sends low pressure alarming to phone.
Data direction: single-chip microcomputer → TD module;
Command content: " r ";
Wherein " XXXXXXXXXXXXSS " together " AT+YJTPAIR " instruction in meaning;
Reply:
Data direction: TD module → single-chip microcomputer;
Command content: "+r ".
(7) heartbeat reports: the security protection single-chip microcomputer regularly sends heartbeat packet to phone.
Data direction: single-chip microcomputer → TD module;
Command content: " r ";
Wherein " XXXXXXXXXXXXSS " together " AT+YJTPAIR " instruction in meaning;
Reply:
Data direction: TD module → single-chip microcomputer;
Command content: "+r ".
(8) telepilot is set up defences, and uses a teleswitch will send this order when setting up defences.
Data direction: single-chip microcomputer → TD module;
Command content: " r ";
Wherein " XXXXXXXXXXXXSS " together " AT+YJTPAIR " instruction in meaning;
Reply:
Data direction: TD module → single-chip microcomputer;
Command content: "+r ".
(9) telepilot is withdrawn a garrison, and uses a teleswitch will send this order when withdrawing a garrison.
Data direction: single-chip microcomputer → TD module;
Command content: " r ";
Wherein " XXXXXXXXXXXXSS " together " AT+YJTPAIR " instruction in meaning;
Reply:
Data direction: TD module → single-chip microcomputer;
Command content: "+r ".
(10) telepilot SOS, the SOS that uses a teleswitch will send this order when reporting to the police.
Data direction: single-chip microcomputer → TD module;
Command content: " r ";
Wherein " XXXXXXXXXXXXSS " together " AT+YJTPAIR " instruction in meaning;
Reply:
Data direction: TD module → single-chip microcomputer;
Command content: "+r ".
(11) the general frame format that reports.
Data direction: single-chip microcomputer → TD module;
Command content: " AT+YJTREPT=LLLL, XXXXXX ... r ";
" LLLL " expression length wherein, " XXXXXX ... " represent data, " SS " be to the verification of data and;
Reply:
Data direction: TD module → single-chip microcomputer;
Command content: "+r ".
(12) unpaired message of deletion.
Data direction: TD module → single-chip microcomputer;
Command content: "+r ";
" XXXXXXXXXXXX " expression data wherein, " SS " be to the verification of data with;
Answer runs succeeded:
Data direction: single-chip microcomputer → TD module;
Command content: " r ".
(13) read single-chip microcomputer version number, this instruction is to obtain the single-chip microcomputer version number that is stored in the security protection single-chip microcomputer.
Data direction: TD module → single-chip microcomputer;
Command content: "+r ";
Reply:
Data direction: single-chip microcomputer → TD module;
Command content: " r ",
Such as, security protection single-chip microcomputer version number information is: V05.01-20110424 (V05.01-compilation time) reports content to be: " r ".
Single-chip microcomputer and telepilot, door magnetic, infrared, the cigarette sense, the communication modes of security protection class wireless sensers such as combustion gas adopts following ASK modulation system:
Emissive power: 10dbm ± 1dbm;
Receiving sensitivity: greater than-100dbm;
Carrier frequency: 433.92MHz ± 150KHz;
Transmission bit rate: 1200 ± 250bps;
Data mode: scale-of-two asynchronous serial mode;
Data 1 are made up of following 3T high level and 1T low level:
Figure BDA0000128674370000101
Data 0 are made up of following 1T high level and 3T low level:
Wherein, the time of T is 200 ± 40uS
Lead code is made up of following 1T high level and 31T low level:
Figure BDA0000128674370000111
As shown in Figure 4, wireless data links to each other with single-chip microcomputer external interrupt mouth (INT0) behind receiving demodulation.
The Wireless Data Protocol interface adopts simplifying mode frame structure as shown in the table:
Identification code Res?ID cmd Verification with
1 5 2 1
Table 1 simplifying mode frame structure
Wherein, identification code: 1 byte, identification frames structure are integrated pattern or simplifying mode; Res ID: equipment self numbering; CMD: command word, naming rule is as shown in table 2 below; Verification and: verification and=Res ID+cmd.
Figure BDA0000128674370000112
Table 2CMD naming rule such as following table
Single chip computer architecture is as shown in Figure 5, is made up of three subprograms, comprising:
Main control unit is as system call.
The serial port interrupt location is responsible for and the communicating by letter of TD module.
The reception and the parsing of sensor wireless data are responsible in external interrupt mouth unit.
Main control unit adopts the state machine structure, has non-to the sign indicating number state with to sign indicating number state two states.State machine is by 3 key elements, that is: message, function, state.
This main control unit and state machine are as shown in Figure 6: wherein, the generation of message comprises:
The pairing enable messages---be derived from the TD module, produce through the serial port interrupt location.
Message is withdrawed from pairing---and be derived from the TD module, produce through the serial port interrupt location.
Deletion pairing message---be derived from the TD module, produce through the serial port interrupt location.
Read pairing message---be derived from the TD module, produce through the serial port interrupt location.
Receive sensing data message---be derived from sensor wireless and send, produce through external interrupt mouth unit.
The function of function is:
FUN1---to the answer that runs succeeded of TD module: command content: " r ".
FUN2---whether the Res ID in the inspection sensing data, then deposits Res ID among the EEPROM in if do not have to crossing sign indicating number (whether existing at EEPROM).
FUN3---if whether the Res ID in the inspection sensing data have, resolves in sensing data CMD command word to crossing sign indicating number (whether existing at EEPROM) again, sends out related data information to the TD module then.
FUN4---delete the Res ID among the EEPROM.
FUN5---transmit the Res ID among the EEPROM to the TD module.
Wireless data links to each other with single-chip microcomputer external interrupt mouth (INT0) behind receiving demodulation, and INT0 is made as the upper edge and interrupts, and parse data, also needs the cooperation of two timers.Utilize timer 0 to measure the width of INT0 high level; Timer 2 is measured the width (INT0 high level width+INT0 low level width) of whole data bit, and so just can judge received sequence of levels is 0, and perhaps 1; Or lead code, and then obtain whole Frame.
Data 1 are made up of 3T high level as follows and 1T low level:
Figure BDA0000128674370000121
Data 0 are made up of 1T high level as follows and 3T low level:
Figure BDA0000128674370000122
Wherein, the time of T is 200 ± 40uS
Lead code is made up of 1T high level as follows and 3T low level:
Figure BDA0000128674370000131
The reception stage is divided into lead code stage and two stages of data phase, and reception and parsing process flow diagram to wireless data in the concrete externally middle fracture unit are as shown in Figure 7.
Adopted the radio alarming terminal of this invention; It comprises alerting signal acquisition module and the wireless communication module that is connected this alerting signal acquisition module; Described alerting signal acquisition module connects each alarm sensor; Described wireless communication module also connects the external wireless network, and wherein, described alerting signal acquisition module is a single-chip microcomputer.Adopt realization wireless alarm signal of the present invention to transmit the method for control, after single-chip microcomputer receives the alerting signal that alarm sensor sends, can report to the police to alarm center or user through described wireless communication module and external wireless network.Radio alarming of the present invention terminal simple in structure; Effectively promoted in order to realize that wireless alarm signal transmits the reliability of the method for control; And then ensured the product overall performance; And the method for radio alarming of the present invention terminal and realization wireless alarm signal transmission control is with low cost, and range of application is also comparatively extensive.
In this instructions, the present invention is described with reference to its certain embodiments.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, instructions and accompanying drawing are regarded in an illustrative, rather than a restrictive.

Claims (10)

1. radio alarming terminal; Described radio alarming terminal comprises alerting signal acquisition module and the wireless communication module that is connected this alerting signal acquisition module; Described alerting signal acquisition module connects each alarm sensor; Described wireless communication module also connects the external wireless network, it is characterized in that, described alerting signal acquisition module is a single-chip microcomputer.
2. radio alarming according to claim 1 terminal; It is characterized in that; Described single-chip microcomputer comprises alerting signal receiving end and alarm signal output ends; Described alerting signal receiving end is communicated with each alarm sensor through wireless signal, and described alarm signal output ends connects described wireless communication module through the UART serial line interface.
3. radio alarming according to claim 1 terminal; It is characterized in that; Described radio alarming terminal also comprises signal demodulation unit; The alerting signal receiving end of described single-chip microcomputer is the external interrupt mouth of single-chip microcomputer, and the alerting signal of described each alarm sensor connects the external interrupt mouth of described single-chip microcomputer through described signal demodulation unit.
4. according to each described radio alarming terminal in the claim 1 to 3, it is characterized in that described wireless communication module is the 3G wireless communication module, described 3G wireless communication module also has 3G network signal transmitting and receiving end.
5. realize that based on the described radio alarming of claim 1 terminal wireless alarm signal transmits the method for control, is characterized in that described method may further comprise the steps for one kind:
(10) described single-chip microcomputer receives the alerting signal that alarm sensor sends;
(20) described single-chip microcomputer is sent to described wireless communication module with described alerting signal;
(30) described wireless communication module is reported to the police to alarm center or user through the external wireless network.
6. realization wireless alarm signal according to claim 5 transmits the method for control; It is characterized in that; Described single-chip microcomputer comprises alerting signal receiving end and alarm signal output ends, and described alerting signal receiving end is communicated with each alarm sensor through wireless signal, and described alarm signal output ends connects described wireless communication module through the UART serial line interface; Described single-chip microcomputer receives the alerting signal of sending from alarm sensor, is specially:
The alerting signal receiving end of described single-chip microcomputer receives the alerting signal of sending from alarm sensor;
Described single-chip microcomputer is sent to described wireless communication module with described alerting signal, is specially:
The alarm signal output ends of described single-chip microcomputer is sent to described wireless communication module through the UART serial line interface with described alerting signal.
7. realization wireless alarm signal according to claim 5 transmits the method for control; It is characterized in that; Described wireless communication module is the 3G wireless communication module; Described 3G wireless communication module also has 3G network signal transmitting and receiving end, and described wireless communication module is reported to the police to alarm center or user through the external wireless network, is specially:
The 3G network signal transmitting and receiving end of described 3G wireless communication module is reported to the police to alarm center or user through outside 3G network.
8. transmit the method for control according to each described realization wireless alarm signal in the claim 5 to 7; It is characterized in that; Described radio alarming terminal also comprises signal demodulation unit; The alerting signal receiving end of described single-chip microcomputer is the external interrupt mouth of single-chip microcomputer, and the alerting signal of described each alarm sensor connects the external interrupt mouth of described single-chip microcomputer through described signal demodulation unit, and described method is further comprising the steps of before in step (10):
(1) described signal demodulation unit receives from alarm sensor and sends the alerting signal with simplifying mode frame structure;
(2) the ASK sign indicating number alerting signal formed of described signal demodulation unit tool lead code that described alerting signal with simplifying mode frame structure is demodulated into and numeric data code;
(3) described signal demodulation unit is sent to described ASK sign indicating number alerting signal in the external interrupt mouth of described single-chip microcomputer.
9. realization wireless alarm signal according to claim 8 transmits the method for control; It is characterized in that described simplifying mode frame structure comprises in proper order: the CMD command word of the Res ID sign indicating number of the identification code of 1 byte long, 5 byte longs, 2 byte longs and the verification of 1 byte long and.
10. realization wireless alarm signal according to claim 8 transmits the method for control; It is characterized in that; Described single-chip microcomputer stores the stage condition information that receives, and described single-chip microcomputer operation has first timer and second timer, and described step (3) specifically may further comprise the steps:
(3-1) the external interrupt mouth of described single-chip microcomputer receives the upper edge interruption;
(3-2) described single-chip microcomputer is judged the current reception stage according to described reception stage condition information, if preamble-phase then gets into step (3-3), if data phase then gets into step (3-5);
(3-3) described single-chip microcomputer judges whether the time counting of first timer and second timer meets the preamble-phase state, if, then get into step (3-4), if not, then get into step (3-12);
(3-4) described single-chip microcomputer receives lead code, and is data phase with described reception stage condition information setting, and gets into step (3-12);
(3-5) described single-chip microcomputer judges whether the time counting of described second timer is 4 unit durations, if, then get into step (3-6), if not, then get into step (3-7);
(3-6) described single-chip microcomputer is judged the time counting of described first timer, if 1 unit duration then gets into step (3-8), if 3 unit durations then get into step (3-9), and if other unit duration then gets into step (3-7),
(3-7) described single-chip microcomputer is a data phase with described reception stage condition information setting, and gets into step (3-12);
(3-8) described single-chip microcomputer enters the wireless data set of queues with data 0, and receives, and gets into step (3-10) then;
(3-9) described single-chip microcomputer enters the wireless data set of queues with data 1, and receives, and gets into step (3-10) then;
(3-10) described single-chip microcomputer is judged whether described wireless data set of queues receives and is finished, if, then get into step (3-11), if not, then get into step (3-13);
(3-11) described single-chip microcomputer receives the described alerting signal that the simplifying mode frame structure is arranged, and is preamble-phase with described reception stage condition information setting, gets into step (3-12) then;
(3-12) described first timer of described single-chip microcomputer zero clearing and second timer;
(3-13) the described external interrupt mouth of described singlechip interruption.
CN201210001105XA 2012-01-04 2012-01-04 Wireless alarm terminal and method for realizing control on transmission of wireless alarm signals Pending CN102509431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210001105XA CN102509431A (en) 2012-01-04 2012-01-04 Wireless alarm terminal and method for realizing control on transmission of wireless alarm signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210001105XA CN102509431A (en) 2012-01-04 2012-01-04 Wireless alarm terminal and method for realizing control on transmission of wireless alarm signals

Publications (1)

Publication Number Publication Date
CN102509431A true CN102509431A (en) 2012-06-20

Family

ID=46221507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210001105XA Pending CN102509431A (en) 2012-01-04 2012-01-04 Wireless alarm terminal and method for realizing control on transmission of wireless alarm signals

Country Status (1)

Country Link
CN (1) CN102509431A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198596A (en) * 2013-03-22 2013-07-10 成都狼嗅科技有限公司 Intelligent network alarm system and implementation method thereof
CN103914022A (en) * 2012-12-30 2014-07-09 贵州天虹智能地暖科技有限公司 Energy-saving intelligent home control system
CN103945196A (en) * 2014-05-09 2014-07-23 管晨光 Wireless monitoring system
CN105321308A (en) * 2014-07-03 2016-02-10 国家电网公司 Distributed equipment abnormity alarm system
CN106711944A (en) * 2017-01-13 2017-05-24 大连海洋大学 Reactive compensation protection device in power transmission and transformation system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201171226Y (en) * 2008-01-14 2008-12-24 张健 Digital intelligent safety monitoring apparatus
CN101833848A (en) * 2010-03-23 2010-09-15 苏州和吉兴物联科技有限公司 Intelligent door and window wireless sensing monitoring system
CN201681475U (en) * 2009-09-18 2010-12-22 中科力创(北京)科技股份有限公司 Smart monitor and alarm system based on wireless local area network
CN201698559U (en) * 2010-06-12 2011-01-05 重庆大学 Multifunctional life rescuing system
CN101949811A (en) * 2010-09-03 2011-01-19 中国石油化工股份有限公司 Portable toxic gas wireless monitoring device and toxic gas wireless monitoring method
CN202443566U (en) * 2012-01-04 2012-09-19 上海大亚科技有限公司 Wireless alarm terminal device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201171226Y (en) * 2008-01-14 2008-12-24 张健 Digital intelligent safety monitoring apparatus
CN201681475U (en) * 2009-09-18 2010-12-22 中科力创(北京)科技股份有限公司 Smart monitor and alarm system based on wireless local area network
CN101833848A (en) * 2010-03-23 2010-09-15 苏州和吉兴物联科技有限公司 Intelligent door and window wireless sensing monitoring system
CN201698559U (en) * 2010-06-12 2011-01-05 重庆大学 Multifunctional life rescuing system
CN101949811A (en) * 2010-09-03 2011-01-19 中国石油化工股份有限公司 Portable toxic gas wireless monitoring device and toxic gas wireless monitoring method
CN202443566U (en) * 2012-01-04 2012-09-19 上海大亚科技有限公司 Wireless alarm terminal device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914022A (en) * 2012-12-30 2014-07-09 贵州天虹智能地暖科技有限公司 Energy-saving intelligent home control system
CN103198596A (en) * 2013-03-22 2013-07-10 成都狼嗅科技有限公司 Intelligent network alarm system and implementation method thereof
CN103198596B (en) * 2013-03-22 2015-05-13 成都狼嗅科技有限公司 Intelligent network alarm system and implementation method thereof
CN103945196A (en) * 2014-05-09 2014-07-23 管晨光 Wireless monitoring system
CN105321308A (en) * 2014-07-03 2016-02-10 国家电网公司 Distributed equipment abnormity alarm system
CN106711944A (en) * 2017-01-13 2017-05-24 大连海洋大学 Reactive compensation protection device in power transmission and transformation system

Similar Documents

Publication Publication Date Title
US20190149961A1 (en) Methods and arrangements for sensors
US9240823B2 (en) Receiver, apparatus, and methods for wirelessly receiving data from a power infrastructure
CN102509431A (en) Wireless alarm terminal and method for realizing control on transmission of wireless alarm signals
CN204029094U (en) A kind of interactive intelligent based on Zigbee wireless sensor network is lived in peace system
CN102761898B (en) Radiation power detection, system and equipment
CN102254387A (en) Alarm system and watch
Maity et al. A wireless surveillance and safety system for mine workers based on Zigbee
CN104484978A (en) Old people on-chair falling alarming system based on Zigbee
CN202443566U (en) Wireless alarm terminal device
CN202593424U (en) Embedded type automobile networking device
CN204204146U (en) A kind of remote household intelligent monitor system based on GSM
CN202677556U (en) Smoke detector
CN105654652A (en) GSM-based remote intelligent household monitoring system
CN102982659A (en) Alarming method for gas leakage and alarming system for gas leakage
CN107606299A (en) Fuel gas alarm controlled in wireless closes valve system
CN204926390U (en) A alarm system for gardens monitoring based on thing networking
CN202652244U (en) Household security and emergency system
JP5848136B2 (en) Cooperation system
CN207052056U (en) A kind of wireless fire disaster alarm system based on LORA technologies
CN201522770U (en) Network type warning host machine under intelligent platform
JP2016076238A (en) Cooperation system
CN102592409A (en) Security system and expansion method of radio security alarm sensors of security system
CN210348715U (en) Alarm system based on wifi thing networking
CN202939764U (en) Wireless voice smoke alarm system
JP2015014986A (en) Alarm unit and alarm system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120620