Disclosure of Invention
The invention aims to provide an emergency communication method and an emergency communication system aiming at the technical problems.
In a first aspect, the technical scheme of the invention is as follows: an emergency communication method includes the steps of,
s1: receiving an emergency short message sending request at a user gateway portal, wherein the emergency short message sending request comprises a receiver mobile phone number and short message content, and the user gateway portal sends the emergency short message sending request to a short message gateway;
s2: the short message gateway sends the short message content in the emergency short message sending request to the user mobile phone of the receiver mobile phone number in the emergency short message sending request;
s3: the receiver mobile phone receiving the emergency short message feeds back whether the user receives a short message receiving status report of the emergency short message to the short message gateway, and the short message gateway sends the short message receiving status report to the short message module;
s4: the short message module determines the user mobile phone which does not receive the short message receiving state report within the specified time according to the received short message receiving state report;
s5: the short message module instructs a voice conversion system in the voice system to convert the emergency short message content in the short message module into a voice file, and makes a call to the user of the receiver mobile phone number determined in the step S4 through a voice broadcasting device in the voice system and broadcasts the emergency voice in the voice file.
In the above technical solution, in step S3, after receiving a short message reception status report fed back by a mobile phone of a user, the short message gateway sends the short message reception status report to the short message module, and the short message module stores the short message reception status report in the database.
In the above technical solution, after step S5 is completed, if the voice system determines that the dialed telephone number does not receive an off-hook signal, the voice system periodically and repeatedly dials a call to the user at the telephone number according to the time limit requirement of the emergency event until the user receives the emergency voice.
In the above technical solution, after step S3 is completed, the voice system automatically determines the receiving condition of the voice broadcast, and for a user who does not answer a call, the voice system repeatedly dials a call to the user at regular time according to the time limit requirement of the emergency event until the user receives the emergency voice.
In a second aspect, the technical scheme of the invention is as follows: an emergency communication system comprises a user gateway portal, a short message gateway, a short message module and a voice system,
the user gateway portal is used for receiving an emergency short message sending request and sending the emergency short message sending request to the short message gateway, wherein the emergency short message sending request comprises a receiver mobile phone number and short message content;
the short message gateway is used for sending the short message content in the emergency short message sending request to the user mobile phone of the receiver mobile phone number in the emergency short message sending request, receiving a short message receiving status report fed back by the receiver mobile phone of the emergency short message, and sending the short message receiving status report to the short message module;
the short message module is used for calling a voice conversion system and a voice broadcasting device on a voice system and determining a user mobile phone which does not receive a short message receiving state report within a specified time according to the received short message receiving state report;
the voice system comprises a voice conversion system and a voice broadcasting device, wherein the voice conversion system is used for converting the content of the emergency short message on the short message module into a voice file, and the voice broadcasting device is used for making a call to a user mobile phone which does not receive the short message receiving state report and broadcasting the emergency voice on the voice file.
Preferably, a database for storing the short message receiving status report is further arranged in the short message module.
Preferably, the voice system is further configured to automatically determine whether the dialed telephone number receives an off-hook signal, stop dialing the telephone number again for the telephone number that receives the off-hook signal, and regularly and repeatedly dial the telephone number according to a time limit requirement of an emergency event for the telephone number that does not receive the off-hook signal until the user receives an emergency voice.
Aiming at the requirement of the arrival of the emergency short message, the invention improves the success rate of the arrival of the emergency short message and saves the cost to a certain extent by converting the content of the emergency short message into the emergency voice, dialing the call to the user and broadcasting the emergency voice on the voice file under the condition that the user does not receive the emergency short message or the emergency short message is received by the user overtime.
Compared with the prior art, the invention has the following advantages:
1. the emergency information is preferentially sent in a short message mode, so that the cost is low;
2. the method automatically judges the feedback condition of the short message receiving state report of the emergency short message through the communication module, converts the content of the short message into voice for the users who do not receive the short message receiving state report and the users who display the received report as overtime through the short message receiving state report, calls the voice broadcast to the users, and ensures the information arrival rate;
3. the invention automatically judges the receiving condition of the voice broadcast through the voice system, and for the user who does not answer the call, the invention can repeatedly dial the call to the user at regular time according to the time limit requirement of the emergency event until the user receives the emergency voice.
Detailed Description
The technical problem to be solved by the invention is as follows: due to the technical limitation of the short message, and the short message has a certain arrival failure rate, the situation that the user cannot receive emergency information can be caused under the conditions of some unpredictable system faults, signal problems and the like. The technical idea of the invention for solving the technical problem is as follows: the invention determines whether the user receives the short message or not according to the recovery condition of the status report of the user on the basis of the emergency short message notification, and carries out secondary reminding on the user by converting the content of the short message into voice, dialing the user phone and broadcasting the voice for the user who does not receive the short message, thereby ensuring the arrival rate of emergency information and playing an important role in promoting social harmony, progress and development.
In order to make the technical purpose, technical solutions and technical effects of the present invention more clear and facilitate those skilled in the art to understand and implement the present invention, the present invention will be further described in detail with reference to the accompanying drawings and specific embodiments.
As shown in fig. 2, a logic flow chart of the emergency communication method of the present invention is as shown in fig. 2, when an emergency message needs to be sent, first, a user gateway portal sends an emergency short message to a short message gateway (mobile gateway) through a short message module, the short message gateway feeds back a short message submission result and feeds back a status report (i.e., a short message reception status report) to the short message module, then, the short message module checks a reply status of the status report (i.e., a short message reception status report) at regular time according to a time limit requirement of the emergency event, and sends a voice message to a voice conversion module in response to a condition that the status report is not replied, then, the voice conversion module converts text information in the emergency short message into voice information, and finally, the voice conversion module makes a call through a voice broadcasting device to perform voice broadcasting.
More specifically, the emergency communication method of the present invention comprises the following steps,
s1: receiving an emergency short message sending request at a user gateway portal 1, wherein the emergency short message sending request comprises a receiver mobile phone number and short message content, and the user gateway portal 1 sends the emergency short message sending request to a short message gateway 2;
s2: the short message gateway 2 sends the short message content in the emergency short message sending request to the user mobile phone of the receiver mobile phone number in the emergency short message sending request;
s3: the receiver mobile phone receiving the emergency short message feeds back whether the user receives the short message receiving status report of the emergency short message to the short message gateway 2, and the short message gateway 2 sends the short message receiving status report to the short message module 3;
in actual operation, if the short message gateway 2 receives a short message receiving status report fed back by the receiver mobile phone, it indicates that the user receives an emergency short message, and if the short message gateway 2 does not receive the short message receiving status report fed back by the receiver mobile phone, it indicates that the user does not receive the emergency short message, and needs to perform secondary reminding on the user (that is, reminding through the voice broadcasting device described in this application).
Meanwhile, the short message receiving status report fed back by the user mobile phone to the short message gateway 2 and the short message module 3 may be overtime, so that the content of whether the emergency short message received by the user is overtime can be added to the short message receiving status report.
As a preferred scheme, in step S3, after receiving the short message reception status report fed back by the mobile phone of the user, the short message gateway 2 sends the short message reception status report to the short message module 3, and the short message module 3 stores the short message reception status report in the database. The short message receiving state report is stored, so that people can check the receiving condition of the emergency short message, and the reason why the emergency short message cannot be received in the later period of the people is favorably analyzed.
S4: the short message module 3 determines the user mobile phone which does not receive the short message receiving state report within the specified time according to the received short message receiving state report;
in actual work, the program submitted to the short message module by the short message gateway is as follows:
meanwhile, because the mobile phone of the user in the market only has the function of feeding back whether the user receives the emergency short message to the short message gateway 2, but does not have the function of feeding back whether the user checks the received short message, as a preferred scheme, people can edit the short message content of the emergency short message to add an emergency notice and other short messages which can draw special attention of the user.
S5: the short message module 3 instructs the voice conversion system in the voice system 4 to convert the emergency short message content in the short message module 3 into a voice file, and makes a call to the user of the recipient mobile phone number determined in step S4 through the voice broadcasting device in the voice system and broadcasts the emergency voice in the voice file.
During actual work, the speed of speech speed and the size of volume can be adjusted when voice broadcast equipment in the voice system reports emergent pronunciation to addressee's cell-phone number, and is preferred, and to some old person or foreigners, emergent pronunciation adopt local dialect or english to report.
The short message module 3 instructs the voice conversion system in the voice system 4 to mainly perform under the condition that the user does not receive the emergency short message or the emergency short message is received by the user overtime.
Preferably, after step S5 is completed, if the voice system 4 determines that the dialed telephone number does not receive an off-hook signal, it repeatedly dials a call to the user at regular time according to the time limit requirement of the emergency event until the user receives the emergency voice. In actual operation, if the voice system 4 determines that the dialed telephone number has received an off-hook signal, it indicates that the secondary reminding of the user has been completed, and then the telephone number should be stopped from being called again.
In actual work, the invention is developed based on JAVA language, and the short message is accessed to the gateway of the mobile industry (namely the short message gateway), and the voice broadcasting equipment (the prior art) has no specific requirements, and only needs to broadcast the voice to make a call and return to a call state.
In actual work, as shown in fig. 1, the emergency communication system of the present invention mainly comprises four parts, which are a user gateway portal 1, a short message gateway 2, a short message module 3, and a voice system 4, and specifically includes the following:
the user gateway portal 1 is used for receiving an emergency short message sending request and sending the emergency short message sending request to the short message gateway 2, wherein the emergency short message sending request comprises a receiver mobile phone number and short message content.
In actual work, the user gateway portal 1 is mainly used for providing an interface for sending emergency short messages to a mobile phone of a user, and when the emergency short messages need to be sent, people only need to input a receiver mobile phone number and short message contents on the interface.
The short message gateway 2 is used for sending the short message content in the emergency short message sending request to the user mobile phone of the receiver mobile phone number in the emergency short message sending request, receiving a short message receiving status report fed back by the receiver mobile phone of the emergency short message, and sending the short message receiving status report to the short message module 3.
In actual operation, the short message gateway 2 is the prior art, and it may be SPE gateway channel (mainly internet) or mobile communication gateway (such as a system for receiving and sending information in telecommunication, a system for receiving and sending information in mobile, and a system for receiving and sending information in internet).
The short message module 3 is configured to invoke a voice conversion system and a voice broadcast device on the voice system 4, and determine, according to the received short message reception status report, a user mobile phone that has not received the short message reception status report within a specified time.
When the short message gateway works actually, the short message module is connected with the short message gateway and the user gateway portal and is mainly used for sending and processing short messages at high speed in large batch, receiving a state report of the short message gateway and judging whether the short messages are sent or not.
The voice system 4 comprises a voice conversion system and a voice broadcasting device, the voice conversion system is used for converting the content of the emergency short message on the short message module 3 into a voice file, and the voice broadcasting device is used for making a call to a user mobile phone which does not receive the short message receiving state report and broadcasting the emergency voice on the voice file.
As a preferred scheme, a database for storing a short message receiving status report may be further disposed in the short message module 3.
The database not only enables people to check the receiving condition of the emergency short message, but also is beneficial to analyzing the reason that people cannot receive the emergency short message in the later period.
In actual work, when a user needs to be reminded for the second time, the voice conversion module calls the TTS component of the invention to convert the text content of the short message into a voice file, and the method specifically comprises the following steps: firstly, setting an audio stream format, then setting a file output format, then calling a file output stream opening method, creating a file with the star-wav format, then setting a silver screen output stream corresponding to sound as an output file object, and then setting the audio volume and the audio reading speed.
And transferring equipment by a voice conversion module, transmitting a user number to be played by an emergency short message, and converting the generated voice PCM file to finish voice calling.
In actual work, the specific procedure of converting the text content of the short message into a voice file is as follows: a. the
Preferably, the voice system 4 is further configured to automatically determine whether the dialed telephone number receives an off-hook signal, stop dialing the telephone number again for the telephone number that receives the off-hook signal, and regularly and repeatedly dial the telephone number according to a time limit requirement of an emergency event for the telephone number that does not receive the off-hook signal until the user receives an emergency voice.
During actual work, the voice conversion module of the invention can repeat calling at a set certain time interval (such as 5-10 minutes) of call failure according to a call result returned by the voice broadcasting equipment until a user receives the content of the emergency short message, and the specific procedures are as follows:
it will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.