CN110062336B - Broadcasting method and device for air defense and disaster prevention alarm, electronic equipment and storage medium - Google Patents
Broadcasting method and device for air defense and disaster prevention alarm, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110062336B CN110062336B CN201910312883.2A CN201910312883A CN110062336B CN 110062336 B CN110062336 B CN 110062336B CN 201910312883 A CN201910312883 A CN 201910312883A CN 110062336 B CN110062336 B CN 110062336B
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- data
- disaster prevention
- prevention information
- information 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/02—Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/03—Protecting confidentiality, e.g. by encryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- 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
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Alarm Systems (AREA)
Abstract
The application discloses a broadcasting method and device of an air defense and disaster prevention alarm, electronic equipment and a storage medium, and relates to the air defense and disaster prevention alarm technology. Wherein, the method comprises the following steps: receiving disaster prevention information data sent by an air defense and disaster prevention server, and performing content verification on the disaster prevention information data according to a first content check code obtained by calculation; when the content of the disaster prevention information data is verified correctly, encrypting the disaster prevention information data; generating Bluetooth data according to the encrypted disaster prevention information data; and respectively sending the Bluetooth signals carrying the Bluetooth data by high power and low power, and repeatedly and circularly executing the step of respectively sending the Bluetooth signals carrying the Bluetooth data by high power and low power until a preset stop condition is reached. The method transmits the disaster prevention information data in a digital method, and greatly improves the notification effect of the air defense and disaster prevention alarm.
Description
Technical Field
The present application relates to an air defense and disaster prevention alarm technology, and in particular, to a method and an apparatus for broadcasting an air defense and disaster prevention alarm, an electronic device, and a storage medium.
Background
The air defense and disaster prevention alarm equipment is an important component of urban air defense and disaster prevention engineering, is used for disaster prediction and emergency report under the conditions of disaster relief and emergency accidents at ordinary times and for civil air defense in wartime, and is a basic means for implementing civil air defense command and organizing personnel evacuation by all levels of civil governments.
The existing air defense and disaster prevention alarm equipment covers the city by sound through sound amplification equipment, and because the information which can be transmitted by the sound is simple and single, the notification effect of the air defense and disaster prevention alarm is poor when air attack or disaster occurs.
Disclosure of Invention
In view of the above, a main object of the present application is to provide a broadcasting method, an apparatus, an electronic device and a storage medium for an air defense and disaster prevention alarm, which overcome the defect that the existing air defense and disaster prevention alarm device only transmits air defense and disaster prevention alarm information by sound, and transmit disaster prevention information data by a digital means, thereby greatly improving the notification effect of the air defense and disaster prevention alarm.
In order to achieve the purpose, the technical scheme provided by the application is as follows:
in a first aspect, an embodiment of the present application provides a method for broadcasting an air defense and disaster prevention alarm, including:
receiving disaster prevention information data sent by an air defense and disaster prevention server, and performing content verification on the disaster prevention information data according to a first content check code obtained by calculation;
when the content of the disaster prevention information data is verified correctly, encrypting the disaster prevention information data;
generating Bluetooth data according to the encrypted disaster prevention information data;
and respectively sending the Bluetooth signals carrying the Bluetooth data by high power and low power, and repeatedly and circularly executing the step of respectively sending the Bluetooth signals carrying the Bluetooth data by high power and low power until a preset stop condition is reached.
In a possible implementation manner, after each time the bluetooth signal carrying the bluetooth data is respectively transmitted with high power and low power, the method further includes:
waiting a preset time interval before next transmitting the Bluetooth data.
In one possible embodiment, the bluetooth data includes: at least one of Bluetooth name data or Bluetooth broadcast data.
In a possible embodiment, in a case that the bluetooth data is bluetooth name data, the step of generating the bluetooth data according to the encrypted disaster prevention information data includes:
generating a second content check code according to the encrypted disaster prevention information data;
and splicing the encrypted disaster prevention information data and the second content check code to obtain Bluetooth name data.
In a possible embodiment, in a case that the bluetooth data is bluetooth broadcast data, the step of generating the bluetooth data according to the encrypted disaster prevention information data includes:
dividing the encrypted disaster prevention information data into at least one data frame; each data frame at most comprises a preset number of bytes;
and adding frame number, frame ending identification and byte number information into each data frame, and taking each data frame as the Bluetooth broadcast data.
In a possible implementation manner, after adding the frame number, the frame end identifier, and the byte number information to each data frame, the step of generating the bluetooth data according to the encrypted disaster prevention information data further includes:
generating a second content check code according to the encrypted disaster prevention information data;
and adding the second content check code into the first data frame of the Bluetooth broadcast data.
In a possible implementation manner, in the process of generating bluetooth data according to the encrypted disaster prevention information data, the method further includes:
generating a unique duplicate removal identification code for each encrypted disaster prevention information data;
and adding the duplication-removing identification code into the first data frame of the Bluetooth broadcast data.
In a possible embodiment, the preset stop condition is:
and receiving new disaster prevention information data sent by the air defense and disaster prevention server.
In a possible embodiment, the preset stop condition is:
the number of iterations reaches a preset number threshold.
In a second aspect, an embodiment of the present application further provides a broadcast device for an air defense and disaster prevention alarm, including:
the receiving module is used for receiving disaster prevention information data sent by the air defense and disaster prevention server;
the verification module is used for performing content verification on the disaster prevention information data according to the calculated first content check code;
the encryption module is used for encrypting the disaster prevention information data when the content of the disaster prevention information data is verified correctly;
a data generating module for generating Bluetooth data according to the encrypted disaster prevention information data,
and the sending module is used for respectively sending the Bluetooth signals carrying the Bluetooth data at high power and low power and repeatedly and circularly executing the step of respectively sending the Bluetooth signals carrying the Bluetooth data at high power and low power until a preset stop condition is reached.
In summary, the broadcast method, device, electronic device and storage medium for the air defense and disaster prevention alarm provided by the present application use the bluetooth signal as a broadcast means to notify the air defense and disaster prevention alarm to the mobile terminal within the coverage area, and implement the blind-corner-free coverage of the bluetooth signal transmission by adjusting the power of the bluetooth power amplifier, thereby implementing the transmission of the disaster prevention information data by a digital method, and greatly improving the notification effect of the air defense and disaster prevention alarm.
Drawings
Fig. 1 is a schematic view of an application scenario according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a method according to an embodiment of the present disclosure;
fig. 3 is a system architecture diagram when the method provided in the first embodiment of the present application is applied to an air defense and disaster prevention system;
fig. 4 is a schematic flow chart of a broadcasting method of an air defense and disaster prevention alarm according to a second embodiment of the present application;
fig. 5 is a schematic flow chart of a broadcasting method of an air defense and disaster prevention alarm according to a third embodiment of the present application;
fig. 6 is a schematic structural diagram of bluetooth broadcast data according to a third embodiment of the present application;
fig. 7 is a schematic flow chart of a broadcasting method of an air defense and disaster prevention alarm according to a fourth embodiment of the present application;
fig. 8 is a schematic structural diagram of a broadcast device of an air defense and disaster prevention alarm according to a fifth embodiment of the present application;
fig. 9 is a schematic structural diagram of an air defense and disaster prevention alarm device according to a sixth embodiment of the present application;
fig. 10 is a schematic structural diagram of an air defense and disaster prevention alarm device provided in the seventh embodiment of the present application;
fig. 11 is a system architecture diagram of an air defense and disaster prevention alarm device provided in the seventh embodiment of the present application when applied to a system.
Detailed Description
The air defense and disaster prevention alarm equipment is an important component of urban air defense and disaster prevention engineering, the existing air defense and disaster prevention alarm equipment covers the city by sound through sound amplification equipment, and the notification effect of the air defense and disaster prevention alarm is poor when air attack or disaster occurs because the information which can be transmitted by sound is simple and single.
In view of this, the core of the broadcast method for the air defense and disaster prevention alarm provided in the embodiment of the present application lies in the following aspects:
1. because the common Bluetooth transmission needs to be paired and connected, the pairing process cannot meet the timeliness requirement of the air defense and disaster prevention alarm. Therefore, the Bluetooth name data and/or the Bluetooth broadcast data are adopted to send the air defense and disaster prevention alarm.
2. If the data transmission universality is higher by adopting the Bluetooth technology, but the safety is lower, and the requirement on the communication safety is extremely high due to the particularity of the civil air defense application field, therefore, the encryption and the content verification are required, and the potential safety hazard is prevented in the bud.
3. Due to the requirement of full coverage of far and near distances, the transmission power of the bluetooth module needs to be circularly increased and decreased, and the bluetooth data needs to be continuously and repeatedly circularly transmitted for complete data transmission.
As shown in fig. 1, the embodiment of the present application is applied to a broadcasting device 101 of an air defense and disaster prevention alarm with a bluetooth module, and the embodiment of the present application receives disaster prevention information data from an air defense and disaster prevention server 102 through the broadcasting device 101 of the air defense and disaster prevention alarm, and can send the air defense and disaster prevention alarm to any mobile device 103 with a bluetooth module, such as a mobile phone, a tablet computer, a palm computer, a television, a home alarm terminal, an automobile multimedia screen, and the like, by using a bluetooth signal as a broadcasting means. The Bluetooth signal is used as a broadcasting means to inform the mobile terminal in the coverage range of the air defense and disaster prevention alarm, and dead-corner-free coverage of Bluetooth signal transmission is realized by adjusting the power of the Bluetooth power amplifier, so that the transmission of disaster prevention information data is carried out by a digital method, and the informing effect of the air defense and disaster prevention alarm is greatly improved.
To make the objects, technical solutions and advantages of the present application more clear, the present application will be further described in detail with reference to the accompanying drawings and specific embodiments.
Example one
Fig. 2 is a schematic flow chart of a broadcasting method of an air defense and disaster prevention alarm provided in an embodiment of the present application, and as shown in fig. 2, the embodiment mainly includes:
s201: receiving disaster prevention information data sent by an air defense and disaster prevention server, and performing content verification on the disaster prevention information data according to the calculated first content check code.
Here, as shown in fig. 3, the air defense and disaster prevention server may include at least one of an air defense and disaster prevention alarm issuing system, an intelligent civil air defense and multimedia propaganda and education issuing system, a multimedia issuing and digital (intelligent) civil air defense system, and a civil air defense and ground network integrated information system. In disaster and wartime, the civil network is usually unreliable, and broadcasting of air defense and disaster prevention alarms and evacuation or masking of personnel need to be performed in time in a civil air defense multimode communication private network mode, so that disaster prevention information data sent by an air defense and disaster prevention server needs to be received through a special network. Generally, when the air defense and disaster prevention server is an air defense and disaster prevention alarm issuing system, the network used includes: at least one of an ultra-short wave radio station, a TD-LTE 230MHz emergency combat response command private Network, a Public Switched Telephone Network (PSTN), a Beidou short message and the like. When the air defense and disaster prevention server is an intelligent civil air defense multimedia propaganda and education release system and/or a multimedia release and digital (intelligent) civil air defense system, the used network is an encrypted Ethernet special line. When the air defense and disaster prevention server is a human defense and earth defense integrated information system, the network used is a wired human defense private network.
After receiving the disaster prevention information data, the received disaster prevention information data is subjected to a hash operation to check the correctness of the data, and the hash function is a one-way operation for converting a data string of an arbitrary length into a short fixed-length value. Any two strings should not have the same hash value, that is, there is a "high probability" that any two strings are different, and it should be difficult to artificially create a string in which two hash values are the same. The correctness of the data is then checked by performing a hash operation on the received transmission data. The calculated hash value is compared with the hash value carried in the disaster prevention information data. If the two values are the same, the transmitted data is complete and has not been tampered. Therefore, the received disaster prevention information data carries a content check code generated by the air defense and disaster prevention server according to the disaster prevention information data, after the disaster prevention information data is received, calculation is performed according to the received disaster prevention information data to obtain a first content check code, if the first content check code is the same as the content check code generated by the air defense and disaster prevention server according to the disaster prevention information data, the disaster prevention information data passes content verification, and the content of the disaster prevention information data is correct; otherwise, the disaster prevention information data fails to pass the content verification, and the content of the disaster prevention information data is incorrect.
The disaster prevention information data supported by the embodiment of the application can include air defense and disaster prevention alarms, texts of voice broadcast information, civil air defense information, evacuation guidance information, masking guidance information and the like.
S202: and when the content of the disaster prevention information data is verified correctly, encrypting the disaster prevention information data.
When the bluetooth signal is used for sending disaster prevention information data, the bluetooth signal is intercepted in the air, and can also be subjected to decompilation aiming at the bluetooth data, so that a communication protocol is leaked, so that illegal personnel can disturb the existing order of air defense and disaster prevention alarm and information push, an alarm mistaken sounding event occurs, even major group safety hazards such as illegal and illegal information transmission by means of the bluetooth signal exist, and therefore the embodiment of the application encrypts the disaster prevention information data, and the hidden hazards are eliminated.
Preferably, the disaster prevention information data may be encrypted by using an asymmetric encryption technique. The asymmetric encryption technology needs two secret keys for encryption and decryption, the two secret keys are a public key (public key) and a private key (private key), a transmitting end and a receiving end of a Bluetooth signal complete the safe transmission of information in an asymmetric encryption mode, the transmitting end of the Bluetooth signal generates a pair of secret keys comprising the public key and the private key and discloses the public key to other parties, a Bluetooth signal receiving end which obtains the public key encrypts the information by using the secret key and then transmits the information to the Bluetooth signal transmitting end, and the Bluetooth signal transmitting end decrypts the encrypted information by using the private key stored by the Bluetooth signal transmitting end. The receiving end of the Bluetooth signal can only decrypt the information encrypted by the corresponding public key by using the private key.
S203: and generating Bluetooth data according to the encrypted disaster prevention information data.
S204: and respectively sending the Bluetooth signals carrying the Bluetooth data by high power and low power, and repeatedly and circularly executing the step of respectively sending the Bluetooth signals carrying the Bluetooth data by high power and low power until a preset stop condition is reached.
The transmission of the bluetooth data is performed byte by byte, and in order to facilitate the receiving end to receive the bluetooth data, a preset time interval, for example, 100ms, is waited before the next transmission of the bluetooth data after each transmission of the bluetooth data.
Most of the Bluetooth devices on the market at present have short communication distance and poor building penetration, the normal indoor transmission distance is within 10 meters, the building penetration is poor, and if the Bluetooth devices are spread according to the existing Bluetooth technology, the construction cost is extremely high, and the playing requirement of the air defense and disaster prevention alarm cannot be met. The air defense and disaster prevention alarm device used in the embodiment of the application adopts the Bluetooth module with the Bluetooth power amplifier to play the air defense and disaster prevention alarm, the Bluetooth module can be arranged on the roof of a building or in an underground room, the transmitting power is amplified through the Bluetooth power amplifier, and the broadcasting range of 500 meters outdoors and 100 meters indoors underground can be realized. The air defense and disaster prevention alarm device needs full-city coverage, installation and addressing are difficult to operate, and more obstacles exist in actual implementation, and the air defense and disaster prevention alarm device adopting the method provided by the embodiment of the application can realize the broadcasting ranges of 500 meters outdoors and 100 meters indoors, can additionally arrange indoor and underground coverage on the basis of time, and realizes no dead angle coverage in the full city.
In addition, as shown in fig. 3, the broadcasting device of the air defense and disaster prevention alarm used in the embodiment of the application can adopt a universal plug and play interface, is externally or internally embedded in various existing communication and information devices in the civil air defense field, is low in construction cost, and can also be applied to other emergency departments through an emergency linkage platform, so that repeated construction in emergency at ordinary times is avoided. Specifically, the air defense and disaster prevention alarm device used in the embodiment of the present application may be externally or internally embedded in the following civil air defense terminals: air defense warning communication terminal, multimedia propaganda and education terminal, independent bluetooth broadcast terminal, outdoor/indoor large-screen propaganda and education box, civil air defense engineering oral information screen, multifunctional warning terminal of civil air defense engineering, important economic target monitoring terminal, meteorological hydrology acquisition terminal, nuclear observation monitoring terminal and the like.
Because, after the coverage range of the bluetooth signal is amplified through the bluetooth power amplifier, the effect of the high-power bluetooth signal on the close-range coverage is not good. In order to realize far-near full coverage, when the air defense and disaster prevention alarm needs to be broadcasted, the Bluetooth module is used for respectively sending the Bluetooth signals carrying the Bluetooth data in high power and low power, the low-power Bluetooth signals cover a short distance, the high-power Bluetooth signals cover a long distance, and no dead angle coverage is realized.
And repeatedly and circularly sending the Bluetooth signals with high power and low power respectively until a preset stop condition is reached. Here, in a possible embodiment, the preset stop condition may be to receive new disaster prevention information data sent by the air defense disaster prevention server. That is to say, the received disaster prevention information data is broadcasted all the time until the next disaster prevention information data is received. In another possible implementation manner, the preset stop condition may be that the number of times of iteration execution reaches a preset number threshold. In a third possible implementation manner, the preset stop condition may be that a duration for transmitting the bluetooth signal reaches a preset duration threshold.
Example two
The existing Bluetooth equipment can carry out data communication after a pairing connection is usually established, the timeliness requirement of the air defense and disaster prevention alarm cannot be met, and the pairing connection is established, so that bidirectional communication can be carried out between a sending end and a receiving end of the air defense and disaster prevention alarm, and serious potential safety hazards exist. The second embodiment of the application provides a method for broadcasting the air defense and disaster prevention alarm by using the Bluetooth name data.
As shown in fig. 4, a second embodiment of the present application provides a broadcast method for an air defense and disaster prevention alarm, including:
s401: receiving disaster prevention information data sent by an air defense and disaster prevention server, and performing content verification on the disaster prevention information data; and when the content of the disaster prevention information data is verified correctly, encrypting the disaster prevention information data.
S402: generating a second content check code according to the encrypted disaster prevention information data; and splicing the encrypted disaster prevention information data and the second content check code to obtain Bluetooth name data.
The longest Bluetooth name can contain 16 bytes, and if the sum of the lengths of the encrypted disaster prevention information data and the second content check code does not exceed 16 bytes, the broadcast of the air defense and disaster prevention alarm can be directly carried out in a mode of modifying the name of the Bluetooth module.
The second content check code may be generated by a hash operation. Although the hash operation is adopted, in order to avoid the disclosure of the verification technique, the method for generating the second content verification code adopted here is different from the method for performing content verification on the disaster prevention information data after receiving the disaster prevention information data sent by the air defense and disaster prevention server.
In order to ensure that the mobile device at both a long distance and a short distance can receive the air defense and disaster prevention alarm in the response period of the air defense and disaster prevention alarm, the bluetooth signal is broadcast circularly in the whole corresponding period, and each circulation is divided into two times of bluetooth signal transmission, wherein the bluetooth signal is transmitted once at higher power and then transmitted once at lower power. Also, if the bluetooth signal covers two adjacent cells A, B, it is possible to span two cells, or even more cells, during the response period when the mobile terminal is in a high speed motion state. In order to prevent repeated broadcast of the broadcast air defense and disaster prevention alarm, a unique duplication removal identification code can be generated for each encrypted disaster prevention information data; and adding the duplication-removing identification code into Bluetooth name data.
S403: and respectively sending the Bluetooth signals carrying the Bluetooth data by high power and low power, and repeatedly and circularly executing the step of respectively sending the Bluetooth signals carrying the Bluetooth data by high power and low power until a preset stop condition is reached.
And repeatedly and circularly sending the Bluetooth name data with high power and low power respectively until a preset time threshold is reached or new disaster prevention information data sent by the air defense disaster prevention server is received.
EXAMPLE III
The third embodiment of the application provides a method for performing air defense and disaster prevention alarm broadcasting by adopting Bluetooth broadcast data. As shown in fig. 5, a third embodiment of the present application provides a broadcast method of an air defense and disaster prevention alarm, including:
s501: receiving disaster prevention information data sent by an air defense and disaster prevention server, and performing content verification on the disaster prevention information data; and when the content of the disaster prevention information data is verified correctly, encrypting the disaster prevention information data.
S502: dividing the encrypted disaster prevention information data into at least one data frame; wherein each data frame contains a preset number of bytes at most.
In order to ensure that each data frame can be completely received, the frame number, the frame end identification and the byte number information are added into each data frame. In addition, in order to ensure that the entire encrypted disaster prevention information data can be completely received, the total frame number can be stored in the first data frame.
In a possible implementation manner, a second content check code is further generated according to the encrypted disaster prevention information data; and adding the second content check code into the first data frame of the Bluetooth broadcast data.
In addition, in order to prevent the reported air defense and disaster prevention alarm from being repeatedly reported, a unique duplication-removing identification code can be generated for each encrypted disaster prevention information data; and adding the duplication-removing identification code into the first data frame of the Bluetooth broadcast data.
S503: and taking each data frame as the Bluetooth broadcast data.
As shown in fig. 6, the bluetooth broadcast data includes at least one data frame, and if the bluetooth broadcast data includes only one data frame, which is generally referred to as a single frame content, the embodiment of the present application repeatedly cycles to transmit the bluetooth signal carrying the single frame content with high power and low power, respectively. If the bluetooth broadcast data only contains more than two data frames, which are generally called multi-frame content, the embodiment of the application repeatedly starts from the first data frame and circularly transmits the bluetooth signal carrying the multi-frame content with high power and low power respectively.
S504: and respectively sending the Bluetooth signals carrying the Bluetooth data by high power and low power, and repeatedly and circularly executing the step of respectively sending the Bluetooth signals carrying the Bluetooth data by high power and low power until a preset stop condition is reached.
And repeatedly and circularly sending the Bluetooth broadcast data with high power and low power respectively until a preset time threshold is reached or new disaster prevention information data sent by the air defense disaster prevention server is received.
Example four
The fourth embodiment of the application provides a method for performing air defense and disaster prevention alarm broadcasting by using Bluetooth name data and Bluetooth broadcast data. As shown in fig. 7, a fourth embodiment of the present application provides a broadcast method of an air defense and disaster prevention alarm, including:
s701: receiving disaster prevention information data sent by an air defense and disaster prevention server, and performing content verification on the disaster prevention information data; and when the content of the disaster prevention information data is verified correctly, encrypting the disaster prevention information data.
S702: and dividing the encrypted disaster prevention information data into a Bluetooth name data part and a Bluetooth broadcast data part.
Dividing a Bluetooth broadcast data part into at least one data frame; wherein each data frame contains a preset number of bytes at most.
In order to ensure that each data frame can be completely received, the frame number, the frame end identification and the byte number information are added into each data frame. In addition, in order to ensure that the entire encrypted disaster prevention information data can be completely received, the total frame number can be stored in the first data frame.
S703: and generating a second content check code according to the encrypted disaster prevention information data, and adding the second content check code into a first data frame and/or a Bluetooth name data part of the Bluetooth broadcast data.
S704: and generating a duplication-removing identification code, and adding the second content check code into the first data frame and/or the Bluetooth name data part of the Bluetooth broadcast data.
In order to prevent repeated broadcast of the broadcast air defense and disaster prevention alarm, a unique duplication removal identification code can be generated for each encrypted disaster prevention information data; and adding the duplication-removing identification code into the first data frame or the Bluetooth name data part of the Bluetooth broadcast data.
S705: and respectively sending the Bluetooth signals carrying the Bluetooth data by high power and low power.
S706: and repeatedly and circularly sending the Bluetooth name data part and the Bluetooth broadcast data part with high power and low power respectively until a preset time threshold is reached or new disaster prevention information data sent by the air defense and disaster prevention server is received.
Based on the same design concept, the embodiment of the application also provides a broadcasting device and equipment for the air defense and disaster prevention alarm.
EXAMPLE five
As shown in fig. 8, a fifth embodiment of the present application provides a broadcast device 800 for an air defense and disaster prevention alarm, including:
a receiving module 801, configured to receive disaster prevention information data sent by an air defense and disaster prevention server;
the verification module 802 is configured to perform content verification on the disaster prevention information data according to the calculated first content check code;
an encryption module 803, configured to encrypt the disaster prevention information data when the content of the disaster prevention information data is correctly verified;
a data generating module 804, configured to generate bluetooth data according to the encrypted disaster prevention information data,
a sending module 805, configured to send the bluetooth signals carrying the bluetooth data with high power and low power, respectively, and repeatedly and cyclically execute the step of sending the bluetooth signals carrying the bluetooth data with high power and low power, respectively, until a preset stop condition is reached.
In a possible implementation, the sending module 805 is further configured to: waiting a preset time interval before next transmitting the Bluetooth data.
In one possible embodiment, the bluetooth data includes: at least one of Bluetooth name data or Bluetooth broadcast data.
In a possible implementation manner, the data generating module 804 is specifically configured to:
generating a second content check code according to the encrypted disaster prevention information data;
and splicing the encrypted disaster prevention information data and the second content check code to obtain Bluetooth name data.
In a possible implementation manner, the data generating module 804 is specifically configured to:
dividing the encrypted disaster prevention information data into at least one data frame; each data frame at most comprises a preset number of bytes;
and adding frame number, frame ending identification and byte number information into each data frame, and taking each data frame as the Bluetooth broadcast data.
In a possible implementation, the data generating module 804 is further configured to:
generating a second content check code according to the encrypted disaster prevention information data;
and adding the second content check code into the first data frame of the Bluetooth broadcast data.
In a possible implementation, the data generating module 804 is further configured to:
generating a unique duplicate removal identification code for each encrypted disaster prevention information data;
and adding the duplication-removing identification code into the Bluetooth data.
In a possible implementation, the sending module 805 is further configured to:
and stopping sending the Bluetooth signal when receiving the new disaster prevention information data sent by the air defense disaster prevention server.
In a possible implementation, the sending module 805 is further configured to:
and when the time length for sending the Bluetooth signal reaches a preset time length threshold value, stopping sending the Bluetooth signal.
EXAMPLE six
As shown in fig. 9, a sixth embodiment of the present application provides an air defense and disaster prevention alarm device 900, which mainly includes:
a control module 901 for generating Bluetooth data and controlling the power of the Bluetooth power amplifier, a Bluetooth module 902 for sending disaster prevention information by using the Bluetooth data, and a Bluetooth power amplifier 903 capable of adjusting the power;
the control module 901 is connected with the bluetooth module 902, and the bluetooth module 902 is connected with the bluetooth power amplifier 903.
Bluetooth devices in the market generally do not provide a physical connection interface, and are difficult to connect with the control module 901 and communicate data.
Therefore, in one possible implementation, the control module 901 and the bluetooth module 902 perform data communication through a serial port. Specifically, the bidirectional communication between the control module 901 and the bluetooth module 902 can be realized through the UART TX and UART RX interfaces connected to the serial port module. Here, the serial port is mainly used for communication of service data between the control module 901 and the bluetooth module 902, and specifically, for example, may be used for transmission of disaster prevention information data such as air defense and disaster prevention alarm text information, masking guidance information, evacuation guidance information, and the like.
Moreover, the control module 901 and the bluetooth module 902 may communicate in a bridge mode, that is, the control module 901 and the bluetooth module 902 may communicate in a data transparent mode.
Therefore, the connection relationship between the control module 901 and the bluetooth module 902 further includes the following connection:
power signal connection, enable signal connection, data request signal connection. The power signal includes a power line VCC and a ground line GND, and is used for supplying power to the bluetooth module 902; the enable signal includes a connection line between the control module 901 and an enable end EN of the bluetooth module 902, and is used for controlling the bluetooth module 902, when the enable end EN is valid, the bluetooth module 902 starts to work, otherwise, the bluetooth module 902 does not work; the data request signal includes a connection between the BRTS port and the BCTS port of the control module 901 and the bluetooth module 902, and is used to control the communication in the bridge mode between the control module 901 and the bluetooth module 902.
Most bluetooth equipment on the market have short communication distance and poor building penetration, the indoor normal transmission distance is within 10 meters, because the bluetooth module 902 of the equipment is generally arranged on the roof of a building or in an underground chamber, in order to overcome the problem that the bluetooth equipment generally faces short distance coverage, the transmission power is amplified by the bluetooth power amplifier 903, and the bluetooth signal coverage is expanded to the outdoor 500 meters and the underground indoor 100 meters. Also, in one possible embodiment, the power of the bluetooth power amplifier 903 may be adjustable. When the air defense and disaster prevention alarm is broadcast, the power of the Bluetooth power amplifier 903 is amplified and reduced in turn, the large power and the small power of the Bluetooth signals are polled and transmitted, the small power of the Bluetooth signals covers a short distance, the large power of the Bluetooth signals covers a long distance, and the long-distance and short-distance full coverage is guaranteed.
Because the bluetooth data transmission needs to be paired and connected, the timeliness requirement of the air defense and disaster prevention alarm cannot be met in the pairing process, and after the connection is established by general bluetooth equipment, the two-way communication can be realized, so that the safety of the air defense and disaster prevention alarm system can be endangered. To solve this problem, the following three possible embodiments can be adopted:
a: in one possible embodiment, the bluetooth module is 902, a bluetooth module having a broadcast mode of operation. The bluetooth module 902 has a broadcast mode of operation. And broadcasting the air defense and disaster prevention alarm by using a Bluetooth broadcast mode, and receiving broadcast content as long as the Bluetooth signal enters the coverage range. And the broadcast working mode of the bluetooth module 902 is one-way communication, which can ensure the safety of the air defense and disaster prevention alarm system.
B: in another possible embodiment, the bluetooth module 902 performs the transmission of the bluetooth data by modifying the bluetooth name. As long as the Bluetooth signal enters the coverage range of the Bluetooth signal, the Bluetooth name can be received, the Bluetooth data carried by the Bluetooth name can also be received, and the process of searching the Bluetooth name is unidirectional, so that the safety of the air defense and disaster prevention alarm system can be guaranteed.
C: in another possible embodiment, the bluetooth module is 902, a bluetooth module having a broadcast mode of operation. The bluetooth module 902 not only sends bluetooth data by modifying the bluetooth name, but also broadcasts an air defense and disaster prevention alarm by using a bluetooth broadcast mode.
In one possible embodiment, the control module 901 may be implemented using a Micro Controller Unit (MCU).
EXAMPLE seven
Fig. 10 is a schematic structural diagram of a seventh embodiment of the present application, and as shown in fig. 10, an air defense and disaster prevention alarm device 1000 provided by this embodiment mainly includes:
a control module 1001 for generating bluetooth data and controlling power of a bluetooth power amplifier, a bluetooth module 1002 for transmitting disaster prevention information using the bluetooth data, and a bluetooth power amplifier 1003 capable of adjusting power;
the control module 1001 is connected with the bluetooth module 1002, and the bluetooth module 1002 is connected with the bluetooth power amplifier 1003.
The bluetooth module 1002 of the air defense and disaster prevention warning apparatus 1000 is communicatively connected to the mobile apparatus 1004 through a bluetooth signal. The bluetooth module 1002 sends the disaster prevention information data to the mobile device 1004 through the bluetooth data of the custom protocol.
In addition, the control module 1001 in the air defense and disaster prevention warning apparatus 1000 may also be connected to the air defense and disaster prevention server 1005 through a private network for people and air defense communication. And receiving disaster prevention information data sent by the air defense and disaster prevention server, and forwarding the disaster prevention information data to the bluetooth module 1002 through interfaces such as a serial port. Further, the bluetooth module 1002 generates bluetooth data according to the received disaster prevention information data and transmits the generated bluetooth data.
The power of the bluetooth power amplifier 1003 may be adjusted. When the broadcast of the air defense and disaster prevention alarm is carried out, the power of the Bluetooth power amplifier 1003 is amplified and reduced in turn, the polling emission of the large power and the small power of the Bluetooth signals is realized, the small power of the Bluetooth signals covers a short distance, the large power of the Bluetooth signals covers a long distance, and the mobile device 1004 can be covered without dead corners.
As shown in fig. 11, a system architecture diagram of an air defense and disaster prevention alarm device 1000 provided in the seventh embodiment of the present application when applied to a system. The control module 1001 receives the disaster prevention information data from the air defense and disaster prevention server 1005 and sends the disaster prevention information data to the bluetooth module 1002 through an interface, for example, the disaster prevention information data may be sent to the bluetooth module 1002 through a serial port. The bluetooth module 1002 generates bluetooth data through a custom bluetooth protocol, and sends the bluetooth data to the mobile device 1004 through the bluetooth power amplifier 1003, and the mobile device receives the bluetooth data, executes an instruction carried in the bluetooth data, and plays and/or displays disaster prevention information data carried in the bluetooth data.
In summary, the above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (9)
1. A broadcasting method of an air defense and disaster prevention alarm is characterized by comprising the following steps:
receiving disaster prevention information data sent by an air defense and disaster prevention server, and performing content verification on the disaster prevention information data according to a first content check code obtained by calculation;
when the content of the disaster prevention information data is verified correctly, encrypting the disaster prevention information data;
generating Bluetooth data according to the encrypted disaster prevention information data;
respectively sending Bluetooth signals carrying the Bluetooth data to any mobile equipment with a Bluetooth module by high power and low power, and repeatedly and circularly executing the step of respectively sending the Bluetooth signals carrying the Bluetooth data by high power and low power until a preset stop condition is reached;
the generating of the bluetooth data according to the encrypted disaster prevention information data includes: dividing the encrypted disaster prevention information data into a Bluetooth name data part and a Bluetooth broadcast data part;
the repeatedly and circularly executing the Bluetooth signals carrying the Bluetooth data by high power and low power respectively comprises the following steps: and repeatedly and circularly transmitting the Bluetooth name data part and the Bluetooth broadcast data part with high power and low power respectively.
2. The method of claim 1, wherein each time the transmitting the bluetooth signal carrying the bluetooth data at high power and low power, respectively, is performed, further comprising:
waiting a preset time interval before next transmitting the Bluetooth data.
3. The method according to claim 2, wherein the dividing the encrypted disaster prevention information data into a bluetooth name data portion and a bluetooth broadcast data portion further comprises:
generating a second content check code according to the encrypted disaster prevention information data;
and adding the second content check code into the first data frame and/or the Bluetooth name data of the Bluetooth broadcast data.
4. The method according to claim 1, wherein the dividing the encrypted disaster prevention information data into a bluetooth name data portion and a bluetooth broadcast data portion further comprises:
dividing the encrypted disaster prevention information data divided into the Bluetooth broadcast data part into at least one data frame; each data frame at most comprises a preset number of bytes;
and adding frame number, frame ending identification and byte number information into each data frame, and taking each data frame as the Bluetooth broadcast data.
5. The method according to claim 4, wherein after adding the frame number, the frame end identifier, and the byte number information to each data frame, the step of generating the bluetooth data according to the encrypted disaster prevention information data further comprises:
generating a second content check code according to the encrypted disaster prevention information data;
and adding the second content check code into the first data frame and/or the Bluetooth name data part of the Bluetooth broadcast data.
6. The method according to claim 1, wherein in the process of generating the bluetooth data according to the encrypted disaster prevention information data, the method further comprises:
generating a unique duplicate removal identification code for each encrypted disaster prevention information data;
and adding the duplication-removing identification code into the first data frame and/or the Bluetooth name data part of the Bluetooth broadcast data.
7. The method according to claim 1, wherein the preset stop condition is:
and receiving new disaster prevention information data sent by the air defense and disaster prevention server.
8. The method according to claim 1, wherein the preset stop condition is:
and the time length for sending the Bluetooth signal reaches a preset time length threshold value.
9. The utility model provides a report device of air defense and disaster prevention alarm which characterized in that includes:
the receiving module is used for receiving disaster prevention information data sent by the air defense and disaster prevention server;
the verification module is used for performing content verification on the disaster prevention information data according to the calculated first content check code;
the encryption module is used for encrypting the disaster prevention information data when the content of the disaster prevention information data is verified correctly;
a data generating module for generating Bluetooth data according to the encrypted disaster prevention information data,
the transmitting module is used for respectively transmitting the Bluetooth signals carrying the Bluetooth data to any mobile equipment with the Bluetooth module at high power and low power, and repeatedly and circularly executing the step of respectively transmitting the Bluetooth signals carrying the Bluetooth data at high power and low power until a preset stop condition is reached;
the data generation module generates the Bluetooth data according to the encrypted disaster prevention information data, and comprises the following steps: dividing the encrypted disaster prevention information data into a Bluetooth name data part and a Bluetooth broadcast data part;
the step of repeatedly and circularly executing the Bluetooth signals carrying the Bluetooth data by the high power and the low power by the sending module comprises the following steps: and repeatedly and circularly transmitting the Bluetooth name data part and the Bluetooth broadcast data part with high power and low power respectively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910312883.2A CN110062336B (en) | 2019-04-18 | 2019-04-18 | Broadcasting method and device for air defense and disaster prevention alarm, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910312883.2A CN110062336B (en) | 2019-04-18 | 2019-04-18 | Broadcasting method and device for air defense and disaster prevention alarm, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110062336A CN110062336A (en) | 2019-07-26 |
CN110062336B true CN110062336B (en) | 2022-03-18 |
Family
ID=67319390
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910312883.2A Active CN110062336B (en) | 2019-04-18 | 2019-04-18 | Broadcasting method and device for air defense and disaster prevention alarm, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110062336B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103559649A (en) * | 2013-11-01 | 2014-02-05 | 国家电网公司 | Power grid disaster early-warning method and system |
US8750797B2 (en) * | 2008-07-22 | 2014-06-10 | Nissaf Ketari | Proximity access and alarm apparatus |
CN105075154A (en) * | 2013-02-27 | 2015-11-18 | 索尼公司 | A relay device, method and computer program |
CN207233144U (en) * | 2017-08-10 | 2018-04-13 | 福州中优奕信息技术服务有限公司 | Bluetooth management terminal, wireless fire disaster detector and detection device |
CN108091114A (en) * | 2016-11-23 | 2018-05-29 | 杭州海康威视系统技术有限公司 | A kind of method and apparatus for showing alert information |
CN108898247A (en) * | 2018-06-22 | 2018-11-27 | 国网湖南省电力有限公司 | A kind of power grid Rainfall Disaster Risk Forecast Method, system and storage medium |
US10181256B2 (en) * | 2016-03-18 | 2019-01-15 | Linctronix Ltd. | Multiple target locating and alarming system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109541543A (en) * | 2019-01-09 | 2019-03-29 | 深圳市民明科技有限公司 | A kind of fire-fighting Field Force positioning system, localization method and detection positioning device |
-
2019
- 2019-04-18 CN CN201910312883.2A patent/CN110062336B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8750797B2 (en) * | 2008-07-22 | 2014-06-10 | Nissaf Ketari | Proximity access and alarm apparatus |
CN105075154A (en) * | 2013-02-27 | 2015-11-18 | 索尼公司 | A relay device, method and computer program |
CN103559649A (en) * | 2013-11-01 | 2014-02-05 | 国家电网公司 | Power grid disaster early-warning method and system |
US10181256B2 (en) * | 2016-03-18 | 2019-01-15 | Linctronix Ltd. | Multiple target locating and alarming system |
CN108091114A (en) * | 2016-11-23 | 2018-05-29 | 杭州海康威视系统技术有限公司 | A kind of method and apparatus for showing alert information |
CN207233144U (en) * | 2017-08-10 | 2018-04-13 | 福州中优奕信息技术服务有限公司 | Bluetooth management terminal, wireless fire disaster detector and detection device |
CN108898247A (en) * | 2018-06-22 | 2018-11-27 | 国网湖南省电力有限公司 | A kind of power grid Rainfall Disaster Risk Forecast Method, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110062336A (en) | 2019-07-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN202887373U (en) | Fire risk monitoring system in building | |
FI20000444A0 (en) | Method for checking the amount of transmitted data | |
CN203588424U (en) | Voice broadcaster and voice broadcasting system | |
CN110111523A (en) | A kind of fire-fighting Internet of Things signal imitation Transmission system | |
CN203206478U (en) | Dual mode communication data forwarding unit device | |
CN102289913B (en) | Geological disaster monitoring, early warning and emergency command system | |
CN110062336B (en) | Broadcasting method and device for air defense and disaster prevention alarm, electronic equipment and storage medium | |
CN110794971A (en) | Remote control equipment and system | |
CN105635978A (en) | Method for realizing wireless positioning in building | |
CN204733268U (en) | Based on the all-digital visible talkback system of cloud service | |
CN101783932B (en) | Remote control monitoring system and monitoring method | |
CN205681581U (en) | A kind of terrestrial DTV emergency advance warning information system | |
CN103020717A (en) | Weather information early warning publishing platform | |
CN111953373B (en) | Broadcast type message communication device based on 433MHz | |
CN204216909U (en) | Special service system information safety device | |
CN116192313A (en) | Broadcast control method, broadcast access device and emergency broadcast system | |
CN209657470U (en) | A kind of anti-air-raid and disaster-preventing alert device | |
CN201114061Y (en) | Gathering type residence wireless transmission and control device | |
CN205068684U (en) | Household security electronic monitoring system | |
CN103106885A (en) | Meteorological information early warning display terminal | |
CN201927138U (en) | Terminal equipment based on large-screen image display screen for displaying early warning information of air situations and disaster situations | |
CN202696790U (en) | Digital wireless image and positioning monitoring device | |
CN105406997B (en) | Initialization configuration method and system for indoor unit system | |
CN204390255U (en) | The internet of things equipment signal conditioning package of a kind of public security bureau internal proprietary | |
JP7284798B2 (en) | Device control system and device control method |
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 |