CN108702610A - Alarm method, device, equipment and computer storage media - Google Patents
Alarm method, device, equipment and computer storage media Download PDFInfo
- Publication number
- CN108702610A CN108702610A CN201880000641.3A CN201880000641A CN108702610A CN 108702610 A CN108702610 A CN 108702610A CN 201880000641 A CN201880000641 A CN 201880000641A CN 108702610 A CN108702610 A CN 108702610A
- Authority
- CN
- China
- Prior art keywords
- terminal
- alarm
- communication mode
- alert data
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/90—Services for handling of emergency or hazardous situations, e.g. earthquake and tsunami warning systems [ETWS]
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B19/00—Alarms responsive to two or more different undesired or abnormal conditions, e.g. burglary and fire, abnormal temperature and abnormal rate of flow
- G08B19/005—Alarms responsive to two or more different undesired or abnormal conditions, e.g. burglary and fire, abnormal temperature and abnormal rate of flow combined burglary and fire alarm systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- Emergency Management (AREA)
- Environmental & Geological Engineering (AREA)
- Public Health (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Alarm Systems (AREA)
Abstract
Description
技术领域technical field
本申请涉及报警技术领域,尤其是涉及一种报警方法、装置、设备及计算机存储介质。The present application relates to the field of alarm technology, in particular to an alarm method, device, equipment and computer storage medium.
背景技术Background technique
随着科技发展,报警设备已广泛应用于家庭住宅、工厂仓库或办公场所等。以家庭住宅为例,用户会在住宅内安设有诸如烟雾报警器、可燃气体报警器或防盗报警器等报警设备,报警设备在监测所处环境异常时通过鸣笛、语音播报等方式会发出警报,以引起居民注意。然而,当报警设备发出警报时,可能出现用户不在家的情况,用户难以及时获知异常状况,报警效果不佳。With the development of science and technology, alarm equipment has been widely used in family houses, factory warehouses or office places. Taking a family residence as an example, the user will install alarm devices such as smoke alarms, flammable gas alarms, or burglar alarms in the residence. Alarm to draw residents' attention. However, when the alarm device sends out an alarm, it may happen that the user is not at home, it is difficult for the user to know the abnormal situation in time, and the alarm effect is not good.
申请内容application content
有鉴于此,本申请的目的包括,例如,提供一种报警方法、装置、设备及计算机存储介质,能够提升报警效果。In view of this, the object of the present application includes, for example, providing an alarm method, device, equipment and computer storage medium, which can improve the alarm effect.
为了实现至少一个本申请的目的,本申请的一个实施例中采用的技术方案如下:In order to achieve at least one purpose of this application, the technical solution adopted in one embodiment of this application is as follows:
第一方面,提供了一种报警方法,所述方法应用于报警设备,所述方法包括:所述报警设备的处理器当报警流程启动时,分别采用近场通信方式和网络通信方式向第一终端发送报警数据;确定成功将所述报警数据发送给所述第一终端的通信方式;执行与确定的所述通信方式对应的报警操作。In the first aspect, an alarm method is provided, the method is applied to an alarm device, and the method includes: when the alarm process is started by the processor of the alarm device, the first The terminal sends the alarm data; determines the communication mode for successfully sending the alarm data to the first terminal; and executes an alarm operation corresponding to the determined communication mode.
在本申请可选的实施例中,所述采用至少两种通信方式向第一终端发送报警数据的步骤,包括:分别建立所述电子设备与所述第一终端之间的近场通信链路和网络通信链路;如果所述近场通信链路建立成功,通过所述近场通信链路向所述第一终端传输报警数据;如果所述网络通信链路建立成功,通过所述网络通信链路向所述第一终端传输报警数据。In an optional embodiment of the present application, the step of sending alarm data to the first terminal using at least two communication methods includes: respectively establishing a near-field communication link between the electronic device and the first terminal and a network communication link; if the near-field communication link is successfully established, transmit alarm data to the first terminal through the near-field communication link; if the network communication link is successfully established, communicate through the network The link transmits alarm data to the first terminal.
在本申请可选的实施例中,所述方法还包括:如果所述近场通信链路和所述网络通信链路均建立成功,且所述报警数据最先通过所述近场通信链路发送至所述第一终端,停止通过所述网络通信链路向所述第一终端传输报警数据。In an optional embodiment of the present application, the method further includes: if both the near-field communication link and the network communication link are established successfully, and the alarm data passes through the near-field communication link first send to the first terminal, and stop transmitting alarm data to the first terminal through the network communication link.
在本申请可选的实施例中,所述确定成功将所述报警数据发送给所述第一终端的通信方式的步骤,包括:所述报警设备的处理器接收所述第一终端发送的反馈信息;其中,所述反馈信息携带有所述第一终端接收所述报警数据采用的通信方式的标识;根据所述反馈信息中携带的标识,确定成功将所述报警数据发送给所述第一终端的通信方式。In an optional embodiment of the present application, the step of determining the communication method for successfully sending the alarm data to the first terminal includes: the processor of the alarm device receiving feedback sent by the first terminal information; wherein, the feedback information carries the identification of the communication method used by the first terminal to receive the alarm data; according to the identification carried in the feedback information, it is determined that the alarm data is successfully sent to the first terminal How the terminal communicates.
在本申请可选的实施例中,所述执行与确定的所述通信方式对应的报警操作的步骤,包括:如果确定的所述通信方式为网络通信方式,判断在预设第一时间内是否接收到所述第一终端下发的用户指令;如果否,向指定终端发送所述报警数据。In an optional embodiment of the present application, the step of performing an alarm operation corresponding to the determined communication mode includes: if the determined communication mode is a network communication mode, judging whether receiving the user instruction issued by the first terminal; if not, sending the alarm data to the designated terminal.
在本申请可选的实施例中,所述指定终端为第二终端;所述向指定终端发送所述报警数据的步骤,包括:采用所述网络通信方式和/或所述近场通信方式向所述第二终端发送所述报警数据。In an optional embodiment of the present application, the specified terminal is a second terminal; the step of sending the alarm data to the specified terminal includes: using the network communication method and/or the near field communication method to send The second terminal sends the alarm data.
在本申请可选的实施例中,所述指定终端仍为第一终端;所述向指定终端发送所述报警数据的步骤,包括:采用短信通信方式和/或电话通信方式向所述第一终端发送报警数据。In an optional embodiment of the present application, the designated terminal is still the first terminal; the step of sending the alarm data to the designated terminal includes: using SMS communication and/or telephone communication to send the alarm data to the first terminal; The terminal sends alarm data.
在本申请可选的实施例中,所述采用短信通信方式和/或电话通信方式向所述第一终端发送报警数据的步骤,包括:通过短信通信方式向所述第一终端发送报警数据;判断在预设第二时间内是否接收到所述第一终端下发的用户指令;如果否,通过电话通信方式向所述第一终端发送报警数据。In an optional embodiment of the present application, the step of sending alarm data to the first terminal by SMS communication and/or telephone communication includes: sending alarm data to the first terminal by SMS communication; Judging whether a user instruction issued by the first terminal is received within a preset second time; if not, sending alarm data to the first terminal through telephone communication.
在本申请可选的实施例中,所述执行与确定的所述通信方式对应的报警操作的步骤,包括:如果确定的所述通信方式为近场通信方式,判断在预设第三时间内是否接收到所述第一终端下发的用户指令;如果否,语音播报所述报警数据。In an optional embodiment of the present application, the step of performing an alarm operation corresponding to the determined communication mode includes: if the determined communication mode is a near field communication mode, judging that within the preset third time Whether the user instruction issued by the first terminal is received; if not, the alarm data is broadcast by voice.
在本申请可选的实施例中,所述近场通信方式包括蓝牙通信或红外通信;所述网络通信方式包括移动互联网通信。In an optional embodiment of the present application, the near-field communication method includes Bluetooth communication or infrared communication; the network communication method includes mobile Internet communication.
第二方面,提供了一种报警装置,所述装置应用于报警设备,所述装置包括:数据发送模块,配置成当报警流程启动时,分别采用近场通信方式和网络通信方式向第一终端发送报警数据;其中,所述通信方式包括近场通信方式或网络通信方式;通信确定模块,配置成确定成功将所述报警数据发送给所述第一终端的通信方式;操作执行模块,配置成执行与确定的所述通信方式对应的报警操作。In a second aspect, an alarm device is provided, the device is applied to alarm equipment, and the device includes: a data sending module, configured to transmit data to the first terminal by using near-field communication and network communication respectively when the alarm process starts Sending alarm data; wherein, the communication method includes a near-field communication method or a network communication method; the communication determination module is configured to determine the communication method for successfully sending the alarm data to the first terminal; the operation execution module is configured to Executing an alarm operation corresponding to the determined communication mode.
在本申请可选的实施例中,所述数据发送模块配置成:分别建立所述电子设备与所述第一终端之间的近场通信链路和网络通信链路;如果所述近场通信链路建立成功,通过所述近场通信链路向所述第一终端传输报警数据;如果所述网络通信链路建立成功,通过所述网络通信链路向所述第一终端传输报警数据。In an optional embodiment of the present application, the data sending module is configured to: respectively establish a near field communication link and a network communication link between the electronic device and the first terminal; if the near field communication If the link is established successfully, the alarm data is transmitted to the first terminal through the near field communication link; if the network communication link is established successfully, the alarm data is transmitted to the first terminal through the network communication link.
在本申请可选的实施例中,所述装置还包括:停止模块,配置成如果所述近场通信链路和所述网络通信链路均建立成功,且所述报警数据最先通过所述近场通信链路发送至所述第一终端,停止通过所述网络通信链路向所述第一终端传输报警数据。In an optional embodiment of the present application, the device further includes: a stop module, configured to if both the near-field communication link and the network communication link are established successfully, and the alarm data passes through the The near field communication link is sent to the first terminal, and the transmission of alarm data to the first terminal through the network communication link is stopped.
在本申请可选的实施例中,所述通信确定模块配置成:接收所述第一终端发送的反馈信息;其中,所述反馈信息携带有所述第一终端接收所述报警数据采用的通信方式的标识;根据所述反馈信息中携带的标识,确定成功将所述报警数据发送给所述第一终端的通信方式。In an optional embodiment of the present application, the communication determination module is configured to: receive feedback information sent by the first terminal; wherein the feedback information carries the communication information used by the first terminal to receive the alarm data The identification of the mode; according to the identification carried in the feedback information, determine the communication mode for successfully sending the alarm data to the first terminal.
在本申请可选的实施例中,所述操作执行模块包括:判断单元,配置成如果确定的所述通信方式为网络通信方式,判断在预设第一时间内是否接收到所述第一终端下发的用户指令;发送单元,配置成在所述判断单元的判断结果为否时,向指定终端发送所述报警数据。In an optional embodiment of the present application, the operation execution module includes: a judging unit configured to judge whether the first terminal is received within a preset first time if the determined communication mode is a network communication mode. A user instruction issued; a sending unit configured to send the alarm data to a designated terminal when the judging result of the judging unit is negative.
在本申请可选的实施例中,所述指定终端为第二终端;所述发送单元配置成:采用所述网络通信方式和/或所述近场通信方式向所述第二终端发送所述报警数据。In an optional embodiment of the present application, the specified terminal is a second terminal; the sending unit is configured to: send the Alarm data.
在本申请可选的实施例中,所述指定终端仍为第一终端;所述发送单元配置成:采用短信通信方式和/或电话通信方式向所述第一终端发送报警数据。In an optional embodiment of the present application, the specified terminal is still the first terminal; the sending unit is configured to: send alarm data to the first terminal by means of short message communication and/or telephone communication.
在本申请可选的实施例中,所述发送单元进一步配置成:通过短信通信方式向所述第一终端发送报警数据;判断在预设第二时间内是否接收到所述第一终端下发的用户指令;如果否,通过电话通信方式向所述第一终端发送报警数据。In an optional embodiment of the present application, the sending unit is further configured to: send alarm data to the first terminal through short message communication; if not, sending alarm data to the first terminal through telephone communication.
第三方面,提供了一种报警设备,所述报警设备包括存储器以及处理器,所述存储器配置成存储支持处理器执行第一方面任一项所述方法的程序,所述处理器配置成执行所述存储器中存储的程序。In a third aspect, an alarm device is provided, the alarm device includes a memory and a processor, the memory is configured to store a program that supports the processor to execute any one of the methods described in the first aspect, and the processor is configured to execute programs stored in the memory.
第四方面,提供了一种计算机存储介质,配置成储存为第二方面任一项所述装置所用的计算机软件指令。In a fourth aspect, there is provided a computer storage medium configured to store computer software instructions used by the device described in any one of the second aspect.
本申请提供了一种报警方法、装置、设备及计算机存储介质,当报警流程启动时,采用至少两种通信方式向第一终端发送报警数据;然后确定成功将报警数据发送给第一终端的通信方式,进而执行与确定的通信方式对应的报警操作。上述报警方法能够采用两种通信方式给用户发送报警数据,并基于将报警数据成功发送给用户的通信方式执行相应的报警操作,也即能够根据实际通信情况执行不同的报警操作,以便于用户及时获知报警数据,有效提升报警效果。The application provides an alarm method, device, equipment, and computer storage medium. When the alarm process starts, at least two communication methods are used to send alarm data to the first terminal; mode, and then execute the alarm operation corresponding to the determined communication mode. The above alarm method can use two communication methods to send alarm data to the user, and perform corresponding alarm operations based on the communication mode in which the alarm data is successfully sent to the user, that is, different alarm operations can be performed according to the actual communication situation, so that the user can timely Knowing the alarm data can effectively improve the alarm effect.
本申请的其他特征和优点将在随后的说明书中阐述,或者,部分特征和优点可以从说明书推知或毫无疑义地确定,或者通过实施本申请的上述技术即可得知。Other features and advantages of the present application will be set forth in the following description, or some of the features and advantages can be deduced or unambiguously determined from the description, or can be known by implementing the above-mentioned techniques of the present application.
为使本申请的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned purpose, features and advantages of the present application more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本申请具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings that need to be used in the description of the specific embodiments or prior art. Obviously, the accompanying drawings in the following description The drawings are some implementations of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.
图1示出了本申请实施例所提供的一种报警方法流程图;FIG. 1 shows a flow chart of an alarm method provided by an embodiment of the present application;
图2示出了本申请实施例所提供的另一种报警方法流程图;FIG. 2 shows a flow chart of another alarm method provided by the embodiment of the present application;
图3示出了本申请实施例所提供的一种报警装置的结构框图;Fig. 3 shows a structural block diagram of an alarm device provided by an embodiment of the present application;
图4示出了本申请实施例所提供的另一种报警装置的结构框图;FIG. 4 shows a structural block diagram of another alarm device provided by the embodiment of the present application;
图5示出了本申请实施例所提供的一种报警设备的结构示意图。Fig. 5 shows a schematic structural diagram of an alarm device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution and advantages of the application clearer, the technical solution of the application will be clearly and completely described below in conjunction with the accompanying drawings. Apparently, the described embodiments are part of the embodiments of the application, not all of them. example. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
参见图1所示的一种报警方法流程图,该方法应用于报警设备,该报警设备可以为任何单独的报警设备,诸如烟雾报警器、防盗报警器或有毒气体报警器等,也可以为集成在某一系统上的报警部件,或者集成在某电子设备上的报警部件,该方法具体可以由报警设备的处理器执行,包括以下步骤:Referring to the flowchart of an alarm method shown in Figure 1, the method is applied to an alarm device, which can be any individual alarm device, such as a smoke alarm, a burglar alarm or a toxic gas alarm, etc., or can be an integrated An alarm component on a certain system, or an alarm component integrated on an electronic device, the method may specifically be executed by a processor of the alarm device, including the following steps:
步骤S102,当报警流程启动时,分别采用近场通信方式和网络通信方式向第一终端发送报警数据。在具体实现时,近场通信方式可以又称为近距离无线通信方式,具体可包括蓝牙通信或红外通信等,主要采用近距离通信技术实现两个设备之间的信息交互。网络通信方式可以包括移动互联网通信、物联网等,能够实现远距离通信,诸如,报警设备通过移动互联网直接与第一终端对接,将报警数据发送给第一终端,报警设备也可以将报警数据发送给服务器,再由服务器将报警数据下发给第一终端。Step S102, when the alarm process is started, send alarm data to the first terminal by means of near-field communication and network communication. In actual implementation, the near-field communication method may also be called a short-range wireless communication method, which may specifically include bluetooth communication or infrared communication, etc. The short-range communication technology is mainly used to realize information interaction between two devices. Network communication methods can include mobile Internet communication, Internet of Things, etc., which can realize long-distance communication. For example, the alarm device can directly connect with the first terminal through the mobile Internet, and send the alarm data to the first terminal, and the alarm device can also send the alarm data. to the server, and then the server sends the alarm data to the first terminal.
上述第一终端即为用户终端,可以是相关人员的手机、ipad等便携智能终端,该相关人员可以为报警设备的管理者,也即能够对报警设备感测的异常情况采取措施的人员。诸如,报警设备安装于住宅内时,相关人员可以为该住宅的户主;报警设备安装于办公室内时,相关人员可以为在该办公室办公的人员。上述报警数据可以包含有警报提醒信息,也可以包含有具体的异常信息,诸如,当报警设备为烟雾报警器时,报警数据可以包括烟雾浓度;当报警设备为防盗报警器时,报警数据可以包括被不法分子入侵的时间、地点或入侵方式等。可以理解的是,报警数据的形式以及内容可以根据报警设备的具体用途而灵活设定,在此不进行限制。The above-mentioned first terminal is a user terminal, which may be a mobile phone, ipad or other portable intelligent terminal of a relevant person. The relevant person may be the manager of the alarm device, that is, the person who can take measures for the abnormal situation sensed by the alarm device. For example, when the alarm device is installed in a house, the relevant person may be the owner of the house; when the alarm device is installed in an office, the relevant person may be a person working in the office. The above-mentioned alarm data can include alarm reminder information, and can also include specific abnormal information, such as, when the alarm device is a smoke alarm, the alarm data can include smoke concentration; when the alarm device is a burglar alarm, the alarm data can include The time, place, or method of intrusion by criminals. It can be understood that the form and content of the alarm data can be flexibly set according to the specific use of the alarm device, and there is no limitation here.
步骤S104,确定成功将报警数据发送给第一终端的通信方式。如果第一终端与报警设备相距较近,报警设备可以成功通过诸如蓝牙等近距离通信方式将报警数据发给第一终端,在将报警数据发送完毕时,由于近场数据传输方式通常快于其它通信方式,此时可以终断其它向第一终端发送报警数据的通信方式。如果第一终端与报警设备相距较远,报警设备无法通过近距离通信方式将报警数据发送给第一终端,因而网络通信方式能够成功将报警数据发送给第一终端。步骤S104有助于通过成功将报警数据发送给第一终端的通信方式判断第一终端是否与报警设备相距较近。Step S104, determining a communication method for successfully sending the alarm data to the first terminal. If the distance between the first terminal and the alarm device is relatively close, the alarm device can successfully send the alarm data to the first terminal through a short-distance communication method such as Bluetooth. When the alarm data is sent, the near-field data transmission method is usually faster than other communication mode, at this time, other communication modes for sending alarm data to the first terminal may be terminated. If the first terminal is far away from the alarm device, the alarm device cannot send the alarm data to the first terminal through short-distance communication, so the network communication can successfully send the alarm data to the first terminal. Step S104 helps to judge whether the distance between the first terminal and the alarm device is relatively close through the communication method of successfully sending the alarm data to the first terminal.
在确定成功将报警数据发送给第一终端的通信方式的通信方式时,报警设备可以根据数据传输情况自己判断,也可以根据第一终端发送的反馈信息判断。具体的,报警设备的处理器可以接收第一终端发送的反馈信息(具体的,可以是处理器通过报警设备的信号接收器接收反馈信息);其中,反馈信息携带有第一终端接收报警数据采用的通信方式的标识;然后根据反馈信息中携带的标识,确定成功将报警数据发送给第一终端的通信方式。也即,如果反馈信息中携带的标识为近距离传输标识,确定最先将报警数据发送给第一终端的传输方式为近距离传输方式;如果反馈信息中携带的标识为远距离传输标识,确定最先将报警数据发送给第一终端的传输方式为远距离传输方式;诸如,当第一终端是以蓝牙传输方式接收到报警数据,则给报警设备发送的反馈信息中携带有蓝牙标识,该蓝牙标识可以为预设字符或数字。When determining the communication mode for successfully sending the alarm data to the first terminal, the alarm device can judge by itself according to the data transmission situation, or according to the feedback information sent by the first terminal. Specifically, the processor of the alarm device can receive the feedback information sent by the first terminal (specifically, the processor can receive the feedback information through the signal receiver of the alarm device); The identification of the communication mode; and then according to the identification carried in the feedback information, determine the communication mode for successfully sending the alarm data to the first terminal. That is, if the identifier carried in the feedback information is a short-distance transmission identifier, it is determined that the transmission method that first sends the alarm data to the first terminal is a short-distance transmission method; if the identifier carried in the feedback information is a long-distance transmission identifier, determine The first transmission method for sending the alarm data to the first terminal is the long-distance transmission method; for example, when the first terminal receives the alarm data in the Bluetooth transmission mode, the feedback information sent to the alarm device carries the Bluetooth logo, the The bluetooth identification can be preset characters or numbers.
步骤S106,执行与确定的通信方式对应的报警操作。也即,执行与成功将报警数据发送给第一终端的通信方式对应的报警操作。诸如,如果确定将报警数据成功发送给第一终端的通信方式为近场通信方式,比如报警终端成功通过蓝牙方式将报警数据发送给用户的手机上,说明该用户位于住宅内,能够及时响应报警数据数据,或者能够进一步通过鸣笛、语音播报等方式提示用户。如果确定近场通信失败,将报警数据成功发送给第一终端的通信方式为网络通信方式,说明用户与报警设备相距较远,才采用鸣笛、语音播报等方式都是无用的,因而可以进一步采用给用户的手机发短信、打电话或者给其它相关人员(诸如,用户的邻居、物业人员等)发送报警数据,以使引发警报的异常状况能够得以解决。Step S106, performing an alarm operation corresponding to the determined communication mode. That is, an alarm operation corresponding to the communication manner in which the alarm data is successfully sent to the first terminal is performed. For example, if it is determined that the communication method for successfully sending the alarm data to the first terminal is the near-field communication method, for example, the alarm terminal successfully sends the alarm data to the user's mobile phone through Bluetooth, indicating that the user is located in the residence and can respond to the alarm in time data, or can further prompt the user by whistle, voice broadcast, etc. If it is determined that the near-field communication fails, the communication method for successfully sending the alarm data to the first terminal is the network communication method, indicating that the user is far away from the alarm device, and it is useless to use whistle, voice broadcast, etc., so further Send text messages to the user's mobile phone, make a phone call, or send alarm data to other relevant personnel (such as the user's neighbors, property personnel, etc.), so that the abnormal situation that caused the alarm can be resolved.
本实施例的上述方法中,能够同时采用两种通信方式给用户发送报警数据,根据确定成功将报警数据发送给第一终端的通信方式,从而基于将报警数据成功发送给用户的通信方式执行相应的报警操作,这种方式能够根据实际情况采用不同的报警操作,以便于用户及时获知报警数据,有效提升了报警效果。In the above method of this embodiment, two communication methods can be used to send alarm data to the user at the same time. This method can adopt different alarm operations according to the actual situation, so that users can know the alarm data in time, and effectively improve the alarm effect.
在实际应用中,本实施例给出了一种执行上述步骤S102的具体的实施方式:分别建立电子设备与第一终端之间的近场通信链路和网络通信链路;如果近场通信链路建立成功,通过近场通信链路向第一终端传输报警数据;如果网络通信链路建立成功,通过网络通信链路向第一终端传输报警数据。In practical applications, this embodiment provides a specific implementation manner of performing the above step S102: respectively establish a near-field communication link and a network communication link between the electronic device and the first terminal; if the near-field communication link If the road is successfully established, the alarm data is transmitted to the first terminal through the near field communication link; if the network communication link is established successfully, the alarm data is transmitted to the first terminal through the network communication link.
以报警设备安装在住宅内为例进一步解释说明如下:如果用户位于住宅内,第一终端(也即,用户的手机等)距离报警设备较近,报警设备可以直接与第一终端近场通信,诸如报警设备可以直接通过蓝牙模块与第一终端对接,将报警数据通过蓝牙通信链路发送给第一终端。如果用户位于住宅外,第一终端距离报警设备较远,报警设备无法再建立近场通信链路,难以再通过诸如蓝牙模块等方式将报警数据传送给第一终端,此时还能够通过网络通信链路将报警数据发送给第一终端。在实际应用中,报警设备可以直接与第一终端通过互联网的形式对接,也可以先将报警数据发送给服务器,由服务器将报警数据再发送给第一终端。在实际应用中,第一终端上可以设置有与服务器相关的报警APP,服务器在收到报警数据后,可以将报警数据下发至第一终端的报警APP。Taking the alarm device installed in the residence as an example, further explanations are as follows: if the user is located in the residence, the first terminal (that is, the user's mobile phone, etc.) is relatively close to the alarm device, and the alarm device can directly communicate with the first terminal in near field. For example, the alarm device can directly connect with the first terminal through the Bluetooth module, and send the alarm data to the first terminal through the Bluetooth communication link. If the user is located outside the residence, the first terminal is far away from the alarm device, the alarm device can no longer establish a near-field communication link, and it is difficult to transmit the alarm data to the first terminal through a method such as a Bluetooth module. At this time, it can still communicate through the network The link sends the alarm data to the first terminal. In practical applications, the alarm device can directly connect with the first terminal through the Internet, or can first send the alarm data to the server, and the server sends the alarm data to the first terminal. In practical applications, the first terminal may be provided with an alarm APP related to the server, and after receiving the alarm data, the server may send the alarm data to the alarm APP of the first terminal.
考虑到当用户位于报警设备较近时,近场通信和网络通信均可传输数据,为了避免提示的繁琐,提升用户体验,上述方法还包括:如果近场通信链路和网络通信链路均建立成功,且报警数据最先通过近场通信链路发送至第一终端,停止通过网络通信链路向第一终端传输报警数据。可以理解的是,通常近场通信链路相较于网络通信链路的数据传输速度快,如果同时建立近场通信链路和网络通信链路,报警数据通常会最先通过近场通信链路发送至第一终端,此时可以终断网络通信链路,停止网络通信链路向第一终端传输报警数据,避免第一终端在相隔较短的时间内接收到两份报警数据,用户体验不佳。Considering that when the user is near the alarm device, both near-field communication and network communication can transmit data, in order to avoid cumbersome prompts and improve user experience, the above method also includes: if both the near-field communication link and the network communication link are established If successful, the alarm data is first sent to the first terminal through the near-field communication link, and the transmission of the alarm data to the first terminal through the network communication link is stopped. It is understandable that the data transmission speed of the near-field communication link is usually faster than that of the network communication link. If the near-field communication link and the network communication link are established at the same time, the alarm data will usually pass through the near-field communication link first. Send to the first terminal, at this time, the network communication link can be terminated, and the network communication link can be stopped to transmit alarm data to the first terminal, so as to prevent the first terminal from receiving two alarm data within a short period of time, and the user experience is not good. good.
以下示例性列举当成功将报警数据发送给第一终端的通信方式为网络通信方式或近场通信方式时,执行相应的报警操作的具体实施方式:The following exemplifies specific implementations of performing a corresponding alarm operation when the communication mode successfully sending the alarm data to the first terminal is a network communication mode or a near field communication mode:
(一)成功将报警数据发送给第一终端的通信方式为网络通信方式(1) The communication method for successfully sending the alarm data to the first terminal is the network communication method
如果报警设备是通过网络通信方式成功将报警数据发送给第一终端,说明近场通信方式发送数据失败,诸如,报警设备无法用蓝牙连接第一终端,因而可以判断相关人员与报警设备的相隔距离较远。诸如,如果该报警设备安装在住宅内,相关人员可能此时位于住宅外,为了能够及时应对异常状况,与网络通信方式对应的报警操作可参照如下:If the alarm device successfully sends the alarm data to the first terminal through network communication, it means that the near-field communication method fails to send data. For example, the alarm device cannot connect to the first terminal with Bluetooth, so the distance between the relevant personnel and the alarm device can be judged far. For example, if the alarm device is installed in a residence, the relevant personnel may be located outside the residence at this time. In order to respond to abnormal situations in a timely manner, the alarm operation corresponding to the network communication method can be referred to as follows:
(1)判断在预设第一时间内是否接收到第一终端下发的用户指令;(1) judging whether the user instruction issued by the first terminal is received within the preset first time;
(2)如果否,向指定终端发送报警数据。(2) If not, send alarm data to the designated terminal.
在一种实施方式中,该指定终端为与第一终端不同的第二终端,该第二终端可以为用户设置的其它关联终端,诸如用户拥有的另一个手机,或者用户家人的手机,或者用户邻居的手机等智能设备。因而,在预设第一时间内未接收到第一终端下发的用户指令时,可以采用网络通信方式和/或近场通信方式向第二终端发送报警数据。In one embodiment, the specified terminal is a second terminal different from the first terminal, and the second terminal may be another associated terminal set by the user, such as another mobile phone owned by the user, or a mobile phone of the user's family, or a mobile phone of the user's family. Neighbors' mobile phones and other smart devices. Therefore, when no user instruction from the first terminal is received within the preset first time period, the alarm data may be sent to the second terminal by means of network communication and/or near field communication.
在另一种实施方式中,该指定终端仍为第一终端,在预设第一时间内未接收到第一终端下发的用户指令时,可以采用短信通信方式和/或电话通信方式向第一终端发送报警数据。本实施例给出一种具体方式:首先通过短信通信方式向第一终端发送报警数据;然后判断在预设第二时间内是否接收到第一终端下发的用户指令;如果否,通过电话通信方式向第一终端发送报警数据。也即,电话呼叫第一终端。In another embodiment, the designated terminal is still the first terminal, and if no user instruction issued by the first terminal is received within the preset first time, the designated terminal may be sent to the second terminal by means of SMS communication and/or telephone communication. A terminal sends alarm data. This embodiment provides a specific method: first, send alarm data to the first terminal through SMS communication; then judge whether the user instruction issued by the first terminal is received within the preset second time; if not, communicate via telephone The method sends the alarm data to the first terminal. That is, the phone calls the first terminal.
当然,在实际应用中,也可以直接采用电话通信方式向第一终端发送报警数据,诸如,向第一终端自动发起电话呼叫,如果第一终端应答,则向第一终端发送(也即,播报)报警数据,如果第一终端未应答,则可以向第一终端通过短信通信方式发送报警数据。Of course, in practical applications, it is also possible to directly use telephone communication to send alarm data to the first terminal, such as automatically initiating a telephone call to the first terminal, and if the first terminal answers, then sending (that is, broadcasting) to the first terminal ) alarm data, if the first terminal does not answer, then the alarm data can be sent to the first terminal by means of short message communication.
通过上述方式,能够在用户未及时应答时,再次通过短信、电话等方式提示用户,提示报警效果。Through the above method, when the user fails to respond in time, the user can be reminded again by means of text message, phone call, etc., and the effect of the alarm can be prompted.
(二)成功将报警数据发送给第一终端的通信方式为近场通信方式(2) The communication method for successfully sending the alarm data to the first terminal is the near field communication method
如果报警设备是通过近场通信方式成功将报警数据发送给第一终端,诸如,通过蓝牙方式将报警数据发送给第一终端,说明相关人员与报警设备相距较近,能够及时对异常状况采取措施。为了能够及时应对异常状况,与网络通信方式对应的报警操作可参照如下:If the alarm device successfully sends the alarm data to the first terminal through near-field communication, such as sending the alarm data to the first terminal through Bluetooth, it means that the relevant personnel are relatively close to the alarm device and can take measures for abnormal conditions in time . In order to respond to abnormal situations in a timely manner, the alarm operations corresponding to the network communication methods can be referred to as follows:
(1)判断在预设第三时间内是否接收到第一终端下发的用户指令;(1) judging whether the user instruction issued by the first terminal is received within the preset third time;
(2)如果否,语音播报报警数据。在实际应用时,报警设备可以设置有用于播报语音的扩音器等。当然,报警设备也可以采用鸣笛等方式提示用户注意。(2) If not, voice broadcast the alarm data. In actual application, the alarm device may be provided with a loudspeaker and the like for broadcasting voice. Of course, the alarm device can also prompt the user to pay attention by means of whistle or the like.
虽然用户位于住宅内,但可能没能及时留意第一终端的消息,因而可以通过广播等形式语音播报报警数据,以引起用户的注意,并及时采取措施。Although the user is located in the residence, he may not be able to pay attention to the message of the first terminal in time, so the alarm data can be broadcasted by voice in a form such as broadcasting, so as to attract the user's attention and take timely measures.
综上所述,本实施例提供的上述报警方法,能够采用多种通信方式给用户发送报警数据,并根据成功将报警数据发送给用户的通信方式确定相应的报警操作,以便于用户及时获知报警数据,有效提升了报警效果。To sum up, the above alarm method provided by this embodiment can use multiple communication methods to send alarm data to the user, and determine the corresponding alarm operation according to the communication mode in which the alarm data is successfully sent to the user, so that the user can be notified of the alarm in time data, effectively improving the alarm effect.
为便于理解,本实施例进一步给出了一种报警方法的具体实现方式,以蓝牙通信和移动互联网通信为例进行说明,参见图2所示的另一种报警方法流程图,包括如下步骤:For ease of understanding, this embodiment further provides a specific implementation of an alarm method, taking Bluetooth communication and mobile Internet communication as examples for illustration, referring to the flow chart of another alarm method shown in Figure 2, including the following steps:
步骤S202,当报警流程启动时,分别通过蓝牙通信方式和移动互联网通信方式给用户终端发送报警数据。Step S202, when the alarm process starts, send alarm data to the user terminal through the Bluetooth communication mode and the mobile Internet communication mode respectively.
步骤S204,根据用户终端基于报警数据的反馈信息,判断蓝牙通信方式是否成功;如果否,执行步骤S206,如果是,执行步骤S214。蓝牙通信方式的成功与否,能够说明用户是否与报警设备相距较近,报警设备可根据用户的距离远近而采取不同的报警策略。Step S204, according to the feedback information of the user terminal based on the alarm data, judge whether the Bluetooth communication method is successful; if not, execute step S206, and if yes, execute step S214. The success of the Bluetooth communication method can indicate whether the user is close to the alarm device, and the alarm device can adopt different alarm strategies according to the distance of the user.
步骤S206,判断在预设第一时间内是否接收到用户终端下发的用户指令;如果否,执行步骤S208;如果是,结束。Step S206, judging whether a user instruction issued by the user terminal is received within a preset first time; if not, execute step S208; if yes, end.
步骤S208,通过短信通信方式向用户终端发送报警数据;Step S208, sending alarm data to the user terminal through SMS communication;
步骤S210,判断在预设第二时间内是否接收到用户终端下发的用户指令;如果否,执行步骤S212;如果是,结束。Step S210, judging whether a user instruction issued by the user terminal is received within the preset second time; if not, execute step S212; if yes, end.
步骤S212,通过电话通信方式向第一终端发送报警数据。具体实施时,如果呼叫第一终端,第一终端不应答时,还可以按照预设的时间间隔多次呼叫第一终端。Step S212, sending alarm data to the first terminal through telephone communication. During specific implementation, if the first terminal is called and the first terminal does not answer, the first terminal may be called multiple times according to the preset time interval.
步骤S214,判断在预设第三时间内是否接收到用户终端下发的用户指令;如果否,执行步骤S216;如果是,结束。Step S214, judging whether a user instruction issued by the user terminal is received within the preset third time; if not, execute step S216; if yes, end.
步骤S216,语音播报报警数据。Step S216, voice broadcast alarm data.
在实际应用中,上述第一时间、第二时间和第三时间可以相同,也可以不同,具体可根据需求而灵活设置,在此不进行限定。In practical applications, the above-mentioned first time, second time and third time may be the same or different, and may be flexibly set according to requirements, and are not limited here.
本实施例提供的上述报警方法,报警设备能够针对蓝牙通信方式成功与否而采用相应的报警操作,如果蓝牙通信方式成功,说明用户与报警设备相距较近,因而可以在用户未及时响应时,采用语音播报等方式提示用户注意。如果蓝牙通信方式失败,说明用户与报警设备相距较远,因而可以在用户未及时响应时,采用发短信、打电话等方式提示用户注意。上述方式有助于使用户及时获知报警数据,有效提升了报警效果。In the above-mentioned alarm method provided by this embodiment, the alarm device can adopt a corresponding alarm operation based on whether the Bluetooth communication method is successful or not. If the Bluetooth communication method is successful, it means that the user is relatively close to the alarm device. Therefore, when the user does not respond in time, Use voice broadcast and other methods to remind users to pay attention. If the Bluetooth communication method fails, it means that the user is far away from the alarm device, so when the user fails to respond in time, the user can be prompted to pay attention by sending a text message or making a phone call. The foregoing manner helps the user to know the alarm data in time, and effectively improves the alarm effect.
对应于前述报警方法,本实施例进一步提供了一种报警装置,参见图3所示的一种报警装置的结构框图,该装置应用于报警设备,该装置包括:Corresponding to the aforementioned alarm method, this embodiment further provides an alarm device, referring to the structural block diagram of an alarm device shown in Figure 3, the device is applied to alarm equipment, and the device includes:
数据发送模块302,配置成当报警流程启动时,采用至少两种通信方式向第一终端发送报警数据;其中,通信方式包括近场通信方式或网络通信方式;The data sending module 302 is configured to send alarm data to the first terminal using at least two communication methods when the alarm process starts; wherein, the communication methods include near-field communication or network communication;
通信确定模块304,配置成确定成功将报警数据发送给第一终端的通信方式;The communication determination module 304 is configured to determine the communication mode for successfully sending the alarm data to the first terminal;
操作执行模块306,配置成执行与确定的通信方式对应的报警操作。The operation execution module 306 is configured to execute an alarm operation corresponding to the determined communication mode.
本实施例提供的上述报警装置,能够采用两种通信方式给用户发送报警数据,并基于将报警数据成功发送给用户的通信方式执行相应的报警操作,也即能够根据实际通信情况执行不同的报警操作,有助于使用户及时获知报警数据,有效提升报警效果。The above-mentioned alarm device provided in this embodiment can use two communication methods to send alarm data to the user, and perform corresponding alarm operations based on the communication mode in which the alarm data is successfully sent to the user, that is, it can perform different alarms according to actual communication conditions. Operation helps users to know the alarm data in time and effectively improves the alarm effect.
在一种实施方式中,数据发送模块302配置成:分别建立电子设备与第一终端之间的近场通信链路和网络通信链路;如果近场通信链路建立成功,通过近场通信链路向第一终端传输报警数据;如果网络通信链路建立成功,通过网络通信链路向第一终端传输报警数据。In one embodiment, the data sending module 302 is configured to: respectively establish a near field communication link and a network communication link between the electronic device and the first terminal; if the near field communication link is established successfully, transmit the alarm data to the first terminal; if the network communication link is established successfully, transmit the alarm data to the first terminal through the network communication link.
在一种实施方式中,通信确定模块304配置成:接收第一终端发送的反馈信息;其中,反馈信息携带有第一终端接收报警数据采用的通信方式的标识;根据反馈信息中携带的标识,确定成功将报警数据发送给第一终端的通信方式。In one embodiment, the communication determining module 304 is configured to: receive the feedback information sent by the first terminal; wherein, the feedback information carries the identification of the communication mode used by the first terminal to receive the alarm data; according to the identification carried in the feedback information, A communication method for successfully sending the alarm data to the first terminal is determined.
在具体实施时,上述装置还包括:停止模块,配置成如果近场通信链路和网络通信链路均建立成功,且报警数据最先通过近场通信链路发送至第一终端,停止通过网络通信链路向第一终端传输报警数据。In a specific implementation, the above-mentioned device also includes: a stop module configured to stop passing through the network if both the near-field communication link and the network communication link are successfully established, and the alarm data is first sent to the first terminal through the near-field communication link. The communication link transmits alert data to the first terminal.
参见图4所示的另一种报警装置的结构框图,在图3的基础上,操作执行模块306包括:Referring to the structural block diagram of another alarm device shown in FIG. 4, on the basis of FIG. 3, the operation execution module 306 includes:
指令判断单元3062,配置成如果确定的通信方式为网络通信方式,判断在预设第一时间内是否接收到第一终端下发的用户指令;The instruction judging unit 3062 is configured to judge whether the user instruction issued by the first terminal is received within the preset first time if the determined communication method is a network communication method;
数据发送单元3064,配置成在判断单元的判断结果为否时,向指定终端发送报警数据。The data sending unit 3064 is configured to send alarm data to the designated terminal when the judging result of the judging unit is negative.
在一种实施方式中,指定终端为第二终端;数据发送单元配置成:采用网络通信方式和/或近场通信方式向第二终端发送报警数据。In an implementation manner, the designated terminal is the second terminal; the data sending unit is configured to: send the alarm data to the second terminal by means of network communication and/or near field communication.
在另一种实施方式中,指定终端仍为第一终端;数据发送单元配置成:采用短信通信方式和/或电话通信方式向第一终端发送报警数据。具体实施时,数据发送单元进一步配置成:通过短信通信方式向第一终端发送报警数据;判断在预设第二时间内是否接收到第一终端下发的用户指令;如果否,通过电话通信方式向第一终端发送报警数据。In another embodiment, the designated terminal is still the first terminal; the data sending unit is configured to: send the alarm data to the first terminal by means of short message communication and/or telephone communication. During specific implementation, the data sending unit is further configured to: send alarm data to the first terminal through SMS communication; judge whether to receive the user instruction issued by the first terminal within the preset second time; Send the alarm data to the first terminal.
如果确定的通信方式为近场通信方式,操作执行模块306还可以配置成判断在预设第三时间内是否接收到第一终端下发的用户指令;如果否,语音播报报警数据。If the determined communication mode is the near field communication mode, the operation execution module 306 may also be configured to determine whether a user instruction from the first terminal is received within the preset third time; if not, voice broadcast alarm data.
本实施例所提供的装置,其实现原理及产生的技术效果和前述实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述方法实施例中相应内容。The implementation principle and technical effects of the device provided in this embodiment are the same as those of the foregoing embodiments. For brief description, for the parts not mentioned in the device embodiments, reference may be made to the corresponding content in the foregoing method embodiments.
进一步,本实施例提供了一种报警设备,报警设备包括存储器以及处理器,存储器配置成存储支持处理器执行前述任一项报警方法的程序,处理器配置成执行存储器中存储的程序。Further, this embodiment provides an alarm device, the alarm device includes a memory and a processor, the memory is configured to store a program that supports the processor to execute any of the aforementioned alarm methods, and the processor is configured to execute the program stored in the memory.
图5示出的是与本申请的实施例提供的一种报警设备的结构示意图。参考图5,报警设备包括:射频(Radio Frequency,RF)电路510、存储器520、输入单元530、显示单元540、传感器550、音频电路560、无线保真(wireless fidelity,WiFi)模块570、处理器580、以及电源590等部件。本领域技术人员可以理解,图5仅为一种报警设备的结构示例,图5中示出的报警设备结构并不构成对报警设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Fig. 5 shows a schematic structural diagram of an alarm device provided by an embodiment of the present application. Referring to FIG. 5, the alarm device includes: a radio frequency (Radio Frequency, RF) circuit 510, a memory 520, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, a wireless fidelity (wireless fidelity, WiFi) module 570, a processor 580, and parts such as power supply 590. Those skilled in the art can understand that FIG. 5 is only a structural example of an alarm device, and the structure of the alarm device shown in FIG. 5 does not constitute a limitation on the alarm device, and may include more or less components than those shown in the figure. Or combine certain components, or different component arrangements.
下面结合图5对报警设备的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the alarm device in conjunction with Figure 5:
RF电路510可配置成收发信息过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器580处理;另外,将设计上行的数据发送给基站。通常,RF电路510包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路510还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband CodeDivision Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 510 can be configured to receive and send signals during the process of sending and receiving information, especially, after receiving downlink information from the base station, process it with the processor 580; in addition, send the designed uplink data to the base station. Generally, the RF circuit 510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 510 may also communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (Short Messaging Service, SMS), etc.
存储器520可配置成存储软件程序以及模块,处理器580通过运行存储在存储器520的软件程序以及模块,从而执行报警设备的各种功能应用以及数据处理。存储器520可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据报警设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器520可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 520 can be configured to store software programs and modules, and the processor 580 executes various functional applications and data processing of the alarm device by running the software programs and modules stored in the memory 520 . The memory 520 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); The data created by the use of the alarm device (such as audio data, phone book, etc.) and the like. In addition, the memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
输入单元530可配置成接收输入的数字或字符信息,以及产生与报警设备的用户设置以及功能控制有关的键信号输入。具体地,输入单元530可包括触控面板531以及其他输入设备532。触控面板531,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板531上或在触控面板531附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板531可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器580,并能接收处理器580发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板531。除了触控面板531,输入单元530还可以包括其他输入设备532。具体地,其他输入设备532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 530 may be configured to receive input number or character information, and generate key signal input related to user setting and function control of the alarm device. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532 . The touch panel 531, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 531 or near the touch panel 531). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 531 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch panel 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 531 , the input unit 530 may also include other input devices 532 . Specifically, other input devices 532 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
显示单元540可配置成显示由用户输入的信息或提供给用户的信息以及报警设备的各种菜单。显示单元540可包括显示面板541,可选的,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板541。进一步的,触控面板531可覆盖显示面板541,当触控面板531检测到在其上或附近的触摸操作后,传送给处理器580以确定触摸事件的类型,随后处理器580根据触摸事件的类型在显示面板541上提供相应的视觉输出。虽然在图5中,触控面板531与显示面板541是作为两个独立的部件来实现报警设备的输入和输入功能,但是在某些实施例中,可以将触控面板531与显示面板541集成而实现报警设备的输入和输出功能。The display unit 540 may be configured to display information input by or provided to the user and various menus of the alarm device. The display unit 540 may include a display panel 541. Optionally, the display panel 541 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Further, the touch panel 531 may cover the display panel 541, and when the touch panel 531 detects a touch operation on or near it, it transmits to the processor 580 to determine the type of the touch event, and then the processor 580 determines the type of the touch event according to the touch event. The type provides a corresponding visual output on the display panel 541 . Although in FIG. 5, the touch panel 531 and the display panel 541 are used as two independent components to realize the input and input functions of the alarm device, in some embodiments, the touch panel 531 and the display panel 541 can be integrated And realize the input and output function of the alarm equipment.
报警设备还可包括至少一种传感器550,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板541的亮度。音频电路560、扬声器561,传声器562可提供用户与报警设备之间的音频接口。音频电路560可将接收到的音频数据转换后的电信号,传输到扬声器561,由扬声器561转换为声音信号输出;另一方面,传声器562将收集的声音信号转换为电信号,由音频电路560接收后转换为音频数据,再将音频数据输出处理器580处理后,经RF电路510以发送给比如另一报警设备,或者将音频数据输出至存储器520以便进一步处理。The alarm device may also include at least one sensor 550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of the ambient light. Audio circuit 560, speaker 561, and microphone 562 may provide an audio interface between the user and the alarm device. The audio circuit 560 can transmit the electrical signal converted from the received audio data to the loudspeaker 561, and the loudspeaker 561 converts it into an audio signal output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 580, and then sent to another alarm device through the RF circuit 510, or the audio data is output to the memory 520 for further processing.
蓝牙属于短距离无线传输技术,报警设备通过蓝牙模块570可以与用户终端蓝牙通信。虽然图5示出了蓝牙模块570,此外,蓝牙模块还可以为WIFI模块等。处理器580是报警设备的控制中心,利用各种接口和线路连接整个报警设备的各个部分,通过运行或执行存储在存储器520内的软件程序和/或模块,以及调用存储在存储器520内的数据,执行报警设备的各种功能和处理数据,从而对报警设备进行整体监控。可选的,处理器580可包括一个或多个处理单元;优选的,处理器580可集成应用处理器,应用处理器主要处理操作系统、用户界面和应用程序等。处理器580可以集成调制解调处理器,调制解调处理器也可以不集成到处理器580中。Bluetooth belongs to the short-distance wireless transmission technology, and the alarm device can communicate with the user terminal Bluetooth through the Bluetooth module 570 . Although FIG. 5 shows a Bluetooth module 570, in addition, the Bluetooth module can also be a WIFI module or the like. The processor 580 is the control center of the alarm device, and uses various interfaces and lines to connect various parts of the entire alarm device, by running or executing software programs and/or modules stored in the memory 520, and calling data stored in the memory 520 , Execute various functions of the alarm equipment and process data, so as to monitor the alarm equipment as a whole. Optionally, the processor 580 may include one or more processing units; preferably, the processor 580 may integrate an application processor, and the application processor mainly processes operating systems, user interfaces, and application programs. The processor 580 may integrate a modem processor, or the modem processor may not be integrated into the processor 580 .
报警设备还包括给各个部件供电的电源590(比如电池),优选的,电源可以通过电源管理系统与处理器580逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The alarm device also includes a power supply 590 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 580 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的报警设备的具体报警过程,可以参考前述实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific alarm process of the alarm device described above can refer to the corresponding process in the foregoing embodiments, which will not be repeated here.
进一步,本实施例还提供了一种计算机存储介质,用于储存为前述任一项报警装置所用的计算机软件指令。Further, this embodiment also provides a computer storage medium, which is used for storing computer software instructions used by any one of the alarm devices mentioned above.
本申请实施例所提供的报警方法、装置以及报警设备的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行前面方法实施例中所述的方法,具体实现可参见方法实施例,在此不再赘述。The computer program product of the alarm method, device, and alarm equipment provided in the embodiments of the present application includes a computer-readable storage medium storing program codes, and the instructions included in the program codes can be used to execute the methods described in the previous method embodiments For specific implementation, refer to the method embodiments, and details are not repeated here.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .
最后应说明的是:以上所述实施例,仅为本申请的具体实施方式,用以说明本申请的技术方案,而非对其限制,本申请的保护范围并不局限于此,尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本申请实施例技术方案的精神和范围,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。Finally, it should be noted that: the above-described embodiments are only specific implementations of the application, used to illustrate the technical solutions of the application, rather than limiting it, and the scope of protection of the application is not limited thereto, although referring to the aforementioned The embodiment has described this application in detail, and those of ordinary skill in the art should understand that any person familiar with this technical field can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in this application Changes can be easily imagined, or equivalent replacements can be made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be covered by this application. within the scope of protection. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.
工业实用性:Industrial applicability:
通过应用本申请的技术方案,报警设备够根据实际通信情况执行不同的报警操作,有助于用户及时获知报警数据,能够有效提升报警效果。By applying the technical solution of the present application, the alarm device can perform different alarm operations according to the actual communication situation, which helps the user to know the alarm data in time, and can effectively improve the alarm effect.
Claims (20)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2018/089316 WO2019227416A1 (en) | 2018-05-31 | 2018-05-31 | Alarm method, apparatus, device and computer storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108702610A true CN108702610A (en) | 2018-10-23 |
| CN108702610B CN108702610B (en) | 2021-01-29 |
Family
ID=63841425
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201880000641.3A Active CN108702610B (en) | 2018-05-31 | 2018-05-31 | Alarm method, device, equipment and computer storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN108702610B (en) |
| WO (1) | WO2019227416A1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111862399A (en) * | 2019-12-30 | 2020-10-30 | 北京骑胜科技有限公司 | Unlocking request generation method and device and electronic equipment |
| CN115662672A (en) * | 2022-11-15 | 2023-01-31 | 中核华东地矿科技有限公司 | A radioactive waste water decay mechanism and its remote monitoring system |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1241762A (en) * | 1998-07-10 | 2000-01-19 | 赵治平 | Omnibearing electronic household guard and alarm method and system |
| CN103617710A (en) * | 2013-12-06 | 2014-03-05 | 文江湖 | Intelligent remote alarm system and intelligent remote alarm method |
| CN104143242A (en) * | 2014-08-13 | 2014-11-12 | 文江湖 | Wireless anti-theft alarm system |
| CN104898453A (en) * | 2015-06-30 | 2015-09-09 | 成都众山科技有限公司 | Intelligent housing system based on Internet of Things |
| CN205091851U (en) * | 2015-11-18 | 2016-03-16 | 董静雅 | Prevent reporting by mistake monitored control system of family |
| US20160212604A1 (en) * | 2015-01-19 | 2016-07-21 | Hsiang-Fong Tsai | Early-warning system for disasters |
| CN206790627U (en) * | 2017-04-12 | 2017-12-22 | 北京建自凯科系统工程有限公司 | A kind of safety defense monitoring system |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3829829B2 (en) * | 2003-08-06 | 2006-10-04 | コニカミノルタホールディングス株式会社 | Control device, program, and control method |
| CN207233168U (en) * | 2017-08-24 | 2018-04-13 | 西安科技大学 | A kind of natural gas in home leakage alarm reponse system |
-
2018
- 2018-05-31 WO PCT/CN2018/089316 patent/WO2019227416A1/en not_active Ceased
- 2018-05-31 CN CN201880000641.3A patent/CN108702610B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1241762A (en) * | 1998-07-10 | 2000-01-19 | 赵治平 | Omnibearing electronic household guard and alarm method and system |
| CN103617710A (en) * | 2013-12-06 | 2014-03-05 | 文江湖 | Intelligent remote alarm system and intelligent remote alarm method |
| CN104143242A (en) * | 2014-08-13 | 2014-11-12 | 文江湖 | Wireless anti-theft alarm system |
| US20160212604A1 (en) * | 2015-01-19 | 2016-07-21 | Hsiang-Fong Tsai | Early-warning system for disasters |
| CN104898453A (en) * | 2015-06-30 | 2015-09-09 | 成都众山科技有限公司 | Intelligent housing system based on Internet of Things |
| CN205091851U (en) * | 2015-11-18 | 2016-03-16 | 董静雅 | Prevent reporting by mistake monitored control system of family |
| CN206790627U (en) * | 2017-04-12 | 2017-12-22 | 北京建自凯科系统工程有限公司 | A kind of safety defense monitoring system |
Non-Patent Citations (1)
| Title |
|---|
| 罗剑: "基于3G网络的移动设备智能监控系统设计", 《新技术新工艺》 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111862399A (en) * | 2019-12-30 | 2020-10-30 | 北京骑胜科技有限公司 | Unlocking request generation method and device and electronic equipment |
| CN115662672A (en) * | 2022-11-15 | 2023-01-31 | 中核华东地矿科技有限公司 | A radioactive waste water decay mechanism and its remote monitoring system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108702610B (en) | 2021-01-29 |
| WO2019227416A1 (en) | 2019-12-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102832975B (en) | Data transmission method, data transmission device and terminal with touch screen | |
| CN108924910B (en) | AI model updating method and related product | |
| CN106302938B (en) | Communication event processing method and device | |
| WO2018121148A1 (en) | Communication resource selection method, hand-held intelligent terminal and access device | |
| CN105007543B (en) | Intercommunication method, device, equipment and system | |
| CN103501388A (en) | Terminal equipment prompting control method, device and terminal equipment | |
| CN111787611B (en) | A method for updating paging cycle, terminal equipment and network equipment | |
| CN108881778B (en) | A wearable device-based video output method and wearable device | |
| CN104427074A (en) | Method, device and system for displaying incoming information | |
| CN108449491A (en) | Information processing method and device, mobile terminal and computer readable storage medium | |
| CN104348943A (en) | Incoming call prompt method and incoming call prompt device | |
| CN106027748A (en) | Emergency calling method and device in screen locking state and mobile terminal | |
| WO2016179809A1 (en) | Method and terminal for processing communication event | |
| KR20220103146A (en) | Multicast service transmission method, transmission processing method and related apparatus | |
| CN106603740A (en) | Network connection abnormality processing method and terminal equipment | |
| CN103828335A (en) | Terminal and method for automatically answering incoming calls | |
| CN108494943A (en) | Message sink sends processing method, terminal and computer readable storage medium | |
| CN107046595A (en) | Notification information processing method, device and mobile terminal | |
| CN117731987A (en) | Power exchange station system and fire control method thereof | |
| CN108702610A (en) | Alarm method, device, equipment and computer storage media | |
| CN111107223B (en) | A message processing method and electronic device | |
| CN104917905A (en) | Strange incoming call processing method, terminal and server | |
| CN108366167B (en) | A kind of message reminding method and mobile terminal | |
| CN105721282A (en) | Messages display method and device | |
| CN109639738A (en) | Voice data transmission method and terminal device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |