Method and equipment for realizing earthquake monitoring of mobile equipment
1. A method of implementing seismic monitoring for a mobile device, the mobile device including an underlying processor and a main processor, the method comprising:
standardizing virtual seismic sensors and designating registers mapped with the virtual seismic sensors;
permitting the bottom processor to identify suspected seismic events and calculate seismic key data;
configuring the underlying processor for writing the seismic critical data to the register;
intervening the main processor for obtaining the seismic critical data through sensor events of the virtual seismic sensor;
configuring the main processor to transmit the seismic critical data to a seismic processing center.
2. The method of implementing mobile device seismic monitoring of claim 1, the mobile device further comprising an acceleration sensor, wherein the canonical virtual seismic sensor comprises:
creating a virtual sensor instance on a hardware abstraction layer based on the acceleration sensor and the bottom processor, and obtaining a sensor handle of the virtual sensor instance, wherein the type identifier of the virtual sensor instance is a seismic sensor;
and taking the virtual sensor instance as a virtual seismic sensor.
3. The method of implementing mobile device seismic monitoring of claim 2, wherein the canonical virtual seismic sensor further comprises:
registering the virtual seismic sensor in an operating system of the mobile device, wherein the virtual seismic sensor is permitted to be a wake-up sensor.
4. The method of implementing mobile device seismic monitoring of claim 2, wherein said permitting said underlying processor to identify suspected seismic events and to calculate seismic key data comprises:
permitting the underlying processor to be configured with a monitoring application configured to:
acquiring real-time data of the acceleration sensor,
identifying whether the acquired real-time data is a suspected seismic event or not based on a characteristic identification algorithm of the seismic waves,
and when the real-time data is identified to be a suspected seismic event, calculating the seismic key data based on a seismic key data processing algorithm.
5. The method of implementing mobile device seismic monitoring of claim 2, wherein prior to said intervening said host processor being used to obtain said seismic critical data from sensor events of said virtual seismic sensors, the method further comprises:
permitting the host processor to be configured with a transmission application for the seismic critical data, the transmission application to:
obtaining the seismic key data through sensor events of the virtual seismic sensors.
6. The method of implementing mobile device seismic monitoring of claim 5, wherein the transmission application is specifically configured to:
obtaining the seismic key data in sensor events of the virtual seismic sensor through a callback function, wherein,
the callback function is configured to register with an operating system of the mobile device through the sensor handle.
7. The method of implementing mobile device seismic monitoring of claim 6, wherein prior to said intervening said host processor being used to obtain said seismic critical data from sensor events of said virtual seismic sensors, the method further comprises:
configuring the underlying processor to send an interrupt signal to the primary processor while the primary processor is in a sleep state.
8. The method of implementing mobile device seismic monitoring of claim 7, wherein said intervening said host processor is configured to obtain said seismic critical data from sensor events of said virtual seismic sensors, comprising any of:
when the main processor is not in a dormant state and the sensor event is not generated, selecting the process of transmitting the application program to be in a blocking state;
when the main processor is not in the dormant state and the sensor event is generated, selecting the process of transmitting the application program as an operating state, and reading the sensor event;
and when the main processor is not in the dormant state, putting the process of the transmission application program into a ready queue, wherein the process has the highest priority of the ready queue.
9. The method of implementing mobile device seismic monitoring of claim 5, further comprising:
intervening the main processor for authenticating the transmitting application,
and if the hardware unique identifier of the mobile equipment and the timestamp record of the manufacturer server of the mobile equipment accessed by the transmission application program are consistent with the hardware unique identifier and the timestamp record recorded on the manufacturer server, the authentication is passed.
10. The method of implementing mobile device seismic monitoring of claim 5, wherein said configuring said main processor for transmitting said seismic critical data to a seismic processing center comprises:
configuring the transfer application to:
sending the obtained seismic key data to a seismic processing center, or
And sending the obtained earthquake key data to a manufacturer server of the mobile equipment, so that the manufacturer server forwards the earthquake key data to an earthquake processing center.
11. A mobile device comprising an underlying processor and a main processor,
the bottom processor is licensed for identifying suspected seismic events and calculating seismic key data;
the underlying processor is configured to write the seismic critical data to a register, wherein the register is designated as a register mapped with a canonical virtual seismic sensor;
the main processor is interposed for obtaining the seismic critical data by sensor events of the virtual seismic sensors;
the host processor is configured for transmitting the seismic critical data to a seismic processing center.
12. A computer readable storage medium storing computer instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 10.
Background
In the world, a few earthquake early warning systems exist at present, and generally rely on monitoring networks formed by traditional professional earthquake fixed monitoring stations and other devices, and the monitoring networks exist in a few countries. Thus, although these devices may detect the occurrence of seismic activity, they may only detect earthquakes in a few areas of the world, and may provide earthquake warning in areas where there is a monitoring network, and may be difficult to warn in areas outside of the monitoring network.
At present, the preservation quantity of mobile devices such as global smart phones and smart tablets reaches billions, most smart phones and smart tablets are provided with acceleration sensors, and the mobile devices are used for earthquake monitoring to perform some work in experimental environments. However, practice shows that the mobile device is mainly used as a mobile communication tool of a user, the mobile device inevitably faces random events which are larger than the mobile device, which will cause vibration of the mobile device, and if the mobile device detects the vibration of the mobile device, the mobile device needs to process the vibration, which will cause large power consumption of the mobile device in processing the monitored vibration data, and affect the user experience of the mobile device.
Therefore, how to use the mobile device for earthquake monitoring is a troublesome problem to be solved.
Disclosure of Invention
The invention aims to provide a method and equipment for realizing earthquake monitoring of mobile equipment, which can avoid the difficulty of long-term communication between an earthquake monitoring program of the mobile equipment and an earthquake processing center and the influence of the execution of the earthquake monitoring program on the use of the mobile equipment by a user, and further improve the practical availability and use cost of the mobile equipment for earthquake monitoring.
In order to achieve the above object, an embodiment of the present invention provides a method for implementing seismic monitoring of a mobile device, where the mobile device includes an underlying processor and a main processor, the method including:
standardizing virtual seismic sensors and designating registers mapped with the virtual seismic sensors;
permitting the bottom processor to identify suspected seismic events and calculate seismic key data;
configuring the underlying processor for writing the seismic critical data to the register;
intervening the main processor for obtaining the seismic critical data through sensor events of the virtual seismic sensor;
configuring the main processor to transmit the seismic critical data to a seismic processing center.
Specifically, the mobile device further includes an acceleration sensor, and the normative virtual seismic sensor includes:
creating a virtual sensor instance on a hardware abstraction layer based on the acceleration sensor and the bottom processor, and obtaining a sensor handle of the virtual sensor instance, wherein the type identifier of the virtual sensor instance is a seismic sensor;
and taking the virtual sensor instance as a virtual seismic sensor.
Specifically, the standardized virtual seismic sensor further includes:
registering the virtual seismic sensor in an operating system of the mobile device, wherein the virtual seismic sensor is permitted to be a wake-up sensor.
Specifically, the permitting the underlying processor to identify suspected seismic events and calculate seismic key data includes:
permitting the underlying processor to be configured with a monitoring application configured to:
acquiring real-time data of the acceleration sensor,
identifying whether the acquired real-time data is a suspected seismic event or not based on a characteristic identification algorithm of the seismic waves,
and when the real-time data is identified to be a suspected seismic event, calculating the seismic key data based on a seismic key data processing algorithm.
Specifically, before the intervention of the main processor for obtaining the seismic critical data through the sensor events of the virtual seismic sensor, the method further comprises:
permitting the host processor to be configured with a transmission application for the seismic critical data, the transmission application to:
obtaining the seismic key data through sensor events of the virtual seismic sensors.
Specifically, the transmission application is specifically configured to:
obtaining the seismic key data in sensor events of the virtual seismic sensor through a callback function, wherein,
the callback function is configured to register with an operating system of the mobile device through the sensor handle.
Specifically, before the intervention of the main processor for obtaining the seismic critical data through the sensor events of the virtual seismic sensor, the method further comprises:
configuring the underlying processor to send an interrupt signal to the primary processor while the primary processor is in a sleep state.
Specifically, the intervening main processor is configured to obtain the seismic key data through sensor events of the virtual seismic sensor, and includes any one of:
when the main processor is not in a dormant state and the sensor event is not generated, selecting the process of transmitting the application program to be in a blocking state;
when the main processor is not in the dormant state and the sensor event is generated, selecting the process of transmitting the application program as an operating state, and reading the sensor event;
placing the process of the transfer application in a ready queue when the main processor is not in the sleep state, wherein the process has a highest priority of the ready queue.
Specifically, the method further comprises:
intervening the main processor for authenticating the transmitting application,
and if the hardware unique identifier of the mobile equipment and the timestamp record of the manufacturer server of the mobile equipment accessed by the transmission application program are consistent with the hardware unique identifier and the timestamp record recorded on the manufacturer server, the authentication is passed.
Specifically, the configuring the main processor to transmit the seismic critical data to a seismic processing center includes:
configuring the transfer application to:
sending the obtained seismic key data to a seismic processing center, or
And sending the obtained earthquake key data to a manufacturer server of the mobile equipment, so that the manufacturer server forwards the earthquake key data to an earthquake processing center.
In yet another aspect, an embodiment of the present invention provides a mobile device, which includes an underlying processor and a main processor,
the bottom processor is licensed for identifying suspected seismic events and calculating seismic key data;
the underlying processor is configured to write the seismic critical data to a register, wherein the register is designated as a register mapped with a canonical virtual seismic sensor;
the main processor is interposed for obtaining the seismic critical data by sensor events of the virtual seismic sensors;
the host processor is configured for transmitting the seismic critical data to a seismic processing center.
In yet another aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer instructions, which, when executed on a computer, cause the computer to perform the foregoing method.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the embodiments of the invention without limiting the embodiments of the invention. In the drawings:
FIG. 1 is a schematic diagram of the main steps of the method according to the embodiment of the present invention;
fig. 2 is a schematic diagram of an exemplary monitoring architecture according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating embodiments of the invention, are given by way of illustration and explanation only, not limitation.
The applicant found that: with the installation of applications in mobile devices to attempt seismic monitoring, the following problems exist: 1. the application program is required to be in long connection with a server of the seismic processing center, the long connection has the problems of high power consumption, high data traffic consumption and the like, and the power consumption and the data traffic cost cause use burden on a user of the mobile equipment; 2. the process of the application program is easily killed by management programs such as background power management and the like, and the application program is difficult to be online in real time, so that the effect of real-time monitoring cannot be achieved. In this regard, embodiments of the present invention will provide a solution for seismic monitoring using mobile devices.
Example 1
The embodiment of the invention provides a method for realizing seismic monitoring of mobile equipment, which can be applied to the mobile equipment, wherein the mobile equipment can comprise a bottom layer processor and a main processor, and as shown in FIG. 1, the method can comprise the following steps:
s1) standardizing virtual seismic sensors and designating registers mapped with the virtual seismic sensors;
s2) permitting the bottom processor to be used for identifying suspected seismic events and calculating seismic key data;
s3) configuring the bottom processor for writing the seismic critical data to the register;
s4) intervening the main processor for obtaining the seismic critical data from sensor events of the virtual seismic sensor;
s5) configuring the main processor for transmitting the seismic critical data to a seismic processing center.
In some implementations, the mobile device can include a cell phone, a smart tablet, etc., and the underlying processor and the main processor in the mobile device can both be microprocessors. The underlying processor may include one or more low power microprocessors such as a Digital Signal Processor (DSP), a Network Processing Unit (NPU) or a deep learning processor, a microcontroller, a Field Programmable Gate Array (FPGA), and a hardware accelerator, and the underlying processor has the characteristics of fast Processing of image, audio, and video data, efficient mathematical computation, and has the capability of Processing sensor signals. The main processor may include a high power consumption microprocessor such as a Central Processing Unit (CPU), and the main processor has a high dominant frequency and can run most of codes and abundant applications in an operating system of the mobile device. In modern smart phones or tablets, a CPU, a DSP, an intellectual property core (IP core), and the like are generally integrated in a System-on-Chip (SoC) architecture, and the operating states of the CPU and the DSP may be determined by executing a specific instruction, monitoring a current of a specific circuit, reading a System log, observing infrared thermal imaging, and the like, so that whether the CPU and/or the DSP is in a sleep state may be determined. In the embodiment of the invention, aiming at the power consumption characteristics of the processor of the mobile equipment, the bottom processor is used for executing the earthquake monitoring, and the main processor is used for executing the earthquake key data transmission, so that the practical and feasible low-power consumption earthquake monitoring is realized.
Further, embodiments of the present invention standardize and enable the main processor to access and transfer data from the underlying processor through the virtual seismic sensors. On a mobile device, the sensors may include physical sensors, including acceleration sensors, and may also include gyroscopes and/or magnetometers, and the like. A virtual (or simulated) sensor instance may be created on a mobile device for a particular operating system of the mobile device based on the sensor stack architecture defined by the operating system. For example, in the Android operating system, sensors such as a tilt detector, a linear accelerator, and a pedometer are all virtual sensor instances, such as a pedometer, which are standardized virtual sensor instances defined by a sensor stack architecture based on underlying hardware of an acceleration sensor and an underlying processor. In view of this, in an exemplary example of the embodiment of the present invention, the virtual seismic sensor may be specified based on an Android operating system, where the specification may be to create a sensor according to a sensor stack architecture in an operating system of a mobile device, and specifically may include:
s101) based on an acceleration sensor and a bottom processor, creating a virtual sensor instance on a hardware abstraction layer, and obtaining a sensor handle of the virtual sensor instance, wherein the type identifier of the virtual sensor instance is a seismic sensor;
s102) taking the virtual sensor instance as a virtual seismic sensor.
Wherein, step S101) and step S102) may be executed by the manufacturer platform of the mobile device for the seismic processing center, or may be completed by the manufacturer platform license of the mobile device after being executed by the seismic processing center. In an advantageous embodiment, in addition to using acceleration sensors, gyroscopes and/or magnetometers, temperature sensors, etc. may be used in step S101) to assist, calibrate the physical sensors to achieve a higher accuracy of the virtual seismic sensors. In an operating system of the mobile device, the virtual seismic sensor can be registered with information such as the name, type, version, resolution, energy consumption and the like of the standard virtual seismic sensor; for example, in the Android operating system, the virtual seismic sensor may be registered to the sensor manager specifically with the aforementioned information in order to obtain system support; meanwhile, the virtual seismic sensor can be permitted to be a wake-up sensor or a sensor with a wake-up authority by the manufacturer platform, so that the mobile device main processor can be awakened in time in a dormant state, and data of the virtual seismic sensor can be transmitted within a certain time through an awakening mechanism. It should be noted that the vendor platform may be a (virtual or physical) server-based network element; the seismic processing center may be a (virtual or physical) server-based network element; in the embodiment of the present invention, a network element may be a virtual node or an entity device providing a service in a communication network; the permission can be that the manufacturer platform provides the seismic processing center with the required authority for implementing the seismic monitoring to the seismic processing center and/or the mobile equipment; with respect to whether or not to permit, illustratively, the permitted can be authenticated in any of the listed ways: whether any designated credentials or data are exchanged offline, whether any designated credentials or data are exchanged online, whether any designated credentials or data are present on the mobile device, whether any designated credentials or data are present as held by the seismic processing center, etc., although it is understood that other non-listed designated means or content may be present to authenticate; all statements herein may be understood as being within the scope of embodiments of the present invention.
The sensing data for the canonical virtual seismic sensor may be generated by the underlying processor and the acceleration sensor. The sensed data may be recorded in a variety of ways, for example, registers mapped to virtual seismic sensors (with data) may be specified. In some cases, registers in the underlying processor may be directly designated as registers for data mapping with the virtual seismic sensors, at which time the sensed data may be synchronously transmitted so that the data generated by the underlying processor and the acceleration sensors are synchronously read in real time. In still other cases, a register in the underlying processor may be designated as a register having a data mapping with the virtual seismic sensor, and data generated by the underlying processor and the acceleration sensor may be recorded in the register, then retrieved from the register and mapped and recorded to a logical storage location, such as a buffer formed in a chain table, an array, etc., where the sensed data is data in the buffer, and the sensed data may be transmitted asynchronously, so as to reduce the difficulty of transmitting application data in the operating system of the mobile device. It is to be noted that the sensing data recording of the virtual seismic sensors can be implemented by using one or a combination of various ways according to actual needs.
In an advantageous disclosed embodiment, the vendor platform may specifically permit the underlying processor to be configured with a monitoring application configured for identifying suspected seismic events and calculating seismic critical data, which may be formed (e.g., compiled, packaged, etc.) by a seismic processing center. In particular, the monitoring application may be configured to:
s201) acquiring real-time data of the acceleration sensor;
s202) identifying whether the acquired real-time data is a suspected seismic event or not based on a seismic wave feature identification algorithm;
s203) when the real-time data are identified to be suspected seismic events, calculating seismic key data based on a seismic key data processing algorithm.
The seismic wave feature recognition algorithm may extract seismic feature data from real-time data (seismic data), determine a similarity probability between the seismic feature data and the seismic feature data corresponding to a reference seismic event, and if it is determined that the similarity probability exceeds a configured similarity probability threshold, recognize that the acquired real-time data is a suspected seismic event (the suspected seismic event may be a category, which is also equivalent to the case where the acquired real-time data is recognized as the category), that is, the seismic event that causes the mobile device to vibrate at present is the suspected seismic event. In the identification process, the current real-time data can be used, and the cached data of the acceleration sensor and the data after the current moment can be further used for identifying the seismic waves.
And selecting a corresponding data processing mode according to the actually used seismic key data. Illustratively, the seismic key data may include an identifier of the mobile device, a timestamp, longitude and latitude of the mobile device, and calculated P-wave arrival time, S-wave arrival time, intensity and peak shift (PD), etc., and the data of the identifier and longitude and latitude of the mobile device may not be currently transmitted but may be transmitted in a preconfigured manner at a specified time; for example, according to a calculation formula of the seismic key data such as the arrival time and intensity of the P-wave, a function corresponding to the calculation formula is used as a data processing mode used in a seismic key data processing algorithm. In the calculation process, the current real-time data and the cached data of the acceleration sensor can be used, and the data after the current moment can be further used to finish the calculation of the earthquake key data. The underlying processor may be configured to write the seismic critical data to the aforementioned register, thereby treating the seismic critical data as one of the sensed data of the virtual seismic sensor; it should be added that the sensing data of the virtual seismic sensor may also include data that is defined according to specific requirements and needs to be recorded, such as specific characteristic data of seismic waves.
The vendor platform may also permit the host processor to be configured with a transmission application for seismic critical data that is operable to:
s301) obtaining the seismic key data through the sensor events of the virtual seismic sensor.
Wherein the transfer application may be licensed as one of the applications of the operating system. The virtual seismic sensors may be assigned a reporting mode, and the sensor events of the virtual seismic sensors may be defined by a data structure of event content fields, which may be used to record one or more of the seismic critical data. For example, the reporting mode of the virtual seismic sensor in the Android operating system may be a continuous mode or a variable mode, etc., for example, the virtual seismic sensor may generate sensor events in the continuous mode according to a sampling rate parameter, and the sampling rate parameter may be passed to a batch processing function in the sensor stack architecture by the transmission application.
The transfer application may be specifically configured to:
s311) obtaining seismic critical data in sensor events of the virtual seismic sensor through a callback function, wherein the callback function is configured to register in an operating system of the mobile device through a sensor handle; the callback function can also be called a listener, and can be registered in an operating system of the mobile equipment through the type identification of the sensor; the sensor handle and the type identifier of the sensor can be regarded as the sensor identifier. Therefore, the embodiment of the invention further realizes the purpose of sending the seismic key data generated by the bottom processor to the transmission application program through the virtual seismic sensor. Conversely, in general, in the operating system of the mobile device, the operating system usually masks an underlying processor (such as a DSP) to prevent an application program executed by a main processor in the operating system from directly accessing data of the underlying processor, which makes it difficult for a transmission application program to acquire data obtained by the underlying processor performing seismic monitoring.
In some cases, the underlying processor may be configured to send an interrupt signal to the main processor while the main processor of the mobile device is in a sleep state, thereby waking the main processor. Illustratively, this may be achieved by the aforementioned monitoring application, which may be used to trigger the sending of an interrupt electrical signal after identification as a suspected seismic event or after calculation of seismic critical data; wherein the sending of the interrupt signal may be triggered without determining whether the host processor is in a sleep state. It will be appreciated that the particular signal sent may be selected based on the sleep state of the main processor for program logic rationality. For example, when the host processor is in a sleep state, the sending of an interrupt signal may be triggered to wake up the host processor, while when the host processor is not in a sleep state, the sending of a message on the bus between the host processor and the underlying processor may be triggered to notify the host processor.
The host processor may be interposed for obtaining seismic critical data from sensor events of virtual seismic sensors, and may include any one of:
s401) when the main processor is not in a dormant state and a sensor event is not generated, selecting the process for transmitting the application program as a blocking state;
s402) when the main processor is not in a dormant state and a sensor event is generated, selecting a process for transmitting an application program as an operating state, and reading the sensor event to obtain earthquake key data in the sensor event;
s403) when the main processor is not in the sleep state, placing the process of the transfer application in a ready queue, wherein the process has the highest priority of the ready queue and is higher than the priority of the process of the typical application in the ready queue, and the typical application can comprise an entertainment application, a social application and the like.
Here, the execution order is not limited in steps S401) to S403). It should be noted that, in the process of seismic monitoring, the intervention may be that the hardware resource of the main processor is obviously used by the operating system or the application program (relative to the dormant state or the idle state), and the obvious use may be determined based on a specific instruction display, a current monitoring of a specific circuit, a system log record display or an infrared thermal display and the like.
In order to prevent implementation of security measures such as mobile device counterfeiting, device authentication may be performed on the mobile device, and the device authentication may include: an intervening host processor for authenticating the transmitting application; if the hardware unique identifier of the mobile equipment and the time stamp record of the manufacturer server of the mobile equipment accessed by the transmission application program are consistent with the hardware unique identifier and the time stamp record recorded on the manufacturer server, the authentication is passed; if one of the two is not consistent, the authentication is not passed and the vendor server of the vendor platform or the server of the seismic processing center may refuse to communicate with the mobile device. Wherein the device authentication may be performed after each boot of the mobile device and upon arrival of a specified authentication period, the mobile device may provide the vendor server with a hardware unique identifier and a timestamp record and receive the authentication result.
The authenticated mobile device may communicate with a vendor server and/or a server of the seismic processing center. Configuring a host processor for transmitting seismic critical data to a seismic processing center, comprising:
configuring the transfer application to:
s501) sending the obtained earthquake key data to a server of an earthquake processing center,
s502) sending the obtained earthquake key data to a manufacturer server of the mobile equipment, so that the manufacturer server forwards the earthquake key data to a server of an earthquake processing center.
The execution sequence is not limited in steps S501) to S502), and one of step S501) and step S502) may be specifically used, and step S502) may enable the vendor server to perform the data forwarding function and the data use witness function. The communication connection between the mobile equipment and the seismic processing center, the communication connection between the mobile equipment and the manufacturer server, and the communication connection between the manufacturer server and the seismic processing center can be encrypted; meanwhile, on the mobile equipment, encryption communication between the bottom processor and the main processor can be realized based on a security chip or system security service and the like, so that the data security in the period from generation to uploading of the earthquake key data can be realized.
The embodiment of the invention provides an architecture for monitoring earthquake by using mobile equipment, wherein in the architecture, a bottom processor is used for executing earthquake monitoring, a main processor is used for executing the transmission of earthquake key data, a virtual earthquake sensor is proposed and used for the transmission of the earthquake key data of the bottom processor and the main processor, so that the execution of an example (program, code, instruction operation and the like) of the earthquake monitoring is isolated and protected in a bottom environment, the execution of the example of the earthquake key data transmission is limited in an operating system layer, and the main processor and the bottom processor can obtain the earthquake key data to be transmitted in time by matching with the virtual earthquake sensor to break through the isolation shield of the operating system layer, so that the example of the earthquake monitoring can be executed in real time, the execution of an energy-consuming example is fundamentally limited, and the counterfeiting, forging and the like of the mobile equipment for executing the monitoring are avoided, Data tampering behavior enables seismic monitoring on mobile devices with practical feasibility and reliability, successfully making mobile devices the vision of practically available seismic monitoring devices.
Specifically, the bottom processor is responsible for executing earthquake monitoring work through a monitoring application program, determining whether a suspected earthquake event exists in real time, calculating to obtain earthquake key data after determining that the suspected earthquake event exists, waking up or informing the main processor, obtaining the earthquake key data through the main processor based on a sensor event of the virtual earthquake sensor through the transmission application program, and finally completing uploading of the earthquake key data. The embodiment of the invention provides a virtual seismic sensor for the first time based on a physical sensor and a bottom layer processor of mobile equipment, the execution of a monitoring application program does not influence the normal dormancy of a main processor in real time when a suspected seismic event is not monitored, the seismic key data are transmitted in time through the virtual seismic sensor when the suspected seismic event is monitored, and the transmission application program is based on the execution of hardware resources of the main processor so as to obtain fundamental limitation, thereby having the characteristics of feasible use cost and power consumption; the key data (non-waveform data) of the earthquake are uploaded only when the suspected earthquake event is judged, and the characteristic of low flow consumption is achieved; the function of transmitting data to the server is arranged on an operating system layer, the process of transmitting the application program can not be killed by a system background management program, and the method has the characteristic of reliability compared with an earthquake monitoring scheme which is directly realized by the application program on the system layer.
Example 2
The embodiment of the invention belongs to the same inventive concept as the embodiment 1, and provides a mobile device, which comprises a bottom layer processor and a main processor,
the bottom processor is licensed for identifying suspected seismic events and calculating seismic key data;
the underlying processor is configured to write the seismic critical data to a register, wherein the register is designated as a register mapped with a canonical virtual seismic sensor;
the main processor is interposed for obtaining the seismic critical data by sensor events of the virtual seismic sensors;
the host processor is configured for transmitting the seismic critical data to a seismic processing center.
In an exemplary embodiment of the present disclosure, as shown in fig. 2, the mobile device 100 of the embodiment of the present disclosure may be implemented by adjusting an operating system of the mobile device 100. The mobile device 100 has a Micro-Electro Mechanical Systems (MEMS) type sensor 101, the sensor 101 may include an acceleration sensor, a gyroscope, a magnetometer, etc., and the underlying processor 102 is configured with a monitoring application program after adjustment, and the monitoring application program may be used for seismic data acquisition and seismic critical data analysis processing of the sensor 101. The underlying processor 102 may write the seismic critical data into registers mapped with the canonical virtual seismic sensors 103, where the data may be mapped directly or via a buffer to the sensed data of the virtual seismic sensors 103. The underlying processor 102 may wake up or inform the main processor 104, the main processor 104 is allowed to be configured with a transmission application for transmission of seismic critical data, the main processor 104 is involved in obtaining the seismic critical data by sensor events of the virtual seismic sensors 103, in particular obtaining the sensing data of the virtual seismic sensors 103 in a callback manner by the transmission application, and finally the transmission application transmits the seismic critical data to a server 105, which may be a server of a seismic processing center or a vendor server of a vendor platform of the mobile device 100.
Specifically, the virtual seismic sensor is a virtual sensor instance; the virtual sensor instance is created at a hardware abstraction layer based on the acceleration sensor and the underlying processor; the type of the virtual sensor instance is identified as a seismic sensor.
In particular, the virtual seismic sensor is permitted to wake up and register with the operating system of the mobile device.
In particular, the underlying processor is licensed with a monitoring application configured to:
acquiring real-time data of the acceleration sensor,
identifying whether the acquired real-time data is a suspected seismic event or not based on a characteristic identification algorithm of the seismic waves,
and when the real-time data is identified to be a suspected seismic event, calculating the seismic key data based on a seismic key data processing algorithm.
In particular, the host processor is licensed with a transmission application for the seismic critical data, the transmission application for:
obtaining the seismic key data through sensor events of the virtual seismic sensors.
Specifically, the transmission application is specifically configured to:
obtaining the seismic key data in sensor events of the virtual seismic sensor through a callback function, wherein,
the callback function is configured to register with an operating system of the mobile device through the sensor handle.
Specifically, the bottom layer processor is configured to send an interrupt signal to the main processor.
In particular, the main processor is interposed specifically for:
when the main processor is not in a dormant state and the sensor event is not generated, selecting the process of transmitting the application program to be in a blocking state;
when the main processor is not in the dormant state and the sensor event is generated, selecting the process of transmitting the application program as an operating state, and reading the sensor event;
placing the process of the transfer application in a ready queue when the main processor is not in the sleep state, wherein the process has a highest priority of the ready queue.
In particular, the main processor is interposed for: and authenticating the transmission application program, and if the hardware unique identifier of the mobile equipment and the timestamp record of the manufacturer server of the mobile equipment accessed by the transmission application program are consistent with the hardware unique identifier and the timestamp record recorded on the manufacturer server, the authentication is passed.
In particular, wherein the transfer application is configured to:
sending the obtained seismic key data to a seismic processing center, or
And sending the obtained earthquake key data to a manufacturer server of the mobile equipment, so that the manufacturer server forwards the earthquake key data to an earthquake processing center.
Although the embodiments of the present invention have been described in detail with reference to the accompanying drawings, the embodiments of the present invention are not limited to the details of the above embodiments, and various simple modifications can be made to the technical solutions of the embodiments of the present invention within the technical idea of the embodiments of the present invention, and the simple modifications all belong to the protection scope of the embodiments of the present invention.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, the embodiments of the present invention do not describe every possible combination.
Those skilled in the art will understand that all or part of the steps in the method according to the above embodiments may be implemented by a program, which is stored in a storage medium and includes several instructions to enable a single chip, a chip, or a processor (processor) to execute all or part of the steps in the method according to the embodiments of the present application. While the foregoing storage media may be non-transitory, the storage media may include: a U-disk, a hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In addition, any combination of various different implementation manners of the embodiments of the present invention is also possible, and the embodiments of the present invention should be considered as disclosed in the embodiments of the present invention as long as the combination does not depart from the spirit of the embodiments of the present invention.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:储层的横波品质因子获取方法和装置