Positioning Method, Device and Electronic Device of Storage Box
By acquiring and recording the location information of the electronic device under the operation of the audio playback device, the problem that the storage box cannot be positioned is solved, and the accurate positioning of the storage box is achieved.
Patent Information
- Application Number
- CN202210168125.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-23
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-02-23
AI Technical Summary
The existing storage box cannot be positioned and cannot communicate directly with electronic devices, resulting in the inability to accurately locate.
Positioning the storage box is achieved by obtaining the position information of the electronic device under the designated operation of the audio playback device and recording it as the current position information of the storage box.
Accurate positioning of the storage box is achieved without hardware upgrade of the storage box, avoiding cost increase.
Smart Images

Figure CN114545468B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and more particularly, to a positioning method, device, and electronic device for a storage box. Background Art
[0002] In some cases, a storage box can be configured for some audio playback devices to better store the audio playback devices. For example, for wireless earphones, a storage box can be configured to store the earphones and also charge the wireless earphones. However, the related storage box still has the problem that it cannot be positioned. Summary of the Invention
[0003] In view of the above problems, this application proposes a positioning method, device, and electronic device for a storage box to improve the above problems.
[0004] In a first aspect, this application provides a positioning method for a storage box, which is applied to an electronic device. The storage box is used to store an audio playback device. The method includes: in response to a specified operation of the audio playback device, obtaining position information collected by the electronic device; recording the position information collected by the electronic device as the current position information of the storage box.
[0005] In a second aspect, this application provides a positioning method for a storage box, which is applied to the audio playback device stored in the storage box. The method includes: the audio playback device and the electronic device trigger a specified operation for the electronic device to respond to the specified operation, obtain the position information collected by the electronic device, and record the position information collected by the electronic device as the current position information of the storage box.
[0006] In a third aspect, this application provides a positioning device for a storage box, which runs on an electronic device. The storage box is used to store an audio playback device. The device includes: a position information obtaining unit, configured to obtain the position information collected by the electronic device in response to a specified operation of the audio playback device;
[0007] a storage box positioning unit, configured to record the position information collected by the electronic device as the current position information of the storage box.
[0008] In a fourth aspect, this application provides a positioning device for a storage box, which runs on the audio playback device stored in the storage box. The device includes: a positioning trigger unit, configured to trigger a specified operation with the electronic device so that the electronic device responds to the specified operation, obtains the position information collected by the electronic device, and records the position information collected by the electronic device as the current position information of the storage box.
[0009] In a fifth aspect, the present application provides an electronic device, including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.
[0010] In a sixth aspect, the present application provides a computer-readable storage medium, in which program code is stored, and when the program code runs, the above-mentioned method is executed.
[0011] The present application provides a positioning method, device and electronic device for a storage box. When the storage box is used to store an audio playback device, in response to a specified operation of the audio playback device, the position information collected by the electronic device can be obtained, and then the position information collected by the electronic device is recorded as the current position information of the storage box. In this way, after the audio device performs a specified operation, the electronic device can directly use the position information it collects as the current position information of the storage box, realizing the positioning of the storage box for storing the audio playback device. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0013] Figure 1 FIG. shows a schematic diagram of an application scenario of the positioning method for a storage box proposed in an embodiment of the present application;
[0014] Figure 2 FIG. shows a schematic diagram of a state where wireless earphones are all in the box in an embodiment of the present application;
[0015] Figure 3 FIG. shows a schematic diagram of a state where some wireless earphones are in the box and some are out of the box in an embodiment of the present application;
[0016] Figure 4 FIG. shows a schematic diagram of a state where wireless earphones are all out of the box in an embodiment of the present application;
[0017] Figure 5 FIG. shows a flowchart of a positioning method for a storage box proposed in an embodiment of the present application;
[0018] Figure 6 FIG. shows a schematic diagram of obtaining multiple positioning information in an embodiment of the present application;
[0019] Figure 7 The figure shows a flowchart of a positioning method for a storage box proposed in another embodiment of the present application;
[0020] Figure 8 The figure shows a flowchart of a positioning method for a storage box proposed in another embodiment of the present application;
[0021] Figure 9 The figure shows a flowchart of a positioning method for a storage box proposed in yet another embodiment of the present application;
[0022] Figure 10 The figure shows a flowchart of a positioning method for a storage box proposed in yet another embodiment of the present application;
[0023] Figure 11 The figure shows a structural block diagram of a positioning device for a storage box proposed in yet another embodiment of the present application;
[0024] Figure 12 The figure shows a structural block diagram of a positioning device for a storage box proposed in yet another embodiment of the present application;
[0025] Figure 13 The figure shows a structural block diagram of an electronic device proposed in the present application;
[0026] Figure 14 It is a storage unit for storing or carrying program codes for implementing the positioning method of the storage box according to the embodiments of the present application. Detailed implementation manners
[0027] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0028] For the convenience of users to carry, some devices are configured with corresponding storage boxes. For example, for wireless earphones, a storage box can be configured to store the earphones and also charge the wireless earphones.
[0029] However, the inventors found in the research on related storage boxes that the related storage boxes themselves are not configured with a positioning module, so they do not have a positioning function. Moreover, the related storage boxes cannot directly communicate with electronic devices (such as mobile phones), thus resulting in the inability to locate the related storage boxes.
[0030] Therefore, to address the above issues, the inventors have proposed a positioning method, apparatus, and electronic device for a storage box provided in this application. When the storage box is used to store an audio playback device, in response to a specified operation of the audio playback device, the position information collected by the electronic device can be obtained, and then the position information collected by the electronic device is recorded as the current position information of the storage box. Thus, after the audio device performs a specified operation, the electronic device can directly use the position information it has collected as the current position information of the storage box, achieving the positioning of the storage box for storing the audio playback device.
[0031] First, an application scenario related to the embodiments of this application will be introduced below.
[0032] As Figure 1 shown, an application scenario related to the embodiments of this application includes an electronic device 100 and a storage box 200. Among them, the storage box 200 can store an audio playback device. For example, as Figure 2 shown, the stored audio playback device can be the first wireless earphone 210 and the second wireless earphone 220. Optionally, the first wireless earphone 210 and the second wireless earphone 220 can be TWS (True Wireless Stereo) earphones. In the embodiments of this application, the audio playback device can communicate with the electronic device 100. For example, the audio playback device and the electronic device 100 can communicate through Bluetooth communication.
[0033] Optionally, when the storage box switches from the closed box state shown in Figure 1 to the open box state shown in Figure 2 at least one of the first wireless earphone 210 and the second wireless earphone 220 can establish a communication link with the electronic device 100. Among them, when the first wireless earphone 210 and the second wireless earphone 220 have already established a communication link with the electronic device 100, the first wireless earphone 210 and the second wireless earphone 220 can establish a communication link with the electronic device 100 by means of reconnecting.
[0034] Furthermore, the audio playback device can synchronize its own placement state information to the electronic device 100 through the established communication link with the electronic device 100. For example, in the case shown in Figure 2 , the first wireless earphone 210 or the second wireless earphone 220 can also send the information that both the first wireless earphone 210 and the second wireless earphone 220 are in the box state to the electronic device 100 through the established communication link with the electronic device 100. For another example, when switching from the state shown in Figure 2 to Figure 3In the case shown, the first wireless earphone 210 can send information indicating that the first wireless earphone 210 is in the out-of-case state and the second wireless earphone 220 is in the in-case state to the electronic device 100. Furthermore, in the case where the first wireless earphone 210 is in the in-case state and the second wireless earphone 220 is in the out-of-case state, the second wireless earphone 220 can also send the relevant status information to the electronic device 100.
[0035] When switching from the state shown by Figure 3 to the state shown by Figure 4 in the case shown, the earphone that is first in the out-of-case state among the first wireless earphone 210 and the second wireless earphone 220 can send information about the state shown by Figure 4 to the electronic device.
[0036] The embodiments of the present application will be specifically described below with reference to the accompanying drawings.
[0037] Please refer to Figure 5 , a positioning method for a storage box provided by an embodiment of the present application is applied to an electronic device. The storage box is used to store an audio playback device. The method includes:
[0038] S110: In response to a specified operation of the audio playback device, obtain the position information collected by the electronic device. Herein, the specified operation can be understood as an operation that triggers the electronic device to obtain positioning information. Among them, the electronic device obtaining the position information collected by itself can include the electronic device triggering the positioning module to obtain the position information in real time, or can also include the electronic device directly reading the position information collected by the positioning module for the last time. Among them, the positioning module can include a GPS (Global Positioning System) module or other modules with positioning functions.
[0039] Optionally, in the embodiment of the present application, when there are multiple types included in the specified operation, the electronic device can determine the specific way of obtaining positioning information according to the type of the specified operation triggered by the audio playback device. For example, the specified operation of the audio playback device can include the audio playback device establishing a communication link with the electronic device and the audio playback device sending placement status information to the electronic device. When the specified operation triggered by the audio playback device is the audio playback device establishing a communication link with the electronic device, the electronic device can trigger the positioning module to obtain the position information in real time. When the specified operation triggered by the audio playback device is the audio playback device sending placement status information to the electronic device, the electronic device can directly read the position information collected by the positioning module for the last time.
[0040] It should be noted that if the audio playback device establishes a communication link with the electronic device, it indicates that the audio playback device has not been used by the user for a long time (for example, more than 1 hour). Then, in order to more accurately determine the position information of the storage box, the electronic device can obtain the position information in real time through the positioning module. Furthermore, when the audio playback device sends the placement status information to the electronic device, it is based on the communication link established with the electronic device before. Therefore, in this case, the audio playback device has actually been in use for a period of time, so the position information collected by the positioning module last time can be directly read, thus avoiding the increase in power consumption caused by starting the positioning module again.
[0041] S120: Record the position information collected by the electronic device as the current position information of the storage box.
[0042] Among them, when the audio playback device performs a specified operation, the storage box for storing the audio playback device is also very likely to be in the same position as the audio playback device. Then, the storage box will also be in the same position as the electronic device. Therefore, the position information collected by the electronic device can be directly recorded as the current position information of the storage box.
[0043] Furthermore, in order to facilitate obtaining the moment when the storage box appears at the current position, during the process of obtaining the current position information of the storage box, the electronic device can also obtain the current time information and associate and record the current time information with the current position information of the storage box.
[0044] After obtaining the position information of the storage box, the position information of the storage box can be displayed on the specified position information display interface. As a display method, the current position information of the storage box obtained last time can be displayed on the specified position information display interface, so that the user can clearly view the current position of the storage box. As another display method, the position information of the storage box obtained during the historical time period before the current moment can be displayed on the specified position information display interface. Exemplarily, such as Figure 6As shown, before the current moment, the electronic device obtained the position information of the storage box at time t1, time t2, and time t3 respectively. When the specified position information display interface is used to only display the current position information of the storage box obtained most recently, only position P3 will be displayed in the specified position information display interface. When the specified position information display interface is used to display the position information of the storage box obtained during the historical time period before the current moment, position P3, position P2, and position P1 can be displayed in the specified position information display interface. Also, the time information corresponding to the displayed position can be displayed in the specified position information display interface so that the user can know the moment when the storage box is in a certain position.
[0045] A positioning method for a storage box provided in this embodiment, when the storage box is used to store an audio playback device, can, in response to a specified operation of the audio playback device, obtain the position information collected by the electronic device, and then record the position information collected by the electronic device as the current position information of the storage box. Thus, in the above manner, after the audio device performs the specified operation, the electronic device can directly use the position information it collects as the current position information of the storage box, realizing the positioning of the storage box for storing the audio playback device.
[0046] Please refer to Figure 7 , a positioning method for a storage box provided in an embodiment of the present application, is applied to an electronic device. The storage box is used to store an audio playback device. The method includes:
[0047] S210: In response to receiving the placement status information sent by the audio playback device, obtain the position information collected by the electronic device.
[0048] Among them, in the embodiment of the present application, the placement status information of the audio playback device represents the relationship between the current position of the audio playback device and the storage box. Optionally, the relationship between the current position of the audio playback device represented by the placement status information and the storage box can be that the audio playback device is in the box state or out of the box state. Among them, the audio playback device being in the box state means that the audio playback device is currently placed inside the storage box (for example, the state shown in Figure 2 ), and the audio playback device being out of the box state means that the audio playback device is currently placed outside the storage box (for example, the first wireless earphone 210 in Figure 3 , and the first wireless earphone 210 and the second wireless earphone 220 in Figure 4 ).
[0049] S220: Record the position information collected by the electronic device as the current position information of the storage box.
[0050] Optionally, when receiving the placement status information sent by the audio playback device, the electronic device may directly obtain the location information collected by the electronic device, or may detect the received placement status information and determine whether to obtain the location information collected by the electronic device based on the detection result. Optionally, the electronic device may respond to receiving the placement status information sent by the audio playback device and, when detecting that the placement status information of the audio playback device is in a specified placement state, obtain the location information collected by the electronic device. Among them, the placement status information sent by the audio playback device to the electronic device may include a flag bit indicating the state of the audio playback device (in-box state or out-box state), and the number of such flag bits is the same as the number of audio playback devices stored in the storage box. For example, the number of audio playback devices that the storage box is used to store may be two, and the placement status information may include a first flag bit and a second flag bit. Optionally, if the value of the first identification bit is 1 and the value of the second identification bit is 0, then it may indicate that the audio playback device corresponding to the first flag bit is in the out-box state, and the audio playback device corresponding to the second flag bit is in the in-box state. For another example, when the number of audio playback devices that the storage box is used to store is three, the placement status information may include a first flag bit, a second flag bit, and a third flag bit.
[0051] Optionally, the number of audio playback devices may be multiple. And when the number of audio playback devices is multiple, the electronic device may respond to receiving the placement status information sent by the audio playback device, and when the placement status information indicates that the placement status information of the audio playback device is updated to the out-box state, obtain the location information collected by the electronic device.
[0052] In this way, if there are still audio playback devices stored in the storage box, the location information collected by the electronic device may be recorded as the current location information of the storage box, and the location information collected by the electronic device may be recorded as the current location information of the audio playback devices still stored in the storage box; if the audio playback device whose placement status information is updated from the in-box state to the out-box state is the last audio playback device to leave the box, the location information collected by the electronic device is recorded as the current location information of the storage box.
[0053] It should be noted that when the placement status information of the audio playback device is updated to the out-of-case state and there is still an audio playback device stored in the storage case, it means that the user is currently using only some of the audio playback devices. Then, in order to facilitate the user to timely obtain the positions of the unused audio playback devices and the storage case, the positions of the unused audio playback devices (i.e., the audio playback devices stored in the storage case) and the storage case will be recorded simultaneously. When it is obtained that all audio playback devices are in the out-of-case state, it means that all audio playback devices may be in use by the user, then only the position information of the storage case can be recorded.
[0054] Next, the content involved in this embodiment will be described by taking the example of the audio playback device being a wireless earphone.
[0055] The wireless earphones that can be stored in the storage case include a first wireless earphone and a second wireless earphone. When both the first wireless earphone and the second wireless earphone are placed in the storage case, if the first wireless earphone exits the case first, then the first wireless earphone can be used as the main earphone (the earphone that exits the case later does not need to establish a communication link with the electronic device again, but can only establish a communication link with the main earphone). After the first wireless earphone exits the case, it can send the placement status information to the electronic device (because there is also a communication link established between the first wireless earphone and the second wireless earphone, so the first wireless earphone can obtain the status of the second wireless earphone), and the placement status information sent to the electronic device indicates that the first wireless earphone is in the out-of-case state and the second wireless earphone is in the in-case state. In this case, the electronic device will be triggered to obtain the collected position information and use the obtained position information as the position information of the second wireless earphone (the wireless earphone still stored in the storage case) and the current position information of the storage case. After that, if the second wireless earphone also exits the case (i.e., the second wireless earphone is the last wireless earphone to exit the case), then the second wireless earphone will send the out-of-case state to the first wireless earphone. Correspondingly, the first wireless earphone will send the placement status information to the electronic device, and the placement status information indicates that both the first wireless earphone and the second wireless earphone are in the out-of-case state. In this case, the electronic device will be triggered again to obtain the collected position information and use the obtained position information as the current position information of the storage case.
[0056] It should be noted that if the first wireless earphone to exit the case is the second wireless earphone, the second wireless earphone will be used as the main earphone to interact with the electronic device. In addition, when both wireless earphones are in the out-of-case state, if the main earphone switches to the in-case state first, then the wireless earphone that has not yet entered the case will be switched to the new main earphone.
[0057] A positioning method for a storage box provided in this embodiment enables the electronic device to directly use the position information it collects as the current position information of the storage box in response to receiving the placement status information sent by the audio device after the audio device sends the placement status information in the above manner, thus realizing the positioning of the storage box for storing the audio playback device. Moreover, in this embodiment, when the number of audio playback devices is multiple, and some audio playback devices are in the out-of-box state and some are in the in-box state, the position information collected by the electronic device can be used as the position information of the storage box and the audio playback devices in the in-box state, thereby realizing the common positioning of the storage box and the unused audio playback devices. When all audio playback devices are in use (all in the out-of-box state), the position information collected by the electronic device is used as the position information of the storage box, thereby realizing the positioning of the storage box during the use of the audio playback device.
[0058] Please refer to Figure 8 , a positioning method for a storage box provided in an embodiment of the present application, which is applied to an electronic device. The storage box is used to store an audio playback device. The method includes:
[0059] S310: In response to receiving the placement status information sent by the audio playback device, and the placement status information indicates that an audio playback device is updated to the in-box state, obtain the position information collected by the electronic device.
[0060] S320: Record the position information collected by the electronic device as the current position information of the storage box.
[0061] Among them, when the number of audio playback devices that can be stored in the storage box is multiple, the number of currently in-box audio playback devices is different, and the devices for finally determining the current position information can also be different. Optionally, if the audio playback device updated to the in-box state is not the last one to be in the box, record the position information collected by the electronic device as the current position information of the storage box and record the position information collected by the electronic device as the position information of the audio playback devices that have been in the box; if the audio playback device whose placement status information is updated from the out-of-box state to the in-box state is the last one to be in the box, record the position information collected by the electronic device as the current position information of the storage box and record the position information collected by the electronic device as the position information of all audio playback devices.
[0062] Next, an example where the audio playback device is a wireless earphone will be used to illustrate the content involved in this embodiment.
[0063] The wireless earphones that can be stored in the storage box include a first wireless earphone and a second wireless earphone. When both the first wireless earphone and the second wireless earphone are placed outside the storage box (for example, both are worn on the user's ears), if the first wireless earphone enters the box first, then the first wireless earphone can send placement status information to the electronic device, and the placement status information sent to the electronic device indicates that the first wireless earphone is in the box and the second wireless earphone is out of the box. In this case, the electronic device will be triggered to obtain the collected location information and use the obtained location information as the location information of the first wireless earphone (and the second wireless earphone not in the box) and as the current location information of the storage box. After that, if the second wireless earphone also enters the box (i.e., the second wireless earphone is the last wireless earphone to enter the box), then the second wireless earphone will send the in-box status to the first wireless earphone. Correspondingly, the first wireless earphone will send placement status information to the electronic device, and the placement status information indicates that both the first wireless earphone and the second wireless earphone are in the box. In this case, the electronic device will be triggered again to obtain the collected location information and use the obtained location information as the current location information of the storage box and as the current location information of the first wireless earphone and the second wireless earphone.
[0064] It should be noted that when the first wireless earphone is the main earphone and the first wireless earphone is in the box, it can be switched to the second wireless earphone as the main earphone. In this case, when the first wireless earphone is updated to be in the box, it can disconnect the communication link established with the electronic device, and then send the message that it is in the box to the second wireless earphone. The second wireless earphone can then establish a communication link with the electronic device, and then the second wireless earphone will send the placement status information indicating that the first wireless earphone is in the box and the second wireless earphone is out of the box to the electronic device.
[0065] A positioning method for a storage box provided in this embodiment enables the electronic device to directly use the position information it collects as the current position information of the storage box in response to the placement status information sent by the audio device after the placement status information of the audio device is sent in the above manner, thereby realizing the positioning of the storage box for storing the audio playback device. Moreover, in this embodiment, when the number of audio playback devices is multiple, and some audio playback devices are in the boxed state while some are in the unboxed state, the position information collected by the electronic device can be used as the position information of the storage box and the audio playback devices in the boxed state, thus realizing the common positioning of the storage box and the unused audio playback devices. And when all audio playback devices are not in use (all are in the boxed state), the position information collected by the electronic device is used as the position information of the storage box and all audio playback devices, thereby realizing the common positioning of the storage box and the audio playback devices.
[0066] Please refer to Figure 9 , a positioning method for a storage box provided in an embodiment of the present application, which is applied to an electronic device. The storage box is used to store an audio playback device. The method includes:
[0067] S410: In response to the establishment of a communication link between the audio playback device and the electronic device, obtain the position information collected by the electronic device.
[0068] As a way, the electronic device can, in response to the audio playback device establishing a communication link with the electronic device in a way of reconnecting, obtain the position information collected by the electronic device.
[0069] S420: Record the position information collected by the electronic device as the current position information of the storage box.
[0070] A positioning method for a storage box provided in this embodiment enables the electronic device to directly use the position information it collects as the current position information of the storage box in response to the establishment of the communication link after the audio device establishes a communication link with the electronic device in the above manner, thereby realizing the positioning of the storage box for storing the audio playback device.
[0071] Please refer to Figure 10 , a positioning method for a storage box provided in an embodiment of the present application, which is applied to the audio playback device stored in the storage box. The method includes:
[0072] S510: The audio playback device and the electronic device trigger a specified operation for the electronic device to obtain the position information collected by the electronic device in response to the specified operation and record the position information collected by the electronic device as the current position information of the storage box.
[0073] As a way, the audio playback device triggering a specified operation to the electronic device may include: the audio playback device sending the placement status information of the audio playback device to the electronic device. Optionally, the audio playback device sending the placement status information of the audio playback device to the electronic device may include: when the placement status information changes, the audio playback device sending the placement status information of the audio playback device to the electronic device. Optionally, the audio playback device can periodically obtain the status of the audio playback device (the in-box status or the out-of-box status). The audio playback device can send the placement status information carrying the latest obtained status of the audio playback device to the electronic device every time it obtains the status of the audio playback device, or can also compare the currently obtained status with the previously obtained status. When it is determined that the currently obtained status is different from the previously obtained status, then send the placement status information carrying the latest obtained status of the audio playback device to the electronic device.
[0074] A positioning method for a storage box provided in this embodiment enables the electronic device to directly use the position information collected by itself as the current position information of the storage box after the audio device performs the specified operation in the above manner, realizing the positioning of the storage box for storing the audio playback device.
[0075] Furthermore, as a way, in the embodiment of the present application, the electronic device can output a specified audio to the audio playback device, so that the audio playback device plays the specified audio at the maximum volume, so that the user can find the audio playback device according to the sound emitted by the audio playback device playing the specified audio. Optionally, a search interface for the audio playback device is displayed on the electronic device. A trigger control is displayed in the search interface for the audio playback device. If an operation acting on the trigger control is detected, the specified audio can be output to the audio playback device.
[0076] Please refer to Figure 11 , a positioning device 600 for a storage box provided in the embodiment of the present application, runs on an electronic device. The storage box is used to store an audio playback device. The device 600 includes:
[0077] A position information acquisition unit 610, configured to acquire the position information collected by the electronic device in response to a specified operation of the audio playback device.
[0078] A storage box positioning unit 620, configured to record the position information collected by the electronic device as the current position information of the storage box.
[0079] As a way, the location information acquisition unit 610 is specifically configured to acquire the location information collected by the electronic device in response to receiving the placement status information sent by the audio playback device.
[0080] Optionally, the location information acquisition unit 610 is specifically configured to acquire the location information collected by the electronic device in response to receiving the placement status information sent by the audio playback device, and the placement status information of the audio playback device indicates that the audio playback device is in a specified placement state. Optionally, the number of the audio playback devices is multiple, and the location information acquisition unit 610 is specifically configured to acquire the location information collected by the electronic device in response to receiving the placement status information sent by the audio playback device, and the placement status information indicates that an audio playback device is updated to an out-of-box state. In this way, the storage box positioning unit 620 is specifically configured to, if there is still an audio playback device stored in the storage box, record the location information collected by the electronic device as the current location information of the storage box, and record the location information collected by the electronic device as the current location information of the audio playback device still stored in the storage box; if the audio playback device updated to the out-of-box state is the last audio playback device to be out of the box, record the location information collected by the electronic device as the current location information of the storage box.
[0081] Optionally, the location information acquisition unit 610 is specifically configured to acquire the location information collected by the electronic device in response to receiving the placement status information sent by the audio playback device, and the placement status information indicates that an audio playback device is updated to an in-box state. In this way, the storage box positioning unit 620 is specifically configured to, if the audio playback device updated to the in-box state is not the last audio playback device to be in the box, record the location information collected by the electronic device as the current location information of the storage box, and record the location information collected by the electronic device as the location information of the audio playback devices that have been in the box; if the audio playback device updated to the in-box state is the last audio playback device to be in the box, record the location information collected by the electronic device as the current location information of the storage box, and record the location information collected by the electronic device as the location information of all audio playback devices.
[0082] As a way, the location information acquisition unit 610 is specifically configured to acquire the location information collected by the electronic device in response to the audio playback device establishing a communication link with the electronic device. Optionally, the location information acquisition unit 610 is specifically configured to acquire the location information collected by the electronic device in response to the audio playback device establishing a communication link with the electronic device in a way of reconnecting.
[0083] The storage box positioning unit 620 is further configured to obtain the current time information; and associate and record the current time information with the current position information of the storage box.
[0084] Please refer to Figure 12 , a positioning device 700 for a storage box provided by an embodiment of the present application runs on an audio playback device stored in the storage box. The device 700 includes:
[0085] A positioning trigger unit 710 is configured to trigger a specified operation with an electronic device, so that in response to the specified operation, the electronic device obtains the position information collected by the electronic device and records the position information collected by the electronic device as the current position information of the storage box.
[0086] A positioning device for a storage box provided by this embodiment, in the case where the storage box is used to store an audio playback device, can, in response to a specified operation of the audio playback device, obtain the position information collected by the electronic device, and then record the position information collected by the electronic device as the current position information of the storage box. Thus, in the above manner, after the audio device performs a specified operation, the electronic device can directly use the position information collected by itself as the current position information of the storage box, realizing the positioning of the storage box for storing the audio playback device.
[0087] It should be noted that those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the foregoing method embodiments, and will not be described in detail herein. In several embodiments provided by the present application, the coupling between modules can be electrical. In addition, in each embodiment of the present application, each functional module can be integrated in a processing module, or each module can exist physically alone, or two or more modules can be integrated in one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
[0088] Next, Figure 13 an electronic device provided by the present application will be described.
[0089] Please refer to Figure 13 , based on the above positioning method and device for a storage box, an embodiment of the present application further provides an electronic device 1000 that can execute the foregoing positioning method for a storage box. The electronic device 1000 includes one or more (only one is shown in the figure) processors 105, a memory 104, an audio playback module 106, and an audio collection device 108 that are coupled to each other. Among them, the memory 104 stores a program that can execute the content in the foregoing embodiments, and the processor 105 can execute the program stored in the memory 104.
[0090] Among them, the processor 105 may include one or more processing cores. The processor 105 is connected to various parts within the entire electronic device 1000 through various interfaces and lines. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 104, and by calling data stored in the memory 104, it performs various functions of the electronic device 1000 and processes data. Optionally, the processor 105 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 105 may integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the display content; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 105 and may be implemented separately through a communication chip.
[0091] The memory 104 may include random access memory (RAM) and may also include read-only memory. The memory 104 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 104 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the following various method embodiments, etc.
[0092] Furthermore, in addition to the aforementioned devices, the electronic device 1000 may further include a network module 110 and a sensor module 112.
[0093] The network module 110 is used to implement information interaction between the electronic device 1000 and other devices. For example, it can establish a connection with other audio playback devices or other electronic devices and perform information interaction based on the established connection. As a way, the network module 110 of the electronic device 1000 is a radio frequency module, which is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The radio frequency module may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, subscriber identity module (SIM) cards, memories, and so on. For example, the radio frequency module can interact with external devices through the transmitted or received electromagnetic waves.
[0094] The sensor module 112 may include at least one sensor. Specifically, the sensor module 112 may include but is not limited to: pressure sensors, motion sensors, acceleration sensors, and other sensors.
[0095] Among them, the pressure sensor is a sensor that can detect the pressure generated by pressing on the electronic device 1000. That is, the pressure sensor detects the pressure generated by the contact or press between the user and the electronic device 1000, such as the pressure generated by the contact or press between the user's ear and the electronic device 1000. Therefore, the pressure sensor can be used to determine whether there is a contact or press between the user and the electronic device 1000, and the magnitude of the pressure.
[0096] Among them, the acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes). When stationary, it can detect the magnitude and direction of gravity, and can be used in applications for identifying the posture of the electronic device 1000 (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometers, taps), etc. In addition, the electronic device 1000 can also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, etc., which will not be elaborated here.
[0097] The audio acquisition device 108 is used to acquire audio signals. Optionally, the audio acquisition device 108 includes a plurality of audio acquisition devices, and the audio acquisition device can be a microphone.
[0098] Please refer to Figure 14 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code is stored in the computer-readable medium 1100, and the program code can be called by a processor to execute the method described in the above method embodiment.
[0099] The computer-readable storage medium 1100 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 1100 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 1100 has a storage space for program code 1110 that executes any of the method steps in the above-described method. These program codes can be read from or written into one or more computer program products. The program code 1110 can be compressed in an appropriate form, for example.
[0100] In summary, a positioning method, device, and electronic device for a storage box provided in the present application can, when the storage box is used to store an audio playback device, obtain the position information collected by the electronic device in response to a specified operation of the audio playback device, and then record the position information collected by the electronic device as the current position information of the storage box. Thus, in the above manner, after the audio device performs a specified operation, the electronic device can directly use the position information collected by itself as the current position information of the storage box, achieving the positioning of the storage box for storing the audio playback device. Moreover, in the embodiments of the present application, the positioning of the storage box can be achieved without additional hardware upgrades to the audio playback device and the storage box, thereby also avoiding an increase in cost for achieving the positioning of the storage box.
[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments or perform equivalent replacements for some of the technical features. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A positioning method for a storage box, characterized in that, Applied to an electronic device, the storage box is used to store audio playback devices, and the number of the audio playback devices is multiple. The method includes: Responding to receiving the placement status information sent by the audio playback device, obtaining the position information collected by the electronic device; When the placement status information indicates that an audio playback device is updated to the out-of-box state, if there is still an audio playback device stored in the storage box, recording the position information collected by the electronic device as the current position information of the storage box, and recording the position information collected by the electronic device as the current position information of the audio playback device still stored in the storage box; When the placement status information indicates that an audio playback device is updated to the in-box state, recording the position information collected by the electronic device as the current position information of the storage box.
2. The method according to claim 1, wherein The method further includes: If there is still an audio playback device stored in the storage box, recording the position information collected by the electronic device as the current position information of the storage box, and recording the position information collected by the electronic device as the current position information of the audio playback device still stored in the storage box; If the audio playback device updated to the out-of-box state is the last audio playback device to go out of the box, recording the position information collected by the electronic device as the current position information of the storage box.
3. The method according to claim 1, wherein The step of, when the placement status information indicates that an audio playback device is updated to the in-box state, recording the position information collected by the electronic device as the current position information of the storage box, includes: If the audio playback device updated to the in-box state is not the last audio playback device to enter the box, recording the position information collected by the electronic device as the current position information of the storage box, and recording the position information collected by the electronic device as the position information of the audio playback devices that have entered the box; If the audio playback device updated to the in-box state is the last audio playback device to enter the box, recording the position information collected by the electronic device as the current position information of the storage box, and recording the position information collected by the electronic device as the position information of all audio playback devices.
4. The method according to claim 1, wherein The method further includes: Responding to the establishment of a communication link between the audio playback device and the electronic device, obtaining the position information collected by the electronic device.
5. The method according to claim 4, wherein The step of, responding to the establishment of a communication link between the audio playback device and the electronic device, obtaining the position information collected by the electronic device, includes: Responding to the audio playback device establishing a communication link with the electronic device in a way of reconnecting, obtaining the position information collected by the electronic device.
6. The method according to claim 1, wherein The method further includes: Obtaining the current time information; Associating and recording the current time information with the current position information of the storage box.
7. According to the method described in any one of claims 1-6, characterized in that, The storage box is used to store audio playback devices, and the number of the audio playback devices is multiple, including: the storage box is used to store wireless earphones, and the wireless earphones include a first wireless earphone and a second wireless earphone.
8. A positioning method for a storage box, characterized in that, Applied to the audio playback devices stored in the storage box, the number of the audio playback devices is multiple. The method includes: When the placement state information of the audio playback device changes, the audio playback device sends the placement state information of the audio playback device to the electronic device, so that the electronic device, in response to the placement state information, obtains the position information collected by the electronic device. Among them, when the placement state information indicates that the audio playback device is updated to the out-of-box state, if there is still an audio playback device in the storage box, the electronic device records the position information collected by the electronic device as the current position information of the storage box, and records the position information collected by the electronic device as the current position information of the audio playback device still in the storage box; when the placement state information indicates that the audio playback device is updated to the in-box state, the electronic device records the position information collected by the electronic device as the current position information of the storage box.
9. A positioning device for a storage box, characterized in that, Running on an electronic device, the storage box is used to store audio playback devices, and the number of audio playback devices is multiple. The device includes: A position information acquisition unit, configured to, in response to receiving the placement state information sent by the audio playback device, and the placement state information indicates that the audio playback device is updated to the out-of-box state or the in-box state, obtain the position information collected by the electronic device; A storage box positioning unit, configured to, when the placement state information indicates that the audio playback device is updated to the out-of-box state, if there is still an audio playback device in the storage box, record the position information collected by the electronic device as the current position information of the storage box, and record the position information collected by the electronic device as the current position information of the audio playback device still in the storage box; when the placement state information indicates that the audio playback device is updated to the in-box state, record the position information collected by the electronic device as the current position information of the storage box.
10. A positioning device for a storage box, characterized in that, Running on the audio playback device stored in the storage box, the number of audio playback devices is multiple. The device includes: A positioning trigger unit, configured to send the placement state information of the audio playback device to the electronic device when the placement state information of the audio playback device changes, so that the electronic device, in response to the placement state information, obtains the position information collected by the electronic device. Among them, the positioning trigger unit is specifically configured to, when the placement state information indicates that the audio playback device is updated to the out-of-box state, if there is still an audio playback device in the storage box, record the position information collected by the electronic device as the current position information of the storage box, and record the position information collected by the electronic device as the current position information of the audio playback device still in the storage box; when the placement state information indicates that the audio playback device is updated to the in-box state, record the position information collected by the electronic device as the current position information of the storage box.
11. An electronic device, characterized in that, It includes one or more processors and a memory; One or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the method according to any one of claims 1-8.
12. A computer-readable storage medium, characterized in that, Program code is stored in the computer-readable storage medium, wherein the method according to any one of claims 1-8 is performed when the program code is run by a processor.
Citation Information
Patent Citations
Earphone boxing detection method, earphone, earphone box and storage medium
CN112533097A
Bluetooth earphone anti-lost method, device and system and computer readable storage medium
CN113645352A