[go: up one dir, main page]

CN107830850B - Electronic compass testing system and method - Google Patents

Electronic compass testing system and method Download PDF

Info

Publication number
CN107830850B
CN107830850B CN201711025965.6A CN201711025965A CN107830850B CN 107830850 B CN107830850 B CN 107830850B CN 201711025965 A CN201711025965 A CN 201711025965A CN 107830850 B CN107830850 B CN 107830850B
Authority
CN
China
Prior art keywords
electronic compass
mobile terminal
driver
test
tray
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.)
Active
Application number
CN201711025965.6A
Other languages
Chinese (zh)
Other versions
CN107830850A (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

Images

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 embodiment of the invention relates to the technical field of testing, and discloses a system and a method for testing an electronic compass. A test system for an electronic compass comprising: the device comprises a tray, a rotating mechanism, a driver and a control module; the tray is fixed on the rotating mechanism and used for placing at least one mobile terminal, and the mobile terminal is provided with an electronic compass to be tested; the driver is connected with the rotating mechanism, and the control module is in communication connection with the driver and the mobile terminal respectively; the control module is used for controlling the mobile terminal to rotate to a test position along with the tray through the driver and the rotating mechanism and acquiring the rotating angle of the mobile terminal; the control module is also used for receiving the detection angle of the electronic compass fed back by the mobile terminal, and calculating the detection precision of the electronic compass at the test position according to the rotation angle and the detection angle. The invention also provides a test method of the electronic compass. According to the invention, automatic testing can be realized, and the detection precision of the electronic compass can be accurately calculated.

Description

Test system and method of electronic compass
Technical Field
The embodiment of the invention relates to the technical field of testing, in particular to a system and a method for testing an electronic compass.
Background
The existing mobile terminal represented by a mobile phone is developed rapidly, and an electronic compass in the mobile terminal can replace the existing entity compass to a certain extent. In order to ensure the accuracy of the electronic compass in the mobile terminal, the electronic compass needs to be tested.
When an existing mobile terminal manufacturer tests an electronic compass, most of the manufacturers use manual detection to compare an entity compass and the electronic compass pointing to the same direction so as to test whether the electronic compass is accurate or not; there is also a machine that uses a simple mechanism to rotate the mobile terminal together with the compass, and to visually observe whether the electronic compass is accurate.
The inventor finds that at least the following problems exist in the prior art: in the prior art, when an electronic compass is tested, whether the electronic compass is accurate or not is generally judged manually; meanwhile, whether the direction of the electronic compass is accurate can only be preliminarily judged, but the offset angle of the electronic compass cannot be accurately calculated. Therefore, even through testing, the electronic compass in the mobile terminal may still be inaccurate, with errors.
Disclosure of Invention
The invention aims to provide a test system and a test method of an electronic compass, which can realize automatic test and accurately calculate the detection precision of the electronic compass.
In order to solve the above technical problem, an embodiment of the present invention provides a test system for an electronic compass, including: the device comprises a tray, a rotating mechanism, a driver and a control module; the tray is fixed on the rotating mechanism and used for placing at least one mobile terminal, and the mobile terminal is provided with an electronic compass to be tested; the driver is connected with the rotating mechanism, and the control module is in communication connection with the driver and the mobile terminal respectively; the control module is used for controlling the mobile terminal to rotate to a test position along with the tray through the driver and the rotating mechanism and acquiring the rotating angle of the mobile terminal; the control module is also used for receiving the detection angle of the electronic compass fed back by the mobile terminal, and calculating the detection precision of the electronic compass at the test position according to the rotation angle and the detection angle.
The embodiment of the invention also provides a test method of the electronic compass, which is applied to a test system of the electronic compass comprising a tray, a rotating mechanism and a driver, wherein the driver is connected with the rotating mechanism; the tray is fixed on the rotating mechanism and used for placing at least one mobile terminal, and the mobile terminal is provided with an electronic compass to be tested; the test method comprises the following steps: controlling the mobile terminal to rotate to a test position along with the tray through a driver and the rotating mechanism; acquiring a rotation angle of the mobile terminal; receiving a detection angle of the electronic compass fed back by the mobile terminal; calculating the detection precision of the electronic compass at the test position according to the rotation angle and the detection angle
Compared with the prior art, the embodiment of the invention has the advantages that the mobile terminal is placed on the tray, the electronic compass to be tested is installed on the mobile terminal, the tray installed on the rotating mechanism is driven by the control driving mechanism, the mobile terminal is controlled to rotate to the testing position along with the tray, the rotating angle of the mobile terminal is obtained, and meanwhile, the detecting angle of the electronic compass is received; therefore, the detection precision of the electronic compass at the test position can be calculated according to the rotation angle of the mobile terminal and the detection angle of the electronic compass, automatic test is realized, and the detection precision of the electronic compass can be accurately calculated.
In addition, the test system of the electronic compass also comprises an annular bracket, a signal transmitter and a plurality of signal receivers which are respectively in communication connection with the control module; the annular bracket is annularly arranged on the tray and is not in contact with the tray; the signal emitter is fixed at the center of the tray and used for emitting a test signal in the rotating process of the mobile terminal; the signal receivers are distributed on the annular support and used for receiving the test signals and sending a notice to the control module when receiving the test signals; and the control module calculates the rotation angle according to the identity information of the signal receiver sending the notification. The embodiment provides a specific implementation mode for calculating the rotation angle of the mobile terminal.
In addition, in the test system of the electronic compass, the signal emitter is an infrared emitter, and the plurality of signal receivers are all infrared receivers. The present embodiment provides a specific implementation of a signal transmitter and a signal receiver.
In addition, in the test system of the electronic compass, the control module is used for calculating the rotation angle according to the driving parameters of the driver. The embodiment provides another specific implementation manner for calculating the rotation angle of the mobile terminal.
In addition, in the test system of the electronic compass, the driver is a stepping motor and the driving parameter is a stepping value; alternatively, the drive parameter is a power-on duration of the driver. The present embodiment provides specific types of drive parameters.
In addition, in the test system of the electronic compass, the rotating mechanism comprises a gear set and a rotating arm; the gear set is connected with the rotating arm and the driver, and the driver is used for driving the rotating arm to rotate through the gear set; the tray is fixed on the rotating arm and rotates together with the rotating arm. This embodiment provides a specific implementation of the rotation mechanism.
In addition, in the test system of the electronic compass, the control module comprises an upper computer and a lower computer; the lower computer is connected with the driver and is used for controlling the driver; the upper computer is respectively connected with the lower computer and the mobile terminal; the upper computer is used for acquiring the rotation angle, receiving the detection angle and calculating the detection precision of the electronic compass at the test position according to the rotation angle and the detection angle. The present embodiment provides a specific implementation of the control module.
In addition, the method for testing the electronic compass further comprises the following steps: recording a first moment, wherein the first moment is the moment when the tray rotates to the test position and receives the notification; recording a second moment, wherein the second moment is the moment when the detection angle of the electronic compass is received; and calculating the difference value between the second moment and the first moment as the performance parameter of the electronic compass. In the present embodiment, the performance of the electronic compass can be determined while calculating the detection accuracy of the electronic compass.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a block schematic diagram of a test system for an electronic compass according to a first embodiment;
fig. 2 is a top view of a mobile terminal according to a first embodiment placed on a tray;
fig. 3 is a schematic diagram of an electronic compass on a mobile terminal according to the first embodiment;
FIG. 4 is a block schematic diagram of a test system for an electronic compass according to a second embodiment;
fig. 5 is a block diagram of a test system of an electronic compass according to a second embodiment;
fig. 6 is a cross-sectional view of a test system for an electronic compass according to a second embodiment;
fig. 7 is a detailed flowchart of a test method of the electronic compass according to the third embodiment;
fig. 8 is a detailed flowchart of a test method of an electronic compass that acquires a rotation angle in a first manner according to the fourth embodiment;
fig. 9 is a detailed flowchart of a test method of the electronic compass for acquiring the rotation angle in the second manner according to the fourth embodiment;
fig. 10 is a detailed flowchart of a test method of the electronic compass according to the fifth embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present invention relates to a test system for an electronic compass. Referring to fig. 1 and 2, a test system of an electronic compass includes: tray 1, rotary mechanism 2, drive 3 and control module 4. The electronic compass to be tested is installed in the mobile terminal 5, the mobile terminal 5 is placed on the tray 1, the tray 1 is fixed on the rotating mechanism 2, and the driver 3 is connected to the rotating mechanism 2 to drive the rotating mechanism 2 to rotate. The control module 4 is in communication connection with the driver 3 and the mobile terminal 5, and the mobile terminal 5 is, for example, a mobile phone, a tablet computer, or the like. It should be noted that, more than one mobile terminal 5 can be placed on the tray 1 of the present embodiment, so that the electronic compass in a plurality of mobile terminals 5 can be tested at the same time; as shown in fig. 2, the position of the dashed box is used for placing the mobile terminal 5, and the electronic compass in 4 mobile terminals 5 can be tested simultaneously.
The control module 4 is used for controlling the mobile terminal 5 to rotate to a test position along with the tray 1 through the driver 3 and the rotating mechanism 2, namely controlling the mobile terminal 5 to rotate to a corresponding test angle along with the tray 1; and acquires the rotation angle of the mobile terminal 5. Wherein, control module 4 controls driver 3 drive rotary mechanism 2 and rotates to drive the tray 1 of fixing on rotary mechanism 2 and rotate, mobile terminal 5 follows tray 1 and rotates together.
The control module 4 is further configured to receive a detection angle of the electronic compass fed back by the mobile terminal, and calculate a detection accuracy of the electronic compass at the test position according to the rotation angle and the detection angle. Specifically, when the mobile terminal 5 rotates to the testing position, the electronic compass to be tested also detects the rotation, the mobile terminal 5 feeds back the detection angle of the electronic compass to the control module 4, and the control module 4 calculates the difference (if the difference is a negative value, the absolute value of the difference) between the rotation angle of the mobile terminal 5 and the detection angle of the electronic compass as the detection accuracy of the electronic compass at the testing position.
The method for acquiring the detection angle of the electronic compass comprises the following steps: in the mobile terminal 5, the content of each display interface is composed of various controls, and the attribute information of each control includes position coordinates, ID, and the like. Referring to fig. 3, in the electronic compass, the pointer control 51 rotates along with the rotation of the mobile terminal 5, the fixed control 52 is a control with a zero angle, and coordinates of each control are obtained through a UI test tool, so that an angle of an included angle between the pointer control 51 and the fixed control 52 can be calculated, that is, a detection angle of the electronic compass.
Compared with the prior art, the mobile terminal is placed on the tray, the electronic compass to be tested is installed on the mobile terminal, the tray installed on the rotating mechanism is driven by the control driving mechanism, the mobile terminal is controlled to rotate to the testing position along with the tray, the rotating angle of the mobile terminal is obtained, and meanwhile the detection angle of the electronic compass is received. Therefore, the detection precision of the electronic compass at the test position can be calculated according to the rotation angle of the mobile terminal and the detection angle of the electronic compass, automatic test is realized, and the detection precision of the electronic compass can be accurately calculated.
A second embodiment of the present invention relates to a test system for an electronic compass. This embodiment is a refinement of the first embodiment, and is mainly characterized in that: a test system of an electronic compass in the first embodiment is described in detail.
In this embodiment, referring to fig. 4, the control module 4 includes an upper computer 41 and a lower computer 42; the upper computer 41 is connected to the lower computer 42 and the mobile terminal 5 in a communication manner, and the lower computer 42 is connected to the drive 3. The upper computer 41 may be a personal computer, and the lower computer 42 may be a single chip microcomputer or a programmable logic controller. Preferably, the upper computer 41 is connected to the mobile terminal 5 through wireless wifi. The upper computer 41 is used for acquiring the rotation angle, receiving the detection angle of the electronic compass of the mobile terminal, and calculating the detection precision of the electronic compass at the test position according to the rotation angle and the detection angle.
In the present embodiment, referring to fig. 4, the rotation mechanism 2 includes a gear set 21 and a rotation arm 22, the gear set 21 is connected to the rotation arm 22 and the driver 3, and the driver 3 drives the rotation arm 22 to rotate through the gear set 21. The tray 1 is fixed to the rotating arm 22, and when the rotating arm 22 rotates, the tray 1 rotates together with the rotating arm 22. Wherein, the gear set 21 comprises a plurality of gears, and the plurality of gears cooperate with each other to drive the rotating arm 22 to rotate; wherein the specific number of gears and/or the number of teeth of each gear may be selected according to the requirements of rotational accuracy.
Preferably, referring to fig. 5 and 6, the testing system of the electronic compass further includes a ring support 6, a signal transmitter 7 and a plurality of signal receivers, which are respectively communicatively connected to the control module 4.
The annular support 6 is arranged on the tray 1 in an annular mode and is in non-contact with the tray 1, the signal transmitter 7 is fixed in the center of the tray 1, and the signal receivers are fixed on the annular support 6. Wherein, a plurality of signal receivers are fixed on the annular support 6, preferably, a plurality of signal receivers are uniformly distributed on the annular support 6; however, the distribution of the plurality of signal receivers may be determined according to the testing requirements. Wherein the gear unit 21 generally has a housing (not shown), the ring carrier 6 is fixed to the housing of the gear unit 21.
The signal emitter 7 is used for emitting a test signal in the rotation process of the mobile terminal 5; the signal receiver is configured to receive the test signal and send a notification to the upper computer 41 of the control module 4 when receiving the test signal. The signal emitter 7 may be an infrared emitter, and the test signal emitted at this time is infrared, but is not limited thereto, and the signal emitter 7 may also be an ultrasonic emitter, and the test signal emitted at this time is ultrasonic. The type of the signal receiver needs to be set according to the type of the signal transmitter 7, for example, if the signal transmitter 7 is an infrared transmitter, the signal receiver is an infrared receiver; if the signal transmitter 7 is an ultrasonic transmitter, the signal receiver is an ultrasonic receiver.
In this embodiment, the number of signal receivers can be set according to actual test accuracy, if the control accuracy reaches 0.5 degree, the number of signal receivers is set to 720, the signal receivers are uniformly distributed and fixed on the inner surface of the annular support 6 and face the center of the tray 1, 360 degrees are arranged in a circle on the inner surface of the annular support 6, the signal receiver opposite to the signal transmitter 7 is selected to be 0 degree when the annular support is not rotated, and one signal receiver is arranged at intervals of 0.5 degree, so that the control accuracy reaches 0.5 degree. Each signal receiver has an ID number representing identity information, each ID number corresponding to an angle. For example, a signal receiver with ID 1 corresponds to an angle of 0 degrees, a signal receiver with ID 2 corresponds to an angle of 0.5 degrees, and so on, and each ID number corresponds to an angle.
In the present embodiment, the signal transmitter 7 and the plurality of signal receivers may be connected to the same communication unit, and the same communication unit may be used to communicate with the upper computer 41, but the present invention is not limited thereto, and the signal transmitter 7 and the plurality of signal receivers may be provided with communication units, respectively, to communicate with the upper computer 41.
In this embodiment, there are two ways for the upper computer 41 of the control module 4 to calculate the rotation angle of the mobile terminal 5, which are specifically as follows:
in the first mode, during testing, when the mobile terminal 5 rotates to the testing position, the corresponding signal receiver receives the test signal and sends the test signal to the upper computer 41 of the control module 4, and the upper computer 41 can obtain the angle corresponding to the signal receiver according to the identity information, i.e., the ID number, of the signal receiver that sends the test signal, so as to calculate the rotation angle of the mobile terminal 5. If the angle corresponding to the signal receiver is not 0 degrees when the mobile terminal 5 is at the initial position, the difference between the angle corresponding to the signal receiver at the test position and the angle corresponding to the signal receiver at the initial position is used as the rotation angle of the mobile terminal 5.
Preferably, after the upper computer 41 sends the instruction of rotating the test angle to the lower computer 42, the lower computer 42 controls the driver 3 to drive the mobile terminal 5 to rotate the corresponding test angle to the test position according to the driving parameters, and the upper computer 41 compares the rotation angle calculated according to the first method with the test angle; if the two are equal, no deviation exists, and the calculated detection precision is more accurate; if the two are not equal, the deviation exists, and the test system needs to be debugged and then tested.
In the second embodiment, the upper computer 41 acquires the drive parameters of the driver 3 from the lower computer 42, and calculates the rotation angle from the drive parameters. If the driver 3 is a stepping motor, the driving parameter is a stepping value of the stepping motor, and at this time, the upper computer 41 calculates the rotation angle of the mobile terminal 5 according to the stepping value of the stepping motor 4; however, the driving parameter may be the power-on time of the driver 3, and in this case, the upper computer 41 calculates the rotation angle of the mobile terminal 5 according to the power-on time of the driver 3.
This embodiment describes the test system of the electronic compass in the first embodiment in detail, in comparison with the first embodiment.
A third embodiment of the present invention relates to a method for testing an electronic compass, which is applied to the system for testing an electronic compass in the first embodiment, please refer to fig. 1. Wherein the electronic compass to be tested is installed in the mobile terminal 5.
Fig. 7 is a flowchart of a method for testing an electronic compass according to the present embodiment.
And step 101, controlling the mobile terminal to rotate to a test position along with the tray through a driver and a rotating mechanism.
Specifically, the control module 4 controls the driver 3 to drive the rotating mechanism 2 to rotate, so as to drive the tray 1 fixed on the rotating mechanism 2 to rotate, and the mobile terminal 5 rotates along with the tray 1.
And 102, acquiring the rotation angle of the mobile terminal.
Specifically, an actual rotation angle at which the mobile terminal 5 rotates following the tray 1 is acquired.
And 103, receiving the detection angle of the electronic compass fed back by the mobile terminal.
Specifically, when the mobile terminal 5 rotates to the testing position, the electronic compass to be tested also detects the rotation, and the mobile terminal 5 feeds back the detection angle of the electronic compass to the control module 4.
And step 104, calculating the detection precision of the electronic compass at the test position according to the rotation angle and the detection angle.
Specifically, the detected angle of the electronic compass is compared with the actual rotation angle of the mobile terminal 5, and the difference between the two is taken as the detection accuracy of the electronic compass at the test position.
It should be understood that this embodiment is a method embodiment corresponding to the first embodiment, and that this embodiment can be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
Compared with the prior art, the method has the advantages that the mobile terminal is placed on the tray, the electronic compass to be tested is installed on the mobile terminal, the tray installed on the rotating mechanism is driven by the control driving mechanism, the mobile terminal is controlled to rotate to the testing position along with the tray, the rotating angle of the mobile terminal is obtained, and meanwhile the detection angle of the electronic compass is received; therefore, the detection precision of the electronic compass at the test position can be calculated according to the rotation angle of the mobile terminal and the detection angle of the electronic compass, automatic test is realized, and the detection precision of the electronic compass can be accurately calculated.
A fourth embodiment of the present invention relates to a method for testing an electronic compass, which is a refinement of the third embodiment, and mainly includes: specific implementations for obtaining a rotation angle of a mobile terminal are provided.
In this embodiment, there are two specific implementation manners for acquiring the rotation angle of the mobile terminal, and the implementation manner is applied to the test system of the electronic compass in the second embodiment, and specifically is as follows:
first mode, a specific flow of the test method of the electronic compass is shown in fig. 8,
and step 201, controlling the mobile terminal to rotate to a test position along with the tray through a driver and a rotating mechanism.
Specifically, the upper computer 41 transmits an instruction to control the tray 1 to rotate by 30 degrees, that is, an instruction to control the mobile terminal 5 to rotate by 30 degrees to the lower computer 42. After receiving the instruction of rotating 30 degrees, the lower computer 42 controls the driver 3 to drive the rotating mechanism 2 according to the driving parameters of the driver 3, so as to drive the mobile terminal placed on the tray 1 to rotate 30 degrees to the testing position.
Step 202, acquiring a rotation angle of the mobile terminal, specifically including:
sub-step 2021, controlling the signal transmitter to transmit the test signal during the rotation of the mobile terminal and to receive a notification sent by at least one of the plurality of signal receivers.
Specifically, the following two cases may be specifically included:
in the first case, when the mobile terminal 5 starts to rotate and the mobile terminal 5 rotates to the test position, the upper computer 41 controls the signal transmitter 7 to transmit the test signal, and the signal receiver receives the test signal and transmits a notification to the upper computer 41, that is, the upper computer 41 can receive the notifications of the two signal receivers.
In the second situation, in the rotation process of the mobile terminal 5, the upper computer 41 controls the signal emitter 7 to continuously emit the test signal, and the upper computer 41 can receive the notification of the signal receivers
Substep 2022 calculates the rotation angle based on the identity information of the signal receiver sending the notification.
Specifically, the plurality of signal generators 8 are uniformly distributed and fixed on the inner surface of the annular support 6, and the angle corresponding to the signal receiver opposite to the signal transmitter 7 when the annular support is not rotated is selected to be 0 degree, so that a corresponding angle can be marked for each signal receiver to serve as the angle corresponding to the identity information (i.e., the ID number) of the signal receiver. Therefore, the upper computer 41 can calculate the rotation angle according to the identity information of the signal receiver sending the notification; in the two cases, the upper computer 41 subtracts the angle corresponding to the first signal receiver from the angle corresponding to the last signal receiver, and the obtained angle difference is the rotation angle.
Preferably, after the upper computer 41 calculates the rotation angle, the calculated rotation angle is compared with the test angle of 30 degrees; if the two are equal, no deviation exists, and the calculated detection precision is more accurate; if the two are not equal, the deviation exists, and the test system needs to be debugged and then tested.
And step 203, receiving the detection angle of the electronic compass fed back by the mobile terminal.
Specifically, the method is substantially the same as step 103 in the third embodiment, and is not described herein again.
And step 204, calculating the detection precision of the electronic compass at the test position according to the rotation angle and the detection angle.
Specifically, the method is substantially the same as step 104 in the third embodiment, and is not described herein.
In a second mode, a specific flow of the test method of the electronic compass is shown in fig. 9.
Step 301 is substantially the same as step 201, and step 303, step 304 are substantially the same as step 203 and step 204, which are not described herein again, but the main difference is that step 302 in this embodiment obtains the rotation angle of the mobile terminal, specifically:
step 302, calculating the rotation angle according to the driving parameters of the driver.
Specifically, the upper computer 41 acquires the drive parameters of the driver 3 from the lower computer 42, and calculates the rotation angle from the drive parameters. If the driver 3 is a stepping motor, the driving parameter is a stepping value of the stepping motor, and at this time, the upper computer 41 calculates the rotation angle of the mobile terminal 5 according to the recorded stepping value of the stepping motor 4; however, the driving parameter may be the power-on time of the driver 3, and in this case, the upper computer 41 calculates the rotation angle of the mobile terminal 5 according to the recorded power-on time of the driver 3.
In this embodiment, the upper computer 41 may control to perform an automatic test, that is, after the test of one test position is completed, the above steps 201 to 204 (or steps 301 to 304) are repeatedly executed according to the test angle of the next test position until the tests of all the test positions are completed. The automatic test method comprises three specific modes, specifically as follows:
the first mode, ergodic. The mobile terminal 5 is controlled to rotate from 0 degree to 359 degrees, each degree represents a test position, and the test is sequentially carried out, so that the detection accuracy of the electronic compass on 360 test positions can be calculated.
And a second mode, a fast positioning mode. A plurality of test angles are selected from 0 degree to 359 degrees at certain intervals, for example, the interval is 30 degrees, the extracted test angles are 0 degree, 30 degrees, 60 degrees, 90 degrees, 120 degrees, 150 degrees, 180 degrees, 210 degrees, 240 degrees, 270 degrees, 300 degrees and 330 degrees (360 degrees and 0 degrees are overlapped), and the test is sequentially performed according to the test positions represented by the selected test angles, so that the detection precision of the electronic compass on each test position is calculated.
And in the third mode, random extraction is adopted. And randomly extracting a preset number of test angles from 0 to 359 degrees, sequentially testing according to the test positions represented by the extracted test angles, and calculating the detection precision of the electronic compass at each test position.
Since the second embodiment corresponds to the present embodiment, the present embodiment can be implemented in cooperation with the second embodiment. The related technical details mentioned in the second embodiment are still valid in this embodiment, and the technical effects that can be achieved in the second embodiment can also be achieved in this embodiment, and are not described herein again in order to reduce the repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the second embodiment.
Compared with the third embodiment, the present embodiment provides two specific implementation manners for acquiring the rotation angle of the mobile terminal.
A fifth embodiment of the present invention relates to a method for testing an electronic compass, which is an improvement of the third embodiment, and is mainly characterized in that: a method for acquiring performance parameters of an electronic compass is provided to judge the performance of the electronic compass.
Fig. 10 shows a specific flow of the test method of the electronic compass according to the present embodiment.
Step 401 is substantially the same as step 101, step 403 and step 404 are substantially the same as step 102 and step 103, and step 407 is substantially the same as step 104, which are not described herein again, but the main difference is that step 402, step 405 and step 406 are added in this embodiment, and the following details are specifically included:
step 402, recording a first time, wherein the first time is the time when the tray rotates to the test position and receives the notification.
Specifically, the upper computer 41 records the time when the notification of the signal receiver is received, that is, the time when the mobile terminal 5 rotates to the test position, as the first time.
And step 405, recording a second time, wherein the second time is the time when the detection angle of the electronic compass is received.
Specifically, the upper computer 41 records, as the second time, the time when the detection angle of the electronic compass fed back by the mobile terminal 5 is received, that is, the time when the electronic compass completes detection.
And step 406, calculating a difference value between the second moment and the first moment as a performance parameter of the electronic compass.
Specifically, a difference between the second time and the first time, that is, a difference between the time when the mobile terminal 5 rotates to the test position (i.e., the first time) and the time when the electronic compass completes the angle detection is calculated as the performance parameter of the electronic compass.
It should be noted that, the execution sequence of step 406 and step 407 is only schematically described in fig. 10, that is, in this embodiment, the performance parameter of the electronic compass may be calculated first, and then the detection accuracy of the electronic compass at the test position is calculated.
Compared to the third embodiment, the present embodiment can calculate the detection accuracy of the electronic compass and determine the performance of the electronic compass. In addition, the present embodiment can be modified from the fourth embodiment, and the same technical effects can be achieved.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (9)

1. A test system for an electronic compass, comprising: the device comprises a tray, an annular support, a rotating mechanism, a driver, a control module, a signal transmitter and a plurality of signal receivers, wherein the signal transmitter and the plurality of signal receivers are respectively in communication connection with the control module;
the tray is fixed on the rotating mechanism and used for placing at least one mobile terminal, and the mobile terminal is provided with an electronic compass to be tested;
the annular bracket is annularly arranged on the tray and is not in contact with the tray;
the driver is connected with the rotating mechanism, and the control module is in communication connection with the driver and the mobile terminal respectively;
the control module is used for controlling the mobile terminal to rotate to a test position along with the tray through the driver and the rotating mechanism;
the signal emitter is fixed at the central position of the tray and used for emitting a test signal in the rotating process of the mobile terminal;
the signal receivers are distributed on the annular support and used for receiving the test signals, and when the test signals are received, at least one signal receiver sends a notice to the control module;
the control module calculates the rotation angle of the mobile terminal according to the angle corresponding to the identity information of the at least one signal receiver which sends the notification;
the control module is further used for receiving a detection angle of the electronic compass fed back by the mobile terminal, and calculating the detection precision of the electronic compass at the test position according to the rotation angle and the detection angle;
the control module is further configured to record a first time, where the first time is a time when the tray rotates to the test position and receives the notification; recording a second moment, wherein the second moment is the moment when the detection angle of the electronic compass is received; and calculating the difference value between the second moment and the first moment to serve as the performance parameter of the electronic compass.
2. The system for testing an electronic compass according to claim 1, wherein the signal transmitter is an infrared transmitter and the plurality of signal receivers are all infrared receivers.
3. The system for testing an electronic compass according to claim 1, wherein the control module is configured to calculate the rotation angle according to a driving parameter of the driver.
4. The system for testing an electronic compass according to claim 3, wherein the driver is a stepper motor and the driving parameter is a step value;
or, the driving parameter is an energization time period of the driver.
5. The system for testing an electronic compass according to claim 1, wherein the rotation mechanism comprises a gear set and a rotary arm;
the gear set is connected with the rotating arm and the driver, and the driver is used for driving the rotating arm to rotate through the gear set;
the tray is fixed on the rotating arm and rotates together with the rotating arm.
6. The system for testing the electronic compass according to claim 1, wherein the control module comprises an upper computer and a lower computer;
the lower computer is connected with the driver and is used for controlling the driver;
the upper computer is respectively connected with the lower computer and the mobile terminal; the upper computer is used for acquiring the rotation angle, receiving the detection angle and calculating the detection precision of the electronic compass at the test position according to the rotation angle and the detection angle.
7. A method for testing an electronic compass, which is applied to a testing system of the electronic compass according to any one of claims 1 to 6, wherein the driver is connected to the rotating mechanism; the tray is fixed on the rotating mechanism and used for placing at least one mobile terminal, and the mobile terminal is provided with an electronic compass to be tested; the test method comprises the following steps:
controlling the mobile terminal to rotate to a test position along with the tray through the driver and the rotating mechanism;
controlling the signal transmitter to transmit a test signal in the rotation process of the mobile terminal and receiving a notification sent by at least one signal receiver in the plurality of signal receivers; the signal receiver sends the notification upon receiving the test signal;
taking the moment when the tray rotates to the test position and receives the notification as a first moment and recording the first moment;
calculating the rotation angle according to the identity information of the signal receiver sending the notification;
receiving the detection angle of the electronic compass fed back by the mobile terminal, and taking the moment of receiving the detection angle of the electronic compass as a second moment and recording the second moment;
calculating the detection precision of the electronic compass at the test position according to the rotation angle and the detection angle;
and calculating the difference value between the second moment and the first moment to serve as the performance parameter of the electronic compass.
8. The method for testing an electronic compass according to claim 7, wherein the obtaining of the rotation angle of the mobile terminal specifically includes: and calculating the rotation angle according to the driving parameters of the driver.
9. The method of claim 8, wherein the driver is a stepper motor and the driving parameter is a step value;
or, the driving parameter is an energization time period of the driver.
CN201711025965.6A 2017-10-27 2017-10-27 Electronic compass testing system and method Active CN107830850B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN107830850A CN107830850A (en) 2018-03-23
CN107830850B true 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 Electronic compass testing system and method

Country Status (1)

Country Link
CN (1) CN107830850B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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)
CN113970312B (en) * 2021-09-17 2024-08-13 深圳市恒天伟焱科技股份有限公司 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

Also Published As

Publication number Publication date
CN107830850A (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN107830850B (en) Electronic compass testing system and method
TWI618939B (en) A system and a method for detecting industrial equipment
CN107398899A (en) Wireless signal strength positioning guidance system and method
CN103702029A (en) Method and device for prompting focusing during shooting
CN106304163B (en) A method and terminal for determining abnormal performance of wifi antenna
CN107766209B (en) Central control automation test method, device, equipment and computer readable storage medium
WO2014169645A1 (en) Method for detecting fault of intelligent terminal, and intelligent terminal
CN107389959A (en) It is a kind of can automatic error-correcting turntable positioning device and its control method
TW201416657A (en) System and method for monitoring tests
JP2016042271A (en) Portable diagnostic data measuring and transmitting device
US20150137993A1 (en) Engine and system monitoring telematic system
KR102758334B1 (en) Firmware integrated inspection system of automobile parts control board
US11448504B2 (en) Surveying device
US20180285177A1 (en) Method of Detecting Damage and Scheduling Repair for a Portable Computing Device
CN109658384B (en) Screen test positioning control method, device and system
CN113711574A (en) Device management system, device management apparatus, device management method, and device management program
CN109828255B (en) Scanning laser radar device and detection method for detecting and angle synchronizing
CN116893341A (en) Stepping motor driver, stepping motor testing method, system, equipment and medium
CN108413990B (en) Gyroscope testing device and method of mobile terminal
JP2019169883A (en) Sensor device management method and sensor device management system
CN104296656B (en) Device, apparatus and method for positioning measurement reference plane of measured object
CN113970312B (en) Angle detection method, angle detection device, computer program product and storage medium
US9970789B2 (en) Automatic angle-measured apparatus and method using the same
US10800635B2 (en) Elevator door wedge monitoring system
US20240098363A1 (en) Inspection device and inspection method

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