CN110691164A - Method and system for realizing emergency broadcast based on mobile phone terminal - Google Patents

Method and system for realizing emergency broadcast based on mobile phone terminal Download PDF

Info

Publication number
CN110691164A
CN110691164A CN201910760297.4A CN201910760297A CN110691164A CN 110691164 A CN110691164 A CN 110691164A CN 201910760297 A CN201910760297 A CN 201910760297A CN 110691164 A CN110691164 A CN 110691164A
Authority
CN
China
Prior art keywords
emergency
instruction
basic
information
mobile phone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910760297.4A
Other languages
Chinese (zh)
Inventor
万志卫
孔俊杰
向丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Konka Information Network Co Ltd
Original Assignee
Shenzhen Konka Information Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Konka Information Network Co Ltd filed Critical Shenzhen Konka Information Network Co Ltd
Priority to CN201910760297.4A priority Critical patent/CN110691164A/en
Publication of CN110691164A publication Critical patent/CN110691164A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72418User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H20/00Arrangements for broadcast or for distribution combined with broadcast
    • H04H20/53Arrangements specially adapted for specific applications, e.g. for traffic information or for mobile receivers
    • H04H20/59Arrangements specially adapted for specific applications, e.g. for traffic information or for mobile receivers for emergency or urgency
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72418User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services
    • H04M1/72421User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services with automatic activation of emergency service functions, e.g. upon sensing an alarm

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the technical field of broadcast communication, and provides a method and a system for realizing emergency broadcast based on a mobile phone terminal, wherein the method comprises the following steps: receiving an emergency signal sent by an emergency early warning platform; analyzing the emergency signal to obtain a data analysis result, wherein the data analysis result comprises an emergency data packet and a processing instruction, and the processing instruction comprises a playing instruction; when the processing instruction is a playing instruction, extracting emergency content contained in the emergency data packet according to a preset extraction mode to obtain a content extraction result; and playing the content extraction result by executing the playing instruction so as to enable the terminal user to obtain the emergency prompt in time. The method and the system have the advantages of simple operation, low development and construction cost and high use coverage rate, can ensure the timeliness of receiving the emergency prompt by the user, can save the development cost and enhance the emergency early warning efficiency of the emergency broadcast.

Description

Method and system for realizing emergency broadcast based on mobile phone terminal
Technical Field
The invention relates to the technical field of broadcast communication, in particular to a method and a system for realizing emergency broadcast based on a mobile phone terminal.
Background
The traditional emergency broadcast is an important authoritative channel and an important means for releasing emergency information to the public, providing information service and assisting disaster relief and rescue by the government in a broadcast mode when sudden public events such as natural disasters, accident disasters, public health, social security and the like occur. The traditional emergency broadcast receiving terminal is used for receiving daily broadcast and emergency broadcast signals and is an important component of a traditional emergency broadcast system, the existing receiving terminal is mainly a special emergency broadcast receiving terminal and a public receiving terminal, the existing emergency broadcast receiving terminal is small in coverage area and less in audience due to the fact that the special emergency broadcast receiving terminal is few in actual deployment, and is difficult to transmit emergency information to the masses in time when an emergency event occurs.
Disclosure of Invention
Therefore, it is necessary to provide a method and a system for implementing emergency broadcast based on a mobile phone terminal to solve the problems of high development and construction costs of the conventional emergency broadcast method and the failure of effective guarantee during broadcast emergency.
A method for realizing emergency broadcast based on a mobile phone terminal comprises the following steps:
receiving an emergency signal sent by an emergency early warning platform, wherein the emergency signal carries an emergency data packet;
analyzing the emergency signal to obtain a data analysis result, wherein the data analysis result comprises emergency basic information and a processing instruction corresponding to the emergency basic information, and the processing instruction comprises a playing instruction;
when the processing instruction is a playing instruction, extracting emergency content contained in the emergency data packet according to a preset extraction mode to obtain a content extraction result;
and playing the content extraction result by executing the playing instruction so as to enable the terminal user to obtain the emergency prompt in time.
A system for realizing emergency broadcast based on a mobile phone terminal comprises:
the background service module is used for receiving an emergency signal sent by the emergency early warning platform, wherein the emergency signal carries an emergency data packet;
the command analysis module is used for analyzing the emergency signal to obtain a data analysis result, wherein the data analysis result comprises emergency basic information and a processing command corresponding to the emergency basic information, and the processing command comprises a playing command;
the resource playing module is used for extracting emergency content contained in the emergency data packet according to a preset extraction mode when the processing instruction is a playing instruction, so as to obtain a content extraction result;
and the foreground prompting module is used for playing the content extraction result by executing the playing instruction so as to enable the terminal user to obtain the emergency prompt in time.
According to the method and the system for realizing the emergency broadcast based on the mobile phone terminal, the omission of the emergency signal can be avoided by detecting the emergency signal in real time, and the timely receiving of the emergency signal is ensured; when an emergency signal sent by an emergency early warning platform is received, a built-in application program of the mobile phone terminal automatically analyzes the received emergency signal to obtain a corresponding emergency data packet and a processing instruction, and further extracts the content of the emergency data packet according to the processing instruction and a preset extraction mode, so that the integrity and the accuracy of the acquired emergency content can be ensured; and then, the content extraction result of the emergency content is played, so that a terminal user can obtain an emergency prompt in time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic diagram of an application environment of a method for implementing emergency broadcast based on a mobile phone terminal according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for implementing emergency broadcasting based on a mobile phone terminal according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating an implementation of step S2 in the method for implementing emergency broadcast based on the mobile phone terminal according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating an implementation of step S22 in the method for implementing emergency broadcast based on the mobile phone terminal according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating an implementation of step S3 in the method for implementing emergency broadcast based on the mobile phone terminal according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating an implementation of detecting an emergency signal in a method for implementing emergency broadcasting based on a mobile phone terminal according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a system for implementing emergency broadcasting based on a mobile phone terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 shows an application environment provided in an embodiment of the present invention, where the application environment includes a server and a client, where the server and the client are connected through a network, the server is configured to obtain an emergency signal and send the obtained emergency signal to the client for processing, the client is configured to process data of the obtained emergency signal, and the server may specifically be implemented by an independent server or a server cluster formed by multiple servers; the client may specifically be, but not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The method for realizing emergency broadcasting based on the mobile phone terminal provided by the embodiment of the invention is applied to the client.
Referring to fig. 2, fig. 2 shows an implementation flow of the method for implementing emergency broadcast based on a mobile phone terminal according to this embodiment. The details are as follows:
s1: and receiving an emergency signal sent by the emergency early warning platform, wherein the emergency signal carries an emergency data packet.
In this embodiment, the emergency early warning platform may specifically be an emergency information issuing platform such as a broadcasting station, a weather monitoring center, an emergency office, and the like; the emergency signal is a string of digital instructions consisting of 0 and 1 written by the emergency early warning platform according to an IP transmission protocol so as to reduce data loss of the emergency signal in the transmission process and enhance the security effect of the emergency signal, and each emergency signal corresponds to an emergency data packet for storing a large amount of emergency content and reducing data loss of the emergency content in the transmission process.
Specifically, the mobile phone terminal establishes a connection relation with the emergency early warning platform through a wireless communication network, accurately captures an emergency signal sent by the emergency early warning platform through the established network connection, and acquires an emergency data packet corresponding to the emergency signal so as to ensure the timeliness of acquiring the emergency signal.
S2: and analyzing the emergency signal to obtain a data analysis result, wherein the data analysis result comprises emergency basic information and a processing instruction corresponding to the emergency basic information, and the processing instruction comprises a playing instruction.
In this embodiment, the emergency basic information refers to a brief information description of the emergency signal obtained by decoding the acquired emergency signal by the mobile phone terminal, so that the mobile phone terminal can quickly analyze the emergency signal; the processing instruction corresponding to the emergency basic information is used for facilitating an application program in a subsequent mobile phone terminal to accurately perform corresponding instruction operation on the acquired emergency signal and the emergency data packet according to the processing instruction so as to ensure the processing efficiency of the emergency signal and enhance the emergency early warning efficiency of emergency broadcasting.
Specifically, the emergency signal is analyzed, specifically, a data signal conversion program built in the mobile phone terminal is adopted to convert the acquired emergency signal into a data signal, so that the subsequent data stream in the data signal can be conveniently and quickly read, furthermore, an existing data editor can be adopted to translate the data stream in the data signal into corresponding emergency basic information, then, traversal is performed in an instruction database, a processing instruction corresponding to the emergency basic information is searched, the processing instruction comprises a playing instruction and a non-playing instruction, so that an application program in the mobile phone terminal can further perform instruction operation on the acquired emergency signal according to the processing instruction, the processing efficiency of the emergency signal is ensured, and the emergency early warning efficiency of emergency broadcasting is enhanced.
S3: and when the processing instruction is a playing instruction, extracting the emergency content contained in the emergency data packet according to a preset extraction mode to obtain a content extraction result.
Specifically, when the processing instruction is a play instruction, extracting the emergency content included in the emergency data packet according to a preset extraction manner, where the preset extraction manner may specifically be processing by using an analysis class library Tika tool or other tools, and is not limited herein.
Preferably, the extraction of emergency content contained in the emergency data package is performed by using a Tika tool, which is a library for file type detection, extraction of content from files or data packages of various formats, and uses various file or data package parsers and document type detection techniques to detect and extract data, and provides a general Application Programming Interface (API) for parsing different file or data package formats, by providing a common API for detecting and extracting data in a plurality of file formats or data packets, the integrity of the content in the read file or data packet can be ensured, meanwhile, the format conversion of the data extracted into various file formats is carried out by adopting the internal plug-in, so that the irregular content formats can be converted into the unified preset content formats, the processing efficiency of the emergency content can be improved, and the emergency early warning efficiency of the emergency broadcast can be enhanced to a certain extent.
S4: and playing the content extraction result by executing the playing instruction so as to enable the terminal user to obtain the emergency prompt in time.
Specifically, the content extraction result is played by executing the playing instruction, wherein the playing mode of the content extraction result specifically can be an emergency prompt mode matched with the content extraction result obtained according to the content type of the content extraction result, such as audio, video and character types, and specifically can be a notification bar, an interface, vibration, voice broadcast or video mode and the like to notify the terminal user, so that the terminal user can watch and listen to the emergency broadcast message in time in various notification modes, the timeliness of issuing the emergency broadcast message is ensured, and the emergency early warning efficiency of the emergency broadcast is enhanced.
In the embodiment, the emergency broadcast signals are detected in real time, so that omission of the emergency signals can be avoided, and timely receiving of the emergency signals is guaranteed; when an emergency signal sent by an emergency early warning platform is received, a built-in application program of the mobile phone terminal automatically analyzes the received emergency signal to obtain a corresponding emergency data packet and a processing instruction, and further extracts the content of the emergency data packet according to the processing instruction and a preset extraction mode, so that the integrity and the accuracy of the acquired emergency content can be ensured; and then, the content extraction result of the emergency content is played, so that a terminal user can obtain an emergency prompt in time.
In an embodiment, as shown in fig. 3, the analyzing the emergency signal in step S2 to obtain the data analysis result specifically includes the following steps:
s21: and converting the acquired emergency signal according to an IP transmission protocol to obtain basic emergency information corresponding to the emergency signal.
In this embodiment, the IP transmission protocol refers to annex D (normative annex) IP communication protocol of an emergency broadcast loud-speaker system in the technical specification 0831 document of the emergency broadcast loud-speaker system published by the national broadcast television central office, and since emergency signals acquired by the mobile phone terminal are a string of digital instructions composed of 0 and 1 written by the emergency early warning platform according to the IP transmission protocol, an application program in the mobile phone terminal can also be set to accurately translate or convert the acquired emergency signals according to the IP transmission protocol.
Specifically, after the emergency signal is acquired in step S1, the mobile phone terminal may convert the acquired emergency signal according to a built-in application program and an IP transmission protocol, and accurately convert a digital instruction in the emergency signal into emergency data information, where the emergency data information is used as basic emergency information corresponding to the emergency signal, and thus, accuracy of the acquired basic emergency information can be ensured.
S22: and extracting keywords from the basic emergency information to obtain emergency keywords of the basic emergency information.
Specifically, the extraction method for extracting the keywords from the basic emergency information may specifically be to perform word segmentation processing on the basic emergency information by using an IK word segmentation algorithm, or to match words contained in the basic emergency information with preset keywords, and may be through condition matching, or may be through other matching methods, where this is not a limitation, and where the conditions in the condition matching may be set according to actual application requirements, and this is not a limitation.
Preferably, the matching method adopted in this embodiment is condition matching, and the process of condition matching may specifically be determining whether the word included in the basic emergency information is the same as the word meaning of the preset keyword according to a preset word library, where the preset word library defines a near-sense word set corresponding to each keyword, for example, the near-sense word set of "emergency" includes "critical", "urgent", and the like, the near-sense word set of "disaster" includes "disaster", and the like, and if the word included in the basic emergency information belongs to the near-sense word set of the preset keyword, it is determined that the word included in the basic emergency information is the same as the word meaning of the keyword, that is, matching is successful; the process of condition matching may also be a text similarity between a word included in the basic emergency information and a preset keyword, and if the text similarity is greater than or equal to a preset similarity threshold, the matching is successful, where the preset similarity threshold may specifically be 80%, or may be other numerical values, and specifically may be set according to the actual application requirements, which is not limited here.
S23: and acquiring a processing instruction corresponding to the emergency keyword from a preset keyword instruction set.
In this embodiment, the preset keyword instruction set includes a preset keyword and an operation instruction corresponding to the preset keyword; the processing instruction corresponding to the emergency keyword comprises a playing instruction and a non-playing instruction; the playing instruction is to require the mobile phone terminal to perform emergency processing on an emergency data packet corresponding to the acquired emergency signal so that a terminal user can acquire corresponding emergency information in time; the non-playing instruction comprises instructions such as terminal heartbeat or parameter setting, and the mobile phone terminal can directly carry out heartbeat setting and parameter configuration storage or adjustment on parameters of the mobile phone terminal according to the non-playing instruction.
Specifically, according to the emergency keyword extracted in step S22, traversal may be performed in a preset keyword instruction set, and when a preset keyword consistent with the emergency keyword is found in the preset keyword instruction set, an operation instruction corresponding to the preset keyword is obtained, and the operation instruction is used as a processing instruction corresponding to the emergency keyword.
In this embodiment, the acquired emergency signal is converted according to the IP transport protocol to obtain basic emergency information corresponding to the emergency signal, so that the accuracy of the acquired basic emergency information can be ensured; and then, the keywords of the basic emergency information are accurately extracted to obtain the emergency keywords of the basic emergency information, and then, the processing instruction corresponding to the emergency keywords is obtained from the preset keyword instruction set, so that the subsequent mobile phone terminal can conveniently perform corresponding instruction operation according to the processing instruction, the processing efficiency of the emergency signal is improved, and the emergency early warning efficiency of the emergency broadcast is enhanced.
In an embodiment, as shown in fig. 4, the analyzing the emergency signal in step S22 to obtain the data analysis result specifically includes the following steps:
s221: and performing word segmentation processing on the basic emergency information according to a preset word segmentation method to obtain basic words.
In this embodiment, the preset word segmentation method may specifically be an IK word segmentation algorithm in an application program built in the mobile phone terminal, that is, a forward iteration finest granularity segmentation algorithm, and may also adopt other word segmentation methods, and may specifically be selected according to actual application requirements, which is not limited herein.
Specifically, the data information punctuation marks and stop words are removed from the basic emergency information obtained in step S21, then the basic emergency information is split into independent words, and the independent words are used as basic words corresponding to the basic emergency information, where the stop words are common Chinese stop words, such as "one-to-one", "in case" and "down", and the like, which is beneficial to ensuring that the word obtained by the word segmentation process is a single, meaningful and complete word.
S222: and carrying out duplicate removal processing on the basic words to obtain single words.
In this embodiment, the deduplication processing may be implemented by a tool with a deduplication function, for example, a deduplication plug-in a mobile phone terminal is adopted, or a corresponding tool is selected according to an actual application requirement, which is not limited herein.
Specifically, after the basic words are obtained in the traversal step S221, the repeated words are screened out and deleted to obtain single words, so that the single words are unique, the use of the storage space of the mobile phone terminal is reduced, the establishment and management of the application program of the mobile phone terminal are facilitated, and meanwhile, in the subsequent search, redundant repetition can be effectively avoided, the workload of a machine is reduced, and the search efficiency and the processing efficiency of the urgent basic information are improved.
S223: and according to a preset word format, carrying out format conversion on the single word to obtain the emergency keyword.
In this embodiment, the preset word format may specifically be a root lowercase format of an english word, but is not limited thereto, and may specifically be set according to an actual application requirement, and is not limited herein.
The format conversion mode for the single vocabulary unit may be a language processing plug-in the mobile phone terminal, or other plug-ins, which is not limited herein.
Specifically, the step S222 is traversed to obtain a single word, if the preset word format is the root lowercase format of the english word, the english word in the word is recognized, the uppercase format appearing in the english word is converted into the lowercase format, and the english word in the lowercase format is converted into the root form, so that words with uniform formats can be obtained, and the words are used as emergency keywords, which is convenient for quick recognition during subsequent searching, thereby being beneficial to improving the processing efficiency of emergency basic information.
For example, the single word includes english words such as "Annual" and "Disaster", and the language processing plug-in the mobile phone terminal converts "Annual" into "Annual", and then converts "Annual" into "ann" and "Disaster" into the format of "Disaster".
In this embodiment, through according to the preset word segmentation method, carry out word segmentation processing to basic emergency information, obtain basic word, can guarantee that the word that obtains is alone, meaningful and complete, and then carry out the duplicate removal processing to basic word, obtain single word, can reduce storage space's use, improve mobile terminal's operating efficiency, then, according to preset word format, carry out format conversion to single word, obtain emergent keyword, the machine can discern these emergent keyword fast when realizing follow-up seeking, can reduce machine work load, with the improvement to the treatment effeciency of emergent basic information, thereby improve the treatment effeciency to emergency signal, strengthen emergency broadcast's emergent early warning efficiency to a certain extent.
In an embodiment, as shown in fig. 5, in step S3, that is, when the processing instruction is a play instruction, extracting the emergency content included in the emergency data packet according to a preset extraction manner, and obtaining the content extraction result specifically includes the following steps:
s31: and acquiring the content type corresponding to the emergency keyword from a preset keyword type set.
In this embodiment, the preset keyword type set includes type names such as text, audio, or video, and is used to accurately obtain a content type corresponding to emergency content in an emergency data packet corresponding to the emergency keyword, so as to improve the processing efficiency of the emergency content.
Specifically, according to the emergency keyword obtained in step S22, obtaining the content type corresponding to the emergency keyword from the preset keyword type set may specifically be traversing in the preset keyword set, searching for a type name consistent with the emergency keyword, and then determining the type of the type name as the content type corresponding to the emergency keyword; or the emergency keywords may be matched with name types in a preset keyword type set, or may be matched through similarity, or may be matched in other manners, and the details are not limited.
S32: and if the content type is the character type, converting the emergency content in the emergency data packet into character information according to an IP transmission protocol.
Specifically, because the general data capacity of the text content corresponding to the text type is small, the emergency data packet with small data is generally carried by the emergency signal, the content in the emergency data packet is stored by a digital instruction, and in order to reduce data loss in the signal transmission process, the digital instruction is simple and easy to extract, so that the emergency content in the emergency data packet can be directly converted into text information according to an IP transmission protocol, and the method is convenient, rapid and accurate.
S33: and if the content type is an audio or video type, acquiring audio information or video information corresponding to the resource locator according to the resource locator contained in the emergency data packet.
Specifically, the audio or video content corresponding to the audio or video type has a large data capacity, which is inconvenient for direct carrying or transmission of the emergency signal, and thus data loss is easily caused, so the emergency data packet usually includes a URL (Uniform Resource Locator) of the audio or video, and then the application program in the mobile phone terminal can connect to the URL to extract the audio or video content.
The application program in the mobile phone terminal can be connected to the URL to extract audio or video content, and can also extract emergency content accurately in a network crawling mode, wherein the network crawling refers to the fact that a crawling object expands the whole Web (World Wide Web) from some seed URLs, and data are mainly collected for a portal site search engine and a large Web service provider. The crawling range and the number of the network crawling are large, the requirements on crawling speed and storage space are high, the requirements on the order of crawling pages are relatively low, meanwhile, due to the fact that the number of pages to be refreshed is too many, a parallel working mode is generally adopted, and the structure of the network crawling can be roughly divided into a page crawling module, a page analysis module, a link filtering module, a page database, a URL queue and an initial URL set. In order to improve the working efficiency, the universal network crawling adopts a certain crawling strategy. Common crawling strategies are: a depth-first policy, a breadth-first policy.
The basic method of the depth-first strategy is to sequentially access next-level webpage links according to the sequence of the depth from low to high until the next-level webpage links cannot be deeply accessed. After completing one crawling branch, the crawler returns to the last link node to further search other links. And after all the links are traversed, finishing the crawling task.
The breadth-first strategy is to crawl pages according to the depth of the content directory hierarchy of the web page, and pages in the shallow directory hierarchy are crawled first. And after the pages in the same layer are crawled, the crawler goes into the next layer to continuously crawl. The strategy can effectively control the crawling depth of the page, avoid the problem that the crawling cannot be finished when an infinite deep branch is encountered, is convenient to realize, and does not need to store a large number of intermediate nodes.
Preferably, the crawling strategy adopted by the embodiment is an breadth-first strategy.
Specifically, by acquiring URLs of audio and video, acquiring a domain name where a source file corresponding to the URL of the audio and video is located by using network crawling, then analyzing the content of the source file corresponding to the domain name to be crawled by using a file analyzing tool, such as a beautiful sound tool in a Python (object-oriented interpreted) program, and storing the analyzed file content as audio data or video data corresponding to the emergency data packet, the accuracy of the acquired audio data or video data can be ensured, thereby enhancing the emergency early warning efficiency of emergency broadcasting to a certain extent.
In this embodiment, the content type corresponding to the emergency keyword is acquired from the preset keyword type set, and then, the content is extracted according to the content extraction mode corresponding to the content type, so that complete and accurate emergency content can be obtained, and it can be ensured that a subsequent user acquires emergency prompt information with higher accuracy and integrity.
In an embodiment, as shown in fig. 6, before step S1, the method for implementing emergency broadcast based on a mobile phone terminal specifically includes the following steps:
s5: and sending a heartbeat instruction to the connected emergency early warning platform in real time.
Specifically, in order to ensure that the mobile phone terminal can capture the emergency signal of the emergency broadcast sent by the emergency early warning platform in time, in this embodiment, before the emergency signal is received in step S1, the mobile phone terminal is started to establish a long connection with the emergency early warning platform through the wireless communication network, and after the long connection is established, the mobile phone terminal can monitor the emergency signal sent by the emergency early warning platform corresponding to the long connection in real time, and send a heartbeat instruction to the connected emergency early warning platform in real time to monitor and capture a heartbeat response instruction fed back by the emergency early warning platform corresponding to the long connection in real time, where the heartbeat instruction means that most mobile phone terminals send a custom instruction to the connected emergency early warning platform at regular intervals to determine whether both parties survive, and is called a heartbeat instruction because it is sent at regular intervals and is similar to heartbeat, the heartbeat instruction can keep alive for a long time, can be applied to long connection established with the emergency early warning platform, and guarantees stability of data communication, so that the heartbeat instruction can be sent to the connected emergency early warning platform in real time, and real-time detection of emergency signals is realized.
S6: if the heartbeat response instruction fed back by the emergency early warning platform is received, an emergency signal corresponding to the heartbeat response instruction is obtained, and if the heartbeat response instruction is not received, the heartbeat instruction is continuously sent to the emergency early warning platform until the heartbeat response instruction is obtained.
Specifically, if a heartbeat response instruction fed back by the emergency early warning platform is received, an emergency signal corresponding to the heartbeat response instruction is acquired, the emergency signal corresponding to the heartbeat response instruction is conveniently acquired in time in the subsequent steps, corresponding signal processing is performed according to the acquired emergency signal, and therefore the processing efficiency of the emergency signal is improved, the emergency early warning efficiency of emergency broadcasting is enhanced to a certain extent, if the heartbeat response instruction is not received, the heartbeat instruction is continuously sent to the emergency early warning platform until the heartbeat response instruction is acquired, and the situation that a terminal user cannot guarantee that emergency content corresponding to the emergency signal can be acquired due to omission of the emergency signal can be avoided.
In this embodiment, a heartbeat instruction is sent to a connected emergency early warning platform in real time, the heartbeat instruction can keep alive for a long time, and stability of data communication can be guaranteed, so that real-time detection of emergency signals is realized.
In the embodiment, the emergency signals are detected in real time, so that omission of the emergency signals can be avoided, and timely receiving of the emergency signals and stability of signal receiving are guaranteed; when an emergency signal sent by an emergency early warning platform is received, a built-in application program of the mobile phone terminal automatically analyzes the received emergency signal to obtain a corresponding emergency data packet and a processing instruction, and further extracts contents according to the processing instruction and a preset extraction mode and corresponding to different types of emergency contents in the emergency data packet, so that the method has high pertinence, and the integrity and the accuracy of the obtained emergency contents can be guaranteed; and then, different emergency prompt modes are adopted to play the content extraction result of the emergency content, so that a terminal user can timely and accurately obtain the emergency prompt.
It should be noted that, according to the method and system for implementing emergency broadcast based on the mobile phone terminal provided by the present invention, the emergency signal of emergency broadcast can be received and processed by using the application program or code embedded in the emergency broadcast system on the device with intelligent hardware configuration, such as smart tv, PAD, etc., or the application program in the intelligent hardware and emergency broadcast system is designed as an independent processing module or integrated circuit embedded in the terminal to implement the emergency signal reception and processing of emergency broadcast.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, a system for implementing emergency broadcasting based on a mobile phone terminal is provided, and the system for implementing emergency broadcasting based on a mobile phone terminal corresponds to the method for implementing emergency broadcasting based on a mobile phone terminal in the above embodiment one to one. As shown in fig. 7, the system for implementing emergency broadcast based on a mobile phone terminal includes a background service module 701, an instruction parsing module 702, a resource playing module 703 and a foreground prompting module 704. The functional modules are explained in detail as follows:
the background service module 701 is used for receiving an emergency signal sent by the emergency early warning platform, wherein the emergency signal carries an emergency data packet;
the instruction analysis module 702 is configured to analyze the emergency signal to obtain a data analysis result, where the data analysis result includes emergency basic information and a processing instruction corresponding to the emergency basic information, and the processing instruction includes a play instruction;
the resource playing module 703 is configured to, when the processing instruction is a playing instruction, extract emergency content included in the emergency data packet according to a preset extraction manner, to obtain a content extraction result;
and the foreground prompt module 704 is configured to play the content extraction result by executing the play instruction, so that the terminal user can obtain an emergency prompt in time.
Further, the instruction parsing module 702 includes:
a signal conversion unit 7021, configured to convert the obtained emergency signal according to an IP transmission protocol to obtain basic emergency information corresponding to the emergency signal;
a keyword extraction unit 7022, configured to perform keyword extraction on the basic emergency information to obtain an emergency keyword of the basic emergency information;
the instruction obtaining unit 7023 is configured to obtain a processing instruction corresponding to the emergency keyword from a preset keyword instruction set.
Further, the keyword extraction unit 7022 includes:
a word segmentation processing subunit 70221, configured to perform word segmentation processing on the basic emergency information according to a preset word segmentation method to obtain a basic word;
a deduplication processing subunit 70222, configured to perform deduplication processing on the basic word to obtain a single word;
and a format conversion subunit 70223, configured to perform format conversion on the single word according to a preset word format to obtain an emergency keyword.
Further, the resource playing module 703 includes:
a type obtaining unit 7031, configured to obtain a content type corresponding to the emergency keyword from a preset keyword type set.
A content conversion unit 7032, configured to, if the content type is a text type, convert the emergency content in the emergency data packet into text information according to an IP transmission protocol;
an information obtaining unit 7033, configured to, if the content type is an audio or video type, obtain, according to the resource locator included in the emergency data packet, audio information or video information corresponding to the resource locator.
Further, the system for realizing emergency broadcasting based on the mobile phone terminal further comprises:
the instruction sending module 705 is configured to send a heartbeat instruction to a connected emergency early warning platform in real time;
the instruction receiving module 706 is configured to obtain an emergency signal corresponding to the heartbeat response instruction if the heartbeat response instruction fed back by the emergency early warning platform is received, and continue to send the heartbeat instruction to the emergency early warning platform until the heartbeat response instruction is obtained if the heartbeat response instruction is not received.
For specific limitations of the system for implementing emergency broadcast based on the mobile phone terminal, reference may be made to the above limitations of the method for implementing emergency broadcast based on the mobile phone terminal, and details are not described herein again. All or part of the modules in the system for realizing the emergency broadcast based on the mobile phone terminal can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method for realizing emergency broadcast based on a mobile phone terminal is characterized by comprising the following steps:
receiving an emergency signal sent by an emergency early warning platform, wherein the emergency signal carries an emergency data packet;
analyzing the emergency signal to obtain a data analysis result, wherein the data analysis result comprises emergency basic information and a processing instruction corresponding to the emergency basic information, and the processing instruction comprises a playing instruction;
when the processing instruction is a playing instruction, extracting the emergency content contained in the emergency data packet according to a preset extraction mode to obtain a content extraction result;
and playing the content extraction result by executing the playing instruction so as to enable a terminal user to obtain an emergency prompt in time.
2. The method for implementing emergency broadcasting based on mobile phone terminal according to claim 1, wherein the parsing the emergency signal to obtain the data parsing result includes:
converting the acquired emergency signal according to an IP transmission protocol to obtain the basic emergency information corresponding to the emergency signal;
extracting keywords from the basic emergency information to obtain emergency keywords of the basic emergency information;
and acquiring the processing instruction corresponding to the emergency keyword from a preset keyword instruction set.
3. The method for implementing emergency broadcasting based on the mobile phone terminal as claimed in claim 2, wherein the extracting keywords from the basic emergency information to obtain the emergency keywords of the basic emergency information comprises:
performing word segmentation processing on the basic emergency information according to a preset word segmentation method to obtain basic words;
carrying out duplicate removal processing on the basic words to obtain single words;
and carrying out format conversion on the single word according to a preset word format to obtain the emergency keyword.
4. The method for implementing emergency broadcasting based on a mobile phone terminal according to claim 2, wherein when the processing instruction is a play instruction, extracting emergency content included in the emergency data packet according to a preset extraction manner, and obtaining a content extraction result includes:
acquiring a content type corresponding to the emergency keyword from a preset keyword type set;
if the content type is a character type, converting the emergency content in the emergency data packet into character information according to an IP transmission protocol;
and if the content type is an audio or video type, acquiring audio information or video information corresponding to the resource locator according to the resource locator contained in the emergency data packet.
5. The method for implementing emergency broadcasting based on mobile phone terminal according to claim 1, wherein before the receiving the emergency signal sent by the emergency early warning platform, the method for implementing emergency broadcasting based on mobile phone terminal further includes:
sending a heartbeat instruction to the connected emergency early warning platform in real time;
if receiving a heartbeat response instruction fed back by the emergency early warning platform, acquiring the emergency signal corresponding to the heartbeat response instruction, and if not receiving the heartbeat response instruction, continuously sending the heartbeat instruction to the emergency early warning platform until the heartbeat response instruction is acquired.
6. A system for realizing emergency broadcast based on a mobile phone terminal is characterized by comprising:
the background service module is used for receiving an emergency signal sent by the emergency early warning platform, wherein the emergency signal carries an emergency data packet;
the command analysis module is used for analyzing the emergency signal to obtain a data analysis result, wherein the data analysis result comprises emergency basic information and a processing command corresponding to the emergency basic information, and the processing command comprises a playing command;
the resource playing module is used for extracting the emergency content contained in the emergency data packet according to a preset extraction mode when the processing instruction is a playing instruction, so as to obtain a content extraction result;
and the foreground prompting module is used for playing the content extraction result by executing the playing instruction so as to enable a terminal user to obtain an emergency prompt in time.
7. The system for implementing emergency broadcasting based on mobile phone terminal as claimed in claim 6, wherein said instruction parsing module comprises:
the signal conversion unit is used for converting the acquired emergency signal according to an IP transmission protocol to obtain the basic emergency information corresponding to the emergency signal;
the keyword extraction unit is used for extracting keywords from the basic emergency information to obtain emergency keywords of the basic emergency information;
and the instruction acquisition unit is used for acquiring the processing instruction corresponding to the emergency keyword from a preset keyword instruction set.
8. The system for implementing emergency broadcasting based on mobile phone terminal according to claim 7, wherein the keyword extracting unit includes:
the word segmentation processing subunit is used for carrying out word segmentation processing on the basic emergency information according to a preset word segmentation method to obtain basic words;
the duplication removing processing subunit is used for carrying out duplication removing processing on the basic words to obtain single words;
and the format conversion subunit is used for performing format conversion on the single word according to a preset word format to obtain the emergency keyword.
9. The system for implementing emergency broadcasting based on mobile phone terminal as claimed in claim 7, wherein said resource playing module comprises:
and the type acquisition unit is used for acquiring the content type corresponding to the emergency keyword in a preset keyword type set.
The content conversion unit is used for converting the emergency content in the emergency data packet into character information according to an IP transmission protocol if the content type is a character type;
and the information acquisition unit is used for acquiring audio information or video information corresponding to the resource locator according to the resource locator contained in the emergency data packet if the content type is an audio or video type.
10. The system for implementing emergency broadcasting based on mobile phone terminal as claimed in claim 6, wherein the system for implementing emergency broadcasting based on mobile phone terminal further comprises:
the instruction sending module is used for sending a heartbeat instruction to the connected emergency early warning platform in real time;
and the instruction receiving module is used for acquiring the emergency signal corresponding to the heartbeat response instruction if the heartbeat response instruction fed back by the emergency early warning platform is received, and continuously sending the heartbeat instruction to the emergency early warning platform until the heartbeat response instruction is acquired if the heartbeat response instruction is not received.
CN201910760297.4A 2019-08-16 2019-08-16 Method and system for realizing emergency broadcast based on mobile phone terminal Pending CN110691164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910760297.4A CN110691164A (en) 2019-08-16 2019-08-16 Method and system for realizing emergency broadcast based on mobile phone terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910760297.4A CN110691164A (en) 2019-08-16 2019-08-16 Method and system for realizing emergency broadcast based on mobile phone terminal

Publications (1)

Publication Number Publication Date
CN110691164A true CN110691164A (en) 2020-01-14

Family

ID=69108348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910760297.4A Pending CN110691164A (en) 2019-08-16 2019-08-16 Method and system for realizing emergency broadcast based on mobile phone terminal

Country Status (1)

Country Link
CN (1) CN110691164A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112383372A (en) * 2020-11-09 2021-02-19 湖南芒果听见科技有限公司 Emergency information integration and distribution system and operation method thereof
CN118041475A (en) * 2024-03-19 2024-05-14 广州市新三雅电子技术有限公司 Emergency broadcasting method, system, intelligent terminal and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567734A (en) * 2008-04-21 2009-10-28 中兴通讯股份有限公司 Message transmission device and method for emergent broadcast
CN102917312A (en) * 2012-09-28 2013-02-06 东莞宇龙通信科技有限公司 Forwarding method and communication terminal for emergency broadcast during application of mobile broadcast television
US9036791B2 (en) * 2012-05-31 2015-05-19 Midland Radio Corporation Telephone system having alert module
CN104660357A (en) * 2015-03-11 2015-05-27 四川九州电子科技股份有限公司 Multi-channel emergency broadcast intelligent terminal system and control method based on priority
CN105159255A (en) * 2015-08-21 2015-12-16 成都格理特电子技术有限公司 Industrial safety emergency command integrated system-based emergency plan control method
CN205195895U (en) * 2015-12-18 2016-04-27 数源久融技术有限公司 Believe source processing device more based on IP network twine
CN205945910U (en) * 2016-08-24 2017-02-08 四川汗瑞翔科技有限责任公司 Urgent broadcasting phone remote control system
CN107483285A (en) * 2017-08-11 2017-12-15 北京数码视讯科技股份有限公司 RDS method of reseptance and device
CN109819408A (en) * 2019-02-19 2019-05-28 安徽智融景和科技有限公司 Emergent broadcast forewarning management delivery system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567734A (en) * 2008-04-21 2009-10-28 中兴通讯股份有限公司 Message transmission device and method for emergent broadcast
US9036791B2 (en) * 2012-05-31 2015-05-19 Midland Radio Corporation Telephone system having alert module
CN102917312A (en) * 2012-09-28 2013-02-06 东莞宇龙通信科技有限公司 Forwarding method and communication terminal for emergency broadcast during application of mobile broadcast television
CN104660357A (en) * 2015-03-11 2015-05-27 四川九州电子科技股份有限公司 Multi-channel emergency broadcast intelligent terminal system and control method based on priority
CN105159255A (en) * 2015-08-21 2015-12-16 成都格理特电子技术有限公司 Industrial safety emergency command integrated system-based emergency plan control method
CN205195895U (en) * 2015-12-18 2016-04-27 数源久融技术有限公司 Believe source processing device more based on IP network twine
CN205945910U (en) * 2016-08-24 2017-02-08 四川汗瑞翔科技有限责任公司 Urgent broadcasting phone remote control system
CN107483285A (en) * 2017-08-11 2017-12-15 北京数码视讯科技股份有限公司 RDS method of reseptance and device
CN109819408A (en) * 2019-02-19 2019-05-28 安徽智融景和科技有限公司 Emergent broadcast forewarning management delivery system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112383372A (en) * 2020-11-09 2021-02-19 湖南芒果听见科技有限公司 Emergency information integration and distribution system and operation method thereof
CN118041475A (en) * 2024-03-19 2024-05-14 广州市新三雅电子技术有限公司 Emergency broadcasting method, system, intelligent terminal and storage medium
CN118041475B (en) * 2024-03-19 2024-08-02 广州市新三雅电子技术有限公司 Emergency broadcasting method, system, intelligent terminal and storage medium

Similar Documents

Publication Publication Date Title
CN103970793B (en) Information query method, client and server
CN110362544B (en) Log processing system, log processing method, terminal and storage medium
US11848009B2 (en) Adaptive interface in a voice-activated network
CN106302933B (en) Voice information processing method and terminal
CN111213136B (en) Generation of domain-specific models in networked systems
CN104158945A (en) Conversation information obtaining method, device and system
CN105302885B (en) full-text data extraction method and device
CN106230809B (en) A kind of mobile Internet public sentiment monitoring method and system based on URL
CN110992955A (en) Voice operation method, device, equipment and storage medium of intelligent equipment
CN110691164A (en) Method and system for realizing emergency broadcast based on mobile phone terminal
CN107085549A (en) The method and apparatus of fault message generation
CN111177193A (en) Flink-based log streaming processing method and system
CN103905421A (en) Suspicious event detection method and system based on URL heterogeneity
CN103955517B (en) Method and system for converting data in documental database to relational database
CN103605773A (en) Multimedia file searching method and device
WO2021103594A1 (en) Tacitness degree detection method and device, server and readable storage medium
CN110830416A (en) Network intrusion detection method and device
CN110442696B (en) Query processing method and device
CN112507265A (en) Method and device for anomaly detection based on tree structure and related products
WO2021174926A1 (en) Monitoring system and monitoring method for illegal and harmful information on website
WO2020238131A1 (en) Web crawler system testing method and apparatus, storage medium, and electronic device
CN105245394A (en) Method and equipment for analyzing network access log based on layered approach
WO2023082605A1 (en) Http message extraction method and apparatus, and medium and device
CN112883088A (en) Data processing method, device, equipment and storage medium
CN116233317A (en) Network traffic-oriented real-time VoLTE voice reduction and detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200114

RJ01 Rejection of invention patent application after publication