CN107389091A - A kind of detection method and device of data - Google Patents
A kind of detection method and device of data Download PDFInfo
- Publication number
- CN107389091A CN107389091A CN201710496358.1A CN201710496358A CN107389091A CN 107389091 A CN107389091 A CN 107389091A CN 201710496358 A CN201710496358 A CN 201710496358A CN 107389091 A CN107389091 A CN 107389091A
- Authority
- CN
- China
- Prior art keywords
- data
- detection
- geomagnetic sensor
- obtains
- detection data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C25/00—Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass
Landscapes
- Engineering & Computer Science (AREA)
- Manufacturing & Machinery (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Measuring Magnetic Variables (AREA)
- Geophysics And Detection Of Objects (AREA)
Abstract
The invention provides a kind of detection method and device of data, its method includes:S100 obtains the detection data of each geomagnetic sensor;S200 carries out computing to all detection data, obtains operation result;S300 judges whether operation result is more than default interference number range;If so, perform step S500;Otherwise, step S400 is performed;S400 is using operation result as testing result data;S500 carries out computing to all detection data, obtains the variance values of each geomagnetic sensor;S600 compares all changes range value, obtains the target amplitude value that amplitude of variation is minimum in all changes range value;S700 obtains the detection data of geomagnetic sensor corresponding with target amplitude value;The detection data that S800 obtains S700 are as testing result data.The present invention, which realizes, obtains more accurate testing result, and accurately purpose is detected not caused by reducing external disturbance.
Description
Technical field
The present invention relates to sensor detection field, espespecially a kind of detection method and device of data.
Background technology
With the development of electronic technology, various types of electronic equipments are developed and have provided, sensor is a kind of electronics
The detection device that equipment needs, can experience measured information, and the information that will can be experienced, be for conversion into according to certain rules
The information of electric signal or other required forms exports, to meet that the transmission of information, processing, storage, display, record and control etc. will
Ask.Electronic equipment includes the device with global positioning system (GPS) function and compass functional.In order to perform these functions,
Need the process of computer azimuth angle.Geomagnetic sensor is widely used in computer azimuth angle, and execution includes sensing user movement and estimated
Count the various services or functionalities in direction.
Geomagnetic sensor is also referred to as compass (compass), and geomagnetic sensor can be used for detecting magnetic field size, have x, y,
Three directions of z-axis, although GPS navigating, position, test the speed, had a wide range of applications in terms of orientation, because its signal is often by ground
Shape, atural object block, and cause precision to substantially reduce, or even can not use.To make up this deficiency, electronic compass product can be used
Effective compensation is carried out to gps signal, also can normal work after gps signal losing lock even ensureing.
The interference in electromagnetism or magnetic field but the magnetic field of various ferromagnetic materials, electronic equipment on carrier etc. can be all superimposed upon
On earth's magnetic field, magnetometer output bias are caused, so as to influence navigation accuracy.Prior art typically solves outer by algorithm compensation
The problem of portion's magnetic interference, i.e., the intensity in fixed interference magnetic field is detected in advance, writes data into software algorithm as fixation
Compensation, if but when there is moment strong magnetic disturbance, prior art can not solve the problems, such as sudden external magnetic field interference, cause
The angle-data of collection is not accurate.
The content of the invention
The present invention provides a kind of detection method and device of data, realizes and obtains more accurate testing result, reduces outer
Accurately purpose is detected not caused by disturbing in portion.
Technical scheme provided by the invention is as follows:
The present invention provides a kind of detection method of data, including step:S100 obtains the testing number of each geomagnetic sensor
According to;S200 carries out computing to all detection data, obtains operation result;It is default dry that S300 judges whether the operation result is more than
Disturb number range;If so, perform step S500;Otherwise, step S400 is performed;S400 is using the operation result as testing result
Data;S500 carries out computing to all detection data, obtains the variance values of each geomagnetic sensor;More all changes of S600
Change range value, obtain the target amplitude value that amplitude of variation is minimum in all changes range value;S700 is obtained and the target amplitude
The detection data of geomagnetic sensor corresponding to value;The detection data that S800 obtains S700 are as testing result data.
Further, step is also included before the step S100:S010 judges whether current detection is to carry out for the first time
Detection;If so, perform step S020;Otherwise, step S030 is performed;S020 is according to default calibration figure to each geomagnetic sensor
Calibrated;S030 calibrates the testing result data of the N-1 times to each geomagnetic sensor, to carry out the inspection of n-th
Survey;N is the integer more than 1.
Further, step is included before the step S010:S001 obtains status change data, judges state change number
According to whether being more than preset data scope;If so, perform step S002;Otherwise, step S010 is performed;S002 is according to initial value to each
Individual geomagnetic sensor carries out initialization process.
Further, the step S200 includes step:S210 carries out mean operation to all detection data, obtains average
Operation result;S220 carries out signed magnitude arithmetic(al) to the mean operation result, obtains the operation result.
Further, the step S500 includes step:S510 judges whether the detection data are to detect for the first time
Arrive;If so, perform step S520;Otherwise, step S530 is performed;S520 is right with it by the detection data of each geomagnetic sensor
The default primary data answered carries out difference operation, obtains variance values corresponding to each geomagnetic sensor;S530 will each
The detection data of the N-1 times that the detection data of the n-th of Magnetic Sensor are corresponding carry out difference operation, obtain each earth magnetism
Variance values corresponding to sensor n-th;N is the integer more than 1.
Further, step is also included before the step S100:S040 sets all earth magnetism according to predetermined interval threshold value
Sensor is on same straight line;S050 is attached according to default wire laying mode to each geomagnetic sensor.
The present invention also provides a kind of detection means of data, is provided with several geomagnetic sensors, device includes:Obtain mould
Block, obtain the detection data of each geomagnetic sensor;First processing module, all detection data obtained to the acquisition module
Computing is carried out, obtains operation result;First judge module, judge whether is the operation result that the first processing module obtains
More than default interference number range;Output module, when first judge module judges that the operation result is more than described preset
When disturbing number range, using the operation result as testing result data;Second processing module, when first judge module
When judging that the operation result is less than or equal to the default interference number range, computing is carried out to all detection data, obtained every
The variance values of individual geomagnetic sensor, compare all changes range value, it is minimum to obtain amplitude of variation in all changes range value
Target amplitude value, obtain the detection data of corresponding with target amplitude value geomagnetic sensor;The output module, also when
When first judge module judges that the operation result is less than or equal to the default interference number range, by the second processing
The detection data of geomagnetic sensor are as testing result data corresponding to the target amplitude value that module obtains.
Further, the first processing module includes:First arithmetic element, average fortune is carried out to all detection data
Calculate, obtain mean operation result;Second arithmetic element, the mean operation result obtained to the first arithmetic element computing
Signed magnitude arithmetic(al) is carried out, obtains the operation result.
Further, the Second processing module includes:Judging unit, judge whether the detection data are to examine for the first time
Measure;3rd arithmetic element, when it is that detection obtains for the first time that first judging unit, which judges the detection data,
The corresponding default primary data of the detection data of each geomagnetic sensor is subjected to difference operation, obtains each earth magnetism sensing
Variance values corresponding to device;4th arithmetic element, when first judging unit judges that the detection data are not for the first time
Detect obtain when, by the detection data of the n-th of each geomagnetic sensor it is corresponding the detection data of the N-1 times progress
Difference operation, obtain variance values corresponding to each geomagnetic sensor n-th;N is the integer more than 1;Comparing unit, compare
Variance values corresponding to all geomagnetic sensor n-ths, the detection data of the minimum geomagnetic sensor of variance values are obtained,
Obtain the detection data of geomagnetic sensor corresponding with the target amplitude value.
Further, in addition to:Second judge module, judge whether current detection is to be detected for the first time;Calibrating die
Block, when it is to be detected for the first time that second judge module, which judges current detection, according to default calibration figure to each
Magnetic Sensor is calibrated;When it is not to be detected for the first time that second judge module, which judges current detection, by the N-1 times
Testing result data each geomagnetic sensor is calibrated, to carry out the detection of n-th;N is the integer more than 1.
By the detection method and system of a kind of access point provided by the invention, can bring following at least one beneficial to effect
Fruit:
1) present invention reply external magnetic field is to the instantaneous interference problem of geomagnetic sensor, it is ensured that to being provided with geomagnetic sensor
Equipment more stable, relatively reliable testing result data are provided.
2) present invention obtains more accurate testing result, and accurately purpose is detected not caused by reducing external disturbance.
Brief description of the drawings
Below by a manner of clearly understandable, preferred embodiment is described with reference to the drawings, to a kind of detection method of data
And above-mentioned characteristic, technical characteristic, advantage and its implementation of device are further described.
Fig. 1 is a kind of flow chart of one embodiment of the detection method of data of the present invention;
Fig. 2 is a kind of flow chart of another embodiment of the detection method of data of the present invention;
Fig. 3 is a kind of flow chart of another embodiment of the detection method of data of the present invention;
Fig. 4 is a kind of flow chart of another example of the detection method of data of the present invention;
Fig. 5 is a kind of structural representation of another embodiment of the detection means of data of the present invention;
Fig. 6 is a kind of structural representation of another embodiment of the detection means of data of the present invention.
Embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below
The embodiment of the present invention.It should be evident that drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically show in each figure, they are not represented
Its practical structures as product.In addition, so that simplified form readily appreciates, there is identical structure or function in some figures
Part, one of those is only symbolically depicted, or only marked one of those.Herein, "one" is not only represented
" only this ", the situation of " more than one " can also be represented.
Fig. 1 is a kind of one embodiment of the detection method of data of the present invention, including:
S100 obtains the detection data of each geomagnetic sensor;
S200 carries out computing to all detection data, obtains operation result;
S300 judges whether the operation result is more than default interference number range;If so, perform step S500;Otherwise,
Perform step S400;
S400 is using the operation result as testing result data;
S500 carries out computing to all detection data, obtains the variance values of each geomagnetic sensor;
S600 compares all changes range value, obtains the target amplitude value that amplitude of variation is minimum in all changes range value;
S700 obtains the detection data of geomagnetic sensor corresponding with the target amplitude value;
The detection data that S800 obtains S700 are as testing result data.
Specifically, in the present embodiment, during the azimuth information of traditional geomagnetic sensors detection equipment, due to a series of external worlds
Interference causes the azimuth information i.e. testing result data of detection less accurately situation, such as be provided with geomagnetic sensor occur
Mobile phone, on the intelligent terminal such as navigator, due to the metal that the loudspeaker installed from intelligent terminal be present, magnetize electronic component
Encapsulation etc. the magnetic field that leaks, thus cause geomagnetic sensors detection to part be the noise magnetic field caused by them,
Cause the intelligent terminal measurement azimuth information for being provided with geomagnetic sensor can not indicate correct orientation.Such as electric drive intelligence
Operationally, motor can produce strong magnetic field driving rotor and rotate dolly, and now strong magnetic field can also produce to geomagnetic sensor
Very big influence, general solution is to allow sensor away from motor or transported using magnetic shielding material shield electric machine as far as possible at present
Magnetic field caused by row, the present invention work as fortune by carrying out real-time calculating processing according to the detection data of multiple geomagnetic sensors
When calculating result more than default interference number range, illustrate that possible external magnetic field interference is possible excessive, cause operation result can not
As effective reliable testing result data.At this moment, it is necessary to according to the characteristic of geomagnetic sensor, i.e., sense each earth magnetism
The detection data of device carry out carrying out computing with last detection data, and more all variance values are so as to by amplitude of variation
The detection data of minimum geomagnetic sensor solve wink of the reply external magnetic field to geomagnetic sensor as testing result data
Between interference problem, it is ensured that stable, relatively reliable detection knot is provided to equipment such as the intelligent terminals for being provided with geomagnetic sensor
Fruit data.
Fig. 2 is a kind of another embodiment of the detection method of data of the present invention, including:
S001 obtains status change data, judges whether status change data is more than preset data scope;If so, perform step
Rapid S002;Otherwise, step S010 is performed;
S002 carries out initialization process according to initial value to each geomagnetic sensor;
S010 judges whether current detection is to be detected for the first time;If so, perform step S020;Otherwise, step is performed
S030;
S020 calibrates according to default calibration figure to each geomagnetic sensor;
S030 calibrates the testing result data of the N-1 times to each geomagnetic sensor, to carry out the inspection of n-th
Survey;N is the integer more than 1.
Specifically, in the present embodiment, the status change data is the larger data of change of magnetic field strength, when going out present condition
, it is necessary to carry out initialization process according to initial value when delta data change is more than preset data scope, avoid producing detection data
There is error, for example, earth magnetism is also known as " magnetic field of the earth " or " earth's magnetic field ", refer to the magnetic field of earth surrounding space distribution, magnetic field of the earth
It is similar to one positioned at the magnetic field of the magnetic dipole of earth center.The direction in earth's magnetic field and intensity all vary in different localities earth's surface everywhere.
Situation of the absolute force from equator to the two poles of the earth presentation from low to high, i.e. low latitudes magnetic field is low, and high latitude area magnetic field is high.It is red
Nearby magnetic field is minimum (about 0.3-0.4 oersteds) in road, and the two poles of the earth are most strong (about 0.7 oersted), it is therefore assumed that a user makes
Detected with the present high latitude of the equipment provided with geomagnetic sensor, after when going to the low latitudes to be detected, it is necessary to detect it again
The preceding geomagnetic sensor in equipment carries out initialization process, and this makes it possible to the reliability for increasing geomagnetic sensor so that inspection
Survey result data is more accurate, and confidence level is higher, avoids user from using the equipment provided with geomagnetic sensor to carry out orientation or angle
Measurement, even for navigation in terms of the problem of causing user experience not high using inaccurate.When going out present condition
When delta data change is not more than preset data scope, avoid the need for carrying out geomagnetic sensor initialization process, but due to
Geomagnetic sensor carries out repeated detection, can over time, and cause geomagnetic sensor makes because of the magnetization in magnetic field
It is not accurate to obtain testing result data, it is therefore desirable to calibration process is carried out to geomagnetic sensor before testing.Also plant situation just
It is that magnetic interference source is in the equipment by being provided with multiple geomagnetic sensors, due to magnetic field caused by magnetic interference source and respectively
The position relationship of individual geomagnetic sensor, cause the reading of some geomagnetic sensors can be relative to the reading of other geomagnetic sensor
Number changes greatly, and now gives up the reading of some geomagnetic sensors changed greatly, will change the reading of less geomagnetic sensor
Several averages solves the problems, such as to tackle instantaneous interference of the external magnetic field to geomagnetic sensor, it is ensured that give as testing result data
The intelligent terminal for being provided with geomagnetic sensor provides stabilization, relatively reliable testing result data.When interference source disappears, by
The geomagnetic sensor larger to interference may be magnetized and cause detection data severe deviations occur, now can be according to testing number
Corrected according to the small sensor of variance values to being disturbed big geomagnetic sensor, make to be disturbed big geomagnetic sensor again
Return normal reading, it is ensured that orientation or angle of geomagnetic sensor etc. detection data are more accurate, lift accuracy rate.
Fig. 3 is a kind of another embodiment of the detection method of data of the present invention, including:
S100 obtains the detection data of each geomagnetic sensor;
S210 carries out mean operation to all detection data, obtains mean operation result;
S220 carries out signed magnitude arithmetic(al) to the mean operation result, obtains the operation result;
S300 judges whether the operation result is more than default interference number range;If so, perform step S510;Otherwise,
Perform step S400;
S400 is using the operation result as testing result data;
S510 judges whether for the first time detection obtains the detection data;If so, perform step S520;Otherwise, hold
Row step S530;
The corresponding default primary data of the detection data of each geomagnetic sensor is carried out difference operation by S520, is obtained
Variance values corresponding to each geomagnetic sensor;
S530 carries out the corresponding detection data of the N-1 times of the detection data of the n-th of each geomagnetic sensor
Difference operation, obtain variance values corresponding to each geomagnetic sensor n-th;N is the integer more than 1;
S600 compares all changes range value, obtains the target amplitude value that amplitude of variation is minimum in all changes range value;
S700 obtains the detection data of geomagnetic sensor corresponding with the target amplitude value;
The detection data that S800 obtains S700 are as testing result data.
Specifically, in the present embodiment, the present invention is counted in real time by the detection data according to multiple geomagnetic sensors
Calculation is handled, and when operation result is more than default interference number range, is illustrated that possible external magnetic field interference may be excessive, is caused computing
As a result effective reliable testing result data can not be used as.At this moment, it is necessary to, will be each according to the characteristic of geomagnetic sensor
The detection data of individual geomagnetic sensor carry out carrying out computing with last detection data, more all variance values so as to
Using the detection data of the minimum geomagnetic sensor of amplitude of variation as testing result data, when carrying out judgement variance values,
Need by the Monitoring Data of geomagnetic sensor therewith it is previous detection data carry out computing obtain variable quantity, if for the first time
What detection obtained is to need to obtain the change of the i.e. corresponding geomagnetic sensor of variable quantity with default primary data progress difference operation
Range value, if not detecting obtained detection data for the first time, it is necessary to enter to be about to the detection of the n-th of current position Magnetic Sensor
Data and the Monitoring Data of the N-1 times of current geomagnetic sensor carry out difference operation and obtain corresponding the change of current geomagnetic sensor
Change range value.Solves the problems, such as to tackle external magnetic field to the instantaneous interference of geomagnetic sensor, it is ensured that to being provided with geomagnetic sensor
Intelligent terminal stable, relatively reliable testing result data are provided.
Preferably, above-mentioned all embodiments are to geomagnetic sensor, it is necessary to be configured, including:
S040 sets all geomagnetic sensors to be on same straight line according to predetermined interval threshold value;
S050 is attached according to default wire laying mode to each geomagnetic sensor.
Specifically, in the present embodiment, earth magnetism biography is provided with it is assumed that being provided with the equipment of geomagnetic sensor
Sensor A and B, are horizontally or vertically placed in the same coordinate system.Specific steps flow is as follows:
It is electric in S10 starts;
S15 initializes SensorA/B pins;
The double geomagnetic sensor calibrations of S20;
S25 setting interference strength coefficients a;
S30 reads SensorA;
S35 reads SensorB;
S40 calculates the absolute value of sensor difference;
S45 judges whether the absolute value is more than coefficient a;If so, perform step S50;Otherwise, step S60 is performed;
S50 takes dual sensor average value;
S60 is taken compared with stability sensor reading.
In the present invention, merely illustrate and two earth magnetism sensings are provided with the equipment provided with geomagnetic sensor such as mobile phone
Device, other testing result data for being provided with more than two geomagnetic sensors are also that can be obtained more by mode of the present invention
Add accurately, reliable testing result data.And when magnetic interference source occurs in horizontal or vertical direction side, wherein one
The reading of individual geomagnetic sensor can significant difference in another, now the equipment gives up a geomagnetic sensor changing greatly
Data are detected, the detection data that reading is changed to relatively stable geomagnetic sensor are supplied to the equipment, to ensure the inspection of equipment
It is more accurate to survey result data.
With reference to shown in figure 5, the present invention provides a kind of one embodiment of the detection means 100 of data, is provided with several
Geomagnetic sensor 160, including:
Acquisition module 110, obtain the detection data of each geomagnetic sensor 160;
First processing module 120, all detection data obtained to the acquisition module 110 carry out computing, obtain computing
As a result;
First judge module 130, it is default to judge whether the operation result that the first processing module 120 obtains is more than
Disturb number range;
Output module 140, when first judge module 130 judges that the operation result is more than the default interference numerical value
During scope, using the operation result as testing result data;
Second processing module 150, when first judge module 130 judges that the operation result is less than or equal to described preset
When disturbing number range, computing is carried out to all detection data, the variance values of each geomagnetic sensor 160 is obtained, compares
All changes range value, the target amplitude value that amplitude of variation is minimum in all changes range value is obtained, obtained and the target width
The detection data of geomagnetic sensor 160 corresponding to angle value;
The output module 140, also when first judge module 130 judges the operation result less than or equal to described pre-
If disturb number range, geomagnetic sensor 160 corresponding to the target amplitude value that the Second processing module 150 is obtained
Detection data as testing result data.
Specifically, in the present embodiment, various intelligent terminals may be provided with multiple geomagnetic sensors 160, because earth magnetism passes
The mobile phone or one block of gold that sensor 160 is streaked by the magnetic interference of multiple parts in intelligent terminal or other external disturbances such as moment
Category object causes magnetic field to change so that output current wire not of uniform size etc. all can bring difference to sensor in system
The interference of degree, can also magnetization be produced to the important magnetic strength element in the inside of geomagnetic sensor 160, now sensor reading and reality sometimes
Actual value just has deviation, causes the detection of geomagnetic sensor 160 easily to malfunction, so if system is during exercise, interference source from
When a direction occurs, the reading data close to the geomagnetic sensor 160 of the direction sense compared to the earth magnetism away from the direction
The reading data of device 160 have bigger fluctuation, when fluctuating larger, the system geomagnetic sensor that called data is stablized immediately
160 reading is as the orientation of intelligent terminal or the testing result of angle.
With reference to shown in figure 6, the present invention provides a kind of one embodiment of the detection means 100 of data, is provided with several
Geomagnetic sensor 160, including:Acquisition module 110, first processing module 120, the first judge module 130, second processing mould
Block 150 and output module 140;
In addition, the first processing module 120 includes:
First arithmetic element 121, mean operation is carried out to all detection data, obtains mean operation result;
Second arithmetic element 122, the mean operation result obtained to the computing of the first arithmetic element 121 carry out exhausted
To being worth computing, the operation result is obtained;
The Second processing module 150 includes:
Judging unit 151, judge whether for the first time detection obtains the detection data;
3rd arithmetic element 152, when first judging unit 151 judges that the detection data are that detection obtains for the first time
When, the corresponding default primary data of the detection data of each geomagnetic sensor 160 is subjected to difference operation, obtained each
Variance values corresponding to geomagnetic sensor 160;
4th arithmetic element 153, when first judging unit 151 judges that the detection data are not to detect for the first time
Arrive when, it is poor that the corresponding detection data of the N-1 times of the detection data of the n-th of each geomagnetic sensor 160 are carried out
It is worth computing, obtains variance values corresponding to each n-th of geomagnetic sensor 160;N is the integer more than 1;
Comparing unit 154, variance values corresponding to more all n-ths of geomagnetic sensor 160, obtain all changes width
The minimum target amplitude value of amplitude of variation in angle value, obtains the detection of geomagnetic sensor 160 corresponding with the target amplitude value
Data.
Preferably, the detection means 100 of the data also includes:
Second judge module 150, judge whether current detection is to be detected for the first time;
Calibration module, when it is to be detected for the first time that second judge module 150, which judges current detection, according to default
Calibration figure is calibrated to each geomagnetic sensor 160;When second judge module 150 judges that current detection is not first
It is secondary when being detected, the testing result data of the N-1 times are calibrated to each geomagnetic sensor 160, to carry out n-th
Detection;N is the integer more than 1.
Specifically, in the present embodiment, the measurement of the main function of geomagnetic sensor 160 is mobile or rotating object presss from both sides with magnetic field of the earth
The dynamic change at angle, but the testing result data of geomagnetic sensor 160 obviously can be disturbed by electromagnetism or magnetic field, such as mobile phone,
Qiang Ci, motor operating etc. caused by magnetic interference cause detection orientation angles it is inaccurate, technology is typically mended by software at present
Repay to solve the problems, such as external magnetic field interference, i.e., measure the intensity in fixed interference magnetic field in advance, write data into software calculation
Method is as fixed compensation, but if some scenes are moment, strong magnetic disturbance can not solve, and the object of the invention is exactly that to solve moment strong
The problem of magnetic interference, it is ensured that be provided with the equipment of geomagnetic sensor 160 can have it is stable, reliably, accurately angle number
According to.Detection data are caused severe deviations occur due to when interference source disappears, being disturbed big sensor and may be magnetized, this
When understands basis, and stably the sensor of reading correct to the sensor of deviation of reading originally, the sensor of deviation of reading is returned again
Reform normal reading.The present invention solves the problems, such as to tackle external magnetic field to the instantaneous interference of geomagnetic sensor 160, it is ensured that to being provided with
The intelligent terminal of geomagnetic sensor 160 provides stable, reliable testing result data.Using geomagnetic sensor 160
In practical application, the interference source in the external world, the mobile phone streaked such as moment or one piece of metal object can not be avoided sometimes, is exported in system
Wire that size of current differs etc. can all bring different degrees of interference to sensor, sometimes also can be in geomagnetic sensor 160
The important magnetic strength element in portion produces magnetization, and now sensor reading and actual value just have deviation, cause orientation or angular surveying
There is inaccurate phenomenon in detection, so that mobile phone, unmanned plane or navigator provided with geomagnetic sensor 160 navigate
Mistake and drift off the course.Double geomagnetic sensors are about 160 or there are certain intervals left and right, when one of them is by geomagnetic noise, adjust
Calibrated with the small geomagnetic sensor 160 of the variance values geomagnetic sensor 160 big to variance values.And the present invention is logical
Cross and carry out real-time calculating processing according to the detection data of multiple geomagnetic sensors 160, when operation result is more than default interference number
When being worth scope, illustrate that possible external magnetic field interference may be excessive, cause operation result can not be used as effective reliably detection
Result data.At this moment, it is necessary to according to the characteristic of geomagnetic sensor 160, i.e., enter the detection data of each geomagnetic sensor 160
Row carries out computing with last detection data, and more all variance values are so that the minimum earth magnetism of amplitude of variation be sensed
The detection data of device 160 solve reply external magnetic field and the instantaneous interference of geomagnetic sensor 160 are asked as testing result data
Topic, it is ensured that provide stabilization, relatively reliable testing result data to the intelligent terminal for being provided with geomagnetic sensor 160.
It should be noted that above-described embodiment can independent assortment as needed.Described above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, do not departing from the premise of the principle of the invention
Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.
Claims (10)
1. a kind of detection method of data, it is characterised in that including step:
S100 obtains the detection data of each geomagnetic sensor;
S200 carries out computing to all detection data, obtains operation result;
S300 judges whether the operation result is more than default interference number range;If so, perform step S500;Otherwise, perform
Step S400;
S400 is using the operation result as testing result data;
S500 carries out computing to all detection data, obtains the variance values of each geomagnetic sensor;
S600 compares all changes range value, obtains the target amplitude value that amplitude of variation is minimum in all changes range value;
S700 obtains the detection data of geomagnetic sensor corresponding with the target amplitude value;
The detection data that S800 obtains S700 are as testing result data.
2. the detection method of the data according to claim 1, it is characterised in that also include step before the step S100
Suddenly:
S010 judges whether current detection is to be detected for the first time;If so, perform step S020;Otherwise, step S030 is performed;
S020 calibrates according to default calibration figure to each geomagnetic sensor;
S030 calibrates the testing result data of the N-1 times to each geomagnetic sensor, to carry out the detection of n-th;N is
Integer more than 1.
3. the detection method of the data according to claim 1, it is characterised in that include step before the step S010
Suddenly:
S001 obtains status change data, judges whether status change data is more than preset data scope;If so, perform step
S002;Otherwise, step S010 is performed;
S002 carries out initialization process according to initial value to each geomagnetic sensor.
4. the detection method of data according to claim 1, it is characterised in that the step S200 includes step:
S210 carries out mean operation to all detection data, obtains mean operation result;
S220 carries out signed magnitude arithmetic(al) to the mean operation result, obtains the operation result.
5. the detection method of data according to claim 1, it is characterised in that the step S500 includes step:
S510 judges whether for the first time detection obtains the detection data;If so, perform step S520;Otherwise, step is performed
Rapid S530;
The corresponding default primary data of the detection data of each geomagnetic sensor is carried out difference operation by S520, is obtained each
Variance values corresponding to geomagnetic sensor;
The corresponding detection data of the N-1 times of the detection data of the n-th of each geomagnetic sensor are carried out difference by S530
Computing, obtain variance values corresponding to each geomagnetic sensor n-th;N is the integer more than 1.
6. the detection method of the data according to claim any one of 1-5, it is characterised in that before the step S100 also
Including step:
S040 sets all geomagnetic sensors to be on same straight line according to predetermined interval threshold value;
S050 is attached according to default wire laying mode to each geomagnetic sensor.
7. a kind of detection means of data, it is characterised in that be provided with several geomagnetic sensors, device includes:
Acquisition module, obtain the detection data of each geomagnetic sensor;
First processing module, all detection data obtained to the acquisition module carry out computing, obtain operation result;
First judge module, judges whether the operation result that the first processing module obtains is more than default interference numerical value model
Enclose;
Output module, will when first judge module judges that the operation result is more than the default interference number range
The operation result is as testing result data;
Second processing module, when first judge module judges that the operation result is less than or equal to the default interference numerical value model
When enclosing, computing is carried out to all detection data, the variance values of each geomagnetic sensor is obtained, compares all changes amplitude
Value, the target amplitude value that amplitude of variation is minimum in all changes range value is obtained, obtain ground corresponding with the target amplitude value
The detection data of Magnetic Sensor;
The output module, also when first judge module judges that the operation result is less than or equal to the default interference numerical value
During scope, using the detection data of geomagnetic sensor corresponding to the target amplitude value that the Second processing module obtains as inspection
Survey result data.
8. the detection means of data according to claim 6, it is characterised in that the first processing module includes:
First arithmetic element, mean operation is carried out to all detection data, obtains mean operation result;
Second arithmetic element, the mean operation result obtained to the first arithmetic element computing carry out signed magnitude arithmetic(al),
Obtain the operation result.
9. the detection means of data according to claim 6, it is characterised in that the Second processing module includes:
Judging unit, judge whether for the first time detection obtains the detection data;
3rd arithmetic element, will be every when it is that detection obtains for the first time that first judging unit, which judges the detection data,
The default primary data that the detection data of individual geomagnetic sensor are corresponding carries out difference operation, obtains each geomagnetic sensor pair
The variance values answered;
4th arithmetic element, will when it is not that detection obtains for the first time that first judging unit, which judges the detection data,
The detection data of the N-1 times that the detection data of the n-th of each geomagnetic sensor are corresponding carry out difference operation, obtain every
Variance values corresponding to individual geomagnetic sensor n-th;N is the integer more than 1;
Comparing unit, variance values corresponding to more all geomagnetic sensor n-ths, obtain and change in all changes range value
The minimum target amplitude value of amplitude, obtain the detection data of geomagnetic sensor corresponding with the target amplitude value.
10. the detection means of the data according to claim any one of 6-9, it is characterised in that also include:
Second judge module, judge whether current detection is to be detected for the first time;
Calibration module, when it is to be detected for the first time that second judge module, which judges current detection, according to default calibration number
Value is calibrated to each geomagnetic sensor;When second judge module judges that current detection is not to be detected for the first time
When, the testing result data of the N-1 times are calibrated to each geomagnetic sensor, to carry out the detection of n-th;N is more than 1
Integer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710496358.1A CN107389091A (en) | 2017-06-26 | 2017-06-26 | A kind of detection method and device of data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710496358.1A CN107389091A (en) | 2017-06-26 | 2017-06-26 | A kind of detection method and device of data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107389091A true CN107389091A (en) | 2017-11-24 |
Family
ID=60333648
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710496358.1A Pending CN107389091A (en) | 2017-06-26 | 2017-06-26 | A kind of detection method and device of data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107389091A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113268097A (en) * | 2021-05-24 | 2021-08-17 | 大气候物联网科技(广州)有限公司 | Agricultural automation linkage control system and control method thereof |
CN113960519A (en) * | 2021-10-19 | 2022-01-21 | 重庆金山医疗技术研究院有限公司 | Calibration method, device, medium and system of magnetic field sensor |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1163662A (en) * | 1994-11-09 | 1997-10-29 | 莱卡公开股份有限公司 | Process for stabilising direction indicated by magnetic compasses |
CN1506656A (en) * | 2002-12-11 | 2004-06-23 | 三菱电机株式会社 | Directino indicator |
CN1680780A (en) * | 2004-02-04 | 2005-10-12 | 三星电子株式会社 | Method and apparatus for determining a geomagnetic field by using a compass and method and apparatus for determining an azimuth angle of a moving object using the same |
US20070089311A1 (en) * | 2005-10-26 | 2007-04-26 | Honeywell International Inc. | Magnetic field sensing device for compassing and switching |
CN102322845A (en) * | 2011-09-07 | 2012-01-18 | 华为技术有限公司 | Apparatus for detecting azimuth, and method thereof |
CN203785679U (en) * | 2013-12-04 | 2014-08-20 | 上海矽睿科技有限公司 | Direction indicating system |
CN104101337A (en) * | 2013-04-12 | 2014-10-15 | 台湾广登电子股份有限公司 | Calibration method used for electronic compass |
CN105841682A (en) * | 2015-06-19 | 2016-08-10 | 维沃移动通信有限公司 | Pointing equipment based pointing method, device and mobile terminal |
-
2017
- 2017-06-26 CN CN201710496358.1A patent/CN107389091A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1163662A (en) * | 1994-11-09 | 1997-10-29 | 莱卡公开股份有限公司 | Process for stabilising direction indicated by magnetic compasses |
CN1506656A (en) * | 2002-12-11 | 2004-06-23 | 三菱电机株式会社 | Directino indicator |
CN1680780A (en) * | 2004-02-04 | 2005-10-12 | 三星电子株式会社 | Method and apparatus for determining a geomagnetic field by using a compass and method and apparatus for determining an azimuth angle of a moving object using the same |
US20070089311A1 (en) * | 2005-10-26 | 2007-04-26 | Honeywell International Inc. | Magnetic field sensing device for compassing and switching |
CN102322845A (en) * | 2011-09-07 | 2012-01-18 | 华为技术有限公司 | Apparatus for detecting azimuth, and method thereof |
CN104101337A (en) * | 2013-04-12 | 2014-10-15 | 台湾广登电子股份有限公司 | Calibration method used for electronic compass |
CN203785679U (en) * | 2013-12-04 | 2014-08-20 | 上海矽睿科技有限公司 | Direction indicating system |
CN105841682A (en) * | 2015-06-19 | 2016-08-10 | 维沃移动通信有限公司 | Pointing equipment based pointing method, device and mobile terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113268097A (en) * | 2021-05-24 | 2021-08-17 | 大气候物联网科技(广州)有限公司 | Agricultural automation linkage control system and control method thereof |
CN113960519A (en) * | 2021-10-19 | 2022-01-21 | 重庆金山医疗技术研究院有限公司 | Calibration method, device, medium and system of magnetic field sensor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1871496B (en) | Magnetic sensor control method, magnetic sensor controller and portable terminal device | |
US9709640B2 (en) | Single bridge magnetic field sensor | |
US9645202B2 (en) | Geomagnetic sensor calibration apparatus and method thereof | |
KR101783050B1 (en) | Method and device for calibrating a three-axis magnetic field sensor | |
US7278219B2 (en) | Magnetic compass | |
US8698503B2 (en) | Geomagnetic application device | |
CN104535062A (en) | Movable type location method based on magnetic gradient tensor and geomagnetic vector measurement | |
EP2482033B1 (en) | Geomagnetism detection device | |
CN104316037B (en) | A kind of bearing calibration of electronic compass and device | |
CN110987032B (en) | Magnetic encoder, absolute electric angle detection method, system and readable storage medium | |
CN111780786A (en) | Online calibration method for three-axis TMR sensor | |
US11994410B2 (en) | Calibration and verification system and method for directional sensor | |
US10976383B2 (en) | Magnetic sensor device | |
CN107389091A (en) | A kind of detection method and device of data | |
US9863867B2 (en) | Automatically updating hard iron and soft iron coefficients of a magnetic sensor | |
CN109633540B (en) | Real-time positioning system and real-time positioning method of magnetic source | |
JP5070428B2 (en) | Electronic compass and direction measurement method | |
CN103955002A (en) | Magnetic dipole target position measurement method based on magnetic anomaly first-order derivative | |
US10473701B2 (en) | Systems and methods for magnetometer-based current measurement | |
WO2023104135A1 (en) | Tilt compensation apparatus and tilt compensation method therefor | |
JPH033190B2 (en) | ||
CN116299735A (en) | Interference magnetic field compensation method of geomagnetic vector measurement system based on BP neural network | |
CN114441832A (en) | Wire current determination method, device, computer equipment and storage medium | |
KR20170092356A (en) | System for calibrating azimuth of 3-axis magnetic sensor | |
Kuncar et al. | Inertial measurement unit error reduction by calibration using differential evolution |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171124 |