智能报警系统及方法Intelligent alarm system and method
技术领域Technical field
本发明涉及报警装置设计领域,更具体地,涉及一种智能报警系统及方法。The present invention relates to the field of alarm device design, and more particularly to an intelligent alarm system and method.
背景技术Background technique
随着社会的发展,家庭安全的范围也越来越广,防盗、防火、防天然气泄漏等都是监控范围,大家白天上班,家里无人看守,一旦着火,发现和处理起来都十分延后,损失很大,失窃也是如此,也只能等时间过了很久以后方可知晓。仓库、施工工地等也存在类似的问题,例如,夜间仓库、施工工地无人时,及时发现火灾、盗窃等危险并及时报警,可以将损失最小化。With the development of society, the scope of family safety is also becoming wider and wider. The anti-theft, fire prevention, and natural gas leakage prevention are all monitored. Everyone goes to work during the day, and the family is unguarded. Once caught on fire, the discovery and treatment are very delayed. The loss is great, and the theft is also the case. It can only be known after waiting for a long time. Similar problems exist in warehouses, construction sites, etc. For example, when nighttime warehouses and construction sites are not available, timely detection of fire, theft and other dangers and timely alarms can minimize losses.
目前,传统的智能报警系统采用有线方式来组建,将通讯线路预先布置到计划的点位,按照与其相应组网规则进行通讯网络组建,这种组建方式存在布线麻烦、部署复杂、可扩展性差、不利于系统网络重建等缺点,且智能报警系统中的蜂鸣器仅有一种报警声音,不能从声音判断报警信息类型,例如,不能从报警声音区分是天然气泄漏还是被盗等。At present, the traditional intelligent alarm system is set up in a wired manner, and the communication lines are pre-arranged to the planned points, and the communication network is formed according to the corresponding networking rules. This type of construction has troubles in wiring, complicated deployment, and poor scalability. It is not conducive to system network reconstruction and other shortcomings, and the buzzer in the intelligent alarm system has only one kind of alarm sound, and the type of alarm information cannot be judged from the sound. For example, it cannot distinguish whether the natural gas is leaked or stolen from the alarm sound.
发明内容Summary of the invention
鉴于上述问题,提出了本发明。本发明的一个目的是提供一种智能报警系统,使得用户根据不同的报警信号,例如,不同的报警声音,来获知发生险情的类型。The present invention has been made in view of the above problems. It is an object of the present invention to provide an intelligent alarm system that allows a user to know the type of danger that occurs based on different alarm signals, such as different alarm sounds.
本发明的另一个目的是提供一种包括多种传感器的智能报警系统,该报警系统能够容易地增加新的传感器。Another object of the present invention is to provide an intelligent alarm system including a plurality of sensors that can easily add new sensors.
本发明的另一个目的是提供一种智能报警系统,该报警系统能够定期自检,以及时发现各个传感器是否正常工作。Another object of the present invention is to provide an intelligent alarm system that is capable of self-testing periodically and to find out if each sensor is functioning properly.
本发明的另一个目的是提供一种智能报警方法,使得用户能够通过终端设备,如手机,及时获得报警信号,并得知险情的类型。
Another object of the present invention is to provide an intelligent alarm method that enables a user to obtain an alarm signal in time through a terminal device, such as a mobile phone, and to know the type of danger.
根据本发明的一个方面,提供一种智能报警系统,包括:传感器模块,包括多类传感器和分别与每一个传感器连接的多个无线数据发射模块,无线数据发射模块将传感器感测的数据信息转换为具有标示符ID的载波信号发射出去;数据处理模块,通过无线方式与无线数据发射模块连接,接收无线数据发射模块发射的具有标示符ID的载波信号,解析出标示符ID和数据信息,当该数据信息为报警信息时,根据不同类型传感器的报警信息发出不同的控制指令给报警模块,其中,所述控制指令包括:传感器的标示符ID;以及单频信号、脉冲信号和扫频信号中的一种或多种;报警模块,通过无线方式与数据处理模块连接,接收数据处理模块的控制指令,根据不同控制指令发出不同报警声音,其中,控制指令是由单频信号形成时,报警模块发出长鸣;控制指令是由脉冲信号形成时,报警模块发出间断音,控制指令是由扫频信号形成时,报警模块发出变频音。According to an aspect of the present invention, an intelligent alarm system includes: a sensor module including a plurality of types of sensors and a plurality of wireless data transmitting modules respectively connected to each of the sensors, and the wireless data transmitting module converts the data information sensed by the sensors Transmitting the carrier signal with the identifier ID; the data processing module is connected to the wireless data transmitting module by wireless, receiving the carrier signal with the identifier ID transmitted by the wireless data transmitting module, and parsing the identifier ID and the data information. When the data information is alarm information, different control commands are sent to the alarm module according to the alarm information of different types of sensors, wherein the control commands include: identifier ID of the sensor; and single frequency signal, pulse signal and frequency sweep signal One or more; the alarm module is connected to the data processing module by wireless, receives the control command of the data processing module, and issues different alarm sounds according to different control commands, wherein the control module is formed by a single frequency signal, the alarm module Make a long beep; the control command is made by When the red signal is formed, the alarm module Intermittent tone control command is formed of a sweep signal, the alarm tone frequency module issues.
根据本发明的另一个方面,提供一种智能报警方法,包括:采用多类传感器感测室内环境;将传感器感测的数据信息通转换为具有标示符ID的载波过无线方式传输给数据处理模块;数据处理模块解析上述载波信号,判断所述载波信号包含的数据信息是否为报警信息;如果所述数据信息不是报警信息,则这一流程结束;如果数据信息是报警信息,数据处理模块根据不同类传感器的标示符ID发出不同的控制指令给报警模块,其中,控制指令包括:传感器的标示符ID;以及单频信号、脉冲信号和扫频信号的一种和多种;报警模块根据不同的控制指令发出不同的报警声音。According to another aspect of the present invention, an intelligent alarm method is provided, including: sensing a room environment by using a plurality of types of sensors; converting a data information sensed by the sensor into a carrier having an identifier ID and transmitting the data to the data processing module The data processing module parses the carrier signal to determine whether the data information included in the carrier signal is alarm information; if the data information is not alarm information, the process ends; if the data information is alarm information, the data processing module is different The identifier ID of the sensor sends different control commands to the alarm module, wherein the control command includes: the identifier ID of the sensor; and one or more of the single frequency signal, the pulse signal and the frequency sweep signal; the alarm module is different according to the The control commands emit different alarm sounds.
本发明所述智能报警系统及方法通过数据处理模块使得报警模块根据不同传感器的报警信息发出不同的报警声,从报警声音即可识别报警信息。另外,本发明所述智能报警系统传感器模块、数据处理模块和报警模块之间无线传输,无需布线、部署简单、可扩展性好。The intelligent alarm system and method of the invention enable the alarm module to issue different alarm sounds according to the alarm information of different sensors through the data processing module, and the alarm information can be identified from the alarm sound. In addition, the intelligent alarm system sensor module, the data processing module and the alarm module of the invention wirelessly transmit without wiring, simple deployment and good scalability.
附图说明DRAWINGS
通过参考以下具体实施方式及权利要求书的内容并且结合附图,本发明的其它目的及结果将更加明白且易于理解。在附图中:Other objects and results of the present invention will become more apparent from the following detailed description and appended claims. In the drawing:
图1是本发明智能报警系统的一个实施例的构成框图;1 is a block diagram showing the structure of an embodiment of the intelligent alarm system of the present invention;
图2是本发明智能报警系统的一个实施例的数据处理模块的构成框图;
2 is a block diagram showing the structure of a data processing module of an embodiment of the intelligent alarm system of the present invention;
图3是本发明智能报警系统一个实施例的示意图;3 is a schematic diagram of an embodiment of the intelligent alarm system of the present invention;
图4是本发明智能报警方法的一个实施例的流程图;4 is a flow chart of an embodiment of the intelligent alarm method of the present invention;
图5是本发明智能报警方法中自检方法的一个实施例的流程图;5 is a flow chart of an embodiment of a self-test method in the smart alarm method of the present invention;
图6是一个实施例中本发明智能报警方法中数据处理模块唤醒方法的流程图;6 is a flowchart of a method for waking up a data processing module in the intelligent alarm method of the present invention in an embodiment;
图7是一个实施例中本发明智能报警方法中测试方法的流程图。Figure 7 is a flow chart of a test method in the intelligent alarm method of the present invention in one embodiment.
在附图中,相同的附图标记指示相似或相应的特征或功能。In the figures, the same reference numerals indicate similar or corresponding features or functions.
具体实施方式detailed description
在下面的描述中,出于说明的目的,为了提供对一个或多个实施例的全面理解,阐述了许多具体细节。然而,很明显,也可以在没有这些具体细节的情况下实现这些实施例。在其它例子中,为了便于描述一个或多个实施例,公知的结构和设备以方框图的形式示出。In the following description, for the purposes of illustration However, it is apparent that these embodiments may be practiced without these specific details. In other instances, well known structures and devices are shown in block diagram form in order to facilitate describing one or more embodiments.
下面将参照附图来对根据本发明的各个实施例进行详细描述。Various embodiments according to the present invention will be described in detail below with reference to the accompanying drawings.
图1是根据一个事实例的本发明智能报警系统的构成框图,如图1所示,在一个实施例中,智能报警系统包括:1 is a block diagram showing the construction of an intelligent alarm system according to the present invention. As shown in FIG. 1, in one embodiment, the intelligent alarm system includes:
传感器模块100,包括多类传感器110和分别与每一个传感器110连接的多个无线数据发射模块120,无线数据发射模块120将传感器110感测的数据信息转换为具有标示符ID的载波信号发射出去。每个传感器的标示符ID优选包括该传感器的类别,即,从标示符即可确定传感器110的类别。The sensor module 100 includes a plurality of types of sensors 110 and a plurality of wireless data transmitting modules 120 respectively connected to each of the sensors 110. The wireless data transmitting module 120 converts the data information sensed by the sensor 110 into a carrier signal having an identifier ID. . The identifier ID of each sensor preferably includes the category of the sensor, i.e., the identifier of the sensor 110 can be determined from the identifier.
数据处理模块200,通过无线方式与无线数据发射模块120连接,接收无线数据发射模块120发射的具有标示符ID的载波信号,解析出标示符ID和数据信息,当该数据信息为报警信息时,根据不同类型传感器的报警信息发出不同的控制指令给报警模块300其中,所述控制指令包括:传感器110的标示符ID,以及单频信号、脉冲信号和扫频信号中的一种或多种。The data processing module 200 is connected to the wireless data transmitting module 120 in a wireless manner, and receives a carrier signal with an identifier ID transmitted by the wireless data transmitting module 120, and parses out the identifier ID and the data information. When the data information is an alarm information, Different control commands are issued to the alarm module 300 according to the alarm information of different types of sensors, wherein the control commands include: an identifier ID of the sensor 110, and one or more of a single frequency signal, a pulse signal, and a frequency sweep signal.
报警模块300,通过无线方式与数据处理模块200连接,接收数据处理模块200的控制指令,根据不同控制指令发出不同报警声音,其中,当数据处理模块200的控制指令由单频信号形成时,报警模块300发出长鸣;所述控制指令由脉冲信号形成时,报警模块300发出间断音,所述控制指令由扫频信号形成时,报警模块300发出变频音。例如,数据处理模块200向报警模
块300发送fr=3.2KHZ的单频信号,使得报警模块300发出长鸣;数据处理模块200向报警模块300发送占空比为0.5的方波信号,使得报警模块300发出“滴、滴、滴、滴…”的间断音,即,发声和停止发声交替出现;数据处理模块200向报警模块300发送1.5-4.5KHZ的扫频,使得报警模块300发出变频音,又如,数据处理模块200解析烟雾传感器111发出的环境异常报警信息,发送由单频信号形成的控制指令给报警模块300,报警模块300发出长鸣。The alarm module 300 is connected to the data processing module 200 in a wireless manner, receives the control command of the data processing module 200, and issues different alarm sounds according to different control commands. When the control command of the data processing module 200 is formed by a single frequency signal, the alarm module The module 300 emits a long beep; when the control command is formed by the pulse signal, the alarm module 300 emits a discontinuous sound, and when the control command is formed by the frequency sweep signal, the alarm module 300 emits a frequency conversion tone. For example, data processing module 200 to alarm mode
The block 300 sends a single frequency signal of fr=3.2KHZ, so that the alarm module 300 emits a long beep; the data processing module 200 sends a square wave signal with a duty ratio of 0.5 to the alarm module 300, so that the alarm module 300 emits "drops, drops, drops". The intermittent sound, that is, the utterance and the stop sound alternately appear; the data processing module 200 sends a sweep of 1.5-4.5 KHZ to the alarm module 300, so that the alarm module 300 emits a frequency conversion sound, and, for example, the data processing module 200 parses The environmental abnormality alarm information sent by the smoke sensor 111 sends a control command formed by the single frequency signal to the alarm module 300, and the alarm module 300 emits a long beep.
各个所述传感器110布置在例如仓库中,报警模块300布置在例如仓库管理员的办公室,使得仓库管理员能够及时发现报警信号。Each of the sensors 110 is disposed, for example, in a warehouse, and the alarm module 300 is disposed in, for example, a warehouse manager's office, enabling the warehouse manager to detect an alarm signal in time.
每个传感器110具有无线发射装置120,在每个传感器110发出的无线信号包含对自身进行标示的标示符ID。中央处理单元230接收到各个传感器110发送的信号后,解析出标示符ID,从而中央处理单元230“知道”是哪个传感器110检测到了异常情况。例如,当中央处理单元230接收并解析出了烟雾传感器111发出的异常信号,中央处理单元230“知道”被监控地点出现了烟雾异常。接着,中央处理单元230指令报警模块300发出烟雾报警。用户看到烟雾报警后,会拨打火警电话119。在另一个例子中,中央处理单元230接收并解析出了防入侵传感器113发出的异常信号,中央处理单元230“知道”被监控地点可能被非法入侵。由此,中央处理单元230指令报警模块300发非法入侵报警。用户看到非法入侵报警后,会拨打匪警电话110。用户根据不同的报警类型,立即获知被监控处可能出现的险情的种类,并采取对应的措施,使损失最小化。Each sensor 110 has a wireless transmitting device 120, and the wireless signal emitted at each sensor 110 contains an identifier ID that identifies itself. After receiving the signal transmitted by each sensor 110, the central processing unit 230 parses the identifier ID, so that the central processing unit 230 "knows" which sensor 110 detected the abnormal condition. For example, when the central processing unit 230 receives and parses out the anomaly signal from the smoke sensor 111, the central processing unit 230 "knows" that a smoke anomaly has occurred at the monitored location. Next, the central processing unit 230 instructs the alarm module 300 to issue a smoke alarm. When the user sees the smoke alarm, they will dial the fire alarm 119. In another example, central processing unit 230 receives and parses out the anomaly signal from anti-intrusion sensor 113, and central processing unit 230 "knows" that the monitored location may be illegally compromised. Thus, the central processing unit 230 instructs the alarm module 300 to issue an illegal intrusion alarm. When the user sees an illegal intrusion alarm, the user dials the police call 110. According to different alarm types, the user immediately knows the types of dangers that may occur in the monitored area, and takes corresponding measures to minimize the losses.
上述智能报警系统的数据处理模块200根据不同传感器110的报警信息发送不同的控制指令给报警模块300,报警模块300能够根据数据处理模块200发送的不同控制指令发出不同的报警声,从报警声即可识别报警信息。另外,本发明所述智能报警系统传感器模块100、数据处理模块200和报警模块300之间无线传输,无需布线、部署简单。The data processing module 200 of the above intelligent alarm system sends different control commands to the alarm module 300 according to the alarm information of the different sensors 110. The alarm module 300 can issue different alarm sounds according to different control commands sent by the data processing module 200, and the alarm sound is Alarm information can be identified. In addition, the smart alarm system sensor module 100, the data processing module 200, and the alarm module 300 are wirelessly transmitted between the present invention, requiring no wiring and simple deployment.
其中,传感器模块100、数据处理模块200、报警模块300的无线连接方式为UWB、Wi-Fi、蓝牙和zigBee中的一种或多种。The wireless connection manner of the sensor module 100, the data processing module 200, and the alarm module 300 is one or more of UWB, Wi-Fi, Bluetooth, and zigBee.
优选地,报警模块300发出的报警声音根据传感器模块100发出的不同报警信息发出不同音量。
Preferably, the alarm sound emitted by the alarm module 300 emits different volume according to different alarm information sent by the sensor module 100.
优选地,报警模块300除了蜂鸣器310外还包括数据可视化模块320、音频播放模块330和指示灯340中的一个或多个,对传感器模块100感测的报警信息进行可视化处理或者音频播放,例如,数据可视化模块320可以为触摸屏、电脑、手机、电视等,音频播放模块330可以为扬声器、音响系统。Preferably, the alarm module 300 includes one or more of the data visualization module 320, the audio playback module 330, and the indicator light 340 in addition to the buzzer 310, and performs visual processing or audio playback on the alarm information sensed by the sensor module 100. For example, the data visualization module 320 can be a touch screen, a computer, a mobile phone, a television, etc., and the audio playback module 330 can be a speaker or an audio system.
优选地,根据本发明,在已经设置了若干传感器的情况下,还可以增加传感器,该增加的传感器具有不同于已有传感器的标示符ID,数据处理模块200接收到该传感器的信号后,能够根据信号中的ID获知该传感器的类型,从而指示报警模块300发相应类型的报警。由此可见,本发明可以在现有的报警系统中容易地增加新的传感器,可扩展性好。Preferably, according to the present invention, in the case where several sensors have been provided, it is also possible to add a sensor having an identifier ID different from the existing sensor, and after receiving the signal of the sensor, the data processing module 200 can The type of the sensor is known based on the ID in the signal, thereby instructing the alarm module 300 to issue a corresponding type of alarm. It can be seen that the present invention can easily add a new sensor in the existing alarm system, and has good scalability.
优选地,数据处理模块200发出的控制指令还包括报警信息类型标示符,用来区分同类传感器不同故障状态的报警信息,其中,报警信息类型包括:通讯故障、器件故障和环境异常报警。Preferably, the control instruction issued by the data processing module 200 further includes an alarm information type identifier for distinguishing alarm information of different fault states of the same type of sensors, wherein the alarm information types include: communication failure, device failure, and environmental abnormality alarm.
另外,优选地,数据处理模块200发出的控制指令还包括传感器110的位置信息,例如,传感器110的地理坐标。当各个传感器110布置在不同的位置,例如,布置在一个大型仓库的不同的储藏间时,当其中某一个传感器110检测到异常并发出报警信号时,报警模块300发出报警声音的同时通过视频显示该传感器110的位置信息,使得仓库报关员立刻知道哪件储藏室发生了险情。In addition, preferably, the control instruction issued by the data processing module 200 further includes location information of the sensor 110, for example, geographic coordinates of the sensor 110. When the respective sensors 110 are arranged at different positions, for example, in different storage rooms of a large warehouse, when one of the sensors 110 detects an abnormality and issues an alarm signal, the alarm module 300 emits an alarm sound while displaying by video. The location information of the sensor 110 allows the warehouse customs broker to immediately know which storage room is in danger.
图2是本发明智能报警系统的数据处理模块200的构成框图,如图2所示,所述数据处理模块200包括:2 is a block diagram showing the structure of the data processing module 200 of the intelligent alarm system of the present invention. As shown in FIG. 2, the data processing module 200 includes:
收发单元210,接收无线数据发射模块120的载波信号,并将中央处理单元230的控制指令发送给报警模块300;The transceiver unit 210 receives the carrier signal of the wireless data transmitting module 120, and sends the control command of the central processing unit 230 to the alarm module 300;
无线数据解析模块220,将收发单元210接收的载波信号解析成中央处理单元230端口要求的数据类型,传输给中央处理单元230;The wireless data analysis module 220, the carrier signal received by the transceiver unit 210 is parsed into the data type required by the port of the central processing unit 230, and transmitted to the central processing unit 230;
中央处理单元230,接收无线数据解析模块220解析的数据信息,当该数据信息是报警信息时,生成与传感器类型对应的控制指令,指示收发单元210发送给报警模块300,其中,中央处理单元230可以是单片机、ARM、DSP或MCU。The central processing unit 230 receives the data information analyzed by the wireless data analysis module 220, and when the data information is the alarm information, generates a control instruction corresponding to the sensor type, and instructs the transceiver unit 210 to send to the alarm module 300, wherein the central processing unit 230 It can be a microcontroller, ARM, DSP or MCU.
本发明的智能报警系统还可以包括自检功能,以检查各个传感器是否在正常运行。在一个实施例中,参见图2,数据处理模块200还包括如下组件:
The intelligent alarm system of the present invention may also include a self-test function to check if each sensor is operating normally. In one embodiment, referring to FIG. 2, the data processing module 200 further includes the following components:
自检控制模块240,向传感器模块100发出询问,请求通讯,依次对各传感器110进行循环检测,即,按照设定的自检周期向各传感器110循环发送通讯信号,以检查传感器110及传感器110与中央处理单元230之间建立的通讯是否正常,当收发单元210,接收到与传感器110连接的无线数据发射模块120的确认信号时,说明通讯正常,当未接收到与传感器110连接的无线数据发射模块120的确认信号,说明通讯不正常,中央处理模块230发出控制指令,报警模块300发出相应的报警声音,并通过数据可视化模块320显示该故障传感器的ID。The self-test control module 240 sends an inquiry to the sensor module 100, requests communication, and sequentially performs cyclic detection on each sensor 110, that is, cyclically transmits a communication signal to each sensor 110 according to the set self-test period to check the sensor 110 and the sensor 110. Whether the communication established with the central processing unit 230 is normal, when the transceiver unit 210 receives the acknowledgment signal of the wireless data transmitting module 120 connected to the sensor 110, the communication is normal, and the wireless data connected to the sensor 110 is not received. The confirmation signal of the transmitting module 120 indicates that the communication is abnormal, the central processing module 230 issues a control command, the alarm module 300 issues a corresponding alarm sound, and displays the ID of the fault sensor through the data visualization module 320.
自检信号数据解析模块250,分别与自检控制模块240和传感器模块100连接,将自检控制单元240发出的询问信号解析成传感器模块100规定的信号类型的自检信号,使得传感器模块110中的传感器进行自检,例如,对传感器110感测的数据进行连续采样,对传感器的噪声、零点漂移和精确度进行检测。。The self-test signal data analysis module 250 is connected to the self-test control module 240 and the sensor module 100, and parses the inquiry signal sent by the self-test control unit 240 into a self-test signal of a signal type specified by the sensor module 100, so that the sensor module 110 The sensor performs a self-test, for example, continuously sampling the data sensed by the sensor 110 to detect the noise, zero drift, and accuracy of the sensor. .
在另一个实施例中,数据处理模块200还包括,工作唤醒服务模块260,使得数据处理模块200在休眠状态与工作状态之间切换,在休眠状态下,非主要功能模块(例如,收发单元210)停止工作,只保留主要功能模块的工作,降低数据处理模块200的能耗,从而节约能源。In another embodiment, the data processing module 200 further includes a work wake-up service module 260 that causes the data processing module 200 to switch between a sleep state and an active state. In the sleep state, the non-primary function module (eg, the transceiver unit 210) The work is stopped, only the work of the main function module is retained, and the energy consumption of the data processing module 200 is reduced, thereby saving energy.
在另一个实施例中,数据处理模块200还包括:电源管理模块270,用于定期地检测数据处理模块200的电源电压,当检查到的电源电压低于预定值时,通过报警模块300进行提示。In another embodiment, the data processing module 200 further includes: a power management module 270, configured to periodically detect a power voltage of the data processing module 200, and prompt the alarm module 300 when the detected power voltage is lower than a predetermined value. .
在另一个实施例中,数据处理模块200还包括,测试控制模块280,包括与中央处理单元230输入端口电连接的物理按键,通过按压物理按键使得中央处理单元230输出端口根据按压方式生成不同的控制指令,通过收发单元210发送给报警模块300,报警模块300发出对应的报警声音,另外,优选地,在报警模块300发出报警声音的过程中,采用声压测量仪检测报警的声压。In another embodiment, the data processing module 200 further includes a test control module 280, including a physical button electrically connected to the input port of the central processing unit 230, and the central processing unit 230 output port is generated according to the pressing manner by pressing the physical button. The control command is sent to the alarm module 300 through the transceiver unit 210, and the alarm module 300 issues a corresponding alarm sound. In addition, preferably, during the alarm sound generated by the alarm module 300, the sound pressure of the alarm is detected by the sound pressure measuring instrument.
在另一个实施例中,数据处理模块200还包括,升压模块290,将中央处理单元230传输给报警信号的电压信号进行放大,从而控制报警模块300的报警音量,例如,长鸣及间断音时:在消音室3米距离频率为3.2KHz的报警声压≥85dB;变频音时:在消音室3米距离频率的最大报警声压≥85dB;用于电源管理的提示音时:在自由场1米距离频率为3.2KHz的最大报警声压允
许≥70dB。In another embodiment, the data processing module 200 further includes a boosting module 290 that amplifies the voltage signal transmitted by the central processing unit 230 to the alarm signal to control the alarm volume of the alarm module 300, for example, long and intermittent sounds. Time: The alarm sound pressure of 3.2KHz in the silencer room is ≥85dB at a frequency of 3.2KHz; the maximum alarm sound pressure of the frequency of 3m in the muffler room is ≥85dB; when the sound is used for power management: in the free field Maximum alarm sound pressure of 1 meter distance and 3.2KHz
Allow ≥70dB.
优选地,报警模块300的报警声音还包括大小声的变化,通过声压模块290改变报警声音的大小,其中,所述大小声可以为逐渐升高、逐渐降低或者间隔升高、间隔降低中的一种或多种形式。Preferably, the alarm sound of the alarm module 300 further includes a change of the size sound, and the size of the alarm sound is changed by the sound pressure module 290, wherein the sound of the size may be gradually increased, gradually decreased, or increased in interval, and the interval is lowered. One or more forms.
图3是本发明智能报警系统一个实施例的示意图,如图3所示,智能报警系统中,传感器模块100包括烟雾传感器111、气体传感器112、防入侵传感器113、温度传感器114、门磁传感器115多类传感器,每个传感器都有与之装配在一起的无线数据发射模块120;中央处理单元230为MCU;无线数据发射模块120和收发单元210为Zigbee模块;报警模块300为蜂鸣器,无线数据发射模块120通过无线方式将各个传感器110感测的数据发射出去,收发单元210接收该数据,无线数据解析单元220将该数据解析成中央处理单元220端口规定的类型,传输到中央处理单元230,中央处理单元230(MCU)根据接收到的数据信息发出控制指令,控制报警模块300发出不同的报警声音。3 is a schematic diagram of an embodiment of the intelligent alarm system of the present invention. As shown in FIG. 3, in the intelligent alarm system, the sensor module 100 includes a smoke sensor 111, a gas sensor 112, an intrusion sensor 113, a temperature sensor 114, and a door sensor 115. A plurality of types of sensors, each of which has a wireless data transmitting module 120 assembled therewith; the central processing unit 230 is an MCU; the wireless data transmitting module 120 and the transceiver unit 210 are Zigbee modules; and the alarm module 300 is a buzzer, wireless The data transmitting module 120 wirelessly transmits the data sensed by the respective sensors 110, and the transceiver unit 210 receives the data, and the wireless data parsing unit 220 parses the data into a type specified by the port of the central processing unit 220, and transmits the data to the central processing unit 230. The central processing unit 230 (MCU) issues a control command according to the received data information, and the control alarm module 300 issues different alarm sounds.
如图3所示,该智能报警系统还优选通过无线方式与云服务模块400连接,将报警信息通过4G或WiFi局域网和APP应用通知到移动终端500,例如,云服务模块通过无线路由协调模块410与数据处理模块200无线网络连接,当采用Zigbee协议进行数据传输时,需添加无线通讯解析模块,对数据处理模块200发出的通讯数据解析,将解析后的数据通过无线路由协调模块传输410到云服务模块。所述移动终端500例如可以是手机。这样,用户只要随身携带手机,就可以及时得知家里或仓库、工厂等地的险情。As shown in FIG. 3, the smart alarm system is also preferably connected to the cloud service module 400 in a wireless manner, and the alarm information is notified to the mobile terminal 500 through the 4G or WiFi local area network and the APP application. For example, the cloud service module passes the wireless route coordination module 410. The data processing module 200 is connected to the wireless network. When the Zigbee protocol is used for data transmission, a wireless communication analysis module needs to be added, the communication data sent by the data processing module 200 is parsed, and the parsed data is transmitted 410 to the cloud through the wireless route coordination module. Service module. The mobile terminal 500 can be, for example, a mobile phone. In this way, users can know the dangers in their homes, warehouses, factories and other places as long as they carry their mobile phones with them.
图3示出了烟雾传感器111、气体传感器112、防入侵传感器113、温度传感器114和门磁传感器115五种传感器,但是本发明并不限于此,可以根据实际需要安装任意传感器。3 shows five sensors of the smoke sensor 111, the gas sensor 112, the intrusion prevention sensor 113, the temperature sensor 114, and the door magnetic sensor 115, but the present invention is not limited thereto, and any sensor can be installed according to actual needs.
图4是本发明智能报警方法的流程图,如图4所示,所述智能报警方法包括:4 is a flow chart of the intelligent alarm method of the present invention. As shown in FIG. 4, the intelligent alarm method includes:
在步骤S410中,采用多类传感器110感测室内环境;In step S410, the indoor environment is sensed by using a plurality of types of sensors 110;
在步骤S420中,将传感器110感测的数据信息转换为具有标示符ID的载波通过无线方式传输给数据处理模块200,例如,将传感器110感测的数据信息通过UWB、Wi-Fi、蓝牙和zigBee中的一种或多种无线方式传输给数据
处理模块200。In step S420, the data information sensed by the sensor 110 is converted into a carrier having the identifier ID and transmitted to the data processing module 200 by wireless, for example, the data information sensed by the sensor 110 is passed through UWB, Wi-Fi, Bluetooth, and One or more wireless methods in zigBee are transmitted to data
Processing module 200.
在步骤S430中,解析上述载波信号,判断所述载波信号包含的数据信息是否为报警信息;In step S430, the carrier signal is parsed to determine whether the data information included in the carrier signal is alarm information;
如果所述数据信息不是报警信息,则这一流程结束。If the data information is not an alarm message, the process ends.
如果所述数据信息是报警信息,在步骤S430b中,数据处理模块200根据不同传感器110的标示符ID发出不同的控制指令给报警模块300,其中,所述控制指令包括:传感器110的标示符ID;以及单频信号、脉冲信号和扫频信号的一种和多种;If the data information is alarm information, in step S430b, the data processing module 200 issues different control commands to the alarm module 300 according to the identifier ID of the different sensor 110, wherein the control command includes: the identifier ID of the sensor 110 And one or more of a single frequency signal, a pulse signal, and a frequency sweep signal;
在步骤S431b中,报警模块300根据不同的控制指令发出不同的报警声音,例如,数据处理模块300解析烟雾传感器111发出报警信息,发送由单频信号和烟雾传感器111的标示符ID形成的控制指令给报警模块,报警模块发出长鸣,又如,数据处理模块300解析防入侵传感器113发出的报警信息,发送由变频信号和防入侵传感器113标示符ID形成的控制指令给报警模块,报警模块300发出变频音,通过报警声音能够判断险情。In step S431b, the alarm module 300 issues different alarm sounds according to different control commands. For example, the data processing module 300 parses the smoke sensor 111 to send an alarm message, and transmits a control command formed by the single frequency signal and the identifier ID of the smoke sensor 111. To the alarm module, the alarm module emits a long beep. For example, the data processing module 300 parses the alarm information sent by the anti-intrusion sensor 113, and sends a control command formed by the variable frequency signal and the intrusion sensor 113 identifier ID to the alarm module, and the alarm module 300 The frequency conversion sound is emitted, and the danger can be judged by the alarm sound.
上述智能报警方法的通过数据处理模块200根据不同传感器110的报警信息发送不同的控制指令给报警模块300,使得报警模块300发出不同的报警声,从报警声即可识别报警信息,从而获知具体发生的险情。The data processing module 200 sends different control commands to the alarm module 300 according to the alarm information of the different sensors 110, so that the alarm module 300 emits different alarm sounds, and the alarm information can be recognized from the alarm sound, thereby knowing the specific occurrence. Dangerous.
优选地,所述的智能报警方法,还包括:通过无线方式与云服务模块连400接;云服务模块400将报警信息通过4G或WiFi局域网和APP应用通知到移动终端500,例如,烟雾传感器111发出的警信号,通过云服务模块400发送到客户的手机上,用户看到烟雾报警后,会拨打火警电话119,又如,防入侵传感器113发出报警信号,通过云服务模块400发送到客户的手机上,用户看到非法入侵报警后,会拨打匪警电话110,用户根据不同的报警类型,立即获知被监控处可能出现的险情的种类,并采取对应的措施,使损失最小化。Preferably, the smart alarm method further includes: wirelessly connecting to the cloud service module 400; the cloud service module 400 notifying the alarm information to the mobile terminal 500 through the 4G or WiFi local area network and the APP application, for example, the smoke sensor 111 The sent alarm signal is sent to the customer's mobile phone through the cloud service module 400. After the user sees the smoke alarm, the user will dial the fire alarm phone 119. For example, the anti-intrusion sensor 113 sends an alarm signal to the customer through the cloud service module 400. On the mobile phone, after the user sees the illegal intrusion alarm, the user will dial the police phone 110. The user immediately knows the types of dangers that may occur in the monitored area according to different alarm types, and takes corresponding measures to minimize the loss.
在另一实施例中,在增加新的传感器时,该增加的传感器具有自己的标示符ID;数据处理模块判断是否接到新的标示符ID;若是接到新的标示符ID,解析该标示符ID,当包含报警信息时,使得报警模块发出与传感器类型相对应的报警音。In another embodiment, when adding a new sensor, the added sensor has its own identifier ID; the data processing module determines whether a new identifier ID is received; if a new identifier ID is received, the identifier is parsed The ID, when the alarm message is included, causes the alarm module to emit an alarm tone corresponding to the sensor type.
图5是本发明智能报警方法中自检方法的流程图,如图5所示,所述自
检方法包括:5 is a flow chart of a self-test method in the smart alarm method of the present invention, as shown in FIG. 5, the self
Inspection methods include:
首先,在步骤S510中,中央处理单元230按自检周期向各路传感器110发出通信信号,其中自检周期为设定值,例如,24小时;First, in step S510, the central processing unit 230 sends a communication signal to each of the sensors 110 according to the self-test period, wherein the self-test period is a set value, for example, 24 hours;
中央处理单元230向各路传感器110发出通讯信号后,在步骤S520中,判断各路传感器与中央处理单元230之间的通讯状态是否正常,其中,当收发单元210,接收到与传感器110连接的无线数据发射模块120的确认信号时,说明通讯正常,当未接收到与传感器110连接的无线数据发射模块120的确认信号,说明通讯不正常;After the central processing unit 230 sends a communication signal to each of the sensors 110, it is determined in step S520 whether the communication state between the respective sensors and the central processing unit 230 is normal. When the transceiver unit 210 receives the connection with the sensor 110, When the acknowledgment signal of the wireless data transmitting module 120 indicates that the communication is normal, when the acknowledgment signal of the wireless data transmitting module 120 connected to the sensor 110 is not received, the communication is abnormal;
若通讯状态正常,在步骤S530中,中央处理单元230在所述自检周期内向各路传感器110发出自检信号,使得各路传感器进行自检,优选地,在一个自检周期内,间隔3秒向各路传感器发出自检信号;If the communication status is normal, in step S530, the central processing unit 230 sends a self-test signal to each of the sensors 110 during the self-test period, so that each sensor performs a self-test, preferably, within a self-test period, interval 3 Seconds sends a self-test signal to each sensor;
在步骤S531中,判断各传感器自检输出的数据信息是否在规定范围内;,其中,规定范围为传感器出厂时规定的测量范围;In step S531, it is determined whether the data information output by each sensor self-test is within a predetermined range; wherein, the predetermined range is a measurement range specified by the sensor at the time of shipment;
若是在规定范围内,这一工作流程结束;If it is within the specified range, the workflow ends;
若是不在规定范围内,在步骤S531b中,该传感器存在故障,发送报警信息给中央处理单元230,中央处理单元230生成与传感器类型对应的控制指令,通过收发单元210发送给报警模块300,报警模块300发出相应的报警声音并显示发生故障的传感器的ID;If it is not within the specified range, in step S531b, the sensor has a fault, and sends an alarm message to the central processing unit 230. The central processing unit 230 generates a control command corresponding to the sensor type, and sends it to the alarm module 300 through the transceiver unit 210, and the alarm module 300 sends a corresponding alarm sound and displays the ID of the failed sensor;
若通讯状态不正常,在步骤S540中,发送报警信息给中央处理单元230,中央处理单元230生成与传感器类型对应的控制指令,通过收发单元210发送给报警模块,报警模块发出相应的报警声音。If the communication status is abnormal, in step S540, the alarm information is sent to the central processing unit 230, and the central processing unit 230 generates a control command corresponding to the sensor type, and sends it to the alarm module through the transceiver unit 210, and the alarm module issues a corresponding alarm sound.
优选地,除了报警声音提示自检结果外,还可以通过指示灯340、数据可视化模块320或者音频播放模块330对自检结果进行提示,自检结果如表1所示。
Preferably, in addition to the alarm sound prompting the self-test result, the self-test result may be prompted by the indicator light 340, the data visualization module 320 or the audio play module 330, and the self-test result is shown in Table 1.
表1Table 1
表1为自检结果的一个例子,但是本发明并不限于此,报警模块300的指示灯、报警声音、可视化、音频播放内容可以场景适时设置。Table 1 is an example of the self-test result, but the present invention is not limited thereto, and the indicator light, the alarm sound, the visualization, and the audio play content of the alarm module 300 can be set in a timely manner.
图6是本发明智能报警方法中数据处理模块的唤醒方法的流程图,如图6所示,所述中央处理单元230唤醒方法包括:FIG. 6 is a flowchart of a method for waking up a data processing module in the smart alarm method of the present invention. As shown in FIG. 6, the method for waking up the central processing unit 230 includes:
在步骤S610中,数据处理模块200通过收发单元210按固定周期向各路传感器发出通信信号,所述固定周期优选地为5秒;In step S610, the data processing module 200 sends a communication signal to each of the sensors through the transceiver unit 210 at a fixed period, the fixed period is preferably 5 seconds;
在步骤S620中,判断各路传感器之间以及各路传感器与数据处理模块200之间的通讯状态是否正常,当数据处理模块200的收发单元210,接收到与传感器110连接的无线数据发射模块120的确认信号时,说明通讯正常,当未接收到与传感器110连接的无线数据发射模块120的确认信号,说明通讯不正常;In step S620, it is determined whether the communication status between the respective sensors and between the respective sensors and the data processing module 200 is normal. When the transceiver unit 210 of the data processing module 200 receives the wireless data transmitting module 120 connected to the sensor 110. When the acknowledgment signal indicates that the communication is normal, when the acknowledgment signal of the wireless data transmitting module 120 connected to the sensor 110 is not received, the communication is not normal;
若通讯状态正常,在步骤S620a中,执行待机模式,即,各路传感器110处于工作状态,数据处理模块200处于休眠状态;If the communication state is normal, in step S620a, the standby mode is executed, that is, each sensor 110 is in an active state, and the data processing module 200 is in a sleep state;
若是通讯状态不正常,在步骤S620b中,唤醒数据处理模块200,使得数据处理模块200处于工作状态,发送控制指令给报警模块300,报警模块300发出相应的报警声音。If the communication status is abnormal, in step S620b, the data processing module 200 is awakened, so that the data processing module 200 is in an active state, and a control command is sent to the alarm module 300, and the alarm module 300 issues a corresponding alarm sound.
优选地,数据处理模块200处于休眠状态或者工作状态还可以通过指示灯340、数据可视化模块320或者音频播放模块330进行提示,如表2所示。
Preferably, the data processing module 200 is in a sleep state or the working state may also be prompted by the indicator light 340, the data visualization module 320 or the audio playback module 330, as shown in Table 2.
表2Table 2
表2示出了唤醒方法的一个例子,但是本发明并不限于此,报警模块300的指示灯、报警声音、可视化、音频播放内容可以场景适时设置。Table 2 shows an example of the wake-up method, but the present invention is not limited thereto, and the indicator light, alarm sound, visualization, and audio playback content of the alarm module 300 can be set in a timely manner.
图7是本发明智能报警方法中测试方法的流程图,用于功能的快速检测和教学演示,如图7所示,所述测试方法包括:7 is a flow chart of a test method in the intelligent alarm method of the present invention, which is used for rapid detection and teaching demonstration of functions, as shown in FIG. 7, the test method includes:
首先,在步骤S710中,通过按压并松开与中央处理单元230输入端口电连接的物理按键,使得该输入端口产生脉冲信号,具体地,按压与中央处理单元230输入端口电连接的物理按键,使得物理按键导通,连接到中央处理单元230,松开物理按键,不与中央处理单元230连接,所述输入端口产生脉冲信号;First, in step S710, by pressing and releasing the physical button electrically connected to the input port of the central processing unit 230, the input port generates a pulse signal, specifically, a physical button electrically connected to the input port of the central processing unit 230, The physical button is turned on, connected to the central processing unit 230, the physical button is released, and is not connected to the central processing unit 230, and the input port generates a pulse signal;
然后,分析上述脉冲信号中脉冲个数n、每一个脉冲中物理按键导通时间以及相邻脉冲的时间间隔,即,在步骤S720中,判断脉冲个数是否小于1;Then, the pulse number n in the pulse signal, the physical button on time in each pulse, and the time interval of the adjacent pulse are analyzed, that is, in step S720, it is determined whether the number of pulses is less than 1;
如果脉冲个数小于1,在步骤S720b中,检查物理按键及其与中央处理单元的连接线路;If the number of pulses is less than 1, in step S720b, the physical button and its connection line with the central processing unit are checked;
如果脉冲个数不小于1,在步骤S730中,判断每一个脉冲中物理按键导通时间不大于1s;If the number of pulses is not less than 1, in step S730, it is determined that the physical button on time in each pulse is not more than 1 s;
若是每一个脉冲中物理按键导通时间不大于1s,在步骤S740中,判断相邻脉冲之间的时间间隔不大于0.3s;If the physical button on time is not greater than 1 s in each pulse, in step S740, it is determined that the time interval between adjacent pulses is not greater than 0.3 s;
如果相邻脉冲的时间间隔不大于0.3s,在步骤S740a中,则判断物理按键的按压方式为连续短按物理按键n次,其中,n为脉冲个数,即,如果脉冲个数不小于1,每一个脉冲中物理按键导通时间不大于1s且相邻脉冲的时间间隔不大于0.3s,则判断物理按键的按压方式为n次,例如,脉冲个数为2个,
每一个脉冲中物理按键的导通时间不大于1s,相邻脉冲之间的时间间隔不大于0.3s,则此时物理按键的按压方式为连续短按2次;If the time interval of the adjacent pulses is not more than 0.3 s, in step S740a, it is determined that the pressing manner of the physical button is to continuously press the physical button n times, wherein n is the number of pulses, that is, if the number of pulses is not less than 1 The physical button on-time of each pulse is not more than 1 s and the interval of adjacent pulses is not more than 0.3 s, then the physical button is judged to be n times, for example, the number of pulses is two.
The on-time of the physical button in each pulse is not more than 1 s, and the time interval between adjacent pulses is not more than 0.3 s, then the pressing mode of the physical button is continuous short press 2 times;
如果相邻脉冲的时间间隔大于0.3s,在步骤S740b中,则判断物理按键的按压方式为短按n次,即,如果脉冲个数不小于1,每一个脉冲中物理按键导通时间不大于1s且相邻脉冲之间的时间间隔大于0.3s,则判断物理按键的按压方式为短按n次,例如,物理按键导通时为高电平,脉冲个数为1且该脉冲中高电平持续时间不大于1s,则此时物理按键的按压方式为短按1次,又如,脉冲个数为2个,每一个脉冲中物理按键的导通时间不大于1s,相邻脉冲之间的时间间隔大于0.3s,则此时物理按键的按压方式为短按2次;If the time interval of the adjacent pulses is greater than 0.3 s, in step S740b, it is determined that the pressing manner of the physical button is short-pressed n times, that is, if the number of pulses is not less than 1, the physical button conduction time in each pulse is not greater than 1s and the time interval between adjacent pulses is greater than 0.3s, it is judged that the physical button is pressed for n times, for example, when the physical button is turned on, the pulse is 1 and the pulse is high. The duration is not more than 1 s, then the pressing mode of the physical button is short press 1 time, and the number of pulses is 2, the conduction time of the physical button in each pulse is not more than 1 s, between adjacent pulses When the time interval is greater than 0.3s, the physical button pressing mode is short press 2 times;
若是每一个脉冲中物理按键导通时间大于1s,在步骤S750中,判断相邻脉冲之间的时间间隔不大于0.3s;If the physical button on time is greater than 1 s in each pulse, in step S750, it is determined that the time interval between adjacent pulses is not greater than 0.3 s;
如果相邻脉冲的时间间隔不大于0.3s,在步骤S750a中,则判断物理按键的按压方式为连续长按物理按键n次,如果脉冲个数不小于1,每一个脉冲中物理按键导通时间大于1s且相邻脉冲的时间间隔不大于0.3s,则判断物理按键的按压方式为连续长按物理按键n次,例如,脉冲个数为2个,每一个脉冲中物理按键的导通时间大于1s,相邻脉冲之间的时间间隔不大于0.3s,则此时物理按键的按压方式为连续长按2次;If the time interval of the adjacent pulses is not more than 0.3 s, in step S750a, it is determined that the pressing manner of the physical button is continuous pressing the physical button n times, and if the number of pulses is not less than 1, the physical button conducting time in each pulse If the time interval is greater than 1 s and the interval between adjacent pulses is not more than 0.3 s, it is judged that the pressing mode of the physical button is continuous pressing the physical button n times, for example, the number of pulses is two, and the on-time of the physical button in each pulse is greater than 1s, the time interval between adjacent pulses is not more than 0.3s, then the physical button pressing mode is continuous and long press 2 times;
如果相邻脉冲的时间间隔大于0.3s,在步骤S750b中,则判断物理按键的按压方式为长按n次,即如果脉冲个数不小于1,每一个脉冲中物理按键导通时间大于1s且相邻脉冲之间的时间间隔大于0.3s,在步骤S720c中,则判断物理按键的按压方式为长按n次,例如,物理按键导通时为高电平,脉冲个数为1且该脉冲中高电平持续时间为2s,则此时物理按键的按压方式为长按1次,又如,脉冲个数为2个,每一个脉冲中物理按键的导通时间在2s至3s,相邻脉冲之间的时间间隔大于0.3s,则此时物理按键的按压方式为长按2次;If the time interval of the adjacent pulses is greater than 0.3 s, in step S750b, it is determined that the physical button is pressed for n times, that is, if the number of pulses is not less than 1, the physical button conduction time in each pulse is greater than 1 s and The time interval between adjacent pulses is greater than 0.3 s. In step S720c, it is determined that the physical button is pressed for n times, for example, when the physical button is turned on, the pulse is 1 and the pulse is The medium high level duration is 2s, then the physical button is pressed for 1 time, and the pulse number is 2, and the physical button is turned on for 2s to 3s in each pulse. The time interval between the two is greater than 0.3s, then the physical button is pressed twice long;
然后,在步骤S760中,与上述输入端口对应的中央处理单元230的输出端口根据物理按键的按压方式指示收发单元210发送通讯信号给不同传感器,110,例如,短按物理按键1次时,发送通讯信号给烟雾传感,111;短按物理按键2次时,发送通讯信号给气体传感器112;连续短按物理按键2次时,发送通信信号给防入侵传感器113,持续时间为15s的方波信号;长按物理按键
1次,发送通讯信号给温度传感器114;长按物理按键2次,发送通讯信号给门磁传感器115;连续长按物理按键2次,发送通讯信号给湿度传感器;Then, in step S760, the output port of the central processing unit 230 corresponding to the input port instructs the transceiver unit 210 to send a communication signal to the different sensor according to the pressing manner of the physical button, for example, when the physical button is pressed once, the transmission is performed. The communication signal is sent to the smoke sensor, 111; when the physical button is pressed twice, the communication signal is sent to the gas sensor 112; when the physical button is pressed twice, the communication signal is sent to the anti-intrusion sensor 113, and the square wave lasts for 15s. Signal; long press physical button
1 time, send communication signal to temperature sensor 114; long press physical button 2 times, send communication signal to door magnetic sensor 115; continuously press physical button 2 times, send communication signal to humidity sensor;
中央处理单元230的输出端口通过收发单元210发送通信信号给不同传感器110后,在步骤S770中,判断传感器110的工作状态以及传感器110与中央处理单元230的通讯状态是否正常;After the output port of the central processing unit 230 sends the communication signal to the different sensor 110 through the transceiver unit 210, in step S770, it is determined whether the working state of the sensor 110 and the communication state of the sensor 110 and the central processing unit 230 are normal;
如果正常,则这一流程结束;If normal, the process ends;
若果异常,在步骤S770b中,中央处理单元230根据输入端口的脉冲信号从输出端口生成相应的控制指令,通过收发单元210发送给报警模块300,例如,短按物理按键1次时,所述控制指令为持续时间为15s的单频信号;短按物理按键2次时,所述控制指令为间隔1秒时长15s的两个单频信号;连续短按物理按键2次时,所述控制指令为占空比为0.5,持续时间为15s的方波信号;长按物理按键1次,所述控制指令为持续5个周期的扫频信号;长按物理按键2次,所述控制指令为间隔1s持续5个周期的两个扫频信号;连续长按物理按键2次,所述控制指令为持续10个周期的扫频信号;If the abnormality occurs, the central processing unit 230 generates a corresponding control command from the output port according to the pulse signal of the input port, and sends the corresponding control command to the alarm module 300 through the transceiver unit 210, for example, when the physical button is pressed once, for example, in step S770b. The control command is a single-frequency signal with a duration of 15 s; when the physical button is pressed twice, the control command is two single-frequency signals with a duration of 15 seconds and a duration of 15 seconds; when the physical button is continuously pressed twice, the control command It is a square wave signal with a duty ratio of 0.5 and a duration of 15s; long press the physical button once, the control command is a sweep signal of 5 cycles; press the physical button twice, the control command is interval 1s lasts 5 cycles of two sweep signals; continuously presses the physical button 2 times, the control command is a sweep signal of 10 cycles;
中央处理单元230通过收发单元210发送控制指令给报警模块300后,在步骤S771b中,报警模块300根据不同的控制指令发出不同的报警声音,优选地,除了报警声音提示测试结果外,还可以通过指示灯340、数据可视化模块320或者音频播放模块330对自检结果进行提示,如表3所示,After the central processing unit 230 sends the control command to the alarm module 300 through the transceiver unit 210, in step S771b, the alarm module 300 issues different alarm sounds according to different control commands, preferably, in addition to the alarm sound prompting the test result, The indicator light 340, the data visualization module 320 or the audio playback module 330 prompts the self-test result, as shown in Table 3.
表3table 3
表3示出了测试方法的一个例子,但是本发明并不限于此,按压方式以及与其对应的传感器类型和报警模块的提示方式可以按场景适时分配。Table 3 shows an example of the test method, but the present invention is not limited thereto, and the pressing mode and the sensor type corresponding thereto and the prompting mode of the alarm module can be allocated in time according to the scene.
上述测试方法能够直观的演示智能报警系统的工作流程,并能够快速的检测传感器的工作状态以及传感器与中央处理单元的通讯状态。The above test method can intuitively demonstrate the workflow of the intelligent alarm system, and can quickly detect the working state of the sensor and the communication state of the sensor and the central processing unit.
优选地,该测试方法还包括:在测试过程中,通过采用声压测量仪检测报警声音的声压。Preferably, the testing method further comprises: detecting the sound pressure of the alarm sound by using a sound pressure measuring instrument during the testing.
另外,优选地,该测试方法还包括:判断报警声音的声压是否达到要求;若报警声压不能达到要求,增大升压模块的放大倍数。In addition, preferably, the testing method further comprises: determining whether the sound pressure of the alarm sound meets the requirement; if the alarm sound pressure cannot meet the requirement, increasing the amplification factor of the boosting module.
尽管前面公开的内容示出了本发明的示例性实施例,但是应当注意,在不背离权利要求限定的范围的前提下,可以进行多种改变和修改。根据这里描述的发明实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明的元素可以以个体形式描述或要求,但是也可以设想具有多个元素,除非明确限制为单个元素。
While the foregoing disclosure shows exemplary embodiments of the present invention, it should be understood that various changes and modifications may be made without departing from the scope of the appended claims. The functions, steps and/or actions of the method claims according to the embodiments of the invention described herein are not required to be performed in any particular order. In addition, although elements of the invention may be described or claimed in the form of an individual, it is also contemplated that a plurality of elements are included, unless explicitly limited to a single element.