Terrestrial magnetism analysis method and system based on embedded platform
Through the geomagnetic analysis method based on the embedded platform, the use of GNSS receivers and spherical harmonic expansion algorithms solves the problem of low accuracy of traditional equipment, achieves accurate acquisition and analysis of geomagnetic field information, and supports efficient applications in fields such as navigation and resource exploration. .
Patent Information
- Application Number
- CN202411144965.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-09-20
AI Technical Summary
Traditional geomagnetic field measurement equipment has problems such as low accuracy and inconvenient operation, and cannot meet society's increasing demand for geomagnetic field accuracy.
The geomagnetic analysis method based on the embedded platform is used to obtain navigation information through the GNSS receiver, decode and extract position information, velocity information and time information, build a geomagnetic field model of the international geomagnetic reference field, and use the spherical harmonic expansion algorithm to calculate the geomagnetic field where the coordinates are located. information.
It realizes the real-time acquisition and analysis of geomagnetic field information, provides more accurate and convenient technical support, and is suitable for navigation, resource exploration and other fields.
Smart Images

Figure CN118670381A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of geomagnetic field analysis and calculation technology, and in particular to a geomagnetic analysis method and system based on an embedded platform. Background Art
[0002] The geomagnetic field mainly comes from the movement of the liquid outer core inside the earth, the rotation of the earth and the movement of electric charges inside the earth. It has an important impact on human navigation, resource exploration and other activities. It is an important tool for marching and navigation orientation, and also helps people find mineral deposits based on the distribution characteristics of the ground magnetic field.
[0003] With the advancement of science and technology, geomagnetic field measurement plays an important role in many fields, such as high-precision instruments, ships and vehicles, attitude control, safety detection, etc. Traditional geomagnetic field measurement equipment has problems such as low accuracy and inconvenient operation. In order to meet the increasing demand for geomagnetic field accuracy in social activities, it is necessary to develop an efficient and accurate device to obtain geomagnetic field values. Summary of the invention In order to solve the above-mentioned problems, the present invention provides a geomagnetic analysis method and system based on an embedded platform.
[0004] In the first aspect, the present invention provides a geomagnetic analysis method based on an embedded platform, which adopts the following technical solution: A geomagnetic analysis method based on an embedded platform, comprising: Get the navigation information received by the embedded module; Derivation of longitude and latitude information of coordinates based on navigation information; Construct a geomagnetic field model based on the International Geomagnetic Reference Field; Calculate the geomagnetic field information of the coordinates based on the geomagnetic field model and longitude and latitude information.
[0005] Furthermore, the acquiring of navigation information received by the embedded module includes acquiring navigation information through a GNSS receiver, extracting position information, speed information and time information through decoding of the navigation information, and extracting NMEA sentences through decoding of the navigation information.
[0006] Furthermore, the derivation of the latitude and longitude information of the coordinates based on the navigation information includes parsing the latitude and longitude information from the extracted NMEA sentence, wherein the latitude and longitude information in the NMEA sentence is given in the form of degrees, minutes and decimal points.
[0007] Furthermore, the geomagnetic field model is constructed based on the international geomagnetic reference field, including obtaining a standardized geomagnetic field model based on the international geomagnetic reference field IGRF. Furthermore, the method of calculating the geomagnetic field information of the coordinates based on the geomagnetic field model and the longitude and latitude information includes inputting the longitude and latitude information into the geomagnetic field model, and calculating the magnetic field strength and direction of the coordinates using the spherical harmonic expansion of the coordinate system.
[0008] Furthermore, the method of calculating the magnetic field strength and direction of the coordinates by using the spherical harmonic expansion of the coordinate system includes firstly expressing a spherical coordinate magnetic field in a passive region near the surface of the earth by a scalar potential function, and the scalar potential function satisfies the Laplace equation, which is expressed as: , , Among them, the spherical coordinates They correspond to the distance from the center of the earth, the co-latitude of the center of the earth (i.e. 90° minus latitude) and the longitude, respectively, and t represents time.
[0009] Furthermore, the use of spherical harmonic expansion of the coordinate system to calculate the magnetic field strength and direction of the coordinates also includes performing Laplace expansion on the scalar potential function of the spherical coordinate magnetic field to obtain a solution, which is expressed as: , Among them, a is the average radius of the earth, which is 6371.2km; the spherical harmonic expansion coefficient is called the Gaussian coefficient, which is a function of time. and is the inner Gaussian coefficient at time t; and is the outer Gaussian coefficient at time t; is the Schmidt-normalized Legendre function of order n and m.
[0010] In the second aspect, a geomagnetic analysis system based on an embedded platform includes: A data acquisition module is configured to acquire navigation information received by the embedded module; The data derivation module is configured to derive the longitude and latitude information of the coordinates based on the navigation information; The model module is configured to construct a geomagnetic field model based on the international geomagnetic reference field; The calculation module is configured to calculate the geomagnetic field information of the coordinates based on the geomagnetic field model and the longitude and latitude information.
[0011] In a third aspect, the present invention provides a computer-readable storage medium storing a plurality of instructions, wherein the instructions are suitable for being loaded and executed by a processor of a terminal device for the geomagnetic analysis method based on an embedded platform.
[0012] In a fourth aspect, the present invention provides a terminal device including a processor and a computer-readable storage medium, wherein the processor is used to implement various instructions; the computer-readable storage medium is used to store multiple instructions, wherein the instructions are suitable for being loaded by the processor and executing the geomagnetic analysis method based on an embedded platform.
[0013] In summary, the present invention has the following beneficial technical effects: The present invention realizes the real-time acquisition and analysis of geomagnetic field information by integrating GPS / GNSS receivers and efficient data processing algorithms through the above-mentioned technical solution, and provides more accurate and convenient technical support for navigation, resource exploration and other fields. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a schematic diagram of a geomagnetic analysis method based on an embedded platform according to Embodiment 1 of the present invention. DETAILED DESCRIPTION
[0015] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0016] Example 1 Reference Figure 1 , a geomagnetic analysis method based on an embedded platform of this embodiment includes: Get the navigation information received by the embedded module; Derivation of longitude and latitude information of coordinates based on navigation information; Construct a geomagnetic field model based on the International Geomagnetic Reference Field; Calculate the geomagnetic field information of the coordinates based on the geomagnetic field model and longitude and latitude information.
[0017] The method of acquiring navigation information received by the embedded module includes acquiring navigation information through a GNSS receiver, extracting position information, speed information and time information through decoding of the navigation information, and extracting NMEA sentences through decoding of the navigation information. The method of deriving the longitude and latitude information of the coordinates based on the navigation information includes parsing the latitude and longitude information from the extracted NMEA sentences, wherein the latitude and longitude information in the NMEA sentences are given in the form of degrees, minutes and decimal points. The method of constructing a geomagnetic field model based on the international geomagnetic reference field includes acquiring a standardized geomagnetic field model based on the international geomagnetic reference field IGRF. The method of calculating the geomagnetic field information of the coordinates based on the geomagnetic field model and the longitude and latitude information includes inputting the longitude and latitude information into the geomagnetic field model, and calculating the magnetic field strength and direction of the coordinates using the spherical harmonic expansion of the coordinate system. The method of calculating the magnetic field strength and direction of the coordinates using the spherical harmonic expansion of the coordinate system includes firstly representing the spherical coordinate magnetic field of a passive area near the surface as a scalar potential function, and the scalar potential function satisfies the Laplace equation, which is expressed as: , , Among them, the spherical coordinates They correspond to the distance to the center of the earth, the co-latitude of the center of the earth (i.e., 90° minus latitude) and the longitude, respectively, and t represents time. The method of calculating the magnetic field strength and direction of the coordinates by using the spherical harmonic expansion of the coordinate system also includes performing Laplace expansion on the scalar potential function of the spherical coordinate magnetic field to obtain the solution, which is expressed as: , Among them, a is the average radius of the earth, which is 6371.2km; the spherical harmonic expansion coefficient is called the Gaussian coefficient, which is a function of time. and is the inner Gaussian coefficient at time t; and is the outer Gaussian coefficient at time t; is the Schmidt-normalized Legendre function of order n and m.
[0018] Specifically, the following steps are included: First, based on an embedded platform, such as an ARM-based development board, install the required software environment and drivers on it. At the same time, connect the GNSS receiver to the embedded platform to ensure that the receiver can receive satellite signals normally.
[0019] The navigation information is obtained through the GNSS receiver. The receiver decodes the received satellite signal, extracts the position information, speed information and time information, and generates NMEA sentences. For example, the received NMEA sentence is: "$GPGGA,123456.00,3000.0000,N,12000.0000,E,1,08,1.0,0.0,M,-34.0,M,,*6A".
[0020] Parse the latitude and longitude information from the extracted NMEA sentence. The latitude is 3000.0000 and the longitude is 12000.0000, which need to be converted into degrees, minutes and decimals. For example, the latitude 3000.0000 can be converted to 30 degrees, 0 minutes and 0.0000 seconds.
[0021] Obtain a standardized geomagnetic field model based on the International Geomagnetic Reference Field IGRF. In actual operation, the geomagnetic field model parameters corresponding to the current time are obtained by accessing relevant databases or using specific algorithms. To obtain a standardized geomagnetic field model, an existing geomagnetic model library or related scientific computing software is used. For example, the geomag library in Python is a commonly used tool. First, in the Python environment, import the geomag library. Then, clarify the current specific time. The time format should be "YYYY-MM-DD HH:MM:SS", such as "2024-08-19 12:00:00", and determine the required location information, including latitude (such as 40.0), longitude (such as -75.0) and altitude (assuming sea level altitude of 0 meters).
[0022] Next, use the geomag function of the geomag library and pass the above latitude, longitude, altitude and time as parameters to obtain the geomagnetic field model parameters.
[0023] In actual operation, there are other ways. For example, you can access the relevant database through an online interface provided by a scientific research institution or organization. In this case, you must send a request containing time and location information in the format specified by them, and then receive the returned model parameter data.
[0024] In addition, if a specific algorithm is used to obtain the geomagnetic field parameters, this usually involves an in-depth understanding of the mathematical formulas and models of the International Geomagnetic Reference Field. Taking the spherical harmonic expansion algorithm as an example, it is necessary to calculate the corresponding spherical harmonic coefficients based on given information such as longitude, latitude and time, and then obtain parameters such as magnetic field strength and direction.
[0025] The longitude and latitude information is input into the constructed geomagnetic field model, and the spherical harmonic expansion of the coordinate system is used to calculate the magnetic field strength and direction of the coordinates.
[0026] First of all, the geomagnetic field model is a mathematical interpolation method for finding the geomagnetic field. It calculates the interpolation function through the measured data of the geomagnetic field, and then calculates the magnetic field in the space around the earth through the interpolation function. Querying the geomagnetic field model is the only fast and practical way to obtain geomagnetic field information on a global scale and in all spaces.
[0027] In the passive region near the surface, the magnetic field B is the negative gradient of a scalar potential function, that is: (1-1) This scalar bit satisfies Laplace's equation (1-2) Here the spherical coordinates They correspond to the distance to the center of the Earth, the co-latitude of the center of the Earth (i.e. 90° minus latitude) and the longitude, respectively, and t represents time. A solution (or spherical harmonic expansion) of the Laplace equation in the spherical coordinate system is: (1-3) Where a is the average radius of the earth (6371.2 km); the spherical harmonic expansion coefficient is called the Gaussian coefficient, which is a function of time. and is the inner Gaussian coefficient at time t; and is the outer Gaussian coefficient at time t; is the Schmidt-normalized Legendre function of level n and m, both It is implemented through C language algorithm programming. The radius of the earth is a known constant. The longitude and latitude information can be derived by analyzing the navigation information received by the embedded module. The geomagnetic field information of the longitude and latitude can be obtained by substituting it into the mathematical model.
[0028] Through the above steps, we can finally obtain information such as the magnetic field strength and direction of the geomagnetic field where the coordinates are located, providing accurate geomagnetic data support for related applications.
[0029] For example, in geological exploration, this method is used to obtain geomagnetic field information at a specific location to help detect the distribution of underground mineral resources; in aviation navigation, it provides accurate geomagnetic reference for aircraft heading calibration.
[0030] Example 2 This embodiment provides a geomagnetic analysis system based on an embedded platform, comprising: A data acquisition module is configured to acquire navigation information received by the embedded module; The data derivation module is configured to derive the longitude and latitude information of the coordinates based on the navigation information; The model module is configured to construct a geomagnetic field model based on the international geomagnetic reference field; The calculation module is configured to calculate the geomagnetic field information of the coordinates based on the geomagnetic field model and the longitude and latitude information.
[0031] A computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded and executed by a processor of a terminal device for a geomagnetic analysis method based on an embedded platform.
[0032] A terminal device includes a processor and a computer-readable storage medium, wherein the processor is used to implement various instructions; the computer-readable storage medium is used to store multiple instructions, wherein the instructions are suitable for being loaded by the processor and executing the geomagnetic analysis method based on an embedded platform.
[0033] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A geomagnetic analysis method based on an embedded platform, characterized in that: include: Get the navigation information received by the embedded module; Derivation of longitude and latitude information of coordinates based on navigation information; Construct a geomagnetic field model based on the International Geomagnetic Reference Field; Calculate the geomagnetic field information of the coordinates based on the geomagnetic field model and longitude and latitude information.
2. A geomagnetic analysis method based on an embedded platform according to claim 1, characterized in that: The acquiring of navigation information received by the embedded module includes acquiring navigation information through a GNSS receiver, extracting position information, speed information and time information through decoding of the navigation information, and extracting NMEA sentences through decoding of the navigation information.
3. A geomagnetic analysis method based on an embedded platform according to claim 2, characterized in that: The derivation of the longitude and latitude information of the coordinates based on the navigation information includes parsing the latitude and longitude information from the extracted NMEA sentence, wherein the latitude and longitude information in the NMEA sentence is given in the form of degrees, minutes and decimal points.
4. The geomagnetic analysis method based on an embedded platform according to claim 3, characterized in that: The constructing of the geomagnetic field model based on the International Geomagnetic Reference Field includes obtaining a standardized geomagnetic field model based on the International Geomagnetic Reference Field IGRF.
5. The geomagnetic analysis method based on an embedded platform according to claim 4, characterized in that: The method of calculating the geomagnetic field information of the coordinates based on the geomagnetic field model and the longitude and latitude information includes inputting the longitude and latitude information into the geomagnetic field model, and calculating the magnetic field strength and direction of the coordinates by using the spherical harmonic expansion of the coordinate system.
6. The geomagnetic analysis method based on an embedded platform according to claim 5, characterized in that: The method of calculating the magnetic field intensity and direction of the coordinates by using the spherical harmonic expansion of the coordinate system includes firstly expressing the spherical coordinate magnetic field of a passive area near the surface of the earth by a scalar potential function, and the scalar potential function satisfies the Laplace equation, which is expressed as: , , Among them, the spherical coordinates They correspond to the distance from the center of the earth, the co-latitude of the center of the earth (i.e. 90° minus latitude) and the longitude, respectively, and t represents time.
7. The geomagnetic analysis method based on an embedded platform according to claim 6, characterized in that: The method of calculating the magnetic field strength and direction of the coordinates by using the spherical harmonic expansion of the coordinate system also includes performing Laplace expansion on the scalar potential function of the spherical coordinate magnetic field to obtain the solution, which is expressed as: , Among them, a is the average radius of the earth, which is 6371.2km; the spherical harmonic expansion coefficient is called the Gaussian coefficient, which is a function of time. and is the inner Gaussian coefficient at time t; and is the outer Gaussian coefficient at time t; is the Schmidt-normalized Legendre function of order n and m.
8. A geomagnetic analysis system based on an embedded platform, characterized in that: include: A data acquisition module is configured to acquire navigation information received by the embedded module; The data derivation module is configured to derive the longitude and latitude information of the coordinates based on the navigation information; The model module is configured to construct a geomagnetic field model based on the international geomagnetic reference field; The calculation module is configured to calculate the geomagnetic field information of the coordinates based on the geomagnetic field model and the longitude and latitude information.
9. A computer-readable storage medium storing a plurality of instructions, characterized in that: The instructions are suitable for being loaded by a processor of a terminal device and executing the geomagnetic analysis method based on an embedded platform as claimed in claim 1.
10. A terminal device, comprising a processor and a computer-readable storage medium, wherein the processor is used to implement each instruction; and the computer-readable storage medium is used to store multiple instructions, characterized in that: The instructions are suitable for being loaded by a processor and executing the geomagnetic analysis method based on an embedded platform as claimed in claim 1.
