Anti-fall reminder method, device and computer-readable storage medium
Through the inertial sensing module in the headset, it is possible to determine whether the user is in a fall state and output reminders, which solves the risk of TWS headset users dozing off and falling in transportation and improves safety.
Patent Information
- Application Number
- CN202111554449.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-17
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2041-12-17
AI Technical Summary
The risk of falling and injury caused by sudden changes in the movement status of vehicles is difficult to effectively prevent and remind the existing technology.
Monitor inertial sensing data through the inertial sensing module in the headphones, analyze the change trend of gravity acceleration, determine whether the wearer is in a fall state, and output anti-fall reminder information when determining the fall.
It realizes the timely detection of fall risks and issuance of reminders when users doze while wearing headphones, avoiding falling and injury caused by sudden changes in the movement state of the vehicle, and improving safety.
Smart Images

Figure CN114267152B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of anti-fall reminder, and in particular to an anti-fall reminder method, device and computer-readable storage medium. Background Art
[0002] True Wireless Stereo (TWS) Bluetooth headsets have developed rapidly recently and have become a new hot spot in the field of headsets. The product form factor is two independent headsets that are synchronized wirelessly via Bluetooth. TWS headsets are connected to smart terminals via Bluetooth technology to achieve a stereo experience for listening to music and making calls. Due to the convenience of TWS headsets, more and more people are starting to use TWS headsets, such as when taking public transportation.
[0003] However, if users fall asleep while using TWS headphones, especially when listening to music, news, etc. while riding in public transportation, they may easily fall and get injured due to sudden changes in the movement state of the vehicle. Summary of the invention
[0004] The main purpose of the present invention is to provide an anti-fall reminder method, device and computer-readable storage medium, aiming to solve the technical problem of users falling and getting injured due to dozing off while using headphones.
[0005] To achieve the above object, the present invention provides an anti-fall reminder method, which comprises the following steps:
[0006] Get the connection status between the headset and the matching charging box;
[0007] When the connection status between the earphone and the charging box is disconnected, obtain the wearing status of the earphone;
[0008] When the wearing state of the earphone is worn, periodically acquiring first motion data collected by an inertial sensor module in the earphone;
[0009] determining, according to the first motion data, whether the headphone wearer is in a falling state;
[0010] When the headphone wearer is in a falling state, the headphone outputs anti-fall reminder information.
[0011] Optionally, the step of obtaining the connection status between the earphone and the matching charging box includes:
[0012] Detect whether the earphones are communicating with the charging box or are charging;
[0013] If the earphone and the charging box maintain communication or charging, determine that the connection status between the earphone and the charging box is connected;
[0014] If the earphone loses communication with the charging box or charging is disconnected, it is determined that the connection state between the earphone and the charging box is not connected.
[0015] Optionally, after the step of obtaining the connection status between the earphone and the matching charging box, the method further includes:
[0016] When the connection status between the earphone and the charging box is connected, control the earphone to communicate with the charging box periodically;
[0017] After detecting an out-of-box signal or a signal interruption of a distance measuring sensor module in the earphone, it is determined that the connection state between the earphone and the charging box is not connected.
[0018] Optionally, the step of obtaining the wearing status of the headset includes:
[0019] Obtain the sensing distance of the nearest obstacle of the headset detected by the ranging sensor module in the headset;
[0020] If the sensing distance is greater than a first preset limit, determining that the wearing state of the earphone is not worn;
[0021] If the sensing distance is less than or equal to the first preset limit, obtaining second motion data collected by the inertial sensing module;
[0022] When the second motion data meets the preset human action state data standard, it is determined that the wearing state of the earphone is worn.
[0023] Optionally, the step of determining whether the headphone wearer is in a falling state according to the first motion data includes:
[0024] Acquire an acceleration component of the earphone in a direction of gravity acceleration according to the first motion data;
[0025] When the acceleration component value is greater than the second preset limit value for a duration greater than a preset duration, it is determined that the headphone wearer is in a falling state.
[0026] Optionally, before the step of determining that the headphone wearer is in a falling state, the method further includes:
[0027] Determining whether the change trend of the acceleration component is monotonically increasing within the duration greater than the preset duration;
[0028] If the variation trend of the acceleration component is monotonically increasing, the step of determining that the headphone wearer is in a falling state is performed.
[0029] Optionally, the step of outputting anti-fall reminder information based on the earphone includes:
[0030] Playing a preset first prompt tone based on the main earphone;
[0031] Controlling the secondary earphone to play a preset second prompt tone based on the primary earphone;
[0032] The anti-fall reminder information is uploaded to a smart terminal that establishes a wireless connection with the headset.
[0033] Optionally, after the step of outputting the anti-fall reminder information based on the earphone, the method further includes:
[0034] When receiving the reminder termination instruction sent by the smart terminal, stopping the main earphone from playing the first prompt tone, and stopping the auxiliary earphone from playing the second prompt tone;
[0035] or,
[0036] After receiving a cancel signal of the main button of the headset, the main headset stops playing the first prompt tone, and the auxiliary headset stops playing the second prompt tone.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also proposes a device, which includes: a memory, a processor, an inertial sensor module, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the anti-fall reminder method described above are implemented.
[0038] In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the anti-fall reminder method described above are implemented.
[0039] The present invention uses an inertial sensor module in the earphone to monitor the inertial sensor module data during the use of the earphone, analyzes the acceleration change trend of the earphone in the direction of gravity acceleration, and determines the fall state of the earphone wearer. When it is determined that the earphone wearer is in a fall state, anti-fall reminder information is output based on the earphone. When the user dozes off while wearing the earphone, the earphone can detect in time that the user is at risk of falling and issue an anti-fall reminder in time, reminding the user to regain consciousness and wake up, thereby preventing the user from falling and getting injured due to a sudden change in the motion state of a vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a schematic diagram of the structure of a terminal device in a hardware operating environment involved in an embodiment of the present invention;
[0041] Figure 2 This is a schematic diagram of the flow chart of the first embodiment of the anti-fall reminder method of the present invention;
[0042] Figure 3 This is a measurement diagram when the acceleration sensor is placed horizontally;
[0043] Figure 4for Figure 1 A detailed flow chart of obtaining the connection status between the earphone and the matching charging box in step S10;
[0044] Figure 5 for Figure 1 A detailed flow chart of obtaining the wearing status of the headset in step S20;
[0045] Figure 6 for Figure 1 A detailed flow chart of step S40 for determining whether the headphone wearer is in a falling state;
[0046] Figure 7 This is a schematic diagram of the acceleration sensor measurement when the wearer's head is normally raised;
[0047] Figure 8 This is a schematic diagram of the acceleration sensor measurement when the wearer's head is deflected;
[0048] Fig. 9 for Figure 1 Schematic diagram of detailed flow of step S50 outputting anti-fall reminder information based on earphones;
[0049] Fig.10 This is a schematic diagram of the connection status between the two earphones of the TWS earphone and between the TWS earphone and the smart terminal.
[0050] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0052] TWS earphones are developing rapidly and are becoming more and more popular among users. When riding public transportation, users often use earphones to listen to music or watch videos to relax themselves. It is easy to doze off in a relaxed state. If the movement state of the vehicle changes suddenly (such as sudden braking, sharp turns), users are very likely to fall and get injured.
[0053] Reminding users through headphones is one of the effective ways to solve the above problems. The general reminder technology uses a gravity sensor module to send a reminder when the user's head is lowered. Due to the complexity of the user's head movement in actual application scenarios, it is easy to cause false triggering.
[0054] The main solution of the embodiment of the present invention is: through the inertial sensor module in the earphone, the inertial sensor module data of the earphone is monitored during use, the acceleration change trend of the earphone in the direction of gravity acceleration is analyzed, and the fall state of the earphone wearer is judged. When it is determined that the earphone wearer is in a fall state, anti-fall reminder information is output based on the earphone. When the user dozes off while wearing the earphone, the earphone detects in time that the user is at risk of falling and issues an anti-fall reminder in time to remind the user to regain consciousness and wake up, avoiding the user from falling and getting injured due to a sudden change in the motion state of the vehicle. And it can be seen from the embodiment of the present invention that the different tilt states of the user's head will not affect the accuracy of the anti-fall reminder output based on the earphone.
[0055] Reference Figure 1 , Figure 1 A schematic diagram of the terminal device structure of the hardware operating environment involved in the embodiment of the present invention.
[0056] like Figure 1 As shown, the terminal device can be a wearable terminal device such as a TWS headset, and may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005, and an inertial sensor module 1006. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or it may be a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001. The inertial sensor module 1006 may be an inertial measurement unit composed of an acceleration sensor, an angular velocity sensor, and a single-axis, dual-axis, or triple-axis combination thereof, or an attitude reference system including a magnetic sensor.
[0057] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the terminal device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0058] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and an anti-fall reminder program.
[0059] exist Figure 1 In the terminal device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the terminal device of the present invention can be set in the terminal device, and the terminal device calls the anti-fall reminder program stored in the memory 1005 through the processor 1001, and executes the anti-fall reminder method provided by the embodiment of the present invention.
[0060] The embodiment of the present invention provides an anti-fall reminder method, referring to Figure 2 , Figure 2 The figure is a flow chart of a first embodiment of a fall prevention reminder method of the present invention.
[0061] In this embodiment, the anti-fall reminder method includes:
[0062] Step S10, obtaining the connection status between the earphone and the matching charging box;
[0063] The earphones can be TWS earphones. The product form of TWS earphones is two independent earphones (main earphone and auxiliary earphone). TWS earphones generally establish a wireless connection (such as Bluetooth connection) with the successfully paired smart terminal. The smart terminal connects to the main earphone, and the main earphone and the auxiliary earphone are synchronized via Bluetooth wireless, which can achieve a stereo experience of listening to music and making calls. In order to facilitate users to carry and charge, TWS earphones are often equipped with a matching charging box.
[0064] The earphone contains a ranging sensor module, such as an infrared sensor, a microwave sensor, etc. In one embodiment of the earphone of the present application, an infrared sensor is arranged in the earphone, and the infrared sensor includes an infrared transmitter and a matching infrared receiver. When the earphone performs ranging, the infrared transmitter is used to transmit the original infrared signal to the periphery of the earphone, and the infrared receiver is used to receive the feedback infrared signal of the original infrared signal reflected by an external obstacle.
[0065] The connection status between the earphones and the matching charging box includes connected and disconnected. When the earphones are placed in the matching charging box, the earphones can maintain a communication connection with the charging box by receiving the signal reflected back by the inner wall of the charging box from the infrared sensor. Both the earphones and the charging box contain charging interfaces, and when their charging interfaces are in contact, both remain in a charging state. When the earphones are in the box, the earphones maintain a communication connection or a charging connection with the matching charging box, and it can be determined that the two are in a connected state; when the earphones are not in the box, the earphones and the matching charging box are disconnected from communication or charging, and it can be determined that the two are in a disconnected state.
[0066] Step S20, when the connection status between the earphone and the charging box is disconnected, obtaining the wearing status of the earphone;
[0067] Specifically, when the user takes the earphone out of the charging box, the earphone and the charging box are in a disconnected state. After taking out the earphone, the user may not use the earphone immediately, and the anti-fall reminder function of the earphone can only be realized when the user wears the earphone. Therefore, it is necessary to judge the wearing state of the earphone, and the wearing state of the earphone is divided into not worn and worn.
[0068] After the user wears the headset, there is a distance between the distance measuring sensor module of the headset and the ear canal of the user, and the first preset limit value can be set based on this distance, for example, this distance is used as the first preset limit value. Different users have different ear shapes and headset wearing habits. The user can set the above-mentioned first preset limit value through a smart terminal connected to the headset, and the embodiment of the present invention is not limited to this.
[0069] Specifically, in the process of obtaining the wearing status of the earphone, the sensing distance of the nearest obstacle of the earphone is first detected by the distance measuring sensor module. When the sensing distance is less than or equal to the first preset limit, the wearing status of the earphone is predicted to be worn. At this time, in order to further determine the wearing status of the earphone, the second motion data collected by the inertial sensor module needs to be obtained. When the above second motion data matches the human body action status data standard, the wearing status of the earphone is determined to be worn.
[0070] Step S30, when the wearing state of the earphone is worn, periodically acquiring first motion data collected by an inertial sensor module in the earphone;
[0071] The inertial sensor module contains inertial sensors, which can mainly detect and measure acceleration, tilt, shock, vibration, rotation and multi-degree-of-freedom motion, and are important components for solving navigation, orientation and motion carrier control. Inertial sensors include acceleration sensors, angular velocity sensors, and their single-, dual- and tri-axis combinations of inertial measurement units, and attitude reference systems containing magnetic sensors.
[0072] The inertial sensor module in this embodiment is an acceleration sensor that can measure three-axis acceleration. The first motion data collected by the inertial sensor module includes acceleration data of the acceleration sensor on its three coordinate axes. Figure 3 When the accelerometer is placed horizontally, the acceleration in the X, Y, and Z directions that can be measured corresponds to the front, back, left, right, and up and down in the real sense. Depending on the installation method of the accelerometer in the headset, the direction corresponding to its measurement axis will change.
[0073] Step S40, judging whether the headphone wearer is in a falling state according to the first motion data;
[0074] When the headphone wearer is in a falling state, the human body will experience a monotonically increasing acceleration in the direction of gravity acceleration due to inertia.
[0075] After determining that the earphone is in a worn state, the earphone and the head of the earphone wearer are in basically the same motion state, and the acceleration change of the head of the earphone wearer can be inferred from the acceleration change of the earphone. By analyzing and processing the first motion data obtained by the earphone detection, the acceleration change trend of the earphone in the direction of gravity acceleration can be obtained, thereby judging the fall state of the earphone wearer.
[0076] Step S50: When the headphone wearer is in a falling state, anti-fall reminder information is output based on the headphone.
[0077] The headset can play a reminder tone to remind you of falling, or it can connect to a smart terminal to upload the reminder information to the smart terminal, which will then remind you of falling. Users can also cancel the reminder through the headset or the smart terminal.
[0078] In this embodiment, the connection status between the earphone and the matching charging box is first determined. When the earphone and the matching charging box are in a disconnected state, the wearing state of the earphone is obtained. When the wearing state of the earphone is worn, the inertial sensor module data of the earphone during use is monitored, and the acceleration change trend of the earphone in the direction of gravity acceleration is analyzed to determine the fall state of the wearer of the earphone. When it is determined that the wearer of the earphone is in a fall state, anti-fall reminder information is output based on the earphone. In this way, it is possible to accurately identify whether the earphone is worn in the user's ear canal in terms of the connection status between the earphone and the charging box and the wearing state of the earphone. When it is determined that the user is wearing the earphone, the first motion data of the associated user's head motion state is continuously monitored. When it is determined based on the first motion data that the user is dozing off and in a fall state, the earphone can issue an anti-fall reminder in time to avoid the user from falling and getting injured due to a sudden change in the motion state of the vehicle.
[0079] Further, in another embodiment of the anti-fall reminder method of the present invention, referring to Figure 4 Step S10 obtains the connection status between the earphone and the matching charging box, including:
[0080] Step S11, detecting whether the earphone is communicating with the charging box or is charging;
[0081] The distance measuring sensor module in the earphone, such as an infrared sensor, includes an infrared transmitter and a matching infrared receiver. When the earphone is measuring distance, the infrared transmitter is used to transmit the original infrared signal to the periphery of the earphone, and the infrared receiver is used to receive the feedback infrared signal reflected by the original infrared signal from external obstacles. Specifically, when the earphone is in the box, the original infrared signal hits the inner wall of the charging box to generate a feedback infrared signal, and the earphone maintains a communication connection with the charging box.
[0082] When the earphones are connected to the charging port of the charging box, the earphones are in charging state.
[0083] Step S12, if the earphone and the charging box maintain communication or charging, determine that the connection status between the earphone and the charging box is connected;
[0084] When the earphone is in the box, the received feedback infrared signal is basically unchanged. If the feedback infrared signal remains unchanged, the earphone and the charging box maintain a communication connection. If the earphone is in a charging state, the charging connection is maintained with the charging box. If either the communication connection or the charging connection is maintained, it can be determined that the connection state between the earphone and the charging box is connected.
[0085] Step S13, if the earphone is disconnected from the charging box or the charging is disconnected, determining that the connection state between the earphone and the charging box is disconnected;
[0086] When the feedback infrared signal received by the earphone changes, specifically, the distance detected by the infrared sensor increases or no feedback infrared signal is received within a sampling period, the earphone and the charging box are disconnected from each other. When the charging interface of the earphone and the charging box is disconnected, the earphone and the charging box are disconnected from each other. When either the communication connection or the charging connection is disconnected, the connection state between the earphone and the charging box can be determined to be disconnected.
[0087] Step S14, when the connection status between the earphone and the charging box is connected, controlling the earphone to periodically communicate with the charging box;
[0088] When the connection status between the earphones and the charging box is connected, the subsequent anti-fall reminder steps will not be performed. At this time, it is necessary to continuously monitor the communication status between the earphones and the charging box to ensure that the communication interruption is discovered in time so that the subsequent steps can proceed smoothly.
[0089] Step S15, after detecting the out-of-box signal or the signal interruption of the distance measuring sensor module in the earphone, determine that the connection status between the earphone and the charging box is not connected.
[0090] Specifically, when the earphone is disconnected from the charging interface of the charging box, the charging process is interrupted, and the change from charging to charging interruption generates a box signal.
[0091] When the earphones are in the charging box, the distance detected by the infrared sensor is always a fixed value because the earphones and the charging box remain relatively still. After the earphones are out of the box, the time it takes for the infrared sensor to receive the infrared signal reflected back will become longer. If the reflected signal cannot be received within a sampling period, it can be regarded as a signal interruption of the ranging sensor module in the earphones.
[0092] In this embodiment, obtaining the connection status between the earphone and the matching charging box is the basis for subsequently judging the wearing status of the earphone. After determining that the earphone and the charging box are in a disconnected state, judging the wearing status of the earphone can avoid the false triggering of the anti-fall reminder of the earphone in the charging box.
[0093] Further, in another embodiment of the anti-fall reminder method of the present invention, referring to Figure 5 Step S20 obtains the wearing status of the headset, including:
[0094] Step S21, obtaining the sensing distance of the nearest obstacle of the headset detected by the distance measuring sensor module in the headset;
[0095] The distance measuring sensor module contains a distance measuring sensor, which may include one or more of an ultrasonic distance measuring sensor, a laser distance measuring sensor, an infrared distance measuring sensor and a 24 GHz radar distance measuring sensor. The distance measuring sensor module in this embodiment is an infrared distance measuring sensor.
[0096] The infrared ranging sensor has a pair of infrared signal transmitter and receiver. The transmitter transmits infrared signals of a specific frequency, and the receiver receives infrared signals of this frequency. When the infrared detection direction encounters an obstacle, the infrared signal is reflected back and received by the receiver. The distance is calculated after processing the time difference data between reception and transmission.
[0097] When the user wears the headset, the nearest obstacle to the headset is the user's ear canal. The distance between the infrared sensor of the headset and the user's ear canal is set to a first preset limit, and the wearing state of the headset can be preliminarily determined by comparing the sensing distance of the nearest obstacle to the headset with the first preset limit.
[0098] Step S22, if the sensing distance is greater than a first preset limit, determining that the wearing state of the earphone is not worn;
[0099] Specifically, when the user takes the earphones out of the charging box and places the earphones on a desk or in a drawer, the sensing distance is greater than the first preset limit value, and the wearing state of the earphones is not worn.
[0100] Step S23, if the sensing distance is less than or equal to the first preset limit, obtaining second motion data collected by the inertial sensing module;
[0101] Specifically, when the user takes the earphones out of the charging box, such as putting the earphones in a pocket or holding them in the hand, and the end of the earphones equipped with the infrared sensor is close to an obstacle, the above-mentioned sensing distance may be less than or equal to the first preset limit. In order to determine the specific wearing condition of the earphones, further analysis should be conducted in combination with the inertial sensor module data.
[0102] The second motion data collected by the inertial sensor module includes acceleration data of the acceleration sensor on three measurement axes.
[0103] Step S24: when the second motion data meets the preset human action state data standard, determining that the wearing state of the earphone is worn.
[0104] The human action state data standard includes acceleration data or acceleration change law data of the human body when performing various daily activities. In the process of judging the wearing state of the earphone, the collected second motion data is continuously matched with the data in the human action state data standard, and when a match is hit, it is determined that the wearing state of the earphone is worn.
[0105] In this embodiment, the data from the ranging sensor module is first analyzed to preliminarily determine the wearing status of the earphone. If necessary, the movement status of the earphone is analyzed in combination with the data from the inertial sensor module. This can more accurately determine the wearing status of the earphone, thereby avoiding the false triggering of the anti-fall reminder when the user is not wearing the earphone but only storing the earphone.
[0106] Further, in another embodiment of the anti-fall reminder method of the present invention, referring to Figure 6 Step S40 determines whether the headphone wearer is in a falling state, including:
[0107] Step S41, obtaining an acceleration component of the earphone in a direction of gravity acceleration according to the first motion data;
[0108] In this embodiment, refer to Figure 7 Inside the earphone, the measurement coordinate axis of the acceleration sensor chip attached to the earphone motherboard is different from the coordinate axis when it is placed horizontally. The earphone is placed in the ear of the wearer. When the wearer's head is raised normally, the direction toward the ear canal is the X axis, and the direction perpendicular to the ground is the Y axis.
[0109] When the headphone wearer raises his head normally, the Y-axis direction coincides with the direction of gravity acceleration, so the acceleration in the Y-axis direction is the acceleration component that needs to be obtained.
[0110] When the headphone wearer's head is in a tilted state for a long time, refer to Figure 8 The acceleration component in the direction of gravity acceleration can be calculated by the tilt angle of the head of the current headphone wearer on the vertical plane and the acceleration of the Y axis. In the figure, α is the tilt angle of the wearer's head on the vertical plane, g is the gravity acceleration, Ax is the acceleration in the X-axis direction, and Ay is the acceleration in the Y-axis direction.
[0111] Specifically, α is an unknown quantity that needs to be calculated, and Ax and Ay are the measurement data of the acceleration sensor, which are known quantities. According to the relationship between Ax, Ay and g, Ax=g sinα and Ay=g cosα. Transforming the two equations, we can get g=Ax / sinα and g=Ay / cosα. g is a constant. The two equations can be transformed into Ax / sinα=Ay / cosα. Transforming the equation again, we can get Ax / Ay=sinα / cosα. According to the trigonometric function relationship tanα=sinα / cosα, we can get Ax / Ay=tanα, and α=arctan(Ax / Ay).
[0112] When the head of the headphone wearer is tilted not only in the XY plane, the above tilt angle formula can be further expanded to the tilt angle formula under three-axis angle α=arctan(√(Ax^2+Az^2) / Ay).
[0113] Step S42, when the acceleration component value is greater than the second preset limit value for a duration greater than the preset duration, determining whether the change trend of the acceleration component is monotonically increasing within the duration greater than the preset duration;
[0114] The duration is the time from when the above-mentioned acceleration component is greater than the second preset limit value to when the above-mentioned acceleration component is less than or equal to the second preset limit value. The preset duration can be the duration set by the system by default, or it can be the duration set by the user according to his own situation, habits or the scene he is in. The embodiment of the present invention does not limit this.
[0115] When a person is in a falling state, the above acceleration component increases monotonically. When a user wears headphones, the acceleration change of the headphones is basically the same as the acceleration change of the user's head. Therefore, whether the acceleration change trend of the headphones is also monotonically increasing is one of the bases for judging the falling state.
[0116] Step S43, if the variation trend of the acceleration component is monotonically increasing, it is determined that the headphone wearer is in a falling state;
[0117] The acceleration component value of the human body in the direction of gravity acceleration when about to fall is set to a second preset limit value. In this embodiment, the second preset limit value is 0.3g (g is gravity acceleration). When the acceleration component value measured by the acceleration sensor in the headset is greater than 0.3g and the duration is greater than the preset time, it is determined that the wearer of the headset is in a falling state.
[0118] In this embodiment, the tilt state of the headphone wearer's head does not affect the measurement of the above-mentioned acceleration component by the acceleration sensor in the earphone. It can adapt to different situations when the user uses the earphone, accurately simulate the acceleration change scenario of the earphone when the user falls, and improve the accuracy of anti-fall reminders.
[0119] Further, in another embodiment of the anti-fall reminder method of the present invention, referring to Fig. 9 Step S50 outputs anti-fall reminder information based on the earphone, including:
[0120] Step S51, playing a preset first prompt tone based on the main earphone;
[0121] After determining that the wearer of the headset is in a falling state, the main headset plays a preset anti-fall reminder tone, which can be configured by the user. There is a certain delay between the main and auxiliary headsets, and the sound played by the main headset is defined as the first reminder tone.
[0122] Step S52, controlling the secondary earphone to play a preset second prompt tone based on the primary earphone;
[0123] Reference Fig.10 , Right earbud (default Master) indicates the right earbud (default master earbud), and Left earbud (default slave) indicates the left earbud (default slave earbud). There are AVRCP (Audio / Video Remote Control Profile, audio / video remote control specification), A2DP (Advanced Audio Distribution Profile, Bluetooth audio transmission model agreement), and SCO (Synchronous Connection Oriented link) connections between the master and slave earbuds. Through these connections, the master earbud transmits audio information to the slave earbud, controls the slave earbud to play prompt sounds, and achieves stereo playback effects for left and right ears. There is a certain delay between the master and slave earbuds, and the sound played by the slave earbud is defined as the second prompt tone.
[0124] Step S53, uploading the anti-fall reminder information to the smart terminal that establishes a wireless connection with the headset;
[0125] Reference Fig.10The headset and the smart terminal can be connected through BLE (Bluetooth Low Energy) technology. BLE technology is a low-cost, short-range, interoperable and robust wireless technology that works in the unlicensed 2.4GHz ISM radio frequency band (Industrial Scientific Medical Band) and uses many intelligent means to minimize power consumption. At the same time, there are A2DP, AVRCP, and HFP (Hands-Free Profile, a specification for Bluetooth devices to control calls) between the main headset and the smart terminal to achieve audio transmission between the headset and the smart terminal and headset control of smart terminal audio playback / stop, answering / hanging up calls, etc.
[0126] An application that matches the headset can be installed on the smart terminal, and the user can receive anti-fall reminder information through the application and control the headset to play reminder sounds.
[0127] Step S54, when receiving the reminder termination instruction sent by the smart terminal, stopping the main earphone from playing the first prompt tone, and stopping the auxiliary earphone from playing the second prompt tone;
[0128] The user cancels the anti-fall reminder on the smart terminal by operating the smart terminal. When the user chooses to cancel the anti-brushing reminder of the earphone through the smart terminal, after the user operates on the smart terminal, the smart terminal sends a reminder termination instruction to the earphone, and the main earphone stops playing the first prompt tone after receiving the cancellation instruction, and the main earphone controls the secondary earphone to stop playing the second prompt tone.
[0129] Step S55, after receiving the cancel signal of the headphone body button, stop the main headphone from playing the first prompt tone, and stop the auxiliary headphone from playing the second prompt tone.
[0130] There is a button control part on the headset body. After the user presses the button, the main headset stops playing the first prompt tone, and the main headset controls the auxiliary headset to stop playing the second prompt tone. In addition, in one embodiment, the first prompt tone and the second prompt tone can be the same.
[0131] In this embodiment, the carrier of the anti-fall reminder information can not only be the sound played by the headphones, but also the light or vibration emitted by the smart terminal. Anti-fall reminders are performed in multiple ways, which increases the probability of reminding the user to regain consciousness or wake up, and enhances the effect of anti-fall reminders.
[0132] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0133] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0134] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0135] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A fall prevention reminder method, characterized in that: The anti-fall reminder method comprises the following steps: Get the connection status between the headset and the matching charging box; When the connection status between the earphone and the charging box is disconnected, obtain the wearing status of the earphone; When the wearing state of the earphone is worn, periodically acquiring first motion data collected by an inertial sensor module in the earphone; determining, according to the first motion data, whether the headphone wearer is in a falling state; The step of determining whether the headphone wearer is in a falling state according to the first motion data includes: Acquire an acceleration component of the earphone in a direction of gravity acceleration according to the first motion data; When the acceleration component value is greater than the second preset limit value for a duration greater than a preset duration, it is determined that the headphone wearer is in a falling state, wherein the preset duration is a duration set by the system by default, or a duration set by the user according to his / her own condition, habit or scene; When the headphone wearer is in a falling state, the headphone outputs anti-fall reminder information.
2. The anti-fall reminder method according to claim 1, characterized in that: The step of obtaining the connection status between the earphone and the matching charging box includes: Detect whether the earphones are communicating with the charging box or are charging; If the earphone and the charging box maintain communication or charging, determine that the connection status between the earphone and the charging box is connected; If the earphone loses communication with the charging box or charging is disconnected, it is determined that the connection state between the earphone and the charging box is not connected.
3. The anti-fall reminder method according to claim 2, characterized in that: After the step of obtaining the connection status between the earphone and the matching charging box, the method further includes: When the connection status between the earphone and the charging box is connected, control the earphone to communicate with the charging box periodically; After detecting an out-of-box signal or a signal interruption of a distance measuring sensor module in the earphone, it is determined that the connection state between the earphone and the charging box is not connected.
4. The anti-fall reminder method according to claim 1, characterized in that: The step of obtaining the wearing status of the headset comprises: Obtain the sensing distance of the nearest obstacle of the headset detected by the ranging sensor module in the headset; If the sensing distance is greater than a first preset limit, determining that the wearing state of the earphone is not worn; If the sensing distance is less than or equal to the first preset limit, obtaining second motion data collected by the inertial sensing module; When the second motion data meets the preset human action state data standard, it is determined that the wearing state of the earphone is worn.
5. The anti-fall reminder method according to claim 1, characterized in that: Before the step of determining that the headphone wearer is in a falling state, the method further includes: Determining whether the change trend of the acceleration component is monotonically increasing within the duration greater than the preset duration; If the variation trend of the acceleration component is monotonically increasing, the step of determining that the headphone wearer is in a falling state is performed.
6. The anti-fall reminder method according to any one of claims 1 to 5, characterized in that: The step of outputting anti-fall reminder information based on the earphone includes: Playing a preset first prompt tone based on the main earphone; Controlling the secondary earphone to play a preset second prompt tone based on the primary earphone; The anti-fall reminder information is uploaded to a smart terminal that establishes a wireless connection with the headset.
7. The anti-fall reminder method according to claim 6, characterized in that: After the step of outputting the anti-fall reminder information based on the earphone, the method further includes: When receiving the reminder termination instruction sent by the smart terminal, stopping the main earphone from playing the first prompt tone, and stopping the auxiliary earphone from playing the second prompt tone; or, After receiving a cancel signal of the main button of the headset, the main headset stops playing the first prompt tone, and the auxiliary headset stops playing the second prompt tone.
8. An anti-fall reminder device, characterized in that: include: A memory, a processor, an inertial sensor module, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the anti-fall reminder method as claimed in any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the anti-fall reminder method according to any one of claims 1 to 7 are implemented.
