Method for searching earphone cabin through mobile phone
Technical Field
The invention belongs to the technical field of Bluetooth headphones, and particularly relates to a method for searching a headphone bin through a mobile phone.
Background
The Bluetooth headset is a headset which is connected with a mobile phone or other Bluetooth equipment through a wireless Bluetooth technology. Bluetooth headsets typically include two parts: a headset and a headset cartridge. The earphone bin is mainly used for storing and charging the earphone. The bluetooth headset may play music, receive calls, etc. through a cell phone or other bluetooth device. Because the Bluetooth headset bin body is small and exquisite, does not possess functions such as speaker, vibration moreover, consequently in daily life, when the headset bin is lost by the user, hardly look for. In daily use, when bluetooth headset is lost at will, need to look for bluetooth headset through cell-phone and bluetooth headset pairing. In the prior art, some devices can query the geographical positioning information of the bluetooth headset through the search function of the mobile terminal in the bluetooth connection state, but can only provide the approximate geographical position of the wireless bluetooth headset, and the search function cannot be searched when the headset cabin of the wireless headset is in the closed state. When the earphone bin is opened, earphone positioning can be performed by establishing Bluetooth communication, for example, bluetooth communication is performed according to the using time length of the Bluetooth earphone to scan the Bluetooth earphone bin, so that the position of the earphone bin is determined. However, in a conventional manner in the art and in a manner generally agreed by each manufacturer, when the bluetooth headset is placed outside the headset cabin and the power is turned off, it indicates that the user has been used, and thus, in order to reduce the power consumption, both the bluetooth headset and the charging cabin enter, for example, a sleep mode, that is, are in a low power consumption state. The mode of the low-power-consumption working mode commonly accepted by the conventionality can lead each manufacturer not to establish Bluetooth connection with the Bluetooth headset through the external terminal, so that a user cannot realize accurate positioning and loss prevention or recovery through the Bluetooth headset connected with the mobile phone. When the Bluetooth headset is placed outside the headset cabin, a user can place the Bluetooth headset everywhere, the Bluetooth headset is easy to lose and difficult to find back, and the Bluetooth headset can only be found everywhere by means of the memory of using the headset cabin, so that the efficiency is quite low and the time is consumed. Therefore, when the Bluetooth headset is used and is not placed in the charging bin, the charging bin is lost when going out, and the Bluetooth headset is difficult to retrieve. Therefore, how to facilitate the user to find the earphone bin effectively is a technical problem to be solved.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention aims to provide a method for searching a Bluetooth headset cabin body through a mobile phone, which solves the problem of low searching efficiency of the Bluetooth headset cabin body through integrating the functions of signal connection, APP binding, alarm prompting and the like, so as to facilitate a user to search the Bluetooth headset cabin body.
In order to achieve the above purpose, the invention adopts the following technical scheme: a method for searching an earphone bin through a mobile phone comprises the following steps:
the method for searching the earphone bin through the mobile phone comprises the following steps:
Step 1, installing a preset switch on a Bluetooth headset bin body, wherein the preset switch is used as an early warning mode system switch of the Bluetooth headset bin body, after the preset switch is turned on, a Bluetooth signal sent by the preset switch is connected to a mobile phone terminal APP, and the early warning mode system is turned off when the preset switch is turned off or the electric quantity of the Bluetooth headset bin body is exhausted;
Step 2, triggering a switch of the Bluetooth headset bin body, and when the Bluetooth headset bin body is opened, contacting the two metal contacts to generate an electric signal; when the Bluetooth headset bin body is closed, the two metal contacts of the switch are separated, and the electric signal is disconnected. When the Bluetooth earphone bin body is in an open state, the generated electric signals are detected by a microcontroller of the mobile phone end, the microcontroller judges the state of the Bluetooth earphone and basic information of the Bluetooth earphone bin body according to the electric signals, the Bluetooth earphone and the Bluetooth signal of the Bluetooth earphone bin body are controlled to be sent according to the basic information, after a preset switch on the Bluetooth earphone bin body is opened, the Bluetooth signal sent by the preset switch can be associated with the Bluetooth signal generated by the switch on the Bluetooth earphone bin body, and the Bluetooth signal can be detected by the microcontroller of the mobile phone end together and then connected to a Bluetooth earphone assistant app of the mobile phone end;
Step 3, calculating the distance information of the bin body, and converting the Bluetooth signals sent by the Bluetooth headset bin body into the distance information according to the principle that the different distances between the Bluetooth headset bin body and the mobile phone end can lead to different strengths of the Bluetooth signals sent by the Bluetooth headset bin body detected by the mobile phone end microcontroller when the Bluetooth headset bin body is in an open state; the method comprises the steps that a Bluetooth signal propagation model is built in a Bluetooth assistant app at a mobile phone end, distance estimation is carried out according to the relation between Bluetooth signal intensity and distance, the distance estimation uses a nonlinear fitting algorithm to process Bluetooth signal intensity data so as to obtain accurate distance information, the distance information is converted into a digital form (such as a distance interval), the converted digital distance information is output on the Bluetooth assistant app at the mobile phone end, and a user can see the digital distance information on the Bluetooth assistant app at the mobile phone end to display the distance between the Bluetooth assistant app and a Bluetooth earphone bin;
step 4, binding a Bluetooth headset bin body, when the Bluetooth headset bin body is in an open state, determining a target Bluetooth headset bin body on a mobile phone end Bluetooth headset assistant app, and binding the Bluetooth headset bin body on the mobile phone end Bluetooth headset assistant app, and displaying the basic information and the digital distance information of the Bluetooth headset bin bodies transmitted in the step 2 and the step 3;
Step 5, sending out an early warning instruction, and after obtaining the digital distance information of the Bluetooth headset bin body, carrying out parameter setting on a Bluetooth headset bin body early warning mode system, and setting a preset interval and a critical value interval of the digital distance information and an early warning instruction corresponding to the critical value interval by using a Bluetooth headset assistant app at the mobile phone end; when the digital distance information is in a preset interval, the distance between the Bluetooth headset bin body and the mobile phone is a safe distance; if the Bluetooth headset bin body is in a preset interval but the Bluetooth headset bin body is lost in a short distance, the Bluetooth headset bin body can be clicked to be searched in a mobile phone Bluetooth headset assistant app, and an early warning mode system of the Bluetooth headset bin body is forced to send an early warning instruction of an alarm prompt to the Bluetooth headset bin body, wherein the alarm prompt is in the form of sound and lamplight prompt; the mobile phone Bluetooth headset assistant app has the function of receiving the early warning notice, and if the digital distance information of the mobile phone and the Bluetooth headset bin body enters a critical value interval, the mobile phone Bluetooth headset assistant app receives the early warning notice sent by the early warning mode system, the early warning notice content is the position information of the Bluetooth headset bin body, and a user is reminded to manage the Bluetooth headset bin body; when the digital distance information between the mobile phone end and the Bluetooth headset bin body exceeds a critical value interval, the early warning mode system sends an alarm prompt to the Bluetooth headset bin body, the Bluetooth headset bin body receives the alarm prompt and outputs the alarm prompt to the Bluetooth headset bin body, and the alarm prompt is in the form of sound and light prompt so as to remind a user of paying attention to the abnormal state of the Bluetooth headset bin body;
And 6, finding the Bluetooth headset bin body by the user according to the alarm prompt and the digital distance information in the mobile phone Bluetooth headset assistant APP.
2. The method for searching for the earphone cabin by the mobile phone according to claim 1, wherein the switch in the step 1 is a mechanical contact switch
The states include: whether the earphone is worn or not and whether the earphone is in the charging bin or not;
the basic information comprises electric quantity and a Bluetooth headset bin serial number.
3. The method of claim 1, wherein the distance estimation is also used to process bluetooth signal strength data instead of an exponential decay model.
4. The method for searching the earphone cabin by the mobile phone according to claim 1, wherein the specific content of the alarm prompt can be set in the Bluetooth earphone assistant app at the mobile phone end according to the requirement of the user, so that the user can be effectively reminded and attracted.
The beneficial effects of the invention are as follows:
The scheme can effectively avoid the communication problems of the Bluetooth headset bin body and the communication under the low power consumption state. Specifically, this scheme can realize finding back the earphone storehouse body that has lost through APP, makes the user can look over storehouse body information in real time on the cell-phone. The preset switch on the earphone bin body is used as an early warning mode system switch of the Bluetooth earphone bin body, bin body information can be updated in real time, and when the distance between the Bluetooth earphone bin body and the earphone bin body is in a critical value range, an early warning instruction of early warning notification is sent to the mobile phone APP, so that a user is prompted of the distance information between the Bluetooth earphone bin body. When the distance between the Bluetooth headset bin body and the Bluetooth headset bin body exceeds the critical value interval, an early warning instruction of an alarm prompt is sent to the Bluetooth headset bin body.
The invention also has the following advantages:
1) Positioning is realized through Bluetooth signals, and the recovery efficiency is improved.
2) Through the mode of binding, displaying and calculating the distance of a specific APP, accurate recovery is realized.
3) Through opening the preset switch of the early warning mode system switch as the Bluetooth headset bin body, the loss of the Bluetooth headset bin body can be effectively avoided.
Real-time performance: the user only needs to connect the Bluetooth headset storehouse body with APP and open the switch of predetermineeing, just can look over the distance information of earphone on APP and accept the early warning suggestion of system, reduce the loss rate of user's Bluetooth headset storehouse body.
Precision: the system can scan the target signal in real time and output accurate distance information, so that a user can easily grasp the position of the bin body and does not feel confusing any more.
Convenience: the preset switch in the invention helps a user find the Bluetooth headset bin body according to the early warning prompt, and is more convenient.
Reliability: the technology used by the scheme is simple and feasible, does not consume excessive resources, and ensures the reliability and the robustness of the system.
Drawings
FIG. 1 is a flow chart of the present invention.
Fig. 2 is an expanded schematic diagram of the bluetooth headset housing according to the present invention.
Fig. 3 is a schematic diagram of the locking of the bluetooth headset cabin according to the present invention.
In the figure: 1-preset switch, 2-switch, 3-bluetooth earphone storehouse body, 4-bluetooth earphone.
Detailed Description
The invention will be described in further detail with reference to the drawings and examples.
A method for searching an earphone bin through a mobile phone comprises the following steps:
Step 1, installing a preset switch on a Bluetooth headset bin body, wherein the preset switch is used as an early warning mode system switch of the Bluetooth headset bin body, after the preset switch is turned on, a Bluetooth signal sent by the preset switch is connected to a mobile phone terminal APP, and the early warning mode system is turned off when the preset switch is turned off or the electric quantity of the Bluetooth headset bin body is exhausted;
Step 2, triggering a switch of the Bluetooth headset bin body, and when the Bluetooth headset bin body is opened, contacting the two metal contacts to generate an electric signal; when the Bluetooth headset bin body is closed, the two metal contacts of the switch are separated, and the electric signal is disconnected; when the Bluetooth earphone bin body is in an open state, the generated electric signals are detected by a microcontroller of the mobile phone end, the microcontroller judges the state of the Bluetooth earphone and basic information of the Bluetooth earphone bin body according to the electric signals, the Bluetooth earphone and the Bluetooth signal of the Bluetooth earphone bin body are controlled to be sent according to the basic information, after a preset switch on the Bluetooth earphone bin body is opened, the Bluetooth signal sent by the preset switch can be associated with the Bluetooth signal generated by the switch on the Bluetooth earphone bin body, and the Bluetooth signal can be detected by the microcontroller of the mobile phone end together and then connected to a Bluetooth earphone assistant app of the mobile phone end;
Step 3, calculating the distance information of the bin body, and converting the Bluetooth signals sent by the Bluetooth headset bin body into the distance information according to the principle that the different distances between the Bluetooth headset bin body and the mobile phone end can lead to different strengths of the Bluetooth signals sent by the Bluetooth headset bin body detected by the mobile phone end microcontroller when the Bluetooth headset bin body is in an open state; the method comprises the steps that a Bluetooth signal propagation model is built in a Bluetooth assistant app at a mobile phone end, distance estimation is carried out according to the relation between Bluetooth signal intensity and distance, the distance estimation uses a nonlinear fitting algorithm to process Bluetooth signal intensity data so as to obtain accurate distance information, the distance information is converted into a digital form (such as a distance interval), the converted digital distance information is output on the Bluetooth assistant app at the mobile phone end, and a user can see the digital distance information on the Bluetooth assistant app at the mobile phone end to display the distance between the Bluetooth assistant app and a Bluetooth earphone bin;
step 4, binding a Bluetooth headset bin body, when the Bluetooth headset bin body is in an open state, determining a target Bluetooth headset bin body on a mobile phone end Bluetooth headset assistant app, and binding the Bluetooth headset bin body on the mobile phone end Bluetooth headset assistant app, and displaying the basic information and the digital distance information of the Bluetooth headset bin bodies transmitted in the step 2 and the step 3;
And step 5, sending out an early warning instruction. After the mobile phone Bluetooth headset assistant app obtains the digital distance information of the Bluetooth headset bin body, parameter setting is carried out on the Bluetooth headset bin body early warning mode system, and a preset interval and a critical value interval of the digital distance information and an early warning instruction corresponding to the critical value interval are set; when the digital distance information is in a preset interval, the distance between the Bluetooth headset bin body and the mobile phone is a safe distance; if the Bluetooth headset bin body is in a preset interval but the Bluetooth headset bin body is lost in a short distance, the Bluetooth headset bin body can be clicked to be searched in a mobile phone Bluetooth headset assistant app, and an early warning mode system of the Bluetooth headset bin body is forced to send an early warning instruction of an alarm prompt to the Bluetooth headset bin body, wherein the alarm prompt is in the form of sound and lamplight prompt; the mobile phone Bluetooth headset assistant app has the function of receiving the early warning notice, and if the digital distance information of the mobile phone and the Bluetooth headset bin body enters a critical value interval, the mobile phone Bluetooth headset assistant app receives the early warning notice sent by the early warning mode system, the early warning notice content is the position information of the Bluetooth headset bin body, and a user is reminded to manage the Bluetooth headset bin body; when the digital distance information between the mobile phone end and the Bluetooth headset bin body exceeds a critical value interval, the early warning mode system sends an alarm prompt to the Bluetooth headset bin body, the Bluetooth headset bin body receives the alarm prompt and outputs the alarm prompt to the Bluetooth headset bin body, and the alarm prompt is in the form of sound and light prompt so as to remind a user of paying attention to the abnormal state of the Bluetooth headset bin body;
And 6, finding the Bluetooth headset bin body by the user according to the alarm prompt and the digital distance information in the mobile phone Bluetooth headset assistant APP.
2. The method for searching for the earphone cabin by the mobile phone according to claim 1, wherein the switch in the step 1 is a mechanical contact switch
The states include: whether the earphone is worn or not and whether the earphone is in the charging bin or not;
the basic information comprises electric quantity and a Bluetooth headset bin serial number.
3. The method of claim 1, wherein the distance estimation is also used to process bluetooth signal strength data instead of an exponential decay model.
4. The method for searching the earphone cabin by the mobile phone according to claim 1, wherein the specific content of the alarm prompt can be set in the Bluetooth earphone assistant app at the mobile phone end according to the requirement of the user, so that the user can be effectively reminded and attracted.
In addition to the above steps, the following detailed problems and development directions need to be explained:
The method does not need special hardware or software, and only needs the earphone bin body and the mobile device with the Bluetooth function. Meanwhile, a specific Bluetooth headset assistant APP is installed on the equipment so as to realize the functions.
The development direction in the future is as follows: with the continuous development of technology, more application scenes and functions of the method can be expected. Through the two-way communication between the earphone bin body and the mobile device, the earphone can be directly controlled on the device, or more detailed distance and direction information can be provided by the earphone, so that the device can be retrieved more quickly.
Charts and tables are used to illustrate principles or implementations: charts and tables can intuitively show what key technologies or methods are involved in the invention process, how they work, and so on. This will help the reader understand the principles of the invention and the aspects of the tools or software programs used in the implementation.
1) And installing a preset switch. The switch is kept in an open state, so that the system sends out an early warning instruction.
2) Triggering a headset bin switch to control the Bluetooth headset and the Bluetooth signal of the headset bin body to be sent out;
3) Calculating bin distance information, and outputting the bin distance information according to the strength of the signal;
4) Binding the Bluetooth headset bin body. Binding a Bluetooth headset bin body on a mobile terminal specific APP, and displaying bin body information and distance information;
5) And opening a preset switch and sending out an early warning instruction. And if the distance information between the mobile phone and the earphone bin body enters the critical value interval, the APP receives an early warning instruction of an early warning notice sent by the early warning mode system. When the distance information between the mobile phone and the earphone bin body exceeds the interval critical value, the early warning mode system sends an early warning instruction of warning prompt to the earphone bin body;
6) Finding a Bluetooth headset bin according to the alarm prompt;
Binding the Bluetooth headset bin and the mobile terminal specific APP can be achieved only by binding. Ensuring that the distance between the earphone house and the mobile device is proper to ensure signal quality.
And maintaining the Bluetooth connection state of the mobile device and the Bluetooth headset bin body. And when the threshold value is reached, the earphone bin body needs to be found as soon as possible, so that loss and inconvenience are avoided.