CN107830850A - The test system and method for electronic compass - Google Patents

The test system and method for electronic compass Download PDF

Info

Publication number
CN107830850A
CN107830850A CN201711025965.6A CN201711025965A CN107830850A CN 107830850 A CN107830850 A CN 107830850A CN 201711025965 A CN201711025965 A CN 201711025965A CN 107830850 A CN107830850 A CN 107830850A
Authority
CN
China
Prior art keywords
electronic compass
mobile terminal
driver
rotation
test
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.)
Granted
Application number
CN201711025965.6A
Other languages
Chinese (zh)
Other versions
CN107830850B (en
Inventor
韩继梁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Huabei Electronic Technology Co Ltd
Original Assignee
Dongguan Huabei Electronic Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Dongguan Huabei Electronic Technology Co Ltd filed Critical Dongguan Huabei Electronic Technology Co Ltd
Priority to CN201711025965.6A priority Critical patent/CN107830850B/en
Publication of CN107830850A publication Critical patent/CN107830850A/en
Application granted granted Critical
Publication of CN107830850B publication Critical patent/CN107830850B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C17/00Compasses; Devices for ascertaining true or magnetic north for navigation or surveying purposes
    • G01C17/38Testing, calibrating, or compensating of compasses
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C17/00Compasses; Devices for ascertaining true or magnetic north for navigation or surveying purposes
    • G01C17/02Magnetic compasses
    • G01C17/28Electromagnetic compasses
    • G01C17/32Electron compasses

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)

Abstract

The present embodiments relate to technical field of measurement and test, the test system and method for a kind of electronic compass are disclosed.The test system of electronic compass, including:Pallet, rotating mechanism, driver and control module;Pallet is fixed on rotating mechanism and for placing an at least mobile terminal, and mobile terminal is provided with electronic compass to be tested;Driver is connected to rotating mechanism, and control module is connected with driver, communication of mobile terminal respectively;Control module is used to pass through driver and rotating mechanism, and control mobile terminal follows pallet to rotate together to test position, and obtains the anglec of rotation of mobile terminal;Control module is additionally operable to receive the detection angles of the electronic compass of mobile terminal feedback, and according to the anglec of rotation and detection angles, calculates accuracy of detection of the electronic compass at test position.Present invention also offers a kind of method of testing of electronic compass.In the present invention, automatic test can be realized, and the accuracy of detection of electronic compass can be accurately calculated.

Description

The test system and method for electronic compass
Technical field
The present embodiments relate to technical field of measurement and test, the test system and method for more particularly to a kind of electronic compass.
Background technology
The existing mobile terminal using mobile phone as representative is developed rapidly, and the electronic compass in mobile terminal may be used To replace existing entity compass to a certain extent.In order to ensure the accuracy of the electronic compass in mobile terminal, it is necessary to right Electronic compass is tested.
When existing mobile terminal manufacturer is tested electronic compass, majority use artificial detection, by entity compass with Whether electronic compass points to same direction and contrasted, accurate to test electronic compass;Also have using simple machinery, by movement Whether terminal rotates together with compass, accurate by naked-eye observation electronic compass.
Inventor has found that at least there are the following problems in the prior art:When testing in the prior art electronic compass, General is all to judge whether electronic compass is accurate by manually;Meanwhile can only tentatively judge electronic compass direction whether Accurately, but the deviation angle of electronic compass can not accurately be calculated.Therefore, even by test, electronics sieve in mobile terminal It is possible to inaccurately, error be present in disk.
The content of the invention
The purpose of embodiment of the present invention is the test system and method for providing a kind of electronic compass, can realize automatic Change test, and the accuracy of detection of electronic compass can be accurately calculated.
In order to solve the above technical problems, embodiments of the present invention provide a kind of test system of electronic compass, including: Pallet, rotating mechanism, driver and control module;Pallet is fixed on rotating mechanism and for placing at least one movement eventually End, mobile terminal are provided with electronic compass to be tested;Driver is connected to rotating mechanism, control module respectively with driver, Communication of mobile terminal connects;Control module is used to pass through driver and rotating mechanism, and control mobile terminal follows pallet to revolve together Test position is gone to, and obtains the anglec of rotation of mobile terminal;Control module is additionally operable to receive electronics sieve of mobile terminal feedback The detection angles of disk, and according to the anglec of rotation and detection angles, calculate accuracy of detection of the electronic compass at test position.
Embodiments of the present invention additionally provide a kind of method of testing of electronic compass, applied to including pallet, whirler Structure, driver electronic compass test system, driver is connected to rotating mechanism;Pallet is fixed on rotating mechanism and is used for An at least mobile terminal is placed, mobile terminal is provided with electronic compass to be tested;Method of testing includes:Pass through driver and rotation Rotation mechanism, control mobile terminal follow pallet to rotate together to test position;Obtain the anglec of rotation of mobile terminal;Receive movement The detection angles of the electronic compass of terminal feedback;According to the anglec of rotation and detection angles, electronic compass is calculated in test position The accuracy of detection at place
In terms of existing technologies, mobile terminal is placed on pallet for embodiment of the present invention, mobile terminal installation Have electronic compass to be tested, by controlling pallet of the drive mechanism drive installation on rotating mechanism, control mobile terminal with Rotated with pallet to test position, and obtain the anglec of rotation of mobile terminal, while receive the detection angles of electronic compass; So as to the anglec of rotation and the detection angles of electronic compass according to mobile terminal, electronic compass is calculated at the test position Accuracy of detection, realize automatic test, and the accuracy of detection of electronic compass can be accurately calculated.
In addition, in the test system of electronic compass, in addition to ring support, the letter with control module communication connection respectively Number transmitter and multiple signal receivers;Ring support is located on pallet and non-contact with pallet;Signal projector is fixed on support The center of disk, and for launching test signal during rotation of mobile terminal;Multiple signal receivers are distributed in annular On support, and for receiving test signal, and notice is sent to control module when receiving test signal;Control module according to The identity information of the signal receiver of notice is sent, calculates the anglec of rotation.Calculated present embodiments provide for one kind mobile whole The specific implementation of the anglec of rotation at end.
In addition, in the test system of electronic compass, signal projector is infrared transmitter, and multiple signal receivers are Infrared remote receiver.Present embodiments provide for the specific implementation of a kind of signal projector and signal receiver.
In addition, in the test system of electronic compass, control module is used for the driving parameter according to driver, calculates rotation Gyration.Present embodiments provide for the specific implementation of another anglec of rotation for calculating mobile terminal.
In addition, in the test system of electronic compass, driver is stepper motor and driving parameter is step value;Or Drive the energization period that parameter is driver.Present embodiments provide for the particular type of driving parameter.
In addition, in the test system of electronic compass, rotating mechanism includes gear train and turning arm;Gear train connection rotation Arm and driver, driver are used to drive turning arm to rotate by gear train;Pallet is fixed on turning arm, and with turning arm one Play rotation.Present embodiments provide for the specific implementation of rotating mechanism.
In addition, in the test system of electronic compass, control module includes host computer and slave computer;Slave computer and driver Connection, and for controlling driver;Host computer is connected with slave computer, mobile terminal respectively;Host computer is used to obtain the anglec of rotation, Detection angles are received, and according to the anglec of rotation and detection angles, calculate accuracy of detection of the electronic compass at test position.This Embodiment provides the specific implementation of control module.
In addition, in the method for testing of electronic compass, in addition to:Recorded for the first moment, the first moment be pallet rotate to At the time of notice is received during test position;Recorded for the second moment, the second moment was the detection angles for receiving electronic compass Moment;The difference at the second moment and the first moment is calculated, the performance parameter as electronic compass.In present embodiment, it can count While calculating the accuracy of detection of electronic compass, the performance of electronic compass is judged.
Brief description of the drawings
One or more embodiments are illustrative by the picture in corresponding accompanying drawing, these exemplary theorys The bright restriction not formed to embodiment, the element for having same reference numbers label in accompanying drawing are expressed as similar element, removed Non- have a special statement, and composition does not limit the figure in accompanying drawing.
Fig. 1 is the block diagram of the test system of the electronic compass in first embodiment;
Fig. 2 is the top view that the mobile terminal in first embodiment is placed on pallet;
Fig. 3 is the schematic diagram of electronic compass on mobile terminal in first embodiment;
Fig. 4 is the block diagram of the test system of the electronic compass in second embodiment;
Fig. 5 is the structure chart of the test system of the electronic compass in second embodiment;
Fig. 6 is the sectional view of the test system of the electronic compass in second embodiment;
Fig. 7 is the particular flow sheet of the method for testing of the electronic compass in the 3rd embodiment;
Fig. 8 is the method for testing of the electronic compass for obtaining the anglec of rotation in the first way in the 4th embodiment Particular flow sheet;
Fig. 9 is the method for testing of the electronic compass for obtaining the anglec of rotation in a second manner in the 4th embodiment Particular flow sheet;
Figure 10 is the particular flow sheet of the method for testing of the electronic compass in the 5th embodiment.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with accompanying drawing to the present invention Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention In formula, in order that reader more fully understands the application and proposes many ins and outs.But even if without these ins and outs With many variations based on following embodiment and modification, the application technical scheme claimed can also be realized.
The first embodiment of the present invention is related to a kind of test system of electronic compass.It refer to Fig. 1, Fig. 2, electronic compass Test system include:Pallet 1, rotating mechanism 2, driver 3 and control module 4.Electronic compass to be tested, which is arranged on, to be moved In dynamic terminal 5, mobile terminal 5 is placed on pallet 1, and pallet 1 is fixed on rotating mechanism 2, and driver 3 is connected to rotating mechanism 2, to drive rotating mechanism 2 to rotate.Wherein, control module 4 communicates to connect respectively at driver 3, mobile terminal 5, mobile terminal 5 For example, mobile phone, tablet personal computer etc..It should be noted that more than one mobile terminal can be placed on the pallet 1 of present embodiment 5, so as to test the electronic compass in multiple mobile terminals 5 simultaneously;As shown in Fig. 2 the position of dotted line frame is used to put Mobile terminal 5 is put, the electronic compass in 4 mobile terminals 5 can be tested simultaneously.
Control module 4 is used for by driver 3 and rotating mechanism 2, control mobile terminal 5 follow pallet 1 rotate together to Test position, i.e. control mobile terminal 5 follows pallet 1 to rotate corresponding test angle together;And obtain the rotation of mobile terminal 5 Gyration.Wherein, control module 4 controls driver 3 to drive rotating mechanism 2 to rotate, and is fixed on so as to drive on rotating mechanism 2 Pallet 1 rotates, and mobile terminal 5 follows pallet 1 to rotate together.
Control module 4 be additionally operable to receive mobile terminal feedback electronic compass detection angles, and according to the anglec of rotation with Detection angles, calculate accuracy of detection of the electronic compass at test position.Specifically, the rotation of mobile terminal 5 extremely test position When putting, electronic compass to be tested can also detect rotation, and the detection angles of electronic compass are fed back to control mould by mobile terminal 5 Block 4, control module 4 calculate the anglec of rotation of mobile terminal 5 and the detection angles of electronic compass difference (if negative value, then with Its absolute value) accuracy of detection as electronic compass at test position.
Wherein, the acquisition methods of the detection angles of electronic compass are as follows:In mobile terminal 5, each of which display interface Content be all made up of various controls, the attribute information of each control includes position coordinates, ID etc..Fig. 3 is refer to, is A kind of electronic compass, the control that pointer control 51 can rotate with the rotation of mobile terminal 5, fixed control 52 is zero angle, The coordinate of each control is obtained by UI testing tools, so as to calculate angle between pointer control 51 and fixed control 52 Angle, as electronic compass detection angles.
In terms of existing technologies, mobile terminal is placed on pallet for present embodiment, and mobile terminal installation needs The electronic compass of test, by controlling pallet of the drive mechanism drive installation on rotating mechanism, control mobile terminal follows support Disk is rotated to test position together, and obtains the anglec of rotation of mobile terminal, while receives the detection angles of electronic compass.So as to Inspection of the electronic compass at the test position can be calculated according to the anglec of rotation of mobile terminal and the detection angles of electronic compass Precision is surveyed, realizes automatic test, and the accuracy of detection of electronic compass can be accurately calculated.
Second embodiment of the present invention is related to a kind of test system of electronic compass.Present embodiment is implemented to first The refinement of mode, main refinement part are:The test system of electronic compass in first embodiment has been carried out in detail Introduce.
In present embodiment, Fig. 4 is refer to, control module 4 includes host computer 41 and slave computer 42;Host computer 41 respectively with Slave computer 42, mobile terminal 5 are communicated to connect, and slave computer 42 is connected with driver 3.Wherein, host computer 41 can be individual calculus Machine, slave computer 42 can be single-chip microcomputer or programmable logic controller (PLC) etc..Preferably, host computer 41 is connected to by wireless wifi Mobile terminal 5.Host computer 41 is used to obtain the anglec of rotation, and receives the detection angles of the electronic compass of mobile terminal, and according to The anglec of rotation and detection angles, calculate accuracy of detection of the electronic compass at test position.
In present embodiment, Fig. 4 is refer to, rotating mechanism 2 includes gear train 21 and turning arm 22, and gear train 21 is connected to Turning arm 22 and driver 3, driver 3 drive turning arm 22 to rotate by gear train 21.Pallet 1 is fixed on turning arm 22 On, when turning arm 22 rotates, pallet 1 rotates together with turning arm 22.Wherein, gear train 21 includes multiple gears, and multiple teeth Wheel is worked in coordination to drive turning arm 22 to rotate;Wherein it is possible to the specific number of gear is selected according to the requirement of running accuracy And/or the number of teeth of each gear.
Preferably, refer to Fig. 5, Fig. 6, the test system of electronic compass also include ring support 6, respectively with control module The signal projector 7 and multiple signal receivers of 4 communication connections.
Ring support 6 is located on pallet 1 and non-contact with pallet 1, and signal projector 7 is fixed on the center of pallet 1, Multiple signal receivers are fixed on ring support 6.Wherein, multiple signal receivers are fixed on ring support 6, preferably, Multiple signal receivers are evenly distributed on ring support 6;Right not limited to this, the distribution modes of multiple signal receivers can be by Depending on testing requirement.Wherein, gear train 21 typically has shell (not shown), and ring support 6 is fixed on gear train 21 Shell.
Signal projector 7 is used to launch test signal in the rotary course of mobile terminal 5;Signal receiver is then used to receive Test signal, and notice is sent to the host computer 41 of control module 4 when receiving test signal.Wherein, signal projector 7 can be with For infrared transmitter, then the test signal now launched is infrared ray, and right not limited to this, signal projector 7 can also be ultrasound Wave launcher, the then test signal now launched are ultrasonic wave.The type of signal receiver needs the class according to signal projector 7 Type is set, if for example, signal projector 7 is infrared transmitter, signal receiver is infrared remote receiver;If signal projector 7 be ultrasonic transmitter, then signal receiver is ultrasonic receiver.
In present embodiment, the quantity of signal receiver can be set according to actual test precision, if desired control essence Degree reaches 0.5 degree, then the quantity of setting signal receiver is 720, is uniformly distributed the inner surface for being fixed on ring support 6, court To the center of pallet 1, the inner surface one of ring support 6 circle is 360 degree, and the signal for choosing the face of signal projector 7 when not rotating connects It is 0 degree to receive device, sets a signal receiver every 0.5 degree, reaches 0.5 degree so as to control accuracy.Each signal receives Device is respectively provided with the ID number of an expression identity information, the corresponding angle of each ID number.For example, ID is 1 signal receiver pair The angle answered is 0 degree, and angle corresponding to the signal receiver that ID is 2 is 0.5 degree, and by that analogy, each ID number is corresponding one Angle.
In present embodiment, signal projector 7 and multiple signal receivers can be connected to same communication unit, public One communication unit is communicated with host computer 41, right not limited to this, or signal projector 7 and multiple signal receivers Communication unit is equipped with, is communicated with host computer 41.
In present embodiment, the mode that the host computer 41 of control module 4 calculates the anglec of rotation of mobile terminal 5 has two kinds, It is specific as follows:
First method, in test, when mobile terminal 5 turns to test position, corresponding signal receiver receives Test signal, and the host computer 41 of control module 4 is sent the notification to, host computer 41 can then receive according to the signal for sending notice The identity information of device, i.e. ID number, angle corresponding to the signal receiver is obtained, so as to calculate the rotation of mobile terminal 5 Angle.Wherein, if mobile terminal 5 is in initial position, angle corresponding to signal receiver is not 0 degree, then with test position The difference of the angle corresponding with the signal receiver of initial position of angle corresponding to signal receiver, the rotation as mobile terminal 5 Gyration.
Preferably, after the instruction of rotary test angle is sent to slave computer 42 by host computer 41, slave computer 42 is according to driving State modulator driver 3 drives mobile terminal 5 to rotate corresponding test angle to test position, and host computer 41 will be according to above-mentioned the The anglec of rotation that one mode calculates is contrasted with test angle;If the two is equal, illustrate zero deflection, the detection calculated Precision is more accurate;If the two is unequal, illustrate to have deviation, it is necessary to test after debugging test system.
Second method, host computer 41 obtains the driving parameter of driver 3 from slave computer 42, and is calculated according to driving parameter The anglec of rotation.Wherein, if driver 3 is stepper motor, driving parameter is the step value of stepper motor, now, host computer 41 The anglec of rotation of mobile terminal 5 is calculated according to the step value of stepper motor 4;Right not limited to this, driving parameter can also be to drive The conduction time of dynamic device 3, now, host computer 41 is then according to the conduction time of driver 3, to calculate the anglec of rotation of mobile terminal 5 Degree.
Present embodiment is for first embodiment, to the test system of the electronic compass in first embodiment It is described in detail.
Third embodiment of the invention is related to a kind of method of testing of electronic compass, applied to the electricity in first embodiment The test system of sub- compass, refer to Fig. 1.Wherein, electronic compass to be tested is arranged in mobile terminal 5.
The idiographic flow of the method for testing of electronic compass in present embodiment refer to Fig. 7.
Step 101, pallet is followed to rotate together to test position by driver and rotating mechanism, control mobile terminal.
Specifically, control module 4 controls driver 3 to drive rotating mechanism 2 to rotate, and rotating mechanism is fixed on so as to drive Pallet 1 on 2 rotates, and mobile terminal 5 follows pallet 1 to rotate together.
Step 102, the anglec of rotation of mobile terminal is obtained.
Specifically, the actual anglec of rotation that mobile terminal 5 follows pallet 1 to rotate is obtained.
Step 103, the detection angles of the electronic compass of mobile terminal feedback are received.
Specifically, when mobile terminal 5 is rotated to test position, electronic compass to be tested can also detect rotation, move The detection angles of electronic compass are fed back to control module 4 by dynamic terminal 5.
Step 104, according to the anglec of rotation and detection angles, accuracy of detection of the electronic compass at test position is calculated.
Specifically, the detection angles of electronic compass and the actual anglec of rotation of mobile terminal 5 are contrasted, and by two Accuracy of detection of the difference of person as electronic compass at test position.
It is seen that present embodiment is the method embodiment corresponding with first embodiment, present embodiment can Worked in coordination implementation with first embodiment.The relevant technical details mentioned in first embodiment are in the present embodiment still Effectively, in order to reduce repetition, repeat no more here.Correspondingly, the relevant technical details mentioned in present embodiment can also be applied In the first embodiment.
In terms of existing technologies, mobile terminal is placed on pallet for present embodiment, and mobile terminal installation needs The electronic compass of test, by controlling pallet of the drive mechanism drive installation on rotating mechanism, control mobile terminal follows support Disk is rotated to test position together, and obtains the anglec of rotation of mobile terminal, while receives the detection angles of electronic compass;So as to Inspection of the electronic compass at the test position can be calculated according to the anglec of rotation of mobile terminal and the detection angles of electronic compass Precision is surveyed, realizes automatic test, and the accuracy of detection of electronic compass can be accurately calculated.
Four embodiment of the invention is related to a kind of method of testing of electronic compass, and present embodiment is to the 3rd embodiment party The refinement of formula, main refinement part are:Provide the specific implementation for the anglec of rotation for obtaining mobile terminal.
In present embodiment, obtaining the specific implementation of the anglec of rotation of mobile terminal has two kinds, real applied to second The test system of the electronic compass in example is applied, it is specific as follows:
First method, the idiographic flow of the method for testing of electronic compass as shown in figure 8,
Step 201, pallet is followed to rotate together to test position by driver and rotating mechanism, control mobile terminal.
Specifically, host computer 41 sends the instruction that control pallet 1 rotates 30 degree, i.e. sends control mobile terminal 5 and rotates 30 degree of instruction is to slave computer 42.After slave computer 42 receives 30 degree of instruction of rotation, according to the driving parameter of driver 3, Control driver 3 to drive rotating mechanism 2, rotation of mobile terminal on pallet 1 is positioned over to 30 degree to test position to drive.
Step 202, the anglec of rotation of mobile terminal is obtained, is specifically included:
Sub-step 2021, control signal transmitter launch test signal during rotation of mobile terminal, and receive multiple The notice that at least one signal receiver is sent in signal receiver.
Specifically, following two situations can specifically be included:
The first situation, when mobile terminal 5 starts rotation, and when mobile terminal 5 is rotated to test position, host computer 41 control signal transmitters 7 launch test signal, and signal receiver receives test signal, and sends the notification to host computer 41, That is, host computer 41 can receive the notice of two signal receivers.
Second of situation, in the rotary course of mobile terminal 5, the control signal transmitter 7 of host computer 41 is constantly launched Test signal, host computer 41 can receive the notice of multiple signal receivers
Sub-step 2022, according to the identity information for the signal receiver for sending notice, calculate the anglec of rotation.
Specifically, multiple signal generators 8 are uniformly distributed and are fixed on the inner surface of ring support 6, and selection does not rotate When the face of signal projector 7 signal receiver corresponding to angle be 0 degree, so as to for each signal receiver mark accordingly Angle, as angle corresponding to the identity information (i.e. ID number) of signal receiver.Therefore, host computer 41 can be logical according to sending The identity information for the signal receiver known, calculates the anglec of rotation;Wherein, in above-mentioned two situations, host computer 41 will be last Angle corresponding to one signal receiver subtracts angle corresponding to first signal receiver, and obtained differential seat angle is the anglec of rotation Degree.
Preferably, host computer 41 enters for 30 degree after the anglec of rotation is calculated, by the anglec of rotation calculated with test angle Row contrast;If the two is equal, illustrate zero deflection, the accuracy of detection calculated is more accurate;If the two is unequal, illustrate to deposit In deviation, it is necessary to tested after being debugged to test system.
Step 203, the detection angles of the electronic compass of mobile terminal feedback are received.
Specifically, it is roughly the same with the step 103 in 3rd embodiment, do not repeating herein.
Step 204, according to the anglec of rotation and detection angles, accuracy of detection of the electronic compass at test position is calculated.
Specifically, it is roughly the same with the step 104 in 3rd embodiment, do not repeating herein.
Second method, the idiographic flow of the method for testing of electronic compass are as shown in Figure 9.
Wherein, step 301 is roughly the same with step 201, step 303, step 304 and step 203 and step 204 substantially phase Together, it will not be repeated here, be in place of main difference, step 302 obtains the anglec of rotation of mobile terminal, tool in present embodiment Body is:
Step 302, according to the driving parameter of driver, the anglec of rotation is calculated.
Specifically, host computer 41 obtains the driving parameter of driver 3 from slave computer 42, and is calculated according to driving parameter The anglec of rotation.Wherein, if driver 3 is stepper motor, driving parameter is the step value of stepper motor, now, host computer 41 The anglec of rotation of mobile terminal 5 is calculated according to the step value of the stepper motor 4 of record;Right not limited to this, driving parameter may be used also Think the conduction time of driver 3, now, host computer 41 is mobile whole to calculate then according to the conduction time of the driver 3 of record The anglec of rotation at end 5.
In present embodiment, host computer 41 can control carry out automatic test, i.e. complete the test of a test position Afterwards, according to the test angle of next test position, repeating above-mentioned steps 201, (or step 301 is to step to step 204 304), until completing the test of all test positions.Wherein, the specific pattern of automatic test has three kinds, specific as follows:
First mode, travel through formula.Mobile terminal 5 is controlled from 0 degree of rotation to 359 degree, it is every once to represent a test position, Tested successively, accuracy of detection of the electronic compass on 360 test positions can be calculated.
Second mode, fast positioning formula.In from 0 degree to 359 degree multiple test angles, example are chosen according to certain interval Such as, at intervals of 30 degree, then the test angle extracted have 0 degree, 30 degree, 60 degree, 90 degree, 120 degree, 150 degree, 180 degree, 210 degree, 240 degree, 270 degree, 300 degree, 330 degree (360 degree overlap with 0 degree), according to the test angle of selection represent test position, successively Tested, calculate accuracy of detection of the electronic compass on each test position.
3rd pattern, randomly selects formula.At random from 0 degree to 359 degree in extract predetermined number test angle, and according to taking out The test position that the test angle taken represents, is tested, calculates detection of the electronic compass on each test position successively Precision.
Because second embodiment is mutually corresponding with present embodiment, therefore present embodiment can be mutual with second embodiment It is engaged implementation.The relevant technical details mentioned in second embodiment are still effective in the present embodiment, implement second The technique effect that can reach in mode can similarly be realized in the present embodiment, no longer superfluous here in order to reduce repetition State.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in second embodiment.
Present embodiment is for the 3rd embodiment, there is provided two kinds obtain the specific of rotation of mobile terminal angle Implementation.
Fifth embodiment of the invention is related to a kind of method of testing of electronic compass, and present embodiment is in the 3rd embodiment party The improvement of formula, is mainly theed improvement is that:The method for providing the performance parameter for obtaining electronic compass, with the property to electronic compass It can be judged.
The idiographic flow of the method for testing of the electronic compass of present embodiment is as shown in Figure 10.
Wherein, step 401 is roughly the same with step 101, step 403, step 404 and step 102, step 103 substantially phase Together, step 407 is roughly the same with step 104, will not be repeated here, and is in place of main difference, is added in present embodiment Step 402, step 405 and step 406, it is specific as follows:
Step 402, recorded for the first moment, the first moment was at the time of receiving notice when pallet is rotated to test position.
Specifically, at the time of the record of host computer 41 receives the notice of signal receiver, i.e. mobile terminal 5 rotates to At the time of test position, it was denoted as the first moment.
Step 405, recorded for the second moment, at the time of the second moment was the detection angles for receiving electronic compass.
Specifically, at the time of host computer 41 records the detection angles for the electronic compass for receiving the feedback of mobile terminal 5, That is, at the time of electronic compass completes detection, as the second moment.
Step 406, the difference at the second moment and the first moment, the performance parameter as electronic compass are calculated.
Specifically, the difference at the second moment and the first moment is calculated, i.e. calculate mobile terminal 5 and rotate to test position At the time of (i.e. the first moment) to electronic compass complete angle detection at the time of difference, the performance parameter as electronic compass.
It should be noted that the execution sequence of step 406 and step 407 is only schematically described in Figure 10, i.e. the present embodiment In, the performance parameter of electronic compass can also be first calculated, then calculate accuracy of detection of the electronic compass at test position.
Present embodiment can calculate the same of the accuracy of detection of electronic compass for the 3rd embodiment When, the performance of electronic compass is judged.It should be noted that present embodiment can also be used as on the 4th embodiment basis On improvement, same technique effect can be reached.
It will be understood by those skilled in the art that the respective embodiments described above are to realize the specific embodiment of the present invention, And in actual applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.

Claims (12)

  1. A kind of 1. test system of electronic compass, it is characterised in that including:Pallet, rotating mechanism, driver and control mould Block;
    The pallet is fixed on the rotating mechanism and for placing an at least mobile terminal, and the mobile terminal installation needs The electronic compass of test;
    The driver is connected to the rotating mechanism, and the control module is led to the driver, the mobile terminal respectively Letter connection;
    The control module is used to, by the driver and the rotating mechanism, control the mobile terminal to follow the pallet Rotate together to test position, and obtain the anglec of rotation of the mobile terminal;The control module is additionally operable to receive the shifting The detection angles of the electronic compass of dynamic terminal feedback, and according to the anglec of rotation and the detection angles, calculate institute State accuracy of detection of the electronic compass at the test position.
  2. 2. the test system of electronic compass according to claim 1, it is characterised in that the test system of the electronic compass Also include ring support, the respectively signal projector with control module communication connection and multiple signal receivers;
    The ring support is located on the pallet and non-contact with the pallet;
    The signal projector is fixed on the center of the pallet, and for launching during the rotation of mobile terminal Test signal;
    The multiple signal receiver is distributed on the ring support, and for receiving the test signal, and receiving Notice is sent during the test signal to the control module;
    The control module calculates the anglec of rotation according to the identity information for the signal receiver for sending the notice.
  3. 3. the test system of electronic compass according to claim 2, it is characterised in that the signal projector is infrared hair Emitter, the multiple signal receiver are infrared remote receiver.
  4. 4. the test system of electronic compass according to claim 1, it is characterised in that the control module is used for according to institute The driving parameter of driver is stated, calculates the anglec of rotation.
  5. 5. the test system of electronic compass according to claim 4, it is characterised in that the driver be stepper motor and The driving parameter is step value;
    Or the energization period that the driving parameter is the driver.
  6. 6. the test system of electronic compass according to claim 1, it is characterised in that the rotating mechanism includes gear train With turning arm;
    The gear train connects the turning arm and the driver, and the driver is used for by described in gear train driving Turning arm rotates;
    The pallet is fixed on the turning arm, and is rotated together with the turning arm.
  7. 7. the test system of electronic compass according to claim 1, it is characterised in that the control module includes host computer With slave computer;
    The slave computer is connected with the driver, and for controlling the driver;
    The host computer is connected with the slave computer, the mobile terminal respectively;The host computer is used to obtain the anglec of rotation Degree, receives the detection angles, and according to the anglec of rotation and the detection angles, calculate the electronic compass described Accuracy of detection at test position.
  8. A kind of 8. method of testing of electronic compass, it is characterised in that applied to including pallet, rotating mechanism, driver electronics The test system of compass, the driver are connected to the rotating mechanism;The pallet is fixed on the rotating mechanism and used In placing an at least mobile terminal, the mobile terminal is provided with electronic compass to be tested;The method of testing includes:
    By the driver and the rotating mechanism, the mobile terminal is controlled to follow the pallet to rotate together to test position Put;
    Obtain the anglec of rotation of the mobile terminal;
    Receive the detection angles of the electronic compass of the mobile terminal feedback;
    According to the anglec of rotation and the detection angles, detection essence of the electronic compass at the test position is calculated Degree.
  9. 9. the method for testing of electronic compass according to claim 8, it is characterised in that the test system of the electronic compass Also include being located on the pallet and ring support non-contacting with the pallet, be fixed on the pallet center letter Number transmitter and the multiple signal receivers for being distributed in the ring support;
    The anglec of rotation for obtaining the mobile terminal, is specifically included:
    Control the signal projector to launch test signal during the rotation of mobile terminal, and receive the multiple signal The notice that at least one signal receiver is sent in receiver;The signal receiver is sent when receiving the test signal The notice;
    According to the identity information for the signal receiver for sending the notice, the anglec of rotation is calculated.
  10. 10. the method for testing of electronic compass according to claim 9, it is characterised in that the method for testing also includes:
    Recorded for the first moment, first moment be the pallet rotate received during to the test position notice when Carve;
    Recorded for the second moment, second moment is at the time of receiving the detection angles of the electronic compass;
    Calculate the difference at second moment and first moment, the performance parameter as the electronic compass.
  11. 11. the method for testing of electronic compass according to claim 8, it is characterised in that described to obtain the mobile terminal The anglec of rotation, be specially:According to the driving parameter of the driver, the anglec of rotation is calculated.
  12. 12. the method for testing of electronic compass according to claim 11, it is characterised in that the driver is stepper motor And the driving parameter is step value;
    Or the energization period that the driving parameter is the driver.
CN201711025965.6A 2017-10-27 2017-10-27 Test system and method of electronic compass Active CN107830850B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711025965.6A CN107830850B (en) 2017-10-27 2017-10-27 Test system and method of electronic compass

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711025965.6A CN107830850B (en) 2017-10-27 2017-10-27 Test system and method of electronic compass

Publications (2)

Publication Number Publication Date
CN107830850A true CN107830850A (en) 2018-03-23
CN107830850B CN107830850B (en) 2020-04-03

Family

ID=61650674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711025965.6A Active CN107830850B (en) 2017-10-27 2017-10-27 Test system and method of electronic compass

Country Status (1)

Country Link
CN (1) CN107830850B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108413990A (en) * 2018-03-26 2018-08-17 上海摩软通讯技术有限公司 The gyroscope test device and test method of mobile terminal
CN108712552A (en) * 2018-07-10 2018-10-26 深圳市博辉特科技有限公司 Handset testing method
CN110887979A (en) * 2019-12-06 2020-03-17 华东师范大学 Calibration device for Acoustic Doppler Current Profiler (ADCP)
CN113970312A (en) * 2021-09-17 2022-01-25 深圳市恒天伟焱科技股份有限公司 Angle detection method, angle detection device, computer program product and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2645059A1 (en) * 2010-11-25 2013-10-02 NEC CASIO Mobile Communications, Ltd. Portable terminal with electronic compass and direction calculation method
CN104501790A (en) * 2014-12-17 2015-04-08 小米科技有限责任公司 Calibration method and device of electronic compass
CN105222763A (en) * 2014-07-04 2016-01-06 神讯电脑(昆山)有限公司 Compass testing equipment
CN106546268A (en) * 2016-10-28 2017-03-29 努比亚技术有限公司 Intelligent terminal's compass automatic test approach, device, equipment and system
CN107063133A (en) * 2017-05-16 2017-08-18 中国人民解放军信息工程大学 A kind of spectrometer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2645059A1 (en) * 2010-11-25 2013-10-02 NEC CASIO Mobile Communications, Ltd. Portable terminal with electronic compass and direction calculation method
CN105222763A (en) * 2014-07-04 2016-01-06 神讯电脑(昆山)有限公司 Compass testing equipment
CN104501790A (en) * 2014-12-17 2015-04-08 小米科技有限责任公司 Calibration method and device of electronic compass
CN106546268A (en) * 2016-10-28 2017-03-29 努比亚技术有限公司 Intelligent terminal's compass automatic test approach, device, equipment and system
CN107063133A (en) * 2017-05-16 2017-08-18 中国人民解放军信息工程大学 A kind of spectrometer

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108413990A (en) * 2018-03-26 2018-08-17 上海摩软通讯技术有限公司 The gyroscope test device and test method of mobile terminal
CN108413990B (en) * 2018-03-26 2021-08-27 上海摩软通讯技术有限公司 Gyroscope testing device and method of mobile terminal
CN108712552A (en) * 2018-07-10 2018-10-26 深圳市博辉特科技有限公司 Handset testing method
CN110887979A (en) * 2019-12-06 2020-03-17 华东师范大学 Calibration device for Acoustic Doppler Current Profiler (ADCP)
CN113970312A (en) * 2021-09-17 2022-01-25 深圳市恒天伟焱科技股份有限公司 Angle detection method, angle detection device, computer program product and storage medium

Also Published As

Publication number Publication date
CN107830850B (en) 2020-04-03

Similar Documents

Publication Publication Date Title
CN107830850A (en) The test system and method for electronic compass
US9776331B2 (en) Method for setting identification code of smart motor and multi-axis control apparatus using the same
CN106468948A (en) Education system using connection toy
CN104407622B (en) robot tracking method and system
CN105345194A (en) PCB welding spot locating method base on machine vision
CN102607630B (en) Detection method, device and system of fault of encoder
CN109682626B (en) Robot speed testing method and device
CN103153553A (en) Vision-guided alignment system and method
CN105987715A (en) Gauge display system
US20200391376A1 (en) Prompt method and system for building modular apparatus
JP2013142699A (en) Sensor device
CN107389959A (en) It is a kind of can automatic error-correcting turntable positioning device and its control method
CN106851575A (en) The method and locating calibration device of a kind of unified locating base station coordinate system
CN104331078A (en) Multi-robot cooperative localization method based on position mapping algorithm
CN107481960A (en) A kind of measurement, calibrating installation and its method for square wafer offset
CN116147527A (en) Three-dimensional scanning system and scanning path planning method thereof
GB2560197A (en) Infrared sensor assembly and positioning system
CN108326846A (en) Modularization robot and its modular unit position calculating method
CN107703728A (en) A kind of watch hand to predeterminated position method
CN203643181U (en) Automatic test device
CN104595475A (en) Electromechanical hybrid type precise transmission system and control method thereof
CN108613684B (en) Method for testing angle precision of fixed base frame of three-floating platform system
CN110186399B (en) Driver positioning accuracy detection device and method
JP2016115357A (en) Device and method for inspecting operation clock signal of position determination device
CN110940352B (en) Automatic calibration system of micro-electro-mechanical system inertia measurement unit and calibration verification method thereof

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
GR01 Patent grant
GR01 Patent grant