Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The present invention will be described in detail below with reference to the accompanying drawings and examples.
Please refer to fig. 1, which is a flowchart illustrating a first embodiment of a call answering method for a neck massager according to the present invention. The method comprises the following steps:
step S11: the neck massager is connected with the mobile terminal.
Specifically, the neck massager is connected with the mobile terminal, in one embodiment, the neck massager can be connected with the mobile terminal, specifically, the neck massager acquires the device ID of the mobile terminal, each device is endowed with a unique device identifier when leaving a factory, the device identifier is not shared by other devices, and after the neck massager acquires the device ID of the mobile terminal, the device ID is used as an index when data is transmitted and received, so that information transmission is completed. In another embodiment, the neck massager may establish a wireless network connection with the mobile terminal, and specifically, the neck massager and the mobile terminal may establish a wireless connection through one or any combination of a bluetooth network technology, a Near Field Communication (NFC) technology, an ultra wideband technology (UWB), a Wi-Fi technology, and a ZigBee network technology (ZigBee).
It can be understood that, if the neck massager supports the wireless connection function, the wireless connection mode is preferentially selected when the neck massager is connected with the mobile terminal, and if the neck massager does not support the wireless connection function, the device connection can be realized by using the respective device ID as an index when the neck massager is connected with the mobile terminal. Of course, in an embodiment, the wireless connection and the device connection may also be established between the neck massager and the mobile terminal, which is not limited specifically as long as the information transmission between the neck massager and the mobile terminal is realized.
Step S12: when the mobile terminal is detected to have an incoming call, the distance between the neck massager and the mobile terminal is detected.
Specifically, the neck massager can detect whether the mobile terminal has an incoming call by monitoring the incoming call ringtone of the mobile terminal, and can also judge whether the mobile terminal has an incoming call by monitoring the antenna signal of the incoming call received by the mobile terminal. The incoming call comprises at least one of a voice call, a video call and a telephone call. The incoming call may include an incoming call received through a mobile phone number, and of course, the incoming call may also include an incoming call incoming to the mobile terminal through other manners, which is not limited herein.
In another embodiment, the neck massager detects whether the mobile terminal has an incoming call by receiving a feedback signal from the mobile terminal, specifically, when the mobile terminal has an incoming call, the mobile terminal sends the feedback signal to the neck massager, and the neck massager determines that the mobile terminal has an incoming call after receiving the feedback signal.
In one embodiment, the neck massager detects a position relationship with the mobile terminal to control whether the incoming call is answered through the neck massager or the mobile terminal according to the position relationship between the neck massager and the mobile terminal.
Specifically, in an embodiment, the distance between the neck massager and the mobile terminal is detected by at least one of an ultrasonic signal and an infrared signal. Specifically, the neck massager sends a detection signal, such as at least one of an ultrasonic signal and an infrared signal, to the mobile terminal, and receives a feedback signal sent by the mobile terminal in response to the detection signal after sending the detection signal; therefore, the neck massager can determine the distance between the neck massager and the mobile terminal through the time difference between the sending of the detection signal and the receiving of the feedback signal.
In another embodiment, the neck massager is provided with a positioning device, the neck massager acquires the position information of the neck massager through the positioning device, receives the position information of the mobile terminal from the mobile terminal, and obtains the distance between the neck massager and the mobile terminal through the position information of the neck massager and the position information of the mobile terminal.
In another embodiment, the mobile terminal sends a sound signal and sends the sound intensity corresponding to the sound signal to the neck massager, the neck massager monitors the sound signal and receives the sound intensity corresponding to the sound signal, and the neck massager calculates the distance between the neck massager and the mobile terminal according to the monitored sound intensity of the sound signal and the received sound intensity of the sound signal and the attenuation rate of sound in air.
The neck massage appearance can also confirm the distance between and the mobile terminal through bluetooth signal, and of course, the neck massage appearance can also confirm the distance between and the mobile terminal through other modes, and no longer repeated here.
Step S13: and sending a control instruction to the mobile terminal according to the distance between the neck massager and the mobile terminal so as to receive or reject the incoming call.
Specifically, the neck massager sends a control signal to the mobile terminal according to the distance between the neck massager and the mobile terminal, so that the incoming call is answered through the neck massager or the mobile terminal.
Specifically, please refer to fig. 2, which is a flowchart illustrating a telephone answering method of the neck massager of fig. 1 according to a second embodiment of the present invention. Steps S21 to S23 are the same as steps S11 to S13 shown in fig. 1, except that the embodiment further includes:
step S24: and judging whether the distance between the neck massager and the mobile terminal exceeds a preset threshold value or not.
Specifically, whether the distance between the neck massage instrument and the mobile terminal exceeds a preset threshold value or not is judged, that is, whether the mobile terminal is near the user or not is further judged by judging whether the distance between the neck massage chair and the mobile terminal exceeds the preset threshold value or not.
Step S25: if the distance exceeds a preset threshold value, the neck massage instrument sends a first control instruction to the mobile terminal, and the mobile terminal is controlled to switch the incoming call to the neck massage instrument.
After detecting that the distance between the neck massage instrument and the mobile terminal exceeds a preset threshold value, the neck massage instrument sends a first control instruction to the mobile terminal to control the mobile terminal to transfer the incoming call to the neck massage instrument, so that the neck massage instrument answers the incoming call. It can be understood that, in the call answering method of the neck massager described in this embodiment, when the user wears the neck massager, the incoming call is answered by the neck massager, and therefore, the neck massager needs to have a sound receiving function and a sound analyzing function, that is, the neck massager needs to have a microphone, a speaker, and the like.
In particular, this embodiment requires that the user is wearing a neck massager. In one embodiment, if the incoming call is switched to the neck massager for answering, whether the user wears the neck massager or not can be detected in advance. In one embodiment, whether the user wears the neck massager can be judged by detecting the position relation between the neck massager and the user. For example, the neck massager is provided with an airflow sensor, and when the airflow sensor detects the breathing of the user, the user can be judged to wear the neck massager. The neck massage instrument worn by the user is divided into a plurality of situations, for example, the user wears the neck massage instrument on the neck, or the user holds the neck massage instrument by hand, and for different situations, the judgment can be carried out according to the air flow intensity detected by the air flow sensor. For example, if the intensity of the air flow detected by the air flow sensor is very high, it indicates that the neck massage apparatus is closer to the user's mouth, and it can be determined that the user wears the neck massage apparatus on the neck. If the air flow intensity detected by the air flow sensor is very low, the neck massage instrument is far away from the mouth of the user, and the user can be judged to possibly hold the neck massage instrument on the hand. When the airflow sensor does not detect the breathing of the user, the neck massager which is not worn by the user can be judged.
In another embodiment, the position relationship between the neck massager and the user can be detected by detecting whether the neck massager is in the working state, if the neck massager is in the working state, the user wears the neck massager, and if the neck massager is not in the working state, the user wears the neck massager. Specifically, the neck massager may determine whether the neck massager is in the working state by detecting the temperature inside the neck massager, or detecting the voltage and current of the neck massager, and the like, which is not limited herein.
When the user wears the massage instrument, and after the distance between the neck massage instrument and the mobile terminal is detected to exceed the preset threshold value, the neck massage instrument sends a first control instruction to the mobile terminal to control the mobile terminal to forward an incoming call to the neck massage instrument, so that the neck massage instrument answers the incoming call, and the user can communicate through the neck massage instrument when wearing the neck massage instrument.
Step S26: and if the distance does not exceed the preset threshold, the neck massager sends a second control instruction to the mobile terminal to control the mobile terminal to connect the incoming call.
If the distance between the neck massager and the mobile terminal does not exceed the preset threshold, the mobile terminal can be judged to be very close to the user and be around the user. And at the moment, the neck massager sends a second control instruction to the mobile terminal to control the mobile terminal to connect the incoming call.
In an embodiment, in order to prevent that a user cannot normally talk due to too small sound after a mobile terminal is connected, after an incoming call is connected through the mobile terminal, the volume of the connected incoming call can be further judged, and if the volume is smaller than the preset volume value, the neck massager sends a third control instruction to the mobile terminal to control the mobile terminal to adjust the volume so that the volume is larger than or equal to the preset volume. Specifically, the preset volume value is a volume value which enables a user to hear sound clearly, and if the current volume value is smaller than the preset volume value, the neck massager controls the mobile terminal to adjust the sound in order to enable the user to communicate normally. In an embodiment, in the process of adjusting the sound volume of the mobile terminal, the neck massager may continuously detect the sound until the volume is adjusted to be greater than or equal to the preset volume value.
According to the call answering method of the neck massager, the distance between the mobile terminal and the user is judged according to the distance by detecting the distance between the neck massager and the mobile terminal, if the distance between the mobile terminal and the user is short, the neck massager controls the mobile terminal to put through an incoming call and adjusts the volume of the mobile terminal to a preset volume value, and if the distance between the mobile terminal and the user is long, the neck massager controls the mobile terminal to switch the incoming call to the neck massager to answer. Therefore, the user can be prevented from interrupting the use of the neck massage instrument when the user takes the mobile phone to answer the call.
It can be understood that, in an embodiment, if the mobile terminal is closer to the user, the neck massager may also control the mobile terminal to forward the incoming call to the neck massager for answering. However, in order to reduce the memory and processor loss in the neck massager, the neck massager may control the mobile terminal to connect an incoming call and control the mobile terminal to adjust the call volume to a preset volume value that can be heard by the user when the mobile terminal is closer to the user.
Fig. 3 is a schematic flow chart of a telephone answering method of the neck massager according to a second embodiment of the present invention. The method comprises the following steps:
step S31: and the mobile terminal is connected with the neck massager.
The mobile terminal is connected with the neck massager, in one embodiment, the mobile terminal can be connected with the neck massager, specifically, the mobile terminal acquires the device ID of the neck massager, each device is endowed with a unique device identifier when leaving a factory, the device identifier is not shared by other devices, and after the mobile terminal acquires the device ID of the neck massager, the device ID is used as an index when data is transmitted and received, so that information transmission is completed. In another embodiment, the mobile terminal may establish a wireless network connection with the neck massager, and specifically, the mobile terminal may establish a wireless connection with the neck massager through one or any combination of bluetooth network technology, Near Field Communication (NFC), ultra wideband technology (UWB), Wi-Fi, and ZigBee network technology.
It can be understood that, if the neck massager supports the wireless connection function, the wireless connection mode is preferentially selected when the mobile terminal is connected with the neck massager, and if the neck massager does not support the wireless connection function, the device connection can be realized by using the respective device ID as an index when the mobile terminal is connected with the neck massager. Of course, in an embodiment, the wireless connection and the device connection may also be established between the neck massager and the mobile terminal, which is not limited specifically as long as the information transmission between the neck massager and the mobile terminal is realized.
Step S32: when an incoming call is received by the mobile terminal, the mobile terminal receives a control instruction from the neck massage instrument so as to transfer the incoming call to the neck massage instrument or answer the incoming call by itself according to the control instruction.
Specifically, when the mobile terminal receives an incoming call, if a first control instruction from the neck massager is received, the mobile terminal switches the incoming call to the neck massager, so that the neck massager answers the incoming call. And when the mobile terminal receives a second control instruction from the neck massage instrument, the mobile terminal automatically connects the incoming call. And when the mobile terminal receives the third control instruction, the mobile terminal adjusts the current call volume to be greater than or equal to the preset volume value audible to the user.
According to the call answering method of the neck massager, the distance between the mobile terminal and the user is judged according to the distance by detecting the distance between the neck massager and the mobile terminal, if the distance between the mobile terminal and the user is short, the neck massager controls the mobile terminal to put through an incoming call and adjusts the volume of the mobile terminal to a preset volume value, and if the distance between the mobile terminal and the user is long, the neck massager controls the mobile terminal to switch the incoming call to the neck massager to answer. Therefore, the user can be prevented from interrupting the use of the neck massage instrument when the user takes the mobile phone to answer the call.
Fig. 4 is a schematic structural view of a neck massager according to an embodiment of the present invention. The neck massager comprises a massager body, a massage assembly, a position detection sensor and a control circuit.
Specifically, the massage assembly and the position detection sensor are arranged on the body of the massage instrument, and the control circuit is arranged on the body of the massage instrument and is electrically coupled with the massage assembly and the position detection sensor.
The massage apparatus body of the neck massage apparatus in this embodiment includes anelastic arm 100, afirst handle 130, and asecond handle 140. The massage assembly includes aconductive silicone part 120 and an electric pulse generating device (not shown) electrically connected to theconductive silicone part 120. The control circuit of the neck massager is coupled with the massage component (the electric pulse generating device electrically connected with the conductive silica gel part 120) and the position detection sensor, and is used for controlling the massage component and the position detection sensor to realize the call answering method of the neck massager shown in figures 1 to 2. The position detection sensor may be located at the position of thefirst handle 130, or may be located at the position of thesecond handle 140, or the position detection sensor may also be located at the position of theelastic arm 100, which is not limited specifically as long as the position detection of the neck massager is enabled.
According to the call answering method implemented by the neck massager, the distance between the mobile terminal and the user is judged according to the distance by detecting the distance between the neck massager and the mobile terminal, if the distance between the mobile terminal and the user is short, the neck massager controls the mobile terminal to put through an incoming call and adjusts the volume of the mobile terminal to a preset volume value, and if the distance between the mobile terminal and the user is long, the neck massager controls the mobile terminal to switch the incoming call to the neck massager for answering. Therefore, the user can be prevented from interrupting the use of the neck massage instrument when the user takes the mobile phone to answer the call.
Referring to fig. 5, a schematic diagram of a mobile terminal structure according to the present invention includes amemory 52 and aprocessor 51, which are connected to each other.
Thememory 52 is used for storing program instructions for implementing any one of the above-described telephone answering methods for the neck massager.
Theprocessor 51 is operative to execute program instructions stored in thememory 52.
Theprocessor 51 may also be referred to as a CPU (Central Processing Unit). Theprocessor 51 may be an integrated circuit chip having signal processing capabilities. Theprocessor 51 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Thememory 52 can be a memory bank, a TF card, etc., and can store all information of the neck massager and the terminal, including the input original data, the computer program, the intermediate operation result and the final operation result, and store the information in the memory. It stores and retrieves information based on the location specified by the controller. With the memory, the mobile terminal has a memory function and can work normally. The memory of the mobile terminal is classified into a main memory (internal memory) and an auxiliary memory (external memory) according to the purpose, and there is a classification method into an external memory and an internal memory. The external memory is usually a magnetic medium, an optical disk, or the like, and can store information for a long period of time. The memory refers to a storage component on the main board, which is used for storing data and programs currently being executed, but is only used for temporarily storing the programs and the data, and the data is lost when the power is turned off or the power is cut off.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a system server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present application.
Please refer to fig. 6, which is a schematic structural diagram of a computer-readable storage medium according to the present invention. The computer readable storage medium of the present application stores aprogram file 61 capable of implementing the telephone answering method of all the above-mentioned neck massage apparatuses, wherein theprogram file 61 may be stored in the storage medium in the form of a software product, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present application. The aforementioned storage device includes: various media capable of storing program codes, such as a usb disk, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or terminal devices, such as a computer, a server, a mobile phone, and a tablet.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.