A method and device for broadcasting security warning information
By directly connecting the early warning information playback device in the security system to perform network communication mode recognition, server startup and security verification, the problems of early warning information playback delay and resource consumption in the existing technology are solved, and real-time output and wide application are achieved.
Patent Information
- Application Number
- CN202311852719.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2043-12-29
AI Technical Summary
In existing security systems, early warning information requires the participation of external application software for normal sound conversion and voice playback, resulting in increased time and resource consumption, delayed alarm voice playback, and limited application scenarios.
By identifying the network communication mode selected by the user, the corresponding server is started, the warning information is obtained, and security verification is performed, including ID verification, signature verification and message template verification. After passing the verification, the warning information is converted into an audio signal for playback, directly Interface with sound-generating devices to avoid the involvement of external software.
It reduces the time and resource consumption of installing external software, improves the efficiency of alarm voice playback, expands the scope of application, and realizes real-time output of early warning information.
Smart Images

Figure CN117912168B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data communication, and specifically designs a method and a device for broadcasting security warning information. Background Art
[0002] In the process of implementing the present invention, the applicant found that there are at least the following problems in the prior art: in the existing security system environment, when processing the information sent by various warning devices, external application software is required to convert the warning information into normal sound and voice playback, which not only increases the time and resource consumption of installing external software, but also may cause delayed playback of the alarm voice, limiting the application scenarios. Summary of the invention
[0003] The embodiments of the present invention provide a method and device for broadcasting security warning information to solve the problems in the above-mentioned prior art that the warning information needs to be converted and played back through external application software, which leads to time and resource consumption, delayed playback of alarm voice and limited application scenarios.
[0004] To achieve the above-mentioned purpose, on the one hand, an embodiment of the present invention provides a method for broadcasting security warning information, comprising:
[0005] Identify the network communication mode selected by the user;
[0006] Start the corresponding server according to the selected network communication mode to obtain early warning information;
[0007] Performing security verification on the warning information to obtain a valid warning message;
[0008] Converting the effective warning message into an audio signal, and transmitting the audio signal to an audio output device for playing;
[0009] The security verification of the warning information to obtain a valid warning message includes:
[0010] First, confirm whether the sound device ID matches. If it does, the verification is successful.
[0011] Secondly, confirm whether the signature carried by the message header or body is consistent with the signature of the sound device key on the warning message. If they are consistent, the verification is successful;
[0012] Finally, confirm whether the information message format is consistent with the message template preset by the sound-emitting device. If they are consistent, the verification is successful.
[0013] On the other hand, an embodiment of the present invention further provides a device for broadcasting security warning information, comprising:
[0014] An identification module, used to identify the network communication mode selected by the user;
[0015] A startup module, used to start the corresponding server according to the selected network communication mode and obtain early warning information;
[0016] A security verification module is used to perform security verification on the warning information to obtain a valid warning message;
[0017] A conversion module, used for converting the effective early warning message into an audio signal, and transmitting the audio signal to an audio output device for playing;
[0018] The security verification module comprises:
[0019] ID verification module, used to confirm whether the sound device ID matches. If it matches, the verification is successful;
[0020] The signature verification module is used to confirm whether the signature carried by the message header or the body is consistent with the signature of the sound device secret key on the warning message. If they are consistent, the verification is passed;
[0021] The message template verification module is used to confirm whether the information message format is consistent with the message template preset by the sound device. If they are consistent, the verification is passed.
[0022] The above technical scheme has the following beneficial effects: the present invention provides a method and device for broadcasting security warning information, in which the warning information playback device (sound device) is directly connected to the security warning system, and the specific steps are: the sound device first determines the network communication mode, and then starts the corresponding server according to the network communication mode, and sends the warning information directly to the warning information playback device, and the warning information playback device performs ID verification, signature verification, message template verification and other security verifications on the warning information in turn, and converts the warning information and outputs the sound in real time after the verification is passed. The present invention does not need to install external application software, reduces the time and resource consumption of installing external software, is easy to operate, and at the same time improves the efficiency of alarm voice playback, and has a wider range of applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 It is a flow chart of a method for broadcasting security warning information of the present invention;
[0025] Figure 2 It is a structural block diagram of a broadcasting device for security warning information of the present invention;
[0026] Figure 3 This is a first example diagram of a method for broadcasting security warning information according to the present invention;
[0027] Figure 4 This is a second example diagram of a method for broadcasting security warning information according to the present invention. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] like Figure 1 As shown, an embodiment of the present invention provides a method for broadcasting security warning information, comprising:
[0030] S101, identifying a network communication mode selected by a user;
[0031] S102, starting a corresponding server according to the selected network communication mode to obtain warning information;
[0032] S103, performing security verification on the warning information to obtain a valid warning message;
[0033] S104, converting the effective early warning message into an audio signal, and transmitting the audio signal to an audio output device for playing;
[0034] The S103 includes:
[0035] First, confirm whether the sound device ID matches. If it does, the verification is successful.
[0036] Secondly, confirm whether the signature carried by the message header or body is consistent with the signature of the sound device key on the warning message. If they are consistent, the verification is successful;
[0037] Finally, confirm whether the information message format is consistent with the message template preset by the sound-emitting device. If they are consistent, the verification is successful.
[0038] Further, the confirmation of whether the sound device ID matches, if it matches, the verification is passed, specifically includes:
[0039] Confirm that the first thirty-two digits of each sounding device match;
[0040] If they match, then further confirm whether the last four digits of each sound-emitting device match;
[0041] The sound device ID consists of thirty-six uppercase letters and numbers.
[0042] Furthermore, converting the effective early warning message into an audio signal comprises:
[0043] If it is a simple text, the simple text is converted into an audio signal through the built-in TTS;
[0044] If the text includes Unicode, the text including Unicode is converted into Chinese characters through built-in Unicode, and then the Chinese characters are converted into audio signals through TTS;
[0045] If it is an Internet audio URL, the http client is started to extract the remote audio file corresponding to the Internet audio URL, and the remote audio file that meets the set requirements is converted into an audio signal.
[0046] Furthermore, starting the corresponding server according to the selected network communication mode to obtain the warning information includes:
[0047] The network communication mode selected by the user includes a wired network communication mode and a wireless network communication mode;
[0048] If it is wired network communication mode, start the HTTP server to obtain warning information;
[0049] If it is wireless network communication mode, start the MQTT client and connect to the MQTT server to obtain warning information.
[0050] Furthermore, the method further includes: adjusting the play order of the corresponding audio signals in the audio output device according to the priority of the audio signals.
[0051] like Figure 2 As shown, an embodiment of the present invention provides a device for broadcasting security warning information, comprising:
[0052] An identification module 21, used to identify the network communication mode selected by the user;
[0053] A startup module 22, used to start the corresponding server according to the selected network communication mode to obtain early warning information;
[0054] A security verification module 23 is used to perform security verification on the warning information to obtain a valid warning message;
[0055] The conversion module 24 is used to convert the effective warning message into an audio signal, and transmit the audio signal to an audio output device for playing;
[0056] The security verification module 23 includes:
[0057] ID verification module, used to confirm whether the sound device ID matches. If it matches, the verification is successful;
[0058] The signature verification module is used to confirm whether the signature carried by the message header or the body is consistent with the signature of the sound device secret key on the warning message. If they are consistent, the verification is passed;
[0059] The message template verification module is used to confirm whether the information message format is consistent with the message template preset by the sound device. If they are consistent, the verification is passed.
[0060] Furthermore, the ID verification module is specifically used for:
[0061] Confirm that the first thirty-two digits of each sounding device match;
[0062] If they match, then further confirm whether the last four digits of each sound-emitting device match;
[0063] The sound device ID consists of thirty-six uppercase letters and numbers.
[0064] Furthermore, in the conversion module, the conversion of the effective early warning message into an audio signal is specifically used for:
[0065] If it is a simple text, the simple text is converted into an audio signal through the built-in TTS;
[0066] If the text includes Unicode, the text including Unicode is converted into Chinese characters through built-in Unicode, and then the Chinese characters are converted into audio signals through TTS;
[0067] If it is an Internet audio URL, the http client is started to extract the remote audio file corresponding to the Internet audio URL, and the remote audio file that meets the set requirements is converted into an audio signal.
[0068] Furthermore, the startup module is specifically used for:
[0069] The network communication mode selected by the user includes a wired network communication mode and a wireless network communication mode;
[0070] If it is wired network communication mode, start the HTTP server to obtain warning information;
[0071] If it is wireless network communication mode, start the MQTT client and connect to the MQTT server to obtain warning information.
[0072] Furthermore, the broadcasting device further includes:
[0073] The adjustment module is used to adjust the play order of the corresponding audio signal in the audio output device according to the priority of the audio signal.
[0074] The following combination Figure 3 and Figure 4 The specific application examples shown are used to explain the above technical solutions of the embodiments of the present invention in detail. For technical details not introduced during the implementation process, please refer to the relevant descriptions above.
[0075] The present invention relates to a security system environment in which information sent by various early warning devices is directly or indirectly transmitted to the device through a network, and converted into sound and broadcast in the device. In the whole process, no external application software is required to participate in work other than transmission. The broadcast device in the present invention needs to be equipped with an RJ45 interface for initialization settings; it can be optionally equipped with an Internet of Things card so that it can work through the Internet of Things card in a non-Ethernet environment.
[0076] The present invention provides a method for broadcasting security warning information, which converts the warning information and outputs the sound in real time through a sound-generating device (warning information broadcasting device). Figure 3 As shown, the sound device can be directly connected to the security warning system. The connection method can be through 4G Internet of Things; it can also be connected through the enterprise's internal wired network. Each sound device has a unique ID, and duplication is prohibited. The specific steps (combined with Figure 4 As shown) as follows:
[0077] A1. Users adopt the wireless IoT communication mode: users are required to send the alarm information issued by their alarm devices to the authorized MQTT cloud service through MQTT, and then set the client of the broadcasting device to subscribe to the message. When the sound device receives the warning information, it will immediately process it and make a sound broadcast.
[0078] A2. The user adopts the Ethernet communication mode: the user needs to send the alarm information issued by the user's alarm device directly to the sound device through the HTTP POST protocol. The sound device can then start processing the warning information and make a sound broadcast.
[0079] A3. The sound device first determines the network mode. You can set the switch by setting the paddle, or detect whether there is an RJ45 crystal plug inserted, whether there is a SIM card inserted and connected to the network. If it is a wired network mode, start the built-in HTTP server to listen for incoming alarm information. If it is a wireless network mode, start the MQTT client, connect to the MQTT server according to the configuration, and subscribe to the alarm information. (The initial configuration is to connect the device directly to the network cable, activate the device through the network browser, and perform relevant configurations).
[0080] A4. The sound-emitting device performs security verification on the input warning information to exclude interfering or deceptive network information. First, confirm whether the information is valid. (i) Whether the message destination device ID matches. The ID of each sound-emitting device is unique, consisting of 36 uppercase letters and numbers. The first 32 bits are converted through UUID (Universally Unique Identifier) and are unique. The last four bits are the group customer label code, which is used to limit the scope of use and readable identification; (ii) Whether the signature carried by the message header or body is consistent with the signature obtained by signing the message with the secret key issued by the sound-emitting device; (iii) Whether the information message format is consistent with the message template preset by the sound-emitting device. The verification of the secret key signature and message format can be customized and is optional. Only messages that have passed security verification can proceed to the next step, otherwise they will be discarded.
[0081] A5. The sound device identifies effective early warning messages. (i) If it is simple text, it will be converted into voice audio through the built-in TTS conversion service and output to the speaker for sound. (ii) If it contains Unicode, it will be converted into Chinese characters through the built-in Unicode conversion service, and then converted into voice audio through the TTS (a speech synthesis technology) conversion service and output to the speaker for sound. (iii) If it is a network audio URL, the http client will be started to extract the remote audio file, and the file size will be judged. Audio files (MP3 and AMR) smaller than the set value will be converted into audio and output to the speaker for sound.
[0082] A6. The sound device is equipped with a speaker. The priority of the audio being played can be determined; if the subsequent audio is higher than the previous one being played, the current one will be stopped and the audio with the higher priority will be played immediately. If the priorities are the same, they will wait in line.
[0083] The present invention relates to a security system environment in which information sent by various early warning devices is directly or indirectly transmitted to the device through a network, and converted into sound and broadcast in the device. In the whole process, no external application software is required to participate in work other than transmission. When the sound-generating device receives the early warning information, it immediately performs information security verification processing and quickly broadcasts the sound according to the result. The response is fast, which is convenient for users to receive the alarm information in time. In addition, the present invention is easy to operate and has a wider range of applications.
[0084] It should be understood that the specific order or hierarchy of steps in the disclosed process is an example of an exemplary method. Based on design preferences, it should be understood that the specific order or hierarchy of steps in the process can be rearranged without departing from the scope of protection of the present disclosure. The attached method claims present the elements of the various steps in an exemplary order and are not intended to be limited to the specific order or hierarchy described.
[0085] In the above detailed description, various features are grouped together in a single embodiment to simplify the disclosure. This method of disclosure should not be interpreted as reflecting an intention that the embodiments of the claimed subject matter require more features than are clearly stated in each claim. On the contrary, as reflected in the appended claims, the invention is in a state of having less than all the features of the disclosed individual embodiments. Therefore, the appended claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
[0086] The disclosed embodiments are described above to enable any person skilled in the art to implement or use the present invention. Various modifications of these embodiments are obvious to those skilled in the art, and the general principles defined herein may also be applied to other embodiments without departing from the spirit and scope of the present disclosure. Therefore, the present disclosure is not limited to the embodiments given herein, but is consistent with the broadest scope of the principles and novel features disclosed in this application.
[0087] The above description includes examples of one or more embodiments. Of course, it is impossible to describe all possible combinations of components or methods for the purpose of describing the above embodiments, but it should be recognized by those skilled in the art that the various embodiments may be further combined and arranged. Therefore, the embodiments described herein are intended to cover all such changes, modifications and variations that fall within the scope of protection of the appended claims. In addition, with respect to the term "comprising" used in the specification or claims, the word is covered in a manner similar to the term "including", just as "including," is explained as a transitional word in the claims. In addition, any term "or" used in the specification of the claims is intended to mean "non-exclusive or".
[0088] Those skilled in the art may also understand that the various illustrative logical blocks, units, and steps listed in the embodiments of the present invention may be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly demonstrate the interchangeability of hardware and software, the various illustrative components, units, and steps described above have generally described their functions. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the described functions for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present invention.
[0089] The various illustrative logic blocks or units described in the embodiments of the present invention can be implemented or operated by a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of the above. The general-purpose processor can be a microprocessor, and optionally, the general-purpose processor can also be any conventional processor, controller, microcontroller or state machine. The processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration.
[0090] The steps of the method or algorithm described in the embodiments of the present invention can be directly embedded in hardware, a software module executed by a processor, or a combination of the two. The software module can be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or other storage media of any form in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and the storage medium can be arranged in an ASIC, and the ASIC can be arranged in a user terminal. Optionally, the processor and the storage medium can also be arranged in different components in the user terminal.
[0091] In one or more exemplary designs, the above functions described in the embodiments of the present invention can be implemented in hardware, software, firmware or any combination of the three. If implemented in software, these functions can be stored on a computer-readable medium, or transmitted in the form of one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media that facilitate the transfer of computer programs from one place to another. The storage medium can be any available medium that can be accessed by any general or special computer. For example, such computer-readable media can include but are not limited to RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that can be used to carry or store program codes in the form of instructions or data structures and other forms that can be read by general or special computers, or general or special processors. In addition, any connection can be appropriately defined as a computer-readable medium, for example, if the software is transmitted from a website site, server or other remote resource through a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wirelessly, such as infrared, wireless and microwave, it is also included in the defined computer-readable medium. The disk and disc include compact disk, laser disk, optical disk, DVD, floppy disk and blue-ray disk. Disks usually copy data magnetically, while discs usually copy data optically with lasers. The above combination can also be included in computer readable media.
[0092] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for broadcasting security warning information, It is characterized in that include: Identify the network communication mode selected by the user; According to the selected network communication mode, the corresponding server is started to obtain the warning information, including: the network communication mode selected by the user includes a wired network communication mode and a wireless network communication mode; if it is a wired network communication mode, the HTTP server is started to obtain the warning information; if it is a wireless network communication mode, the MQTT client is started and connected to the MQTT server to obtain the warning information; Performing security verification on the warning information to obtain a valid warning message; Converting the effective warning message into an audio signal, and transmitting the audio signal to an audio output device for playing; The security verification of the warning information to obtain a valid warning message includes: First, confirm whether the sound device ID matches. If it does, the verification is successful. Secondly, confirm whether the signature carried by the message header or body is consistent with the signature of the sound device key on the warning message. If they are consistent, the verification is successful; Finally, confirm whether the information message format is consistent with the message template preset by the sound-emitting device. If they are consistent, the verification is successful.
2. A method for broadcasting security warning information according to claim 1, It is characterized in that The step of confirming whether the sound device ID matches or not, if it matches, the verification is successful, specifically includes: Confirm that the first thirty-two digits of each sounding device match; If they match, then further confirm whether the last four digits of each sound-emitting device match; The sound device ID consists of thirty-six uppercase letters and numbers.
3. A method for broadcasting security warning information according to claim 1, It is characterized in that The step of converting the effective early warning message into an audio signal comprises: If it is a simple text, the simple text is converted into an audio signal through the built-in TTS; If the text includes Unicode, the text including Unicode is converted into Chinese characters through built-in Unicode, and then the Chinese characters are converted into audio signals through TTS; If it is an Internet audio URL, the http client is started to extract the remote audio file corresponding to the Internet audio URL, and the remote audio file that meets the set requirements is converted into an audio signal.
4. A method for broadcasting security warning information according to claim 1, It is characterized in that Also includes: The playing order of the corresponding audio signal in the audio output device is adjusted according to the priority of the audio signal.
5. A device for broadcasting security warning information, It is characterized in that include: An identification module, used to identify the network communication mode selected by the user; A startup module is used to start the corresponding server according to the selected network communication mode to obtain warning information; the startup module is specifically used for: the network communication mode selected by the user includes a wired network communication mode and a wireless network communication mode; if it is a wired network communication mode, then start the HTTP server to obtain warning information; if it is a wireless network communication mode, then start the MQTT client and connect to the MQTT server to obtain warning information; A security verification module is used to perform security verification on the warning information to obtain a valid warning message; A conversion module, used for converting the effective early warning message into an audio signal, and transmitting the audio signal to an audio output device for playing; The security verification module comprises: ID verification module, used to confirm whether the sound device ID matches. If it matches, the verification is successful; The signature verification module is used to confirm whether the signature carried by the message header or the body is consistent with the signature of the sound device secret key on the warning message. If they are consistent, the verification is passed; The message template verification module is used to confirm whether the information message format is consistent with the message template preset by the sound device. If they are consistent, the verification is passed.
6. A security warning information broadcasting device according to claim 5, It is characterized in that The ID verification module is specifically used for: Confirm that the first thirty-two digits of each sounding device match; If they match, then further confirm whether the last four digits of each sound-emitting device match; The sound device ID consists of thirty-six uppercase letters and numbers.
7. A security warning information broadcasting device according to claim 5, It is characterized in that In the conversion module, the conversion of the effective early warning message into an audio signal is specifically used for: If it is a simple text, the simple text is converted into an audio signal through the built-in TTS; If the text includes Unicode, the text including Unicode is converted into Chinese characters through built-in Unicode, and then the Chinese characters are converted into audio signals through TTS; If it is an Internet audio URL, the http client is started to extract the remote audio file corresponding to the Internet audio URL, and the remote audio file that meets the set requirements is converted into an audio signal.
8. A security warning information broadcasting device according to claim 5, It is characterized in that Also includes: The adjustment module is used to adjust the play order of the corresponding audio signal in the audio output device according to the priority of the audio signal.
