CN114189788A - Tuning method, tuning device, electronic device, and storage medium - Google Patents

Tuning method, tuning device, electronic device, and storage medium Download PDF

Info

Publication number
CN114189788A
CN114189788A CN202111406474.2A CN202111406474A CN114189788A CN 114189788 A CN114189788 A CN 114189788A CN 202111406474 A CN202111406474 A CN 202111406474A CN 114189788 A CN114189788 A CN 114189788A
Authority
CN
China
Prior art keywords
volume
geomagnetic sensor
included angle
information
value
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
CN202111406474.2A
Other languages
Chinese (zh)
Other versions
CN114189788B (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.)
Shenzhen Horn Audio Co Ltd
Original Assignee
Shenzhen Horn Audio 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 Shenzhen Horn Audio Co Ltd filed Critical Shenzhen Horn Audio Co Ltd
Priority to CN202111406474.2A priority Critical patent/CN114189788B/en
Publication of CN114189788A publication Critical patent/CN114189788A/en
Application granted granted Critical
Publication of CN114189788B publication Critical patent/CN114189788B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Stereophonic System (AREA)

Abstract

The application discloses a tuning method, a tuning device, an electronic device and a storage medium, which are applied to a controller in the tuning device, wherein the tuning device further comprises a geomagnetic sensor and a pronunciation device, and the controller is communicated with the geomagnetic sensor and the pronunciation device. The tuning method comprises the following steps: acquiring first polarity information of the geomagnetic sensor at a first position through the geomagnetic sensor, and obtaining first included angle information according to the first polarity information and reference polarity information; acquiring second polarity information of the geomagnetic sensor at a second position through the geomagnetic sensor, and obtaining second included angle information according to the second polarity information and the reference polarity information; and comparing the first included angle information with the second included angle information, and adjusting the volume of the pronunciation device according to the comparison result. According to the volume adjusting device, volume adjustment is carried out through the geomagnetic sensor, the structure of the volume adjusting device can be effectively simplified, and the service life of the volume adjusting device is prolonged.

Description

Tuning method, tuning device, electronic device, and storage medium
Technical Field
The present application relates to the field of volume adjustment technologies, and in particular, to a volume adjustment method, a volume adjustment device, an electronic device, and a storage medium.
Background
In the correlation technique, the tuning device of stereo set adopts independent mechanical tuning or the tuning mode that combines together with the speech recognition mode, and no matter which kind of mode has all increased the complexity of structure, when using slewing mechanism for a long time, can appear the problem of pivot ageing damage, has reduced the life of tuning device.
Disclosure of Invention
The present application is directed to solving at least one of the problems in the prior art. Therefore, the present application provides a tuning method, a tuning device, an electronic device, and a storage medium, which can effectively simplify the structure of the tuning device and improve the service life of the tuning device.
In order to achieve the above object, a first aspect of an embodiment of the present application provides a tuning method applied to a controller in a tuning device, the tuning device further including a geomagnetic sensor and a sound-producing device, wherein the controller is in communication with the geomagnetic sensor and the sound-producing device, and the tuning method includes:
acquiring first polarity information of the geomagnetic sensor at a first position through the geomagnetic sensor, and acquiring first included angle information according to the first polarity information and reference polarity information;
acquiring second polarity information of the geomagnetic sensor at a second position through the geomagnetic sensor, and obtaining second included angle information according to the second polarity information and the reference polarity information;
and comparing the first included angle information with the second included angle information, and adjusting the volume of the pronunciation device according to the comparison result.
The tuning method provided by the embodiment of the application has at least the following beneficial effects: the method comprises the steps of obtaining first polarity information of a geomagnetic sensor in a tuning device at a first position through the geomagnetic sensor, and obtaining first included angle information according to the first polarity information and reference polarity information, wherein the first included angle information is used for representing a polarity position relation between the first polarity information and the reference polarity information. And acquiring second polarity information of the geomagnetic sensor at a second position through a geomagnetic sensor in the tuning device, and acquiring second included angle information according to the second polarity information and the reference polarity information. And adjusting the volume of the pronunciation device according to the comparison result by comparing the first included angle information with the second included angle information. Therefore, volume adjustment is carried out through the geomagnetic sensor, the structure of the tuning device can be effectively simplified, and the service life of the tuning device is prolonged.
In some embodiments, obtaining the first angle information according to the first polarity information and the reference polarity information includes:
acquiring a starting-up instruction;
acquiring the reference polarity information and the first polarity information through the geomagnetic sensor based on the starting instruction;
performing polarity calibration operation on the first polarity information according to the reference polarity information to obtain initial calibration polarity information;
and obtaining the first included angle information according to the initial calibration polarity information and the reference polarity information.
In some embodiments, the tuning device further includes a driving part to which the geomagnetic sensor is provided, the driving part being configured to move the geomagnetic sensor so as to change a position of the geomagnetic sensor, the driving part being in communication with the controller; the obtaining, by the geomagnetic sensor, second polarity information of the geomagnetic sensor at a second position includes:
acquiring a trigger instruction from the driving part, wherein the trigger instruction is generated by the driving part at a second position;
based on the trigger instruction, acquiring the second polarity information of the geomagnetic sensor through the geomagnetic sensor.
In some embodiments, before the obtaining, by the geomagnetic sensor, the second polarity information of the geomagnetic sensor, the tuning method further includes:
and determining the volume adjusting direction of the driving part according to the first included angle information, wherein the volume adjusting direction comprises a volume increasing direction and a volume decreasing direction.
In some embodiments, the comparing the first angle information and the second angle information and adjusting the volume of the sound generation device according to the comparison result includes:
obtaining an included angle difference value between a first included angle value and a second included angle value by obtaining the first included angle value of the first included angle information and the second included angle value of the second included angle information;
and adjusting the volume of the sound producing device according to the included angle difference and the volume adjusting direction.
In some embodiments, the adjusting the volume of the sound generation device according to the included angle difference and the volume adjustment direction includes:
acquiring a historical volume value and a volume extreme value, wherein the volume extreme value comprises a volume maximum value and a volume minimum value;
when the volume adjusting direction is the volume increasing direction, determining that the historical volume value is smaller than the maximum volume value, and performing volume increasing adjustment on the volume of the sound producing device according to the included angle difference value to obtain a current volume value;
alternatively, the first and second electrodes may be,
acquiring a historical volume value and a volume extreme value, wherein the volume extreme value comprises a volume maximum value and a volume minimum value;
and when the volume adjusting direction is the volume reducing direction, determining that the historical volume value is larger than the minimum volume value, and carrying out volume reduction adjustment on the volume of the sound producing device according to the included angle difference value to obtain the current volume value.
A second aspect of an embodiment of the present application provides a tuning device, including:
the geomagnetic sensor is used for acquiring reference polarity information, first polarity information of the geomagnetic sensor at a first position and second polarity information of the geomagnetic sensor at a second position;
the sound producing device is used for adjusting the volume of the tuning device;
a controller for performing a tuning method as claimed in any one of the embodiments of the first aspect of the present application;
wherein the controller is in communication with the geomagnetic sensor and the sound emitting device.
In some embodiments, the tuning device further comprises:
a driving part for moving the geomagnetic sensor to change a position of the geomagnetic sensor;
wherein the geomagnetic sensor is disposed at the driving part, and the driving part is in communication with the controller.
A third aspect of an embodiment of the present application provides an electronic device, including:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions for execution by the at least one processor to cause the at least one processor to carry out the tuning method according to any one of the embodiments of the first aspect of the present application when the instructions are executed.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium having computer-executable instructions for causing a computer to perform a tuning method according to any one of the embodiments of the first aspect of the present application.
Drawings
The present application is further described with reference to the following figures and examples, in which:
fig. 1 is a flowchart of a tuning method provided in an embodiment of the present application;
FIG. 2 is a flowchart of step S110 in FIG. 1;
FIG. 3 is a flowchart of step S120 in FIG. 1;
FIG. 4 is a flowchart of step S130 in FIG. 1;
FIG. 5 is a schematic view of a tuning device provided in accordance with an embodiment of the present application;
FIG. 6 is a flowchart of step S420 in FIG. 4;
fig. 7 is another flowchart of step S420 in fig. 4.
Reference numerals:
the tuning device 100, the tuning control switch 110, the geomagnetic sensor 120, the central axis 130, the first polarity connecting line 140 and the driving component 150.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In the description of the present application, it is to be understood that the positional descriptions referred to, for example, the directions of up, down, etc., are based on the directions or positional relationships shown in the drawings, and are only for convenience of description and simplification of the description, but do not indicate or imply that the referred device or element must have a specific direction, be constructed in a specific direction, and operate, and thus, should not be construed as limiting the present application.
In the description of the present application, the meaning of a plurality is one or more, the meaning of a plurality is two or more, and larger, smaller, etc. are understood as excluding the present number, and larger, smaller, etc. are understood as including the present number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present application, unless otherwise expressly limited, terms such as set, mounted, connected and the like should be construed broadly, and those skilled in the art can reasonably determine the specific meaning of the terms in the present application by combining the detailed contents of the technical solutions.
Reference throughout this specification to the description of "some embodiments," "a particular embodiment," "other embodiments," or the like, means that a particular feature, structure, material, or characteristic described in connection with the embodiment is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the correlation technique, the tuning device of stereo set adopts independent mechanical tuning or the tuning mode that combines together with the speech recognition mode, and no matter which kind of mode has all increased the complexity of structure, when using slewing mechanism for a long time, can appear the problem of pivot ageing damage, has reduced the life of tuning device.
Based on this, the embodiment of the application provides a tuning method, a tuning device, an electronic device and a storage medium, which can effectively simplify the structure of the tuning device and prolong the service life of the tuning device.
Referring to fig. 1, the present embodiment provides a tuning method applied to a controller in a tuning device, the tuning device further including a geomagnetic sensor and a pronunciation device, wherein the controller is in communication with the geomagnetic sensor and the pronunciation device, and the tuning method includes, but is not limited to, steps S110 to S130.
Step S110, acquiring first polarity information of the geomagnetic sensor at a first position through the geomagnetic sensor, and obtaining first included angle information according to the first polarity information and reference polarity information;
step S120, acquiring second polarity information of the geomagnetic sensor at a second position through the geomagnetic sensor, and acquiring second included angle information according to the second polarity information and the reference polarity information;
and step S130, comparing the first included angle information with the second included angle information, and adjusting the volume of the pronunciation device according to the comparison result.
Specifically, first polarity information of the geomagnetic sensor at a first position is obtained through a geomagnetic sensor in the tuning device, and first included angle information is obtained according to the first polarity information and reference polarity information, wherein the reference polarity information represents polarity information with a stable reference standard, so that a controller can conveniently obtain the first included angle information between the first polarity information and the reference polarity information; the first angle information is used to indicate a polar position relationship between the first polarity information and the reference polarity information. And acquiring second polarity information of the geomagnetic sensor at a second position through a geomagnetic sensor in the tuning device, and acquiring second included angle information according to the second polarity information and the reference polarity information. And adjusting the volume of the pronunciation device according to the comparison result by comparing the first included angle information with the second included angle information. Therefore, this application acquires earth magnetism sensor at different positions ground contained angle information through earth magnetism sensor, and then carries out volume control, can simplify the structure of tuning device effectively, improves the life of tuning device.
It should be noted that the reference polarity information includes earth magnetic field information. The earth magnetic field information is the inherent resource of the earth, so that the earth magnetic field information has the advantages of reliable performance, interference resistance and the like. In a specific embodiment, first, current earth magnetic field information is acquired through a geomagnetic sensor, first polarity information of the geomagnetic sensor at a first position is acquired through a geomagnetic sensor in a tuning device, and first included angle information is obtained according to the first polarity information and the earth magnetic field information. Then, second polarity information of the geomagnetic sensor at a second position is obtained through a geomagnetic sensor in the tuning device, second included angle information is obtained according to the second polarity information and the earth magnetic field information, and the volume of the sound producing device is adjusted by comparing the first included angle information with the second included angle information according to a comparison result. Therefore, the method for adjusting the volume by using the geomagnetic sensor can effectively simplify the structure of the tuning device and prolong the service life of the tuning device.
In some embodiments, referring to fig. 2, step S110 of the embodiments of the present application includes, but is not limited to, step S210 to step S240.
Step S210, a starting instruction is obtained;
step S220, acquiring reference polarity information and first polarity information through a geomagnetic sensor based on a starting instruction;
step S230, performing a polarity calibration operation on the first polarity information according to the reference polarity information to obtain initial calibration polarity information;
step S240, obtaining first included angle information according to the initial calibration polarity information and the reference polarity information.
Specifically, the controller obtains a power-on instruction of the tuning device, and based on the power-on instruction, the controller obtains reference polarity information and first polarity information of the geomagnetic sensor at a first position through the geomagnetic sensor. Because the subsequent measurement information of the geomagnetic sensor is affected by the use mode of the geomagnetic sensor, the noise of the geomagnetic sensor and other problems, the measurement accuracy of the geomagnetic sensor can be improved by performing polarity calibration operation on the geomagnetic sensor when the geomagnetic sensor is used. And performing polarity calibration operation on the first polarity information according to the reference polarity information to obtain initial calibration polarity information, and obtaining first included angle information by using the initial calibration polarity information and the reference polarity information. Then, second polarity information of the geomagnetic sensor at a second position is obtained through a geomagnetic sensor in the tuning device, second included angle information is obtained according to the second polarity information and the earth magnetic field information, and the volume of the sound producing device is adjusted by comparing the first included angle information with the second included angle information according to a comparison result. Therefore, the structure of the tuning device can be effectively simplified, and the service life of the tuning device is prolonged.
The tuning control switch of the tuning apparatus is used to generate the startup command. Specifically, when a tuning control switch of the tuning device is turned on, the tuning control switch sends a starting instruction to the controller, and the controller acquires the starting instruction and acquires reference polarity information and first polarity information through the geomagnetic sensor based on the starting instruction. The tuning control switch is not limited to various switch types such as a mechanical switch, a physical switch, an electromagnetic switch, an optical switch, a sound switch, and a sensor switch.
In some embodiments, referring to fig. 3, the tuning device further includes a driving part, the geomagnetic sensor is disposed on the driving part, the driving part is configured to move the geomagnetic sensor to change a position of the geomagnetic sensor, and the driving part is in communication with the controller, so that step S120 of this embodiment includes, but is not limited to, step S310 to step S320.
Step S310, acquiring a trigger instruction from the driving part, wherein the trigger instruction is generated by the driving part at a second position;
in step S320, second polarity information of the geomagnetic sensor is obtained through the geomagnetic sensor based on the trigger instruction.
Specifically, the driving part generates the trigger instruction at the second position by moving the geomagnetic sensor to change the position of the geomagnetic sensor. The controller obtains a trigger instruction from the driving part, and based on the trigger instruction, the controller obtains second polarity information of the geomagnetic sensor at a second position through the geomagnetic sensor, and obtains second included angle information according to the second polarity information and the geomagnetic field information. And obtaining first included angle information according to the first polarity information and the earth magnetic field information. And comparing the first included angle information with the second included angle information, and adjusting the volume of the pronunciation device according to the comparison result. Therefore, the structure of the tuning device can be effectively simplified, and the service life of the tuning device is prolonged.
It should be noted that the geomagnetic sensor is disposed in the driving component, and the driving component includes a rotation adjusting device, or any device capable of moving the geomagnetic sensor to change the position of the geomagnetic sensor, where the specific position of the geomagnetic sensor on the driving component is not particularly limited. In a specific embodiment, the geomagnetic sensor is disposed on the rotation adjustment device, i.e. the rotation adjustment device is located at the first position. The rotation adjusting device moves the position of the geomagnetic sensor to the second position through rotation to obtain the trigger instruction generated at the second position. The controller obtains a trigger instruction from the rotation adjusting device, and obtains second polarity information of the geomagnetic sensor at a second position through the geomagnetic sensor.
It should be noted that the triggering instruction further includes that the controller generates the triggering instruction by setting a preset time. Specifically, when a tuning control switch of the tuning device is turned on, the tuning control switch sends a starting instruction to the controller, the controller acquires the starting instruction, and based on the starting instruction, the controller acquires reference polarity information and first polarity information through the geomagnetic sensor. When the preset time is up, the controller obtains a trigger instruction, and second polarity information of the geomagnetic sensor at the current second position is obtained through the geomagnetic sensor.
In some embodiments, before step S120 of the embodiments of the present application, the tuning method further includes: and determining the volume adjusting direction of the driving part according to the first included angle information, wherein the volume adjusting direction comprises a volume increasing direction and a volume decreasing direction.
Specifically, the controller obtains a start-up instruction of the tuning device, based on the start-up instruction, the controller obtains reference polarity information and first polarity information through the geomagnetic sensor, performs polarity calibration operation on the first polarity information obtained by the geomagnetic sensor according to the reference polarity information to obtain initial calibration polarity information, obtains first included angle information by using the initial calibration polarity information and the reference polarity information, and determines a volume adjustment direction of the driving component according to the first included angle information, wherein the volume adjustment direction includes a volume increasing direction and a volume decreasing direction, and the driving component is adjusted according to the volume adjustment direction to obtain a trigger instruction generated by the driving component at a second position.
In some embodiments, referring to fig. 4, step S130 of the embodiments of the present application includes, but is not limited to, step S410 to step S420.
Step S410, acquiring a first included angle value of the first included angle information and a second included angle value of the second included angle information to obtain an included angle difference value between the first included angle value and the second included angle value;
step S420, adjusting the volume of the sound generating device according to the included angle difference and the volume adjusting direction.
Specifically, the controller acquires a power-on instruction of the tuning device, and based on the power-on instruction, the controller acquires reference polarity information and first polarity information through the geomagnetic sensor. And obtaining first included angle information according to the first polarity information and the earth magnetic field information. Then, second polarity information of the geomagnetic sensor at a second position is obtained through a geomagnetic sensor in the tuning device, and second included angle information is obtained according to the second polarity information and the earth magnetic field information. And obtaining an included angle difference value between the first included angle value and the second included angle value by acquiring a first included angle value (smaller than 180 degrees) of the first included angle information and a second included angle value (smaller than 180 degrees) of the second included angle information, wherein the included angle difference value is used for representing the degree of volume change. And finally, adjusting the volume of the sound producing device according to the included angle difference and the volume adjusting direction.
In a specific embodiment, referring to fig. 5, a connection line of a reference north pole N and a reference south pole S of the reference polarity information is taken as a central axis, a first polarity connection line is obtained according to a first north pole N ' and a first south pole S ' of the first angle information, a volume adjustment direction of the driving part is determined according to the first polarity connection line and the central axis, and when a first included angle value (less than 180 degrees) obtained according to the first north pole N ' and the reference north pole N of the first polarity information is located on the right side of the central axis, the controller sets a right turn direction of the driving part as a volume increasing direction and sets a left turn direction of the driving part as a volume decreasing direction. Similarly, when a first included angle value (less than 180 degrees) obtained from the first north pole N' of the first polarity information and the reference north pole N is located on the left side of the central axis, the controller sets the left turn direction of the driving part as the volume-up direction and sets the right turn direction of the driving part as the volume-down direction. The controller adjusts the volume of the sounding device according to the included angle difference and the volume adjusting direction.
In a specific embodiment, the controller obtains a power-on instruction of the tuning device, and based on the power-on instruction, the controller obtains the reference polarity information and the first polarity information through the geomagnetic sensor. Due to the problems of the usage mode of the geomagnetic sensor, the noise of the geomagnetic sensor and the like, the subsequent measurement information of the geomagnetic sensor is affected. Therefore, after each startup, a polarity calibration operation needs to be performed on the first polarity information acquired by the geomagnetic sensor according to the reference polarity information to obtain initial calibration polarity information, where the initial calibration polarity information is the same as the reference polarity information, that is, the first included angle value of the first included angle information obtained by using the initial calibration polarity information and the reference polarity information is 0. And then obtaining a second included angle value according to second included angle information obtained by the second polarity information and the earth magnetic field information, and further obtaining an included angle difference value between the first included angle value and the second included angle value. And finally, the controller adjusts the volume of the sound producing device according to the included angle difference and the volume adjusting direction.
In some embodiments, referring to fig. 6, step S420 of the embodiments of the present application includes, but is not limited to, step S610 to step S620.
Step S610, obtaining a historical sound volume value and a sound volume extreme value, wherein the sound volume extreme value comprises a sound volume maximum value and a sound volume minimum value;
step S620, when the volume adjusting direction is the volume increasing direction, the historical volume value is determined to be smaller than the maximum volume value, and the volume of the sound generating device is adjusted in an increasing mode according to the included angle difference value to obtain the current volume value.
In other embodiments, referring to fig. 7, step S420 of the embodiment of the present application includes, but is not limited to, step S710 to step S720.
Step S710, obtaining a historical sound volume value and a sound volume extreme value, wherein the sound volume extreme value comprises a sound volume maximum value and a sound volume minimum value;
and S720, when the volume adjusting direction is the volume reducing direction, determining that the historical volume value is larger than the minimum volume value, and carrying out volume reduction adjustment on the volume of the sound generating device according to the included angle difference value to obtain the current volume value.
Specifically, a historical volume value of the tuning device at a first position and a volume extreme value of the tuning device are obtained, and a volume adjusting direction of the driving part, namely a volume increasing direction or a volume decreasing direction, is determined according to the first included angle information. When the driving part is adjusted to a second position according to the volume increasing direction, if the historical volume value is smaller than the maximum volume value, obtaining an included angle difference value according to a first included angle value of the first included angle information and a second included angle value of the second included angle information, and further performing volume increasing adjustment on the volume of the sound producing device through the included angle difference value to obtain a current volume value; if the historical volume value is equal to the maximum volume value, the current volume value is kept at the maximum volume value. Similarly, when the driving part is adjusted to the second position according to the volume reduction direction, if the historical volume value is larger than the volume minimum value, an included angle difference value is obtained according to a first included angle value of the first included angle information and a second included angle value of the second included angle information, and then the volume of the sound generating device is adjusted in a volume reduction mode through the included angle difference value to obtain a current volume value; if the historical volume value is equal to the minimum volume value, the current volume value is kept at the minimum volume value.
The embodiment of the application also provides a tuning device, which comprises a geomagnetic sensor, a pronunciation device and a controller. The geomagnetic sensor is used for acquiring reference polarity information, first polarity information of the geomagnetic sensor at a first position and second polarity information of the geomagnetic sensor at a second position; the sound producing device is used for adjusting the volume of the tuning device; the controller is used for executing the tuning method described in any one of the above embodiments; wherein the controller is in communication with the geomagnetic sensor and the sound emitting device.
It can be seen that the contents in the foregoing tuning method embodiments are all applicable to the embodiments of the tuning device, and the functions specifically implemented by the embodiments of the tuning device are the same as those in the foregoing tuning method embodiments, and the beneficial effects achieved by the embodiments of the tuning device are also the same as those achieved by the foregoing tuning method embodiments.
In some embodiments, the tuning device further comprises: a driving part for moving the geomagnetic sensor to change a position of the geomagnetic sensor; wherein, geomagnetic sensor sets up in the driver part, and driver part and controller communication.
In a specific embodiment, referring to fig. 5, when the tuning control switch 110 of the tuning device 100 is turned on, the tuning control switch 110 sends a power-on command to the controller, and the controller obtains the power-on command and obtains the reference polarity information and the first polarity information through the geomagnetic sensor 120 based on the power-on command. Because the earth magnetic field information is the inherent resource of the earth, the earth magnetic field information has the advantages of reliable performance, interference resistance and the like, and the subsequent measurement information of the geomagnetic sensor 120 is affected by the problems of the use mode of the geomagnetic sensor 120, the noise of the geomagnetic sensor and the like, so that the measurement accuracy of the geomagnetic sensor 120 can be improved by performing polarity calibration operation on the geomagnetic sensor 120 when the earth magnetic field information is used. Taking the earth magnetic field information as reference polarity information, taking a connecting line of a reference north pole N and a reference south pole S of the reference polarity information as a central axis 130, obtaining a first polarity connecting line 140 according to a first north pole N 'and a first south pole S' of the first included angle information, and determining a volume adjusting direction of the driving part 150 according to the first polarity connecting line 140 and the central axis 130. As shown in fig. 5, if the first included angle a obtained by the first north pole N' of the first polarity information and the reference north pole N is located on the right side of the central axis 130, the controller sets the right turn direction of the driving part 150 as the volume increasing direction, sets the left turn direction of the driving part 150 as the volume decreasing direction, and simultaneously obtains the historical volume value of the tuning apparatus 100 at the first position. And acquiring second polarity information of the geomagnetic sensor 120 at a second position through the geomagnetic sensor 120 in the tuning device 100, and acquiring second included angle information according to the second polarity information and the earth magnetic field information. Obtaining an included angle difference value according to a first included angle value of the first included angle information and a second included angle value of the second included angle information, and when the driving part 150 is adjusted to a second position according to the volume increasing direction, if the historical volume value is smaller than the maximum volume value, performing volume increase adjustment on the volume of the sound generating device through the included angle difference value to obtain a current volume value; if the historical volume value is equal to the maximum volume value, the current volume value is kept at the maximum volume value. Similarly, when the driving component 150 is adjusted to the second position according to the volume decreasing direction, if the historical volume value is greater than the minimum volume value, the volume of the sound generating device is decreased and adjusted through the included angle difference value to obtain the current volume value; if the historical volume value is equal to the minimum volume value, the current volume value is kept at the minimum volume value. Therefore, the present disclosure can effectively simplify the structure of the tuning device 100 and improve the service life of the tuning device 100.
The embodiment of the application also provides an electronic device, which comprises at least one processor and a memory which is in communication connection with the at least one processor; wherein the memory stores instructions that are executed by the at least one processor to cause the at least one processor to perform the tuning method as described in any one of the above embodiments when the instructions are executed.
The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium has computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the tuning method described in any one of the above embodiments.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
One of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The embodiments of the present application have been described in detail with reference to the drawings, but the present application is not limited to the embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present application. Furthermore, the embodiments and features of the embodiments of the present application may be combined with each other without conflict.

Claims (10)

1. A tuning method applied to a controller in a tuning device, the tuning device further including a geomagnetic sensor and a sound emitting device, wherein the controller is in communication with the geomagnetic sensor and the sound emitting device, the tuning method including:
acquiring first polarity information of the geomagnetic sensor at a first position through the geomagnetic sensor, and acquiring first included angle information according to the first polarity information and reference polarity information;
acquiring second polarity information of the geomagnetic sensor at a second position through the geomagnetic sensor, and obtaining second included angle information according to the second polarity information and the reference polarity information;
and comparing the first included angle information with the second included angle information, and adjusting the volume of the pronunciation device according to the comparison result.
2. The tuning method according to claim 1, wherein obtaining first included angle information according to the first polarity information and the reference polarity information comprises:
acquiring a starting-up instruction;
acquiring the reference polarity information and the first polarity information through the geomagnetic sensor based on the starting instruction;
performing polarity calibration operation on the first polarity information according to the reference polarity information to obtain initial calibration polarity information;
and obtaining the first included angle information according to the initial calibration polarity information and the reference polarity information.
3. The tuning method according to claim 1, wherein the tuning device further comprises a driving member, the geomagnetic sensor being provided to the driving member, the driving member being configured to move the geomagnetic sensor so as to change a position of the geomagnetic sensor, the driving member being in communication with the controller; the obtaining, by the geomagnetic sensor, second polarity information of the geomagnetic sensor at a second position includes:
acquiring a trigger instruction from the driving part, wherein the trigger instruction is generated by the driving part at a second position;
based on the trigger instruction, acquiring the second polarity information of the geomagnetic sensor through the geomagnetic sensor.
4. The tuning method according to claim 3, wherein before the acquiring, by the geomagnetic sensor, second polarity information of the geomagnetic sensor at a second position, the tuning method further comprises:
and determining the volume adjusting direction of the driving part according to the first included angle information, wherein the volume adjusting direction comprises a volume increasing direction and a volume decreasing direction.
5. The tuning method according to claim 4, wherein the comparing the first angle information and the second angle information and adjusting the volume of the sound generating device according to the comparison result comprises:
obtaining an included angle difference value between a first included angle value and a second included angle value by obtaining the first included angle value of the first included angle information and the second included angle value of the second included angle information;
and adjusting the volume of the sound producing device according to the included angle difference and the volume adjusting direction.
6. The tuning method according to claim 5, wherein the adjusting the volume of the sound generating device according to the included angle difference and the volume adjusting direction comprises:
acquiring a historical volume value and a volume extreme value, wherein the volume extreme value comprises a volume maximum value and a volume minimum value;
when the volume adjusting direction is the volume increasing direction, determining that the historical volume value is smaller than the maximum volume value, and performing volume increasing adjustment on the volume of the sound producing device according to the included angle difference value to obtain a current volume value;
alternatively, the first and second electrodes may be,
acquiring a historical volume value and a volume extreme value, wherein the volume extreme value comprises a volume maximum value and a volume minimum value;
and when the volume adjusting direction is the volume reducing direction, determining that the historical volume value is larger than the minimum volume value, and carrying out volume reduction adjustment on the volume of the sound producing device according to the included angle difference value to obtain the current volume value.
7. Tuning device, its characterized in that includes:
the geomagnetic sensor is used for acquiring reference polarity information, first polarity information of the geomagnetic sensor at a first position and second polarity information of the geomagnetic sensor at a second position;
the sound producing device is used for adjusting the volume of the tuning device;
a controller for performing the tuning method of any one of claims 1 to 6;
wherein the controller is in communication with the geomagnetic sensor and the sound emitting device.
8. The tuning device of claim 7, further comprising:
a driving part for moving the geomagnetic sensor to change a position of the geomagnetic sensor;
wherein the geomagnetic sensor is disposed at the driving part, and the driving part is in communication with the controller.
9. An electronic device, comprising:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions for execution by the at least one processor to cause the at least one processor, when executing the instructions, to implement a tuning method according to any one of claims 1 to 6.
10. Computer-readable storage media, characterized in that it has computer-executable instructions for causing a computer to perform the tuning method according to any one of claims 1 to 6.
CN202111406474.2A 2021-11-24 2021-11-24 Tuning method, tuning device, electronic device and storage medium Active CN114189788B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111406474.2A CN114189788B (en) 2021-11-24 2021-11-24 Tuning method, tuning device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111406474.2A CN114189788B (en) 2021-11-24 2021-11-24 Tuning method, tuning device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN114189788A true CN114189788A (en) 2022-03-15
CN114189788B CN114189788B (en) 2024-01-23

Family

ID=80541457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111406474.2A Active CN114189788B (en) 2021-11-24 2021-11-24 Tuning method, tuning device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114189788B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030063115A1 (en) * 2001-09-10 2003-04-03 Namco Ltd. Image generation method, program, and information storage medium
CN102316396A (en) * 2010-07-09 2012-01-11 廖明忠 Method and device for realizing automatic control over sounds in large dynamic range by using sensor
CN105306670A (en) * 2015-06-25 2016-02-03 维沃移动通信有限公司 Volume adjusting method of mobile terminal and mobile terminal
CN106774939A (en) * 2017-01-17 2017-05-31 深圳市景创科技电子有限公司 A kind of earpiece volume adjusting method and earphone
CN106911979A (en) * 2017-03-03 2017-06-30 歌尔股份有限公司 Volume adjusting method, device and earphone for earphone
CN108632466A (en) * 2018-04-28 2018-10-09 维沃移动通信有限公司 Volume compensation method and mobile terminal
CN108731666A (en) * 2018-04-10 2018-11-02 Oppo广东移动通信有限公司 Processing method, device, storage medium and the terminal of Geomagnetism Information
CN109120991A (en) * 2017-06-26 2019-01-01 中国电信股份有限公司 Method, apparatus and set-top box for dynamic regulation video volume
US20190052967A1 (en) * 2017-08-11 2019-02-14 Samsung Electronics Co., Ltd. Method and apparatus of playing music based on surrounding situations
US20190077345A1 (en) * 2017-09-08 2019-03-14 Harman International Industries, Incorporated Sound tuning based on adjustable seat positioning
CN111787987A (en) * 2018-02-26 2020-10-16 姜俊泽 Toy and user customized toy system
CN111866674A (en) * 2019-04-25 2020-10-30 北京小米移动软件有限公司 Speaker assembly control method, device and storage medium
CN112612444A (en) * 2020-12-28 2021-04-06 南京紫牛软件科技有限公司 Sound source position positioning method, sound source position positioning device, electronic equipment and storage medium
CN112689051A (en) * 2019-10-18 2021-04-20 北京小米移动软件有限公司 Audio playing control method and device, mobile terminal and storage medium
CN113253244A (en) * 2021-04-07 2021-08-13 深圳市豪恩声学股份有限公司 TWS earphone distance sensor calibration method, equipment and storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030063115A1 (en) * 2001-09-10 2003-04-03 Namco Ltd. Image generation method, program, and information storage medium
CN102316396A (en) * 2010-07-09 2012-01-11 廖明忠 Method and device for realizing automatic control over sounds in large dynamic range by using sensor
CN105306670A (en) * 2015-06-25 2016-02-03 维沃移动通信有限公司 Volume adjusting method of mobile terminal and mobile terminal
CN106774939A (en) * 2017-01-17 2017-05-31 深圳市景创科技电子有限公司 A kind of earpiece volume adjusting method and earphone
CN106911979A (en) * 2017-03-03 2017-06-30 歌尔股份有限公司 Volume adjusting method, device and earphone for earphone
CN109120991A (en) * 2017-06-26 2019-01-01 中国电信股份有限公司 Method, apparatus and set-top box for dynamic regulation video volume
US20190052967A1 (en) * 2017-08-11 2019-02-14 Samsung Electronics Co., Ltd. Method and apparatus of playing music based on surrounding situations
US20190077345A1 (en) * 2017-09-08 2019-03-14 Harman International Industries, Incorporated Sound tuning based on adjustable seat positioning
CN111787987A (en) * 2018-02-26 2020-10-16 姜俊泽 Toy and user customized toy system
CN108731666A (en) * 2018-04-10 2018-11-02 Oppo广东移动通信有限公司 Processing method, device, storage medium and the terminal of Geomagnetism Information
CN108632466A (en) * 2018-04-28 2018-10-09 维沃移动通信有限公司 Volume compensation method and mobile terminal
CN111866674A (en) * 2019-04-25 2020-10-30 北京小米移动软件有限公司 Speaker assembly control method, device and storage medium
CN112689051A (en) * 2019-10-18 2021-04-20 北京小米移动软件有限公司 Audio playing control method and device, mobile terminal and storage medium
CN112612444A (en) * 2020-12-28 2021-04-06 南京紫牛软件科技有限公司 Sound source position positioning method, sound source position positioning device, electronic equipment and storage medium
CN113253244A (en) * 2021-04-07 2021-08-13 深圳市豪恩声学股份有限公司 TWS earphone distance sensor calibration method, equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
GUOYUAN ZHU: "Research of Position Detected Sensor of Mine-used Locomotive Based on Geomagnetic Induction", 《INDUSTRY AND MINE AUTOMATION》 *
孟志彬: "基于地磁的室内定位相关算法研究", 《万方学术》 *
胡超: "地磁传感器在移动通信终端定向控制系统中的新应用", 《第三届中国卫星导航学术年会》 *

Also Published As

Publication number Publication date
CN114189788B (en) 2024-01-23

Similar Documents

Publication Publication Date Title
US11487302B2 (en) Unmanned aerial vehicle control method and apparatus, remote control device, and unmanned aerial vehicle system
CN108336778B (en) Charging control method and electronic device supporting same
US11375469B2 (en) Electronic device for determining path of line of sight (LoS) and method for the same
US20180143627A1 (en) Electronic device and method for controlling unmanned aerial vehicle
EP3799393A1 (en) Method, device and system for map data updating and storage medium
KR101995651B1 (en) Method for determining target operating frequency of stylus, and touch screen and stylus thereof
US9774362B1 (en) Adaptive antenna tuning based on a sensed characteristic
CN108362310B (en) Method and device for determining geomagnetic accuracy, storage medium and terminal
KR20200028671A (en) Apparatus and method for adaptively controlling preamble in ultra wide band network
US11346939B2 (en) Surrounding monitoring radar device
CN114189788A (en) Tuning method, tuning device, electronic device, and storage medium
KR20220053214A (en) Electronic device and method for supporting zoom functionality
KR20190020940A (en) Method and apparatus for determining location using identification information corresponding external electronic device
CN110543278A (en) Cross-device screen coordinate adaptation method and device and storage medium
US20220149958A1 (en) Electronic device for adjusting output power of signal by using millimeter wave, and control method therefor
US20220091241A1 (en) Electronic device and method for compensating for depth error according to modulation frequency
KR102524980B1 (en) Method, electronic device and storing medium for controlling data communication
JP2017215786A (en) Determination device
CN112197803A (en) Shipborne photoelectric sensor control method and device
US20210116490A1 (en) Antenna direction adjustment apparatus, antenna direction adjustment system, and method therefor
EP4175354A1 (en) Electronic device and method for performing communication using same
CN111352090A (en) Laser radar integrated with attitude system and control method
US20190101637A1 (en) Wireless communication apparatus and wireless communication method
US11658415B2 (en) Antenna module supporting of sensing distance and electronic device including the same
CN114007187B (en) Information source direction judging method, device, system, equipment and readable storage medium

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