Visual positioning method, earphone charging box, electronic equipment and readable storage medium
By integrating the position indicator component in the headphone charging box, using the compass sensor and inductor to point to the position of the headphone to be positioned, the problem of visual position position in the prior art is solved, and the headphone retrieval efficiency is improved.
Patent Information
- Application Number
- CN202311270469.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-03-28
AI Technical Summary
The existing wireless headphone positioning method cannot visualize the headphone position, especially for users with poor hearing or users with hidden headphone positions, the positioning of the headphones cannot be effectively positioned through sound.
By integrating a position indicator assembly, including a compass sensor and multiple inductors in the headphone charging box, detecting whether the headphone charging box triggers the headphone positioning request, determining the position of the headphone to be positioned, and controlling the position indicator assembly to point to that position.
The visual position of the headphones is realized, the efficiency of headphone retrieval is improved, and the complex operation process of users when looking for headphones is reduced.
Smart Images

Figure CN119729280A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of wireless headsets, and in particular to a visual positioning method, device, electronic device and readable storage medium. Background Art
[0002] Wireless headphones such as TWS (True Wireless Stereo) headphones or OWS (Open Wearable Stereo) headphones have developed rapidly recently and become a new hot spot in the field of headphones. Wireless headphones do not require wired connections, breaking away from the constraints of wired traditional headphones; the left and right headphones form a stereo system through Bluetooth, which improves listening to music, making calls, and wearing.
[0003] Wireless earphones are determined by their own physical characteristics. They are composed of two independent earphone units. There is a risk that the earphones are easily lost during carrying and use. When the earphones are lost, the earphones are generally located by controlling the earphones to output a prompt sound, and the user searches for the earphones according to the direction of the sound. However, this earphone location method cannot visualize the earphone location. For users with poor hearing or when the earphones are located in a hidden position with poor sound transmission, this method cannot effectively locate the earphones.
[0004] In summary, how to visually locate the earphone position is a technical problem that needs to be solved urgently in the technical field. Summary of the invention
[0005] The main purpose of the present application is to provide a visual positioning method, device, electronic device and readable storage medium, aiming to solve the technical problem of how to visually locate the position of headphones.
[0006] To achieve the above object, the present application provides a visual positioning method, which is applied to an earphone charging box and includes the following steps:
[0007] Detecting whether the earphone charging box triggers an earphone positioning request;
[0008] If yes, determining the earphone to be located corresponding to the earphone charging box;
[0009] The first position of the earphone to be located is obtained, and a position indicating component in the earphone charging box is controlled to point to the first position.
[0010] Optionally, the position indicating component includes a compass sensor and a plurality of inductors, and the inductors are arranged around the compass sensor. The step of controlling the position indicating component in the earphone charging box to point to the first position includes:
[0011] A target inductor is selected from each of the inductors, and the target inductor is energized, wherein the energized target inductor generates a magnetic field to deflect the compass sensor to point to the first position.
[0012] Optionally, the step of selecting a target inductor from the inductors comprises:
[0013] Determine a second position of the earphone charging box, and calculate a direction vector, wherein the direction vector is a vector pointing from the second position to the first position;
[0014] Determine a deflection angle between the direction vector and a preset reference direction vector, determine an inductor corresponding to the deflection angle based on a preset mapping relationship, and use the inductor corresponding to the deflection angle as a target inductor, wherein the preset mapping relationship includes a correspondence between different deflection angles and different inductors.
[0015] Optionally, the step of detecting whether the earphone charging box triggers an earphone positioning request includes:
[0016] When it is detected that a button in the earphone charging box is in a pressed state, obtaining a current working mode of the earphone charging box;
[0017] If the current working mode includes a normal working mode, controlling the earphone charging box to enter an earphone searching mode, and determining that the earphone charging box triggers an earphone positioning request;
[0018] After the step of controlling the position indicating component in the earphone charging box to point to the first position, the method further includes:
[0019] When it is detected that a button in the earphone charging box is in a pressed state, the earphone charging box is controlled to exit the earphone searching mode.
[0020] Optionally, after the step of controlling the position indicating component in the earphone charging box to point to the first position, the method further includes:
[0021] If a mobile terminal that is communicatively connected to the earphone charging box is detected, the first position and / or the second position is sent to the mobile terminal so that the mobile terminal can display the first position and / or the second position in a preset map module.
[0022] Optionally, the step of determining the earphone to be located corresponding to the earphone charging box includes:
[0023] Obtaining a charging box identifier of the earphone charging box, determining an earphone identifier paired with the charging box identifier, and using the earphone corresponding to the earphone identifier as the earphone to be located; or
[0024] If a mobile terminal that is communicatively connected to the earphone charging box is detected and an identifier of the earphone to be found set in the mobile terminal is obtained, the earphone corresponding to the identifier of the earphone to be found is used as the earphone to be located.
[0025] Optionally, after the step of determining the earphone to be located corresponding to the earphone charging box, the method further includes:
[0026] Detecting whether the earphone charging box is in communication connection with the earphone to be located;
[0027] If the earphone charging box has not established a communication connection with the earphone to be located, a connection request including the earphone identifier is generated, and the connection request is sent to the earphone to be located, so that a communication connection is established between the earphone charging box and the earphone to be located, and based on the earphone charging box after the communication connection is established with the earphone to be located, a step of obtaining the first position of the earphone to be located is executed.
[0028] The present application also provides an earphone charging box, the earphone charging box comprising a microprocessor, and a position indicating component connected to the microprocessor;
[0029] The microprocessor is used to detect whether the headphone charging box triggers a headphone positioning request. If so, it determines the headphone to be positioned corresponding to the headphone charging box, obtains the first position of the headphone to be positioned, and controls the position indication component to point to the first position.
[0030] The present application also provides an electronic device, which is a physical device, and includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the visual positioning method as described above.
[0031] The present application also provides a readable storage medium, which is a computer-readable storage medium, on which is stored a program for implementing the visual positioning method, and the program for implementing the visual positioning method is executed by a processor to implement the steps of the visual positioning method as described above.
[0032] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned visualization positioning method when executed by a processor.
[0033] In this application, when it is detected that the earphone charging box triggers the earphone positioning request, the earphone to be positioned corresponding to the earphone charging box is determined; the first position of the earphone to be positioned is obtained, and the position indication component in the earphone charging box is controlled to point to the first position. In this way, compared with the prior art positioning method of positioning the earphone position by sound, the embodiment of the present application intuitively points to the position of the earphone to be positioned by the position indication component in the earphone charging box, thereby realizing the visual positioning of the earphone position, and the embodiment of the present application visually locates the earphone position based on the earphone charging box. Compared with the method of finding the position of the earphone through a mobile phone, when searching for the earphone, the user does not need to open a specific mobile phone application and perform a series of operations on the mobile phone application to scan the numerous Bluetooth signals around. The user then manually selects the Bluetooth signal corresponding to the earphone to be found, and establishes a Bluetooth connection through the Bluetooth signal, and then determines the position of the earphone relative to the user's mobile phone, etc. This cumbersome positioning process can improve the efficiency of earphone retrieval. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0036] Figure 1 This is a flow chart of the first embodiment of the visual positioning method of the present application;
[0037] Figure 2 It is a structural schematic diagram of the earphone charging box of the present invention;
[0038] Figure 3 It is a structural schematic diagram of the earphone charging box of the present invention;
[0039] Figure 4 An illustrative schematic diagram for determining a target inductor for the visual positioning method of the present application;
[0040] Figure 5 This is a flowchart of the visual positioning method of this application;
[0041] Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the visual earphone positioning device in the embodiment of the present application.
[0042] Description of Figure Numbers:
[0043] Label name Label name 1001 processor 1002 Communication Bus 1003 User Interface 1004 Network Interface 1005 Memory 100 microprocessor 200 Position indicator components 300 Circuit Board 201 Compass sensor 400 Charging box energy storage module 202 Inductors 500 Charging box body
[0044] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0045] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0046] Embodiment 1
[0047] Wireless headphones such as TWS (True Wireless Stereo) headphones or OWS (Open Wearable Stereo) headphones have developed rapidly recently and become a new hot spot in the field of headphones. Wireless headphones are simple and convenient to use, but the battery is small, and they need to be charged frequently with a charging box. The charging box can easily charge wireless headphones, extending the outdoor use time of the headphones. Wireless headphones do not require wired connections, getting rid of the constraints of traditional headphones; the left and right headphones form a stereo system through Bluetooth, which improves listening to music, making calls, and wearing.
[0048] Wireless earphones are determined by their own physical characteristics. They are composed of two independent earphone units. There is a risk that the earphones are easily lost during carrying and use. When the earphones are lost, the earphones are generally located by controlling the earphones to output a prompt sound, and the user searches for the earphones according to the direction of the sound. However, this earphone location method cannot visualize the earphone location. For users with poor hearing or when the earphones are located in a hidden position with poor sound transmission, this method cannot effectively locate the earphones.
[0049] Furthermore, when searching for wireless headphones, users can also open a specific mobile phone APP (Application, third-party application) and perform a series of operations on the mobile phone APP to scan numerous Bluetooth signals in the surrounding area. The user then manually selects the Bluetooth signal corresponding to the wireless headphones to be found, and establishes a Bluetooth connection through the Bluetooth signal to determine the position of the wireless headphones relative to the user's mobile phone. It can be seen that this process is rather cumbersome, resulting in low efficiency in retrieving wireless headphones.
[0050] Based on this, the present application proposes a visual positioning method of the first embodiment, which is applied to the earphone charging box, please refer to Figure 1, the visual positioning method comprises:
[0051] Step S10, detecting whether the earphone charging box triggers an earphone positioning request;
[0052] This embodiment is applied to an earphone charging box, so the hardware structure of the earphone charging box can be set as follows: Figure 2 As shown, a microprocessor 100 and a position indicating component 200 are arranged in the earphone charging box. The position indicating component 200 has multiple different directions to indicate different positions. The microprocessor 100 is connected to the position indicating component 200 to control the direction of the position indicating component 200. In a feasible embodiment, the position indicating component 200 can be a compass.
[0053] The triggering conditions of the headset positioning request can be set in advance. In a feasible embodiment, a preset switch can be set on the headset charging box. The preset switch can be a key, a button, a virtual key on a touch screen, etc. When the preset switch is pressed in a preset manner, the headset positioning request is triggered. The preset manner can be set in advance, such as pressing twice in a row, the pressing time is greater than the preset time, etc. This embodiment does not limit this preset manner. Further, the preset switch can be independently set on the headset charging box, or the position indication component can also be set as a preset switch. This embodiment does not limit this. In another feasible embodiment, a headset search request can be sent to the headset charging box through a mobile terminal. After the headset charging box receives this headset search request, the headset positioning request is triggered. The mobile terminal is a terminal that is connected to the headset charging box in communication. The connection mode of the communication connection includes but is not limited to Bluetooth communication connection, Wi-Fi communication connection, and ZigBee communication connection. This embodiment does not limit the triggering conditions of the headset positioning request.
[0054] Step S20: If yes, determine the earphone to be located corresponding to the earphone charging box;
[0055] After detecting that the headphone charging box triggers a headphone positioning request, determine the headphone to be located corresponding to the headphone charging box. Optionally, the headphone charging box pre-stores the headphone identification of the paired headphone, and the headphone to be located may be the headphone paired with the headphone charging box. The headphone identification is used to indicate the uniqueness of the headphone, and the MAC (Media Access ControlAddres, media access address) address, headphone unique identification or factory number may be used as the headphone identification; the headphone model, name, user-set note name, etc. may also be used as the headphone identification. In actual applications, appropriate information may be selected as the headphone identification based on the application scenario and needs. For example, in a feasible embodiment, the headphone identification may be the Bluetooth hardware (MAC) address of the headphone, so that after scanning multiple Bluetooth signals, the headphone charging box may parse multiple Bluetooth information separately to determine the target Bluetooth signal including the headphone identification, and consider that the target Bluetooth signal is emitted by the headphone to be located that is paired with the headphone charging box.
[0056] Optionally, a receiving cavity is provided in the earphone charging box, and the receiving cavity is used to receive the earphone paired with the earphone charging box, and the shape of the receiving cavity matches the earphone paired with the earphone charging box. When the earphone charging box receives the earphone paired with the earphone charging box, the earphone charging box can be electrically connected to the earphone through the pins provided in the receiving cavity to charge or communicate with the earphone.
[0057] It can be understood that the earphones paired with the earphone charging box include a left earphone and a right earphone. Further, it can be detected whether there is a first earphone that meets the preset conditions. The preset conditions can be that the earphone is in the box state, the distance between the earphone and the earphone charging box is less than the preset distance, etc., and the first earphone identifier of the first earphone is obtained, and then the earphone identifier of the earphone paired with the earphone charging box is determined, and the second earphone identifier in the earphone identifier that fails to match the first earphone identifier is determined, and the earphone corresponding to the second earphone identifier is used as the earphone to be located. In this way, the earphone to be located can be effectively determined. If there is no first earphone that meets the preset conditions, any earphone of the two earphones paired with the earphone charging box can be selected as the earphone to be located. After the user finishes searching for the earphone to be located, the other earphone is used as the earphone to be located, or after the user finishes searching for the earphone to be located, the user triggers the earphone positioning request of the earphone charging box again, and the other earphone is used as the earphone to be located.
[0058] Step S30, obtaining the first position of the earphone to be located, and controlling the position indicating component in the earphone charging box to point to the first position.
[0059] After the earphone to be located determines its first position, it reports its first position to the earphone charging box. The earphone charging box receives the first position reported by the earphone, and the earphone charging box can also determine the first position of the earphone to be located. The determination of the first position in this embodiment can adopt the existing earphone position determination method, and the embodiment does not specifically limit the method for determining the first position. For example, in a feasible embodiment, the earphone charging box can send a search instruction to the earphone to be located. After receiving the search instruction, the earphone to be located enters the control earphone to enter the search mode; the earphone to be located starts the Bluetooth module in the search mode to scan the Bluetooth devices near the earphone to be located, and pairs and connects with the scanned Bluetooth devices; the earphone to be located obtains the positioning data for the first position of the earphone from the Bluetooth device paired with it in at least one of the following ways: ① If the Bluetooth device is equipped with a satellite positioning module, the standby earphone controls the Bluetooth device to start the satellite positioning module to obtain the geographic coordinates and sends them to the earphone to be located; ② If the Bluetooth device is equipped with a camera, the earphone to be located controls the Bluetooth device to start the camera to capture the environment and send it to the earphone to be located; ③ If the Bluetooth device stores phone book information, the earphone to be located controls the Bluetooth device to send the phone book information to the earphone to be located; the earphone to be located processes the received data for earphone positioning, and sends it to the earphone charging box; the earphone charging box locates the first position of the earphone according to the data fed back by the earphone to be located.
[0060] After obtaining the first position of the earphone to be located, the position indicating component 200 is controlled to point to the first position, so that the user can intuitively know the position of the earphone to be located and find the earphone to be located according to the direction of the position indicating component.
[0061] In this embodiment, when it is detected that the earphone charging box triggers an earphone positioning request, the earphone to be positioned corresponding to the earphone charging box is determined; the first position of the earphone to be positioned is obtained, and the position indication component in the earphone charging box is controlled to point to the first position. In this way, compared with the prior art positioning method of positioning the earphone position by sound, in this embodiment, the position indication component in the earphone charging box intuitively points to the position of the earphone to be positioned, thereby realizing visual positioning of the earphone position, and this embodiment visually locates the earphone position based on the earphone charging box. Compared with the method of finding the position of the earphone through a mobile phone, when searching for the earphone, the user does not need to open a specific mobile phone application and perform a series of operations on the mobile phone application to scan the numerous Bluetooth signals around. The user then manually selects the Bluetooth signal corresponding to the earphone to be found, and establishes a Bluetooth connection through the Bluetooth signal, and then determines the position of the earphone relative to the user's mobile phone, etc. This cumbersome positioning process can improve the efficiency of earphone retrieval.
[0062] In a possible implementation, the position indicating component includes a compass sensor and a plurality of inductors, the inductors are arranged around the compass sensor, and the step of controlling the position indicating component in the earphone charging box to point to the first position includes:
[0063] Step A10, selecting a target inductor from each of the inductors, and energizing the target inductor, wherein the energized target inductor generates a magnetic field to deflect the compass sensor to point to the first position.
[0064] Reference Figure 3 As shown, the position indicating component 200 includes a compass sensor 201 and a plurality of inductors 202. When the inductor 202 is energized, a magnetic field can be generated, thereby causing the pointer sensor 201 to deflect and realize the pointing function. Specifically, the inductor 202 can be an electromagnetic coil, such as a solenoid. It can be understood that the compass sensor 202 has two ends, namely the South Pole (S level) and the North Pole (N level), and it can be set in advance which end of the compass sensor is to be used as the reference. For example, when the N direction of the compass sensor 202 is selected as the reference, the magnetic field generated by the selected target inductor makes the N level of the compass sensor 202 point to the first position.
[0065] The magnetic field generated by the inductors 202 at different positions after being powered on will cause the compass sensor 201 to have different orientations. The orientations of the compass sensor 201 after different inductors 202 are powered on can be pre-tested, so as to pre-store the corresponding relationship between different inductor power-on and compass sensor orientations. Thus, after obtaining the actual first position, the target inductor to be powered on can be determined according to the pre-stored corresponding relationship, and the magnetic field generated by the target inductor after being powered on can be used to deflect the compass sensor 201 and point to the first position.
[0066] In addition, in another scenario, in order to make it easier for the user to find the earphones, the distance between the earphone charging box and the earphones is determined, and when the distance is less than the preset distance, a Bluetooth connection between the earphone charging box and the earphones is established. After the Bluetooth connection is successfully established, the earphone charging box actively sends an early warning instruction to the earphones, so that the earphones output an alarm prompt to the environment where the earphones are located. For example, the earphones can output audio information and / or turn on or flash the signal light of the earphones, so that the user can find the earphones more quickly based on auditory or visual factors in the surrounding environment. Optionally, since the propagation range of the alarm prompt output by the earphones to the surrounding environment is limited, when the distance is greater than or equal to the preset distance, the earphone charging box does not send an early warning instruction to the earphones to save unnecessary energy consumption of the earphones.
[0067] In this embodiment, after obtaining the first position of the earphone to be located, the target inductor is energized, so that the generated magnetic field causes the compass sensor 201 to deflect and point to the first position. The user searches for the earphone based on the direction of the compass sensor 201 on the earphone charging box, and visually points out the position of the earphone in the form of a pointer, thereby facilitating the user to find the lost earphone through the earphone charging box.
[0068] In a possible implementation manner, the step of selecting a target inductor from the inductors includes:
[0069] Step B10, determining a second position of the earphone charging box, and calculating a direction vector, wherein the direction vector is a vector pointing from the second position to the first position;
[0070] Optionally, refer to Figure 3 As shown, the earphone charging box also includes: a charging box UWB (UltraWideBand, ultra-wideband technology) positioning module, which is arranged in the charging box body 500, and the charging box UWB positioning module is connected to the microprocessor 100. The charging box UWB positioning module and the inductor 202 are both arranged on the circuit board 300. The charging box UWB positioning module is used to position the earphone charging box. In this embodiment, the charging box UWB positioning module includes a UWB tag and / or a UWB positioning chip. UWB is essentially a carrier-free spread spectrum technology that uses impact pulses with a very low duty cycle as information carriers. It is achieved by directly modulating impact pulses with very steep rise and fall times. Impact pulses usually use single-cycle Gaussian pulses, and one information bit can be mapped to hundreds of such pulses. The width of a single-cycle pulse is in the nanosecond level and has a very wide spectrum. UWB has developed a new wireless channel with gigahertz capacity and the highest spatial capacity. The CDMA-based UWB pulse wireless transceiver generates a pulse sequence with a certain repetitive period at the transmitting end of the clock generator. The information to be transmitted by the user and the pseudo-random code representing the user's address are modulated in a certain way respectively or after being synthesized. The modulated pulse sequence drives the pulse generating circuit to form a pulse sequence with a certain pulse shape and regularity, which is then amplified to the required power and coupled to the UWB antenna for transmission. At the receiving end, the signal received by the UWB antenna is amplified by a low-noise amplifier and sent to one input of the correlator. A locally generated pulse sequence modulated by the user's pseudo-random code that is synchronized with the transmitting end is added to the other input of the correlator. The receiving end signal and the pulse sequence modulated by the locally synchronized pseudo-random code are multiplied, integrated and sampled and held in the correlator to generate a signal separated from the user address information, which only contains the user's transmission information and other interference, and then the signal is demodulated.
[0071] The UWB positioning module of the charging box can be implemented by a UWB positioning chip or a UWB positioning tag. The UWB positioning module of the charging box cooperates with the positioning base station and the control and management platform. The UWB positioning module of the charging box is used to connect to the UWB base station and transmit UWB signals to determine the location. The UWB positioning base station is used to receive and estimate the signals sent from the tag.
[0072] In one embodiment, the earphone charging box may also be provided with a GPS (Global Positioning System) positioning module, and the GPS positioning module is electrically connected to the charging box body. The GPS positioning module can be applied to positioning in outdoor, open, and signal-friendly environments, while the UWB positioning module can be applied to positioning in indoor environments. The GPS positioning module and the UWB positioning module are integrated into the earphone charging box, and can be switched according to the location, and positioning can be performed both indoors and outdoors, providing functional convenience for the earphone charging box.
[0073] Step B20, determine the deflection angle between the direction vector and a preset reference direction vector, determine the inductor corresponding to the deflection angle based on a preset mapping relationship, and use the inductor corresponding to the deflection angle as the target inductor, wherein the preset mapping relationship includes a correspondence between different deflection angles and different inductors.
[0074] In a feasible embodiment, the preset reference direction vector may be the direction of the compass sensor 201 when no inductor in the current earphone charging box is powered on. For example, when the N-level direction of the compass sensor 201 is selected as the reference, when no inductor in the current earphone charging box is powered on, the N-level direction of the compass sensor 201 may be set as the preset reference direction vector.
[0075] In another possible embodiment, referring to Figure 4 As shown, a plane rectangular coordinate system can be established on the plane where the earphone charging box and the earphone are located, and a preset reference direction vector can be selected in this plane rectangular coordinate system, such as selecting the positive direction of the X-axis as the preset reference direction vector, the positive direction of the Y-axis as the preset reference direction vector, and so on. At this time, the direction vector pointing from the second position to the first position can be projected onto the plane where the earphone charging box and the earphone are located, that is, projected into the plane direct coordinate system established on the plane, so that in this plane rectangular coordinate system, the deflection angle between the direction vector projected into the plane rectangular coordinate system and the preset reference direction vector, that is, the angle between the two direction vectors, is obtained, and the target inductor corresponding to this deflection angle is determined based on the preset mapping relationship, such as Figure 4 The inductor at point A in the figure is the target inductor.
[0076] It can be understood that the present embodiment does not impose specific restrictions on the preset reference direction vector. The correspondence between different deflection angles of the compass sensor 201 relative to the preset reference direction vector and the (powered) inductor can be obtained based on experimental measurements in advance, and this correspondence is pre-stored in the earphone charging box. The preset mapping relationship includes the correspondence between different deflection angles and different inductors. Optionally, an inductor identifier is set for each inductor 202, and each inductor identifier is used to uniquely distinguish an inductor 202. For example, the inductors 202 can be numbered sequentially, and the numbers are used as the inductor identifiers of the inductors. In this way, the correspondence between different deflection angles and different inductor identifiers can be stored, and the target inductor can be determined based on the inductor identifier.
[0077] Furthermore, during the user's search process, the position of the headphone charging box and the position of the headphone to be located can be obtained in real time. Based on the current second position of the headphone charging box and the current first position of the headphone to be located, the direction of the compass sensor 201 is updated in real time, thereby ensuring that the compass sensor 201 points to the position of the headphone to be located in real time and accurately, ensuring that the user can effectively find the headphone.
[0078] Further, refer to Figure 3 As shown, the earphone charging box also includes a charging box energy storage module 400, which is arranged in the shell of the earphone charging box and can be electrically connected to the microprocessor 100. The charging box energy storage module 400 includes a battery, and the shape and size of the accommodating cavity in the box body can be adapted to the battery, circuit board and earphones placed in the box body, and can be round, square and other shapes, which are not limited here. The material of the box body can be optionally realized by lightweight and insulating materials. The battery is used to power wearable devices such as earphones. A charging switch or a touch switch, such as a touch screen, can be provided on the lower shell of the earphone charging box. The charging switch is electrically connected to the circuit board to control the battery to charge the earphones or stop charging when receiving the charging switch signal input by the user.
[0079] In addition, in another scenario, an indicator light module can also be set in the earphone charging box. If the earphone charging box is provided with an indicator light module, the distance between the earphone charging box and the earphone can be obtained. The indicator light control parameter corresponding to the interval distance is obtained, wherein the indicator light control parameter includes at least one of the number of indicator lights, the brightness of the indicator light, and the flashing frequency of the indicator light. The correspondence between the interval distance and the indicator light control parameter can be pre-set and stored in the earphone charging box. Optionally, the earphone charging box pre-stores a plurality of preset distance areas and indicator light control parameters corresponding to the preset distance intervals. When obtaining the indicator light control parameter corresponding to the interval distance, the preset distance area where the interval distance is located can be determined, and then the indicator light control parameter corresponding to the preset distance area where the interval distance is located can be determined. Optionally, the relationship between the indicator light control parameter and the interval distance can be positively correlated. For example, when the headphone charging box receives the Bluetooth signal strength of -60dB from the headphone, the distance between the headphone charging box and the headphone is 10 meters, and the corresponding number of indicator lights is 1; when the headphone charging box receives the Bluetooth signal strength of -40dB from the headphone, the distance between the headphone charging box and the headphone is 5 meters, and the corresponding number of indicator lights is 2; when the headphone charging box receives the Bluetooth signal strength of -20dB from the headphone, the distance between the headphone charging box and the headphone is 1 meter, and the corresponding number of indicator lights is 3. The indicator light module on the headphone charging box is controlled according to the indicator light control parameter to adjust the number of indicator lights turned on in the indicator light module, the brightness of each indicator light, the flashing frequency of each indicator light, etc., so that the user can determine the distance between the headphone charging box and the headphone and the change of the distance between the headphone charging box and the headphone according to the number, brightness, and flashing frequency of the indicator lights. By setting the indicator light module on the headphone charging box and adjusting the output of the indicator light module according to the distance between the headphone charging box and the headphone, the user can more intuitively understand the distance and position of the headphone charging box relative to the headphone to be found.
[0080] In order to help understand the technical concept or technical principle of the present application, a specific embodiment is listed:
[0081] In this specific embodiment, the headphone charging box has a built-in UWB chip, and the headphone charging box communicates with the headphone to determine the position of the headphone. The position indication component in the headphone charging box includes a compass and an electromagnetic coil arranged around the compass. The direction of the compass is controlled by the electromagnetic coil, so as to visually determine the position of the headphone.
[0082] A compass is installed in the earphone charging box, and an electromagnetic coil is arranged around the compass. Under normal circumstances, the electromagnetic coil is not powered, and the compass can be used as an ordinary compass. When the earphone is lost, the UWB chip built into the earphone charging box communicates with the earphone to determine the location of the earphone, and then controls the corresponding coil of the electromagnetic coil to conduct, forming a magnetic field pointing to the direction of the earphone location. The user can approach the earphone and find it in a predefined direction (such as the direction of the N pole).
[0083] The visual positioning process in this specific embodiment is as follows:
[0084] Reference Figure 5 First, the user presses the button of the earphone box (including the earphone charging box) to start the earphone search mode. The earphone box communicates with the earphone through the built-in UWB chip to lock the position of the earphone. The earphone box starts the electromagnetic coil pointing to the position of the earphone according to the earphone position information. The generated magnetic field makes the pointer point to the location of the earphone. The user moves according to the pointer to find the earphone. After finding the earphone, press the button to end the search.
[0085] It should be noted that the above specific embodiments are only used to understand the present application and do not constitute a limitation on the visual positioning method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0086] Embodiment 2
[0087] Based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents as those in the above embodiment 1 can be referred to the above introduction and will not be described in detail later. On this basis, the step of detecting whether the earphone charging box triggers an earphone positioning request includes:
[0088] Step C10, when it is detected that a button in the earphone charging box is in a pressed state, obtaining a current working mode of the earphone charging box;
[0089] Furthermore, when it is detected that a button in the earphone charging box is in a pressed state, the pressing mode of the button can be obtained, including the pressing duration, the number of pressings, etc. The preset pressing mode of the button when the earphone needs to be found can be preset, such as the pressing duration is greater than the preset duration, or it is pressed twice in succession, etc. If the pressing mode of the button matches the preset pressing mode successfully, the current working mode of the earphone charging box is obtained. This can prevent the user from accidentally touching the button and causing the earphone charging box to trigger the earphone positioning request by mistake.
[0090] Step C20: If the current working mode includes a normal working mode, controlling the earphone charging box to enter an earphone search mode, and determining that the earphone charging box triggers an earphone positioning request;
[0091] This normal working mode is a working mode different from the headphone search mode. Optionally, if the headphone charging box is set with a password, a prompt message can be output after the user presses a button in a preset manner to remind the user to enter the password, which can be a gesture password, a voice password, etc. The password entered by the user is collected, and the collected password is verified. After the password verification is passed, the headphone charging box is controlled to enter the headphone search mode, and it is determined that the headphone charging box triggers the headphone positioning request. That is, if the current working mode includes the normal working mode, it is detected whether the headphone charging box is set with a password. If the headphone charging box is set with a password, the password data (such as voice data, gesture data, etc. entered by the user) is collected, and the password data is verified. After the password data is verified, the headphone charging box is controlled to enter the headphone search mode, and it is determined that the headphone charging box triggers the headphone positioning request. In this way, it can prevent illegal users from using the headphone charging box to find the headphones, and improve the security of the headphone charging box and the headphones.
[0092] After the step of controlling the position indicating component in the earphone charging box to point to the first position, the method further includes:
[0093] Step C30, when it is detected that the button in the earphone charging box is in a pressed state, control the earphone charging box to exit the earphone searching mode.
[0094] After the user finds the earphone, the user can press the button in the earphone charging box again to end the search for the earphone to be located. At this time, the earphone charging box exits the earphone search mode, stops energizing the inductor 202, and the compass sensor 201 returns to the initial state. The button pressing method for the earphone to exit the earphone search mode can also be set in advance, and can be the same as or different from the pressing method for the earphone to enter the earphone search mode, and this embodiment does not make specific restrictions.
[0095] In a possible embodiment, after the step of controlling the position indicating component in the earphone charging box to point to the first position, the method further includes:
[0096] Step D10, if a mobile terminal that is communicatively connected to the earphone charging box is detected, the first position and / or the second position is sent to the mobile terminal so that the mobile terminal can display the first position and / or the second position in a preset map module.
[0097] In this embodiment, the user can also establish a connection with the headset charging box through the mobile terminal, and control the headset charging box to enter the headset search mode through the mobile terminal. The preset map module can be a map module including current environmental information. The mobile terminal displays the first position and / or the second position in the map module. The user can more intuitively view the position of the headset to be located. Combined with the direction of the compass sensor 201, the user can more conveniently find the headset to be located.
[0098] Furthermore, the mobile terminal may also generate a search path based on the first position and the second position. Based on the search path in the mobile terminal and the direction of the compass sensor 201 , the user may quickly find the headset to be located.
[0099] In this embodiment, a mobile terminal that is in communication with the earphone charging box is detected, and the first position and / or the second position is sent to the mobile terminal, and the mobile terminal displays the first position and / or the second position in a preset map module. Therefore, even if the position indication module in the earphone charging box is damaged or abnormally working and cannot point normally, the position of the earphone to be located can be displayed through the mobile terminal, and the user can still intuitively check the position of the earphone to be located. It is also ensured that when the position indication module in the earphone charging box is damaged or abnormally working and cannot point normally, the position of the earphone to be located can also be displayed based on the mobile terminal, thereby improving the fault tolerance of the earphone charging box in finding the position of the earphone.
[0100] In a possible embodiment, the step of determining the earphone to be located corresponding to the earphone charging box includes:
[0101] Step E10, obtaining the charging box identifier of the earphone charging box, determining the earphone identifier paired with the charging box identifier, and using the earphone corresponding to the earphone identifier as the earphone to be located; or
[0102] In step E20, if a mobile terminal that is in communication with the earphone charging box is detected and an identifier of the earphone to be found set in the mobile terminal is obtained, the earphone corresponding to the identifier of the earphone to be found is used as the earphone to be located.
[0103] In a feasible implementation, the earphone corresponding to the earphone identifier paired with the charging box identifier is used as the earphone to be located, and the user does not need to perform additional operations to set up the earphone to be located, thereby realizing intelligent positioning and searching of the earphone to be located.
[0104] In another feasible embodiment, the user sets the earphone identification to be found through the mobile terminal, and sets the earphone to be found through the mobile terminal. The earphones to be located that can be found are not limited to the earphones paired with the earphone charging box. The earphones that are not paired with the earphone charging box can also be controlled by the mobile terminal to search for them, which increases the breadth of the earphones that can be located and found by the earphone charging box. For example, in one scenario, the user has two earphones, of which the earphone charging box of one earphone (recorded as earphone A) is the earphone charging box in the embodiment of the present application, and the earphone charging box is provided with a position indication component with a pointing function, and the earphone charging box of the other earphone (recorded as earphone B) is an ordinary earphone charging box, which is not provided with a position indication component and does not have a pointing function. If earphone B is lost, a communication connection can be established between the earphone charging box of earphone A and the mobile terminal, such as a Bluetooth communication connection. After the communication connection is established, the user can set the earphone identification of earphone B to the earphone identification to be found in the mobile terminal, thereby controlling the earphone charging box to realize the positioning and searching of earphone B. The earphone charging box of earphone A is not limited to the positioning and searching of earphone A, but can also locate and search earphone B, indicating the position of earphone B, which increases the breadth of the earphone that can be located and searched.
[0105] In a possible embodiment, after the step of determining the earphone to be located corresponding to the earphone charging box, the method further includes:
[0106] Step F10, detecting whether the earphone charging box is in communication connection with the earphone to be located;
[0107] Step F20, if the earphone charging box has not established a communication connection with the earphone to be located, a connection request including the earphone identifier is generated, and the connection request is sent to the earphone to be located, so that a communication connection is established between the earphone charging box and the earphone to be located, and based on the earphone charging box after the communication connection is established with the earphone to be located, a step of obtaining the first position of the earphone to be located is executed.
[0108] In this embodiment, when it is detected that no communication connection is established between the earphone charging box and the earphone to be located, a communication connection request is sent to the earphone to be located, so that the earphone charging box and the earphone to be located establish a communication connection, thereby ensuring that the earphone charging box can effectively obtain the position of the earphone to be located.
[0109] In addition, in another scenario, if the earphone charging box and the earphone to be located are both communicatively connected to the same mobile terminal, the mobile terminal can be used as a bridge for communication between the earphone charging box and the earphone to be located. In this way, even if the earphone charging box and the earphone cannot establish a communication connection, data communication can be performed through the mobile terminal, and the earphone charging box can also accurately obtain the location of the earphone and indicate the location of the earphone.
[0110] Embodiment 3
[0111] An embodiment of the present invention further provides an earphone charging box, the earphone charging box comprising a microprocessor, and a position indicating component connected to the microprocessor;
[0112] The microprocessor is used to detect whether the headphone charging box triggers a headphone positioning request. If so, it determines the headphone to be positioned corresponding to the headphone charging box, obtains the first position of the headphone to be positioned, and controls the position indication component to point to the first position.
[0113] Optionally, the position indicating component comprises a compass sensor and a plurality of inductors, wherein the inductors are arranged around the compass sensor, and the microprocessor is further configured to:
[0114] A target inductor is selected from each of the inductors, and the target inductor is energized, wherein the energized target inductor generates a magnetic field to deflect the compass sensor to point to the first position.
[0115] The microprocessor is also used for:
[0116] Determine a second position of the earphone charging box, and calculate a direction vector, wherein the direction vector is a vector pointing from the second position to the first position;
[0117] Determine a deflection angle between the direction vector and a preset reference direction vector, determine an inductor corresponding to the deflection angle based on a preset mapping relationship, and use the inductor corresponding to the deflection angle as a target inductor, wherein the preset mapping relationship includes a correspondence between different deflection angles and different inductors.
[0118] The microprocessor is also used for:
[0119] When it is detected that a button in the earphone charging box is in a pressed state, obtaining a current working mode of the earphone charging box;
[0120] If the current working mode includes a normal working mode, controlling the earphone charging box to enter an earphone searching mode, and determining that the earphone charging box triggers an earphone positioning request;
[0121] After the step of controlling the position indicating component in the earphone charging box to point to the first position, the method further includes:
[0122] When it is detected that a button in the earphone charging box is in a pressed state, the earphone charging box is controlled to exit the earphone searching mode.
[0123] The microprocessor is also used for:
[0124] If a mobile terminal that is communicatively connected to the earphone charging box is detected, the first position and / or the second position is sent to the mobile terminal so that the mobile terminal can display the first position and / or the second position in a preset map module.
[0125] The microprocessor is also used for:
[0126] Obtaining a charging box identifier of the earphone charging box, determining an earphone identifier paired with the charging box identifier, and using the earphone corresponding to the earphone identifier as the earphone to be located; or
[0127] If a mobile terminal that is communicatively connected to the earphone charging box is detected and an identifier of the earphone to be found set in the mobile terminal is obtained, the earphone corresponding to the identifier of the earphone to be found is used as the earphone to be located.
[0128] The microprocessor is also used for:
[0129] Detecting whether the earphone charging box is in communication connection with the earphone to be located;
[0130] If the earphone charging box has not established a communication connection with the earphone to be located, a connection request including the earphone identifier is generated, and the connection request is sent to the earphone to be located, so that a communication connection is established between the earphone charging box and the earphone to be located, and based on the earphone charging box after the communication connection is established with the earphone to be located, a step of obtaining the first position of the earphone to be located is executed.
[0131] Embodiment 4
[0132] An embodiment of the present invention provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the visual positioning method in the above-mentioned embodiment 1.
[0133] Reference below Figure 6 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may be a BMC (Baseboard Management Controller) or the like. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0134] like Figure 6As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM 1002) or a program loaded from a storage device into a random access memory (RAM 1004). In RAM 1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, ROM 1002, and RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface is also connected to the bus 1005.
[0135] Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.
[0136] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0137] The electronic device provided by the present invention adopts the visual positioning method in the above embodiment to solve the technical problem of how to visually position the earphone. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the visual positioning method provided by the above embodiment, and the other technical features in the electronic device are the same as the features disclosed in the method of the previous embodiment, which will not be described in detail here.
[0138] It should be understood that the various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0139] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0140] Embodiment 5
[0141] An embodiment of the present invention provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the visual positioning method in the above-mentioned embodiment 1.
[0142] The computer-readable storage medium provided in the embodiment of the present invention may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0143] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0144] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by an electronic device, the electronic device: detects whether the earphone charging box triggers an earphone positioning request; if so, determines the earphone to be positioned corresponding to the earphone charging box; obtains the first position of the earphone to be positioned, and controls the position indication component in the earphone charging box to point to the first position.
[0145] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0146] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0147] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.
[0148] The readable storage medium provided by the present invention is a computer-readable storage medium, which stores computer-readable program instructions for executing the above-mentioned visual positioning method, and can solve the technical problem of how to realize the visual positioning of the earphone position. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present invention are the same as the beneficial effects of the visual positioning method provided by the above-mentioned embodiment 1 or embodiment 2, and will not be repeated here.
[0149] Embodiment 6
[0150] An embodiment of the present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the visual positioning method as described above are implemented.
[0151] The computer program product provided by the present application can solve the technical problem of how to realize visual positioning of the earphone position. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as the beneficial effects of the visual positioning method provided by the above-mentioned embodiment 1 or embodiment 2, which will not be repeated here.
[0152] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A visual positioning method, characterized in that: The visual positioning method is applied to the earphone charging box, and the visual positioning method includes the following steps: Detecting whether the earphone charging box triggers an earphone positioning request; If yes, determining the earphone to be located corresponding to the earphone charging box; The first position of the earphone to be located is obtained, and a position indicating component in the earphone charging box is controlled to point to the first position.
2. The visual positioning method according to claim 1, characterized in that: The position indicating component includes a compass sensor and a plurality of inductors, and the inductors are arranged around the compass sensor. The step of controlling the position indicating component in the earphone charging box to point to the first position includes: A target inductor is selected from each of the inductors, and the target inductor is energized, wherein the energized target inductor generates a magnetic field to deflect the compass sensor to point to the first position.
3. The visual positioning method according to claim 2, characterized in that: The step of selecting a target inductor from the inductors comprises: Determine a second position of the earphone charging box, and calculate a direction vector, wherein the direction vector is a vector pointing from the second position to the first position; Determine a deflection angle between the direction vector and a preset reference direction vector, determine an inductor corresponding to the deflection angle based on a preset mapping relationship, and use the inductor corresponding to the deflection angle as a target inductor, wherein the preset mapping relationship includes a correspondence between different deflection angles and different inductors.
4. The visual positioning method according to claim 1, characterized in that: The step of detecting whether the earphone charging box triggers an earphone positioning request includes: When it is detected that a button in the earphone charging box is in a pressed state, obtaining a current working mode of the earphone charging box; If the current working mode includes a normal working mode, controlling the earphone charging box to enter an earphone searching mode, and determining that the earphone charging box triggers an earphone positioning request; After the step of controlling the position indicating component in the earphone charging box to point to the first position, the method further includes: When it is detected that a button in the earphone charging box is in a pressed state, the earphone charging box is controlled to exit the earphone searching mode.
5. The visual positioning method according to claim 3, characterized in that: After the step of controlling the position indicating component in the earphone charging box to point to the first position, the method further includes: If a mobile terminal that is communicatively connected to the earphone charging box is detected, the first position and / or the second position is sent to the mobile terminal so that the mobile terminal can display the first position and / or the second position in a preset map module.
6. The visual positioning method according to any one of claims 1 to 5, characterized in that: The step of determining the earphone to be located corresponding to the earphone charging box includes: Obtaining a charging box identifier of the earphone charging box, determining an earphone identifier paired with the charging box identifier, and using the earphone corresponding to the earphone identifier as the earphone to be located; or If a mobile terminal that is communicatively connected to the earphone charging box is detected and an identifier of the earphone to be found set in the mobile terminal is obtained, the earphone corresponding to the identifier of the earphone to be found is used as the earphone to be located.
7. The visual positioning method according to claim 6, characterized in that: After the step of determining the earphone to be located corresponding to the earphone charging box, the method further includes: Detecting whether the earphone charging box is in communication connection with the earphone to be located; If the earphone charging box has not established a communication connection with the earphone to be located, a connection request including the earphone identifier is generated, and the connection request is sent to the earphone to be located, so that a communication connection is established between the earphone charging box and the earphone to be located, and based on the earphone charging box after the communication connection is established with the earphone to be located, a step of obtaining the first position of the earphone to be located is executed.
8. An earphone charging box, characterized in that: The earphone charging box includes a microprocessor and a position indicating component connected to the microprocessor; The microprocessor is used to detect whether the headphone charging box triggers a headphone positioning request. If so, it determines the headphone to be positioned corresponding to the headphone charging box, obtains the first position of the headphone to be positioned, and controls the position indication component to point to the first position.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the visual positioning method according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that: The readable storage medium is a computer-readable storage medium, on which is stored a program for implementing the visualization positioning method, and the program for implementing the visualization positioning method is executed by a processor to implement the steps of the visualization positioning method as described in any one of claims 1 to 7.