Earthquake early warning method and device, electronic equipment and computer readable storage medium
Through electronic equipment, motion information is detected and reported to early warning equipment, earthquake early warning information is generated and distributed, and the problem of untimely dissemination of earthquake early warning information in the existing technology is solved, higher accuracy and information dissemination speed are achieved, and escape safety is enhanced.
Patent Information
- Application Number
- CN202411896569.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-25
AI Technical Summary
The existing earthquake early warning methods are difficult to spread earthquake early warning information to the public in a timely and accurate manner, making it difficult for people to escape in a timely manner.
The local motion information is detected through the sensors of the electronic device, and the location information of the device is obtained, the information is reported to the early warning device, the earthquake warning information is generated and distributed, and the local earthquake warning action is performed if necessary.
It improves the accuracy of earthquake warning and the speed of information dissemination, ensures that users can receive earthquake warning information in a timely manner, enhances the chance of escape, and reduces the cost and time of manual data collection.
Smart Images

Figure CN119888965A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an earthquake early warning method, device, electronic device, computer-readable storage medium and computer program product. Background Art
[0002] Earthquakes are one of the major natural disasters on Earth. The seismic waves generated by earthquakes can directly cause damage or even collapse of buildings, leading to ground cracks and collapses, etc., seriously endangering human safety.
[0003] However, most people do not know much about earthquakes, and it is difficult to predict the coming of an earthquake before it occurs. Traditional earthquake warnings are for officials to broadcast news to the public through television, radio, etc. after detecting earthquake information, but this method is easily ignored by the public, resulting in missing the best time to escape. Summary of the invention
[0004] The embodiments of the present application provide an earthquake early warning method, device, electronic device, computer-readable storage medium and computer program product, which can promptly warn the public of earthquake situations.
[0005] In one aspect, the present application provides an earthquake early warning method. The method comprises:
[0006] Detecting local motion information through a sensor of the electronic device and obtaining location information of the electronic device;
[0007] reporting the motion information and the location information to an early warning device; the early warning device generates earthquake early warning information based on the motion information and the location information, and distributes the earthquake early warning information to multiple electronic devices;
[0008] When the motion information meets the earthquake warning condition and the earthquake warning information distributed by the warning device is not received, a local earthquake warning action is performed.
[0009] On the other hand, the present application also provides an earthquake early warning device. The device comprises:
[0010] A detection module, used to detect local motion information through a sensor of the electronic device and obtain location information of the electronic device;
[0011] A reporting module, configured to report the motion information and the location information to an early warning device; the early warning device generates earthquake early warning information based on the motion information and the location information, and distributes the earthquake early warning information to a plurality of electronic devices;
[0012] The early warning module is used to execute a local earthquake early warning action when the motion information meets the earthquake early warning condition and the earthquake early warning information distributed by the early warning device is not received.
[0013] On the other hand, the present application also provides an electronic device. The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0014] Detecting local motion information through a sensor of the electronic device and obtaining location information of the electronic device;
[0015] reporting the motion information and the location information to an early warning device; the early warning device generates earthquake early warning information based on the motion information and the location information, and distributes the earthquake early warning information to multiple electronic devices;
[0016] When the motion information meets the earthquake warning condition and the earthquake warning information distributed by the warning device is not received, a local earthquake warning action is performed.
[0017] On the other hand, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0018] Detecting local motion information through a sensor of the electronic device and obtaining location information of the electronic device;
[0019] reporting the motion information and the location information to an early warning device; the early warning device generates earthquake early warning information based on the motion information and the location information, and distributes the earthquake early warning information to multiple electronic devices;
[0020] When the motion information meets the earthquake warning condition and the earthquake warning information distributed by the warning device is not received, a local earthquake warning action is performed.
[0021] On the other hand, the present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0022] Detecting local motion information through a sensor of the electronic device and obtaining location information of the electronic device;
[0023] reporting the motion information and the location information to an early warning device; the early warning device generates earthquake early warning information based on the motion information and the location information, and distributes the earthquake early warning information to multiple electronic devices;
[0024] When the motion information meets the earthquake warning condition and the earthquake warning information distributed by the warning device is not received, a local earthquake warning action is performed.
[0025] The earthquake early warning method, device, electronic device, computer-readable storage medium and computer program product described above detect local motion information through the sensor of the electronic device, obtain the location information of the electronic device, report the motion information and location information to the early warning device, and use the information reported by the electronic device as supplementary data for earthquake early warning, so that the early warning device generates earthquake early warning information based on the motion information and location information, so that the early warning device can use more data to predict the earthquake situation, and can improve the accuracy and precision of earthquake early warning. The earthquake early warning information is distributed to multiple electronic devices, so that users can receive the earthquake early warning information in time, and the speed of earthquake early warning information transmission is improved. Moreover, the information uploaded by the electronic device does not need to collect a large amount of data manually, and the cost is low and the timeliness is strong. In addition, the electronic device of this embodiment also has a local early warning function. When the motion information detected locally by the electronic device meets the earthquake early warning condition, but the earthquake early warning information distributed by the early warning device is not received, the local earthquake early warning action can be executed to prompt the user, so that in the case of network damage, the local earthquake early warning action can still be triggered, so that the user can receive the earthquake early warning prompt in time, thereby improving the escape probability in the earthquake scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present application 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 An application environment diagram of an earthquake early warning method in an embodiment;
[0028] Figure 2 A flowchart of an earthquake early warning method in one embodiment;
[0029] Figure 3 A flowchart of an earthquake early warning method in one embodiment;
[0030] Figure 4 A structural block diagram of an earthquake early warning device in one embodiment;
[0031] Figure 5 is a diagram of the internal structure of an electronic device in one embodiment;
[0032] Figure 6 1 is a diagram of the internal structure of an early warning device in one embodiment. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0034] The earthquake early warning method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the electronic device 102 communicates with the early warning device 104 through the network. The data storage system can store the data that the early warning device 104 needs to process. The data storage system can be integrated on the early warning device 104, or it can be placed on the cloud or other network devices. The electronic device 102 detects local motion information through the sensor of the electronic device, obtains the location information of the electronic device, and reports the motion information and location information to the early warning device 104. The early warning device 104 generates earthquake early warning information based on the motion information and location information, and distributes the earthquake early warning information to multiple electronic devices. When the motion information of the electronic device 102 meets the earthquake early warning condition and the earthquake early warning information distributed by the early warning device is not received, the electronic device 102 performs a local earthquake early warning action. Among them, the electronic device 102 and the early warning device 104 can be, but not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, projectors, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The early warning device 104 may also be a server, which may be implemented by an independent server or a server cluster composed of multiple servers.
[0035] In one embodiment, Figure 2 As shown, an earthquake early warning method is provided, which is applied to Figure 1 Taking the electronic device 102 in the example as an example, the method includes the following steps:
[0036] Step 202: Detect local motion information through a sensor of the electronic device and obtain location information of the electronic device.
[0037] Specifically, a sensor is installed in the electronic device, and the sensor detects the local motion information of the electronic device. In addition, the electronic device can locate and obtain the position information.
[0038] The sensor may include at least one of a gyro sensor or an acceleration sensor.
[0039] In this embodiment, the motion information includes at least one of angular velocity change information or acceleration change information.
[0040] The motion information refers to at least one of the change information of the angular velocity detected by the gyroscope sensor in the electronic device or the change information of the acceleration detected by the acceleration sensor when the electronic device is shaken. Based on at least one of the gyroscope sensor or the acceleration sensor in the electronic device, it is possible to detect whether the electronic device is shaking and the intensity of the shaking. When the gyroscope sensor or the acceleration sensor detects shaking, the current motion information of the electronic device can be obtained through the gyroscope sensor and / or the acceleration sensor.
[0041] In one embodiment, when the angular velocity collected by the gyroscope sensor changes, it can be determined that the electronic device has shaken. When the acceleration collected by the acceleration sensor changes, it can be determined that the electronic device has shaken.
[0042] The location information includes at least one of latitude and longitude information or area coding information. The area coding information is coding information of administrative regions at all levels corresponding to the location of the electronic device.
[0043] Earthquake warning information includes at least one of the earthquake level, earthquake direction, earthquake occurrence time, duration, and earthquake source.
[0044] Step 204, reporting the motion information and location information to the early warning device; the early warning device generates earthquake early warning information based on the motion information and location information, and distributes the earthquake early warning information to multiple electronic devices.
[0045] The earthquake warning information is information related to the earthquake, which may include at least one of the following: earthquake level, earthquake direction, earthquake source, and time. The earthquake warning information may also include at least one of emergency communication information, rescue service portal, or self-rescue information.
[0046] Specifically, the electronic device reports the motion information and location information to the early warning device. The early warning device determines whether an earthquake will occur based on the motion information and location information, and generates earthquake early warning information if so. The early warning device distributes the earthquake early warning information to multiple electronic devices, including the electronic device that uploaded the motion information and location information.
[0047] In one embodiment, the electronic device may report the motion information and location information to the early warning device when the motion information meets the earthquake early warning condition.
[0048] The earthquake early warning condition may include at least one of an angular velocity change condition or an acceleration change condition. The electronic device may obtain angular velocity change information and acceleration change information, and when the angular velocity change information satisfies the angular velocity change condition and the acceleration change information satisfies at least one of the acceleration change conditions, the motion information and the position information are reported to the early warning device.
[0049] In one embodiment, the early warning device may generate earthquake early warning information based on the motion information and location information reported by each of the multiple electronic devices, and distribute the earthquake early warning information to each electronic device.
[0050] In one embodiment, the electronic device communicates with the early warning device via a first communication link, and the electronic device reports motion information and location information to the early warning device via the first communication link. The early warning device sends earthquake early warning information to the electronic device via the first communication link. The first communication link may be a dedicated link for earthquake prediction.
[0051] In this embodiment, the early warning device communicates with each electronic device through each first communication link. Each electronic device uploads motion information and position information to the early warning device through its own first communication link. The early warning device also feeds back the earthquake early warning information to each electronic device through each first communication link.
[0052] In one embodiment, the electronic device can determine the currently connected local area network and at least one associated device in the local area network, obtain the motion information and location information of at least one associated device, and report the local motion information and location information, as well as the motion information and location information of each associated device to the early warning device.
[0053] Furthermore, when the detected motion information meets the earthquake warning conditions, the electronic device may report the local motion information and location information, as well as the motion information and location information of each associated device to the warning device.
[0054] Step 206: When the motion information meets the earthquake warning condition and the earthquake warning information distributed by the warning device is not received, a local earthquake warning action is executed.
[0055] Specifically, when an electronic device receives earthquake warning information fed back by a warning device, the electronic device may issue a prompt to draw the user's attention to the earthquake warning information.
[0056] Due to network conditions and other reasons, the electronic device may not receive the earthquake warning information issued by the warning device. In this case, when the motion information meets the earthquake warning conditions and has not received the earthquake warning information distributed by the warning device, the electronic device can perform a local earthquake warning action to prompt the user.
[0057] In this embodiment, a local earthquake warning action is performed, which can specifically generate local earthquake warning information based on motion information, or generate local earthquake warning information based on motion information and position information, and prompt the earthquake warning information on an electronic device to remind the user.
[0058] In one embodiment, the electronic device detects motion information, obtains earthquake warning conditions, and determines whether the motion information meets the earthquake warning conditions. If yes, the motion information and location information are reported to the warning device. If the motion information does not meet the earthquake warning conditions, no reporting process is performed.
[0059] In one embodiment, the electronic device may obtain location information when the motion information meets earthquake early warning conditions.
[0060] In one embodiment, after the electronic device reports the motion information and location information, it can wait for a preset time period. If no earthquake warning information is received from the warning device within the preset time period, the earthquake warning action is performed locally on the electronic device.
[0061] like Figure 3 The figure is a flow chart of an earthquake early warning method in one embodiment, which is applied to electronic equipment.
[0062] Local motion information is collected through sensors of electronic devices.
[0063] Determine whether the earthquake warning conditions are met. When the motion information meets the earthquake warning conditions, the acquired motion information and the location information of the electronic device are reported to the warning device. The warning device determines whether an earthquake has occurred based on the motion information reported by each electronic device within the preset area. If so, it generates earthquake warning information and sends it to each electronic device within the preset area.
[0064] When the motion information does not meet the earthquake warning conditions, return to the step of collecting motion information and continue execution.
[0065] Detect whether the earthquake warning information issued by the early warning device is received. If the electronic device does not receive the warning issued by the early warning device due to various reasons, perform local early warning actions.
[0066] The electronic device receives the earthquake warning information, pops up a prompt and broadcasts the earthquake warning information.
[0067] The earthquake early warning method of this embodiment detects local motion information through the sensor of the electronic device, obtains the location information of the electronic device, reports the motion information and location information to the early warning device, and uses the information reported by the electronic device as the supplementary data of the earthquake early warning, so that the early warning device generates earthquake early warning information based on the motion information and location information, so that the early warning device can use more data to predict the earthquake situation, and can improve the accuracy and precision of the earthquake early warning. The earthquake early warning information is distributed to multiple electronic devices, so that users can receive the earthquake early warning information in time, and the speed of the transmission of earthquake early warning information is improved. In addition, the information uploaded by the electronic device does not need to collect a large amount of data manually, which is low in cost and strong in timeliness. In addition, the electronic device of this embodiment also has a local early warning function. When the motion information detected locally by the electronic device meets the earthquake early warning condition, but the earthquake early warning information distributed by the early warning device is not received, the local earthquake early warning action can be executed to prompt the user, so that in the case of network damage, the local earthquake early warning action can still be triggered, so that the user can receive the earthquake early warning prompt in time, thereby improving the escape probability in the earthquake scene.
[0068] In one embodiment, the earthquake warning information may also include at least one of emergency communication information, rescue service entrance or self-rescue information. The emergency communication information is determined based on the location information of the object to be rescued, and the emergency communication information is used for the object to be rescued to initiate a communication for help. Self-rescue information refers to self-rescue measures in the event of an earthquake.
[0069] The object to be rescued is a user who needs help and rescue. The location information can be latitude and longitude information or area coding information. The area coding information can be the coding information of administrative regions at all levels corresponding to the location of the object to be rescued.
[0070] Help-seeking communication refers to a communication method in which the rescued party initiates a request for help from the corresponding rescuer through emergency communication information. The rescuer is the party that can provide help and rescue to the rescued party. The rescuer can be an individual or a team.
[0071] The rescue service entrance refers to the entrance to the rescue service, which can be presented in different forms, for example, the rescue service entrance can be presented in at least one of a rescue service control, a rescue graphic code, and a rescue link. When the rescue service entrance is triggered, the early warning application can be entered and at least one emergency communication information can be displayed on the rescue service interface.
[0072] In one embodiment, the electronic device displays a rescue service interface through an early warning application, and displays at least one emergency communication information on the rescue service interface.
[0073] In this embodiment, a rescue service entrance may be displayed on the rescue service interface, and clicking the rescue service entrance may display at least one emergency communication information on the rescue service interface.
[0074] In this embodiment, the rescue service interface may also be used to fill in the request for help.
[0075] Specifically, the user can display the rescue service entrance through the electronic device. Further, the user can enter the early warning application running on the electronic device through the communication account, and display the rescue service entrance in the early warning application.
[0076] Specifically, the electronic device can obtain the location information of the object to be rescued, determine at least one emergency communication information based on the location information, and display at least one emergency communication information on the rescue service interface. The object to be rescued can initiate rescue communication to the corresponding rescue party through the at least one emergency communication information.
[0077] In one embodiment, determining at least one emergency communication information based on the location information includes: selecting at least one emergency communication information that meets a recommendation condition from a plurality of candidate communication information based on the location information.
[0078] In this embodiment, a rescue service entrance is displayed, and in response to a triggering operation on the rescue service entrance, a rescue service interface is displayed, and at least one emergency communication information is displayed on the rescue service interface. The emergency communication information is determined based on the location information of the object to be rescued, and can provide targeted emergency communication information for each object to be rescued in an earthquake, so that the provided emergency communication information can more effectively provide help to the object to be rescued in the earthquake. At least one emergency communication information is used for the object to be rescued to initiate a communication for help, so that different objects to be rescued can initiate help to the corresponding rescue party through targeted emergency communication information, which can effectively improve the efficiency of help and rescue in earthquake scenarios.
[0079] In one embodiment, the method further comprises:
[0080] At least one local associated device is determined, and the earthquake warning information is forwarded to the at least one associated device; the earthquake warning information is used to instruct the associated device to perform an earthquake warning action.
[0081] Specifically, when the electronic device receives earthquake warning information fed back by the warning device, it determines at least one local associated device and forwards the earthquake warning information to each associated device, so that the associated device performs an earthquake warning action.
[0082] The electronic device may store an association list locally, in which at least one associated device is recorded. The associated device may use the same network, be in the same local area network, or use the same communication account as the electronic device, but is not limited thereto.
[0083] In this embodiment, the associated device is bound to the electronic device, and the associated device and the electronic device are bound through the same communication account, that is, the associated device and the electronic device have logged into the same communication account.
[0084] The early warning application is run on both the electronic device and the associated device. The early warning application of the electronic device is logged into the communication account, and the same communication account is also logged into the early warning application of each associated device. The early warning application of the electronic device reports the motion information and location information to the early warning device, and receives the earthquake early warning information fed back by the early warning device. The early warning application forwards the earthquake early warning information to each associated device logged into the same communication account, so that the early warning application of each associated device also receives the earthquake early warning information and performs the earthquake early warning action.
[0085] The warning application may be any application with an address warning function. The application may refer to a client installed in a terminal, or may refer to an application that is free of installation, that is, an application that can be used without downloading and installing. An application that is free of installation may also be referred to as a mini-program, which is usually run as a sub-program in a client. The client is referred to as a parent application, and the sub-program running in the client is referred to as a sub-application. The application may also refer to a web application opened through a browser, etc., but is not limited thereto.
[0086] In this embodiment, at least one local associated device is determined, and the earthquake warning information is forwarded to at least one associated device, so that the associated device performs an earthquake warning action to prompt the user to pay attention to earthquake-related situations, which helps to increase the probability of escape during an earthquake.
[0087] In one embodiment, reporting the motion information and location information to the early warning device includes:
[0088] Receive motion information and location information sent by at least one associated device; determine a first information difference between the motion information sent by at least one associated device and local motion information; determine a second information difference between the location information sent by at least one associated device and local location information; when the first information difference is less than a first preset difference, and the second information difference is less than a second preset difference, report the local motion information and location information to the early warning device.
[0089] Among them, information differences can be represented by the similarity of information. The higher the similarity, the smaller the difference, and the lower the similarity, the greater the difference.
[0090] Specifically, the electronic device receives motion information and location information sent by at least one associated device, determines a first information difference between the motion information sent by at least one associated device and the local motion information, and determines a second information difference between the location information sent by at least one associated device and the local location information.
[0091] When the first information difference is smaller than the first preset difference, and the second information difference is smaller than the second preset difference, the local motion information and location information are reported to the early warning device.
[0092] In this embodiment, the similarity between the motion information of each associated device and the local motion information can be determined respectively, and the similarity can be used as the first information difference. The similarity between the location information of each associated device and the local location information can be determined respectively, and the similarity can be used as the second information difference.
[0093] In one embodiment, the location information of the associated device includes the current location of the associated device, and the location information of the electronic device includes the current location of the electronic device. The distance between the current location of the associated device and the current location of the electronic device can be calculated respectively, and the distance is used as the second information difference.
[0094] In one of the embodiments, local motion information and location information are reported to the early warning device when at least one of the following situations exists: the first information difference is less than the first preset difference, when the first information difference is less than the first preset difference, and the second information difference is less than the second preset difference.
[0095] In one embodiment, motion information and location information are reported to an early warning device, including: receiving motion information sent by at least one associated device, and determining a first information difference between the motion information sent by at least one associated device and local motion information, and when the first information difference is less than a first preset difference, reporting the local motion information and location information to the early warning device.
[0096] In this embodiment, the motion information and location information sent by at least one associated device are received, the first information difference between the motion information sent by at least one associated device and the local motion information is determined, and the second information difference between the location information sent by at least one associated device and the local location information is determined. If the first information difference is less than the first preset difference, it means that the vibration information of the electronic device and the associated device is similar, and the possibility of an earthquake is high. If the second information difference is less than the second preset difference, it means that the distance between the electronic device and the associated device is close, and it can also be judged that the possibility of an earthquake at the current location is high. In this case, when the first information difference is less than the first preset difference and the second information difference is less than the second preset difference, the local motion information and location information are reported to the early warning device, so that the reported information is more accurate, the electronic device is prevented from misjudging, and the early warning device can more accurately determine earthquake-related situations.
[0097] In one embodiment, determining at least one local associated device and forwarding earthquake early warning information to the at least one associated device includes:
[0098] Determine the currently connected local area network and determine at least one associated device in the local area network; send earthquake early warning information to at least one associated device in the local area network.
[0099] Specifically, the electronic device determines the currently connected local area network, determines at least one associated device in the local area network, and forwards the earthquake warning information to the at least one associated device in the local area network.
[0100] In this embodiment, the local area network may be a home network, and multiple devices of the user may join the home network. The devices in the home network are associated with each other so that the devices use the same network.
[0101] In this embodiment, when an electronic device receives earthquake warning information, a prompt is given on the electronic device. If no response is received after a specified time period, the earthquake warning information can be forwarded to at least one associated device in the local area network so that the associated device gives a prompt.
[0102] In this embodiment, the currently connected local area network is determined, and at least one associated device in the local area network is determined, and earthquake warning information is sent to at least one associated device in the local area network, so that earthquake warnings can be issued to associated devices in the same network, prompting users in multiple ways.
[0103] In one embodiment, the method further comprises:
[0104] When the motion information meets the earthquake warning conditions and the earthquake warning information distributed by the warning device is not received, local warning information is generated based on the motion information and location information; the local warning information is forwarded to at least one associated device; the local warning information is used to instruct the associated device to perform a local earthquake warning action.
[0105] Among them, local warning information is earthquake warning information generated locally by electronic equipment and is used to execute local earthquake warning actions.
[0106] Specifically, when the motion information meets the earthquake warning condition and the earthquake warning information distributed by the warning device is not received, the electronic device generates local warning information according to the motion information and location information.
[0107] The electronic device forwards the local warning information to at least one associated device, so that each associated device also receives the local warning information and performs the same earthquake warning action as the local electronic device.
[0108] In this embodiment, when the motion information detected locally by the electronic device meets the earthquake warning conditions, but the earthquake warning information distributed by the warning device has not been received, local warning information can be generated based on the motion information and location information, and the earthquake warning information can be forwarded to at least one local associated device, so that the associated device performs the same earthquake warning action as the local device, so that in the event of network damage, etc., the local associated device can still trigger the local earthquake warning action, so that the user can receive the earthquake warning prompt in time, thereby improving the chance of escape in an earthquake scene.
[0109] In one embodiment, the early warning device generates a variety of earthquake early warning information based on the motion information and location information reported by multiple electronic devices, and the various earthquake early warning information is related to the location information of the multiple electronic devices.
[0110] Specifically, the early warning device can receive motion information uploaded by multiple electronic devices, and generate multiple earthquake early warning information based on the motion information and location information reported by multiple electronic devices. Multiple earthquake early warning information is related to the location information of multiple electronic devices, so that targeted earthquake early warning information can be provided based on different locations, so that the generated earthquake early warning information is more in line with the actual situation of the current location, and the earthquake early warning is more accurate.
[0111] In this embodiment, the early warning device can determine earthquake-related information based on the motion information and location information reported by multiple electronic devices. For each location information, based on the earthquake-related information and the targeted location information, earthquake early warning information for the location information is generated, and the electronic device for the targeted location information is reported to send the earthquake early warning information for the location information. There may be differences in the earthquake early warning information corresponding to different location information, such as at least one difference such as earthquake level, earthquake azimuth, and earthquake source time.
[0112] In one embodiment, the method further comprises:
[0113] When earthquake warning information is received from the early warning device, the earthquake warning information is prompted on the electronic device.
[0114] Specifically, when an electronic device receives earthquake warning information sent by a warning device, the earthquake warning information is prompted on the electronic device, so that the user can pay attention to the earthquake warning in time and escape in time.
[0115] In this embodiment, the electronic device can prompt the user to pay attention to the earthquake warning information through voice playback, vibration, screen flashing, etc.
[0116] In one embodiment, an earthquake early warning method is provided, which is applied to an electronic device, comprising:
[0117] Detecting local motion information through sensors of electronic devices and obtaining location information of the electronic devices;
[0118] When the motion information meets the earthquake early warning condition, determine the currently connected local area network, determine at least one associated device in the local area network, and obtain the motion information and location information of at least one associated device;
[0119] Determine a first information difference between the motion information sent by at least one associated device and the local motion information;
[0120] Determine a second information difference between the location information sent by at least one associated device and the local location information;
[0121] When the first information difference is less than the first preset difference and the second information difference is less than the second preset difference, the local motion information and position information are reported to the early warning device, so that the early warning device generates earthquake early warning information based on the motion information and position information, and distributes the earthquake early warning information to multiple electronic devices.
[0122] When the motion information meets the earthquake warning conditions and the earthquake warning information distributed by the warning equipment is not received, the local earthquake warning action is executed.
[0123] When earthquake warning information sent by the warning device is received, the earthquake warning information is prompted on the electronic device, and the earthquake warning information is forwarded to at least one associated device in the local area network.
[0124] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0125] Based on the same inventive concept, the embodiment of the present application also provides an earthquake early warning device for implementing the earthquake early warning method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more earthquake early warning device embodiments provided below can refer to the limitations on the earthquake early warning method above, and will not be repeated here.
[0126] In one embodiment, Figure 4As shown, an earthquake early warning device 400 is provided, including: a detection module 402, a reporting module 404 and an early warning module 406, wherein:
[0127] The detection module 402 is used to detect local motion information through a sensor of the electronic device and obtain the location information of the electronic device.
[0128] The reporting module 404 is used to report the motion information and the position information to the early warning device; the early warning device generates earthquake early warning information based on the motion information and the position information, and distributes the earthquake early warning information to multiple electronic devices.
[0129] The early warning module 406 is used to execute a local earthquake early warning action when the motion information meets the earthquake early warning conditions and the earthquake early warning information distributed by the early warning device is not received.
[0130] The earthquake early warning method of this embodiment detects local motion information through the sensor of the electronic device, obtains the location information of the electronic device, reports the motion information and location information to the early warning device, and uses the information reported by the electronic device as supplementary data for earthquake early warning, so that the early warning device generates earthquake early warning information based on the motion information and location information, and distributes the earthquake early warning information to multiple electronic devices, so that the early warning device can use more data to predict earthquake conditions, which can improve the accuracy and precision of earthquake early warning. In addition, the information uploaded by the electronic device does not require manual collection of a large amount of data, which is low in cost and strong in timeliness. In addition, the electronic device of this embodiment also has a local early warning function. When the motion information detected locally by the electronic device meets the earthquake early warning conditions, but the earthquake early warning information distributed by the early warning device is not received, the local earthquake early warning action can be executed to prompt the user, so that in the case of network damage, etc., the local earthquake early warning action can still be triggered.
[0131] In one embodiment, the apparatus further comprises:
[0132] The forwarding module is used to determine at least one local associated device and forward the earthquake warning information to the at least one associated device; the earthquake warning information is used to instruct the associated device to perform an earthquake warning action.
[0133] In this embodiment, at least one local associated device is determined, and the earthquake warning information is forwarded to at least one associated device, so that the associated device performs an earthquake warning action to prompt the user to pay attention to earthquake-related situations, which helps to increase the probability of escape during an earthquake.
[0134] In one embodiment, the reporting module 404 is also used to receive motion information and location information sent by at least one associated device; determine a first information difference between the motion information sent by at least one associated device and the local motion information; determine a second information difference between the location information sent by at least one associated device and the local location information; when the first information difference is less than a first preset difference, and the second information difference is less than a second preset difference, report the local motion information and location information to the early warning device.
[0135] In this embodiment, the motion information and location information sent by at least one associated device are received, the first information difference between the motion information sent by at least one associated device and the local motion information is determined, and the second information difference between the location information sent by at least one associated device and the local location information is determined. If the first information difference is less than the first preset difference, it means that the vibration information of the electronic device and the associated device is similar, and the possibility of an earthquake is high. If the second information difference is less than the second preset difference, it means that the distance between the electronic device and the associated device is close, and it can also be judged that the possibility of an earthquake at the current location is high. In this case, when the first information difference is less than the first preset difference and the second information difference is less than the second preset difference, the local motion information and location information are reported to the early warning device, so that the reported information is more accurate, the electronic device is prevented from misjudging, and the early warning device can more accurately determine earthquake-related situations.
[0136] In one embodiment, the apparatus further comprises:
[0137] The forwarding module is used to determine the currently connected local area network and at least one associated device in the local area network; and send earthquake warning information to at least one associated device in the local area network.
[0138] In this embodiment, the currently connected local area network is determined, and at least one associated device in the local area network is determined, and earthquake warning information is sent to at least one associated device in the local area network, so that earthquake warnings can be issued to associated devices in the same network, prompting users in multiple ways.
[0139] In one embodiment, the apparatus further comprises:
[0140] A generating module, for generating local warning information based on the motion information and the position information when the motion information meets the earthquake warning condition and the earthquake warning information distributed by the warning device is not received;
[0141] The forwarding module is used to forward the local warning information to at least one associated device; the local warning information is used to instruct the associated device to perform a local earthquake warning action.
[0142] In this embodiment, when the motion information detected locally by the electronic device meets the earthquake warning conditions, but the earthquake warning information distributed by the warning device has not been received, local warning information can be generated based on the motion information and location information, and the earthquake warning information can be forwarded to at least one local associated device, so that the associated device performs the same earthquake warning action as the local device, so that in the event of network damage, etc., the local associated device can still trigger the local earthquake warning action, so that the user can receive the earthquake warning prompt in time, thereby improving the chance of escape in an earthquake scene.
[0143] In one embodiment, the early warning device generates a variety of earthquake early warning information based on the motion information and location information reported by multiple electronic devices, and the various earthquake early warning information is related to the location information of the multiple electronic devices.
[0144] In one embodiment, the apparatus further comprises:
[0145] The prompt module is used to prompt the earthquake warning information on the electronic device when the earthquake warning information sent by the early warning device is received.
[0146] In this embodiment, when an electronic device receives earthquake warning information sent by a warning device, the earthquake warning information is prompted on the electronic device, so that the user can pay attention to the earthquake warning in time and escape in time.
[0147] Each module in the above earthquake early warning device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0148] In one embodiment, an early warning device is provided, which may be a terminal or a server. Taking the server as an example, its internal structure diagram may be as follows: Figure 5As shown. The electronic device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store earthquake early warning data. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an earthquake early warning method is implemented.
[0149] In one embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an earthquake early warning method is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.
[0150] Those skilled in the art will understand that Figure 5 or Figure 6The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0151] The embodiment of the present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, the processors execute the steps of the earthquake early warning method.
[0152] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute an earthquake early warning method.
[0153] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0154] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0155] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0156] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An earthquake early warning method, characterized in that: include: Detecting local motion information through a sensor of the electronic device and obtaining location information of the electronic device; Reporting the movement information and the location information to an early warning device; The early warning device generates earthquake early warning information based on the motion information and the location information, and distributes the earthquake early warning information to a plurality of electronic devices; When the motion information meets the earthquake warning condition and the earthquake warning information distributed by the warning device is not received, a local earthquake warning action is performed.
2. The method according to claim 1, characterized in that The method further comprises: Determine at least one local associated device, and forward the earthquake warning information to the at least one associated device; the earthquake warning information is used to instruct the associated device to perform an earthquake warning action.
3. The method according to claim 2, characterized in that The step of reporting the motion information and the location information to an early warning device includes: receiving the motion information and location information sent by the at least one associated device; Determine a first information difference between the motion information sent by the at least one associated device and the local motion information; Determine a second information difference between the location information sent by the at least one associated device and the local location information; When the first information difference is smaller than a first preset difference, and the second information difference is smaller than a second preset difference, the local motion information and the location information are reported to the early warning device.
4. The method according to claim 2, characterized in that: The step of determining at least one local associated device and forwarding the earthquake early warning information to the at least one associated device comprises: Determine a currently connected local area network, and determine at least one associated device in the local area network; The earthquake warning information is sent to at least one associated device in the local area network.
5. The method according to claim 2, characterized in that: The method further comprises: When the motion information meets the earthquake warning condition and the earthquake warning information distributed by the warning device is not received, generating local warning information based on the motion information and the location information; The local warning information is forwarded to the at least one associated device; the local warning information is used to instruct the associated device to perform the local earthquake warning action.
6. The method according to claim 1, characterized in that The early warning device generates a variety of earthquake early warning information based on motion information and location information reported by multiple electronic devices, and the multiple earthquake early warning information is related to the location information of the multiple electronic devices.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: When the earthquake warning information sent by the warning device is received, the earthquake warning information is prompted on the electronic device.
8. An earthquake early warning device, characterized in that: include: A detection module, used to detect local motion information through a sensor of the electronic device and obtain location information of the electronic device; A reporting module, used for reporting the motion information and the location information to an early warning device; The early warning device generates earthquake early warning information based on the motion information and the location information, and distributes the earthquake early warning information to a plurality of electronic devices; The early warning module is used to execute a local earthquake early warning action when the motion information meets the earthquake early warning condition and the earthquake early warning information distributed by the early warning device is not received.
9. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.