Cup interaction method, device, cup and computer-readable storage medium
By integrating sensors into the cup to obtain motion data, determine the usage status, and send the status through the binding mechanism, the problem that existing cups cannot monitor and convey the user's drinking water situation in real time, and the function of mutual understanding and reminding of the cup status between users is realized.
Patent Information
- Application Number
- CN201910968768.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-12
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2039-10-12
AI Technical Summary
Existing cups cannot monitor and communicate in real time whether users drink water on time, especially for distant relatives, friends or patients with disease.
Interactive prompts are achieved by integrating sensors (such as three-axis acceleration sensors, compass and gyroscopes) in the cup, obtaining motion data, determining the usage status of the cup, and sending the usage status to another cup through a binding mechanism.
It realizes mutual understanding between users' cup usage status, and can provide reminders when users fail to drink water on time, improving the supervision and care efficiency of long-distance users.
Smart Images

Figure CN110801135B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic cups, and in particular to a cup interaction method, device, cup and computer-readable storage medium. Background Art
[0002] The cup is mainly used to hold water so that users can drink water and solve the problem of thirst. There are three main types of cups currently sold on the market: 1. Cups that only have the function of holding water; 2. Cups that have the function of keeping warm; 3. Cups that have the function of heating.
[0003] It can be seen that the cups with the above three functions cannot enable relatives, friends or lovers to know whether each other uses the cup. In particular, some patients with diseases need to drink more water every day. However, distant relatives and friends cannot supervise whether the patient drinks more water and cannot give the patient timely reminders. Summary of the invention
[0004] Based on this, it is necessary to propose a cup interaction method, device, cup and computer-readable storage medium to help users understand each other's cup usage in order to address the above problems.
[0005] A cup interaction method, the method comprising:
[0006] The first cup obtains movement data;
[0007] obtaining a usage status of the first cup according to the motion data;
[0008] Obtaining a cup identifier of a second cup bound to the first cup;
[0009] The use status is sent to the second cup according to the cup identification, so that the second cup prompts the use status.
[0010] In one embodiment, before the first cup acquires the motion data, the method further includes: detecting whether the first cup is moving; if the first cup is detected to be moving, entering the step of acquiring the motion data of the first cup.
[0011] In one embodiment, before the first cup acquires the motion data, the method further includes: binding the first cup with the second cup.
[0012] In one embodiment, the binding of the first cup and the second cup includes: detecting the distance between the first cup and the second cup; if the distance between the first cup and the second cup is less than a preset value, obtaining the tilt angle sent by the second cup; if the tilt angle between the first cup and the second cup meets a preset condition, sending an identification acquisition request to the second cup; obtaining the cup identification returned by the second cup according to the identification acquisition request, so as to complete the binding of the first cup and the second cup.
[0013] In one embodiment, the motion data includes multiple tilt angles and tilt time corresponding to each tilt angle, and the usage status includes water output of the cup; obtaining the usage status of the first cup according to the motion data includes: obtaining an angle water volume table corresponding to the first cup, the angle water volume relationship table records the water output per unit time corresponding to multiple tilt angles of the first cup; determining the water output of the first cup according to the multiple tilt angles, the tilt time corresponding to each tilt angle, and the angle water volume table.
[0014] In one embodiment, the first cup is provided with a three-axis acceleration sensor, a compass and a gyroscope; before the first cup obtains motion data, the steps include: the first cup obtains acceleration data detected by the three-axis acceleration sensor; obtains compass data detected by the compass in the first cup; obtains gyroscope data detected by the gyroscope in the first cup; and obtains the motion data of the first cup according to the acceleration data, the compass data and the gyroscope data.
[0015] An interactive device for a cup, comprising:
[0016] A first acquisition module, used for acquiring motion data of the first cup;
[0017] A state confirmation module, used for obtaining the use state of the first cup according to the motion data;
[0018] A second acquisition module, used to acquire a cup identifier of a second cup bound to the first cup;
[0019] The status sending module is used to send the use status to the second cup according to the cup identification, so that the second cup prompts the use status.
[0020] In one embodiment, the device further comprises: a motion detection module, configured to detect whether the first cup is moving; and an entry module, configured to enter a first acquisition module if the motion of the first cup is detected, so that the first acquisition module executes the acquisition of motion data of the first cup.
[0021] In one embodiment, the device further includes: a binding module, configured to bind the first cup and the second cup.
[0022] In one embodiment, the binding module includes: a distance detection module, used to detect the distance between the first cup and the second cup; an angle detection module, used to obtain the tilt angle sent by the second cup if the distance between the first cup and the second cup is less than a preset value; a request sending module, used to send an identification acquisition request to the second cup if the tilt angle between the first cup and the second cup meets a preset condition; and a request feedback module, used to obtain the cup identification returned by the second cup according to the identification acquisition request, so as to complete the binding of the first cup and the second cup.
[0023] In one embodiment, the motion data includes multiple tilt angles and the tilt time corresponding to each tilt angle, and the usage status includes the water output of the cup; the status confirmation module includes: a water meter acquisition module, used to obtain the angle water meter corresponding to the first cup, and the angle-water relationship table records the water output per unit time corresponding to the multiple tilt angles of the first cup; a water volume calculation module, used to determine the water output of the first cup according to the multiple tilt angles, the tilt time corresponding to each tilt angle and the angle water meter.
[0024] In one embodiment, a three-axis acceleration sensor, a compass and a gyroscope are provided in the first cup; the first acquisition module includes: an acceleration acquisition module, used for the first cup to acquire acceleration data detected by the three-axis acceleration sensor; a compass acquisition module, used for acquiring compass data detected by the compass in the first cup; a gyroscope acquisition module, used for acquiring gyroscope data detected by the gyroscope in the first cup; and a comprehensive calculation module, used for obtaining motion data of the first cup according to the acceleration data, the compass data and the gyroscope data.
[0025] A cup includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0026] The first cup obtains movement data;
[0027] obtaining a usage status of the first cup according to the motion data;
[0028] Obtaining a cup identifier of a second cup bound to the first cup;
[0029] The use status is sent to the second cup according to the cup identification, so that the second cup prompts the use status.
[0030] A computer-readable storage medium stores a computer program, which, when executed by a processor, causes the processor to perform the following steps:
[0031] The first cup obtains movement data;
[0032] obtaining a usage status of the first cup according to the motion data;
[0033] Obtaining a cup identifier of a second cup bound to the first cup;
[0034] The use status is sent to the second cup according to the cup identification, so that the second cup prompts the use status.
[0035] Implementing the embodiments of the present invention will have the following beneficial effects:
[0036] The present invention proposes a cup interaction method, device, cup and computer-readable storage medium. First, the first cup obtains motion data; then, according to the motion data, the use status of the first cup is obtained; at the same time, the cup identification of the second cup bound to the first cup is obtained; finally, according to the cup identification, the use status is sent to the second cup, so that the second cup prompts the use status. It can be seen that through the above method, since the first cup obtains the motion data and determines the use status of the cup through the motion data, the user at the second cup end can understand the cup usage of the user of the first cup through the second cup, and then remind the other party when the cup is not used or used very little. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] in:
[0039] Figure 1 Schematic diagram of the implementation process of the cup interaction method in one embodiment;
[0040] Figure 2 Schematic diagram of the implementation process of the cup interaction method in one embodiment;
[0041] Figure 3 Schematic diagram of the implementation process of the cup interaction method in one embodiment;
[0042] Figure 4 Schematic diagram of the implementation process of step 302 in one embodiment;
[0043] Figure 5 is a schematic diagram of the tilt angle of a cup in one embodiment;
[0044] Figure 6 Schematic diagram of the implementation process of the cup interaction method in one embodiment;
[0045] Figure 7 Schematic diagram of the implementation process of the cup interaction method in one embodiment;
[0046] Figure 8 is a structural block diagram of an interactive device for a cup in one embodiment;
[0047] Fig. 9 1 is a structural block diagram of a cup in one embodiment. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] like Figure 1 As shown, in one embodiment, a cup interaction method is provided. The execution subject of the cup interaction method described in the embodiment of the present invention is a device or equipment capable of implementing the cup interaction method described in the embodiment of the present invention, for example, a cup. The cup interaction method specifically includes the following steps:
[0050] Step 102: The first cup obtains motion data.
[0051] The first cup is the executing body of the embodiment of the present invention. The first cup is provided with sensors capable of detecting the movement of the first cup. The first cup obtains the movement data through these sensors.
[0052] The motion data is data that can reflect the motion of the first cup. Exemplarily, a three-axis acceleration sensor is provided in the first cup, and the motion data is data collected by the three-axis acceleration sensor.
[0053] Step 104: Obtain the usage status of the first cup according to the motion data.
[0054] The use state is the state of the cup, reflecting whether the cup is being used. Exemplarily, the use state includes but is not limited to the pick-up and walking state and the drinking state, wherein the pick-up and walking state indicates that the cup is taken from one position to another by the user; the drinking state indicates that the user is drinking water.
[0055] For example, assuming that the motion data is three-axis acceleration data, the use status of the first cup can be obtained by analyzing the three-axis acceleration data.
[0056] Step 106: Obtain a cup identifier of a second cup bound to the first cup.
[0057] Among them, the second cup is a cup bound to the first cup. Through binding, the first cup can send information to the second cup, and the second cup can also send information to the first cup.
[0058] Among them, the cup identifier is used to uniquely identify a cup.
[0059] In order to enable relatives and relatives, relatives and friends, and friends and friends to sense each other's cup usage status, the first cup first obtains the cup identification of the second cup bound to it, and then sends the usage status to the second cup according to the cup identification, so that each other can understand the cup usage status.
[0060] Step 108: sending the usage status to the second cup according to the cup identification, so that the second cup prompts the usage status.
[0061] By sending the usage status to the second cup, the second cup can prompt the usage status of the first cup, so that the user of the second cup can understand the usage of the first cup, and give the other party a warm reminder when the first cup is not used much, for example, not much water is drunk.
[0062] Exemplarily, the second cup is provided with a display screen, and the use status of the first cup is displayed through the display screen.
[0063] Exemplarily, the second cup is provided with a voice prompt module, through which the use status of the first cup is prompted.
[0064] In the above-mentioned cup interaction method, first, the first cup obtains motion data; then, according to the motion data, the use status of the first cup is obtained; at the same time, the cup identification of the second cup bound to the first cup is obtained; finally, according to the cup identification, the use status is sent to the second cup, so that the second cup prompts the use status. It can be seen that through the above-mentioned method, since the first cup obtains the motion data and determines the use status of the cup through the motion data, the user at the second cup end can understand the cup usage of the user of the first cup through the second cup, and then remind the other party when the cup is not used or used very little.
[0065] In one embodiment, Figure 2 As shown, before the first cup obtains the motion data, it also includes:
[0066] Step 202: Detect whether the first cup moves.
[0067] Exemplarily, a camera is set in the first cup, and the camera is used to detect whether the first cup moves. For example, at least two images taken by the camera at different time points are compared, and if the pictures displayed in each image change, it is considered that the first cup moves, and if the pictures displayed in each image do not change, it is considered that the first cup does not move.
[0068] Exemplarily, a radar is set in the first cup to detect whether the first cup moves by the radar. For example, if the distance detected by the radar changes, it is considered that the first cup moves.
[0069] Exemplarily, an acceleration sensor is set in the first cup, and whether the first cup moves is detected by the acceleration sensor. For example, the detection data of the acceleration sensor is obtained, and if the data has not changed, it is considered that the first cup has not moved, and if the data has changed, it is considered that the first cup has moved.
[0070] Step 204: If the first cup is detected to be moving, the first cup acquires movement data.
[0071] If the movement of the first cup is detected, the movement data of the first cup is obtained at this time, which can save system overhead to a certain extent.
[0072] In one embodiment, Figure 3 As shown, before the first cup acquires the motion data in step 302, the method further includes:
[0073] Step 310: Bind the first cup and the second cup.
[0074] Binding the first cup with the second cup in advance can realize communication between the first cup and the second cup, so that the first cup can send relevant information to the second cup, or the second cup can send relevant information to the first cup.
[0075] In the embodiment of the present invention, the first cup may be bound to at least one second cup. By binding the first cup to at least one second cup, the first cup can send relevant information to the at least one second cup.
[0076] Specifically, Figure 4 As shown, step 302 of binding the first cup and the second cup includes:
[0077] Step 302A: Detect the distance between the first cup and the second cup.
[0078] The first cup and the second cup are provided with distance sensors, and the first cup or the second cup can obtain the distance between them through the induction between the two distance sensors.
[0079] Step 302B: if the distance between the first cup and the second cup is less than a preset value, obtain the tilt angle sent by the second cup.
[0080] Among them, the preset value is a pre-set distance value. When the distance between the two cups is less than the preset value, it is considered that the two cups need to be bound. At this time, the inclination angle of the two cups is further used to determine whether the two cups need to be bound. It can be understood that when the inclination angle of the two cups meets the preset conditions, it is considered that the two cups need to be bound.
[0081] An angle sensor (for example, a three-axis acceleration sensor) is provided in the first cup and the second cup, and the tilt angle can be determined according to the data detected by the angle sensor. Figure 5 As shown, ∠AOB is taken as the inclination angle of the first cup or the second cup.
[0082] When the first cup or the second cup detects that the distance between them is less than a preset value, the first cup and the second cup send an angle acquisition instruction to the angle sensor. When receiving the angle acquisition instruction, the first cup and the second cup feed back the detected tilt angle of the cup. After obtaining the tilt angle fed back by the angle sensor, the first cup and the second cup send their respective tilt angles to each other.
[0083] Step 302C: if the inclination angles of the first cup and the second cup meet a preset condition, a request for obtaining an identification is sent to the second cup.
[0084] The preset condition includes that the inclination angles of the first cup and the second cup are both greater than a preset angle, for example, the preset angle is 60°.
[0085] Step 302D: obtain the cup identifier returned by the second cup according to the identifier acquisition request, so as to complete the binding between the first cup and the second cup.
[0086] When the first cup detects that the inclination angle between it and the second cup meets the preset conditions, the second cup sends the cup identification. After receiving the cup identification of the first cup, the second cup knows to which cup to send the relevant information, thereby realizing the binding of the first cup and the second cup.
[0087] When the second cup detects that the inclination angle between it and the first cup meets the preset conditions, it sends the cup identification to the first cup. After receiving the cup identification of the second cup, the first cup knows to which cup to send the relevant information, thereby realizing the binding of the first cup and the second cup.
[0088] In one embodiment, Figure 6 As shown, a cup interaction method is provided, the motion data includes multiple tilt angles and the tilt time corresponding to each tilt angle, and the usage status includes the water output of the cup.
[0089] Among them, the tilt angle reflects the tilt of the cup. Figure 5 As shown, a coordinate system AOC is established, wherein OC is parallel to the horizontal plane, OA is perpendicular to the horizontal plane, and the tilt angle of the cup is the angle between OB, the center axis of the cup (the line connecting the centers of the upper and lower circles of the cylinder), and OA.
[0090] The tilt time is the time when the tilt angle is generated. For example, if the tilt angle is A, the tilt time corresponding to the tilt angle is T1, and if the tilt angle is B, the tilt time corresponding to the tilt angle is T2. If the tilt angles A and B are both 50 degrees, then the dwell time at an angle of 50 degrees is determined to be |T2-T1|, that is, when the user drinks water, he tilts the cup 50 degrees to drink water, and drinks for |T2-T1|.
[0091] Among them, the water output reflects how much water the cup can output at a certain tilt angle and tilt time, that is, how much water the user can drink.
[0092] The method comprises:
[0093] Step 604: Obtain an angle water volume table corresponding to the first cup, wherein the angle water volume relationship table records the water output per unit time corresponding to multiple tilt angles of the first cup.
[0094] It is understandable that different cups have different sizes and shapes. Therefore, at the same tilt angle and the same residence time, the corresponding water output of different cups will also be different; at the same time, for the same cup, the corresponding water output per unit time will also be different at different tilt angles. Different angle water meter tables are established for different cups, so that the water output of the cup can be determined according to the angle water meter tables of each cup.
[0095] Step 606: Determine the water output of the first cup according to the multiple tilt angles, the tilt time corresponding to each tilt angle, and the angle water meter.
[0096] For example, now the tilt angles of 50 degrees, 50 degrees, 55 degrees and 55 degrees are detected, and the corresponding tilt times are 10:00:01 seconds, 10:00:02 seconds, 10:00:03 seconds and 10:00:05 seconds. According to the angle water volume table (as shown in Table 1), the water output per unit time at the tilt angles of 50 degrees, 50 degrees, 55 degrees and 55 degrees is determined to be S1, S1, S2 and S2. Therefore, the water output of the first cup is determined to be: S1×1+S1×1+S2×2.
[0097] In one embodiment, a cup interaction method is provided, wherein the first cup is provided with a three-axis acceleration sensor, a compass and a gyroscope; Figure 7 As shown, the method includes:
[0098] Step 702: The first cup obtains acceleration data detected by a three-axis acceleration sensor.
[0099] The three-axis acceleration sensor is used to detect the acceleration of the cup in three directions, so as to determine the movement of the cup according to the acceleration in the three directions, for example, determine the movement direction of the cup.
[0100] Step 704: Obtain compass data detected by the compass in the first cup.
[0101] The compass is used to determine the geomagnetic direction, thereby determining the relationship between the direction of the cup and a reference direction (eg, the North Pole direction). The compass described in the embodiment of the present invention may be a three-axis electronic compass.
[0102] Step 706: Acquire gyroscope data detected by the gyroscope in the first cup.
[0103] Among them, the gyroscope is used to detect angular motion, for example, a three-axis gyroscope.
[0104] Step 708: Obtain motion data of the first cup according to the acceleration data, the compass data, and the gyroscope data.
[0105] Since a three-axis acceleration sensor, a compass or a gyroscope is used alone for motion detection, the data obtained at this time may not be accurate. For example, if a three-axis acceleration sensor is used alone, the data obtained cannot well reflect the movement in the Z-axis direction, so a compass is needed to compensate for the Z-axis direction. For example, if a compass is used alone, the data obtained cannot well reflect the movement in the X-axis and Y-axis directions. For example, if a gyroscope is used alone, it is not sensitive to vibration and will drift after long-term use. Therefore, a three-axis acceleration sensor, a compass and a gyroscope are set in the cup at the same time, and accurate motion data of the cup is obtained according to the acceleration data, the compass data and the gyroscope data, so as to determine the use status of the cup according to the motion data. Among them, the motion data includes Euler angles, and the use status of the cup can be determined according to the Euler angles. Specifically, after obtaining different Euler angles, the use status of the first cup is determined according to the corresponding relationship between the Euler angles and the use status.
[0106] Exemplarily, acceleration data, compass data and gyroscope data detected by a three-axis acceleration sensor, a compass and a gyroscope are obtained; the compass data and the acceleration data are processed to obtain first data to be fused; the gyroscope data is processed to obtain second data to be fused; the first data to be fused and the second data to be fused are fused through Kalman filtering to obtain motion data (Euler angle) of the first cup.
[0107] Exemplarily, a temperature sensor is provided in the first cup, and acceleration data, compass data, gyroscope data and temperature data detected by a three-axis acceleration sensor, a compass, a gyroscope and a temperature sensor are obtained; the acceleration data, compass data, gyroscope data and temperature data are fused by a data fusion algorithm to obtain motion data (Euler angle) of the first cup.
[0108] Exemplarily, the acceleration data, compass data and gyroscope data detected by the three-axis acceleration sensor, compass and gyroscope are obtained; the acceleration data and compass data are processed by Gauss-Newton iteration method to obtain a first quaternion, and the first quaternion is used as the first observation value of the Kalman filter; the gyroscope data is processed by the fourth-order-Kutta method to obtain a second quaternion, and the second quaternion is used as the first state value of the Kalman filter; the third quaternion is obtained according to the first observation value and the first state value; the acceleration data and compass data measured in the carrier coordinate system are vector-producted, and the sum of the vector products of the two is fused with the gyroscope data after passing through a proportional-integral low-pass filter to obtain compensated gyroscope data; the compensated gyroscope data is processed by the fourth-order-Kutta method to obtain a fourth quaternion; the third quaternion is used as the second observation value of the Kalman filter, and the fourth quaternion is used as the second state value of the Kalman filter to obtain a fifth quaternion; the attitude matrix is established by the fifth quaternion to obtain the motion data (Euler angle) of the first cup.
[0109] like Figure 8 As shown, a cup interaction device 800 is provided, which specifically includes:
[0110] A first acquisition module 802, used to acquire motion data of a first cup;
[0111] A state confirmation module 804 is used to obtain the use state of the first cup according to the motion data;
[0112] A second acquisition module 806 is used to acquire a cup identifier of a second cup bound to the first cup;
[0113] The status sending module 808 is used to send the use status to the second cup according to the cup identification, so that the second cup prompts the use status.
[0114] In the above-mentioned cup interaction device, the first cup first obtains motion data; then obtains the usage status of the first cup based on the motion data; and simultaneously obtains the cup identification of the second cup bound to the first cup; and finally sends the usage status to the second cup based on the cup identification, so that the second cup prompts the usage status. It can be seen that through the above-mentioned method, since the first cup obtains the motion data and determines the usage status of the cup through the motion data, the user at the second cup end can learn about the cup usage of the user of the first cup through the second cup, and then remind the other party when the cup is not used or is used very little.
[0115] In one embodiment, the device 800 further includes: a motion detection module, configured to detect whether the first cup is moving; and an entry module, configured to enter a first acquisition module if the motion of the first cup is detected, so that the first acquisition module executes the acquisition of motion data of the first cup.
[0116] In one embodiment, the device 800 further includes: a binding module, configured to bind the first cup and the second cup.
[0117] In one embodiment, the binding module includes: a distance detection module, used to detect the distance between the first cup and the second cup; an angle detection module, used to obtain the tilt angle sent by the second cup if the distance between the first cup and the second cup is less than a preset value; a request sending module, used to send an identification acquisition request to the second cup if the tilt angle between the first cup and the second cup meets a preset condition; and a request feedback module, used to obtain the cup identification returned by the second cup according to the identification acquisition request, so as to complete the binding of the first cup and the second cup.
[0118] In one embodiment, the motion data includes multiple tilt angles and the tilt time corresponding to each tilt angle, and the usage status includes the water output of the cup; the status confirmation module 804 includes: a water meter acquisition module, used to obtain the angle water meter corresponding to the first cup, and the angle-water relationship table records the water output per unit time corresponding to the multiple tilt angles of the first cup; a water volume calculation module, used to determine the water output of the first cup according to the multiple tilt angles, the tilt time corresponding to each tilt angle and the angle water meter.
[0119] In one embodiment, a three-axis acceleration sensor, a compass and a gyroscope are provided in the first cup; the first acquisition module 802 includes: an acceleration acquisition module, used for the first cup to acquire acceleration data detected by the three-axis acceleration sensor; a compass acquisition module, used for acquiring compass data detected by the compass in the first cup; a gyroscope acquisition module, used for acquiring gyroscope data detected by the gyroscope in the first cup; and a comprehensive calculation module, used for obtaining motion data of the first cup according to the acceleration data, the compass data and the gyroscope data.
[0120] Fig. 9 FIG. 2 shows the internal structure of a cup in one embodiment. Fig. 9 As shown, the cup includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the cup stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement the interactive method of the cup. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may implement the interactive method of the cup. Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the cup to which the solution of the present application is applied. The specific cup may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0121] In one embodiment, the cup interaction method provided in the present application can be implemented in the form of a computer program, which can be used in a computer program such as Fig. 9 The memory of the cup can store various program templates constituting the interactive device of the cup. For example, the first acquisition module 802, the state confirmation module 804 and the second acquisition module 806.
[0122] A cup includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the following steps:
[0123] The first cup obtains movement data;
[0124] obtaining a usage status of the first cup according to the motion data;
[0125] Obtaining a cup identifier of a second cup bound to the first cup;
[0126] The use status is sent to the second cup according to the cup identification, so that the second cup prompts the use status.
[0127] For the above cups, first the first cup acquires motion data; then, based on the motion data, the usage status of the first cup is obtained; at the same time, the cup identification of the second cup bound to the first cup is obtained; finally, based on the cup identification, the usage status is sent to the second cup, so that the second cup prompts the usage status. It can be seen that through the above method, since the first cup acquires motion data and determines the usage status of the cup through the motion data, the user at the second cup end can learn about the cup usage of the user of the first cup through the second cup, and then remind the other party when the cup is not used or used very little.
[0128] In one embodiment, when the computer program is executed by the processor, it is further used to: before the first cup obtains motion data, detect whether the first cup is moving; if the first cup is detected to be moving, enter the step of obtaining motion data for the first cup.
[0129] In one embodiment, when the computer program is executed by the processor, it is further used to: bind the first cup and the second cup before the first cup obtains the motion data.
[0130] In one embodiment, the binding of the first cup and the second cup includes: detecting the distance between the first cup and the second cup; if the distance between the first cup and the second cup is less than a preset value, obtaining the tilt angle sent by the second cup; if the tilt angle between the first cup and the second cup meets a preset condition, sending an identification acquisition request to the second cup; obtaining the cup identification returned by the second cup according to the identification acquisition request, so as to complete the binding of the first cup and the second cup.
[0131] In one embodiment, the motion data includes multiple tilt angles and tilt time corresponding to each tilt angle, and the usage status includes water output of the cup; obtaining the usage status of the first cup according to the motion data includes: obtaining an angle water volume table corresponding to the first cup, the angle water volume relationship table records the water output per unit time corresponding to multiple tilt angles of the first cup; determining the water output of the first cup according to the multiple tilt angles, the tilt time corresponding to each tilt angle, and the angle water volume table.
[0132] In one embodiment, a three-axis acceleration sensor, a compass and a gyroscope are provided in the first cup; the first cup obtains motion data, including: the first cup obtains acceleration data detected by the three-axis acceleration sensor; obtains compass data detected by the compass in the first cup; obtains gyroscope data detected by the gyroscope in the first cup; and obtains the motion data of the first cup according to the acceleration data, the compass data and the gyroscope data.
[0133] In one embodiment, a computer-readable storage medium is provided, storing a computer program, wherein when the computer program is executed by a processor, the processor performs the following steps:
[0134] The first cup obtains movement data;
[0135] obtaining a usage status of the first cup according to the motion data;
[0136] Obtaining a cup identifier of a second cup bound to the first cup;
[0137] The use status is sent to the second cup according to the cup identification, so that the second cup prompts the use status.
[0138] The computer-readable storage medium first obtains motion data of the first cup; then obtains the usage status of the first cup according to the motion data; obtains the cup identification of the second cup bound to the first cup at the same time; and finally sends the usage status to the second cup according to the cup identification, so that the second cup prompts the usage status. It can be seen that through the above method, since the first cup obtains motion data and determines the usage status of the cup through the motion data, the user at the second cup end can understand the cup usage of the user of the first cup through the second cup, and then remind the other party when the cup is not used or used very little.
[0139] In one embodiment, when the computer program is executed by the processor, it is further used to: before the first cup obtains motion data, detect whether the first cup is moving; if the first cup is detected to be moving, enter the step of obtaining motion data for the first cup.
[0140] In one embodiment, when the computer program is executed by the processor, it is further used to: bind the first cup and the second cup before the first cup obtains the motion data.
[0141] In one embodiment, the binding of the first cup and the second cup includes: detecting the distance between the first cup and the second cup; if the distance between the first cup and the second cup is less than a preset value, obtaining the tilt angle sent by the second cup; if the tilt angle between the first cup and the second cup meets a preset condition, sending an identification acquisition request to the second cup; obtaining the cup identification returned by the second cup according to the identification acquisition request, so as to complete the binding of the first cup and the second cup.
[0142] In one embodiment, the motion data includes multiple tilt angles and tilt time corresponding to each tilt angle, and the usage status includes water output of the cup; obtaining the usage status of the first cup according to the motion data includes: obtaining an angle water volume table corresponding to the first cup, the angle water volume relationship table records the water output per unit time corresponding to multiple tilt angles of the first cup; determining the water output of the first cup according to the multiple tilt angles, the tilt time corresponding to each tilt angle, and the angle water volume table.
[0143] In one embodiment, a three-axis acceleration sensor, a compass and a gyroscope are provided in the first cup; the first cup obtains motion data, including: the first cup obtains acceleration data detected by the three-axis acceleration sensor; obtains compass data detected by the compass in the first cup; obtains gyroscope data detected by the gyroscope in the first cup; and obtains the motion data of the first cup according to the acceleration data, the compass data and the gyroscope data.
[0144] It should be noted that the above-mentioned cup interaction method, cup interaction device, cup and computer-readable storage medium belong to a general inventive concept, and the contents in the embodiments of the cup interaction method, cup interaction device, cup and computer-readable storage medium are applicable to each other.
[0145] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0146] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0147] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A cup interaction method, characterized in that: include: Binding a first cup and a second cup, comprising: detecting a distance between the first cup and the second cup; If the distance between the first cup and the second cup is less than a preset value, the tilt angle sent by the second cup is obtained; if the tilt angle between the first cup and the second cup meets the preset condition, an identification acquisition request is sent to the second cup; the cup identification returned by the second cup according to the identification acquisition request is obtained to complete the binding of the first cup and the second cup; The first cup acquires motion data; According to the motion data, the use status of the first cup is obtained; the use status includes the state of picking up and walking, the state of drinking water, and the amount of water output; Obtaining a cup identifier of a second cup bound to the first cup; The use status is sent to the second cup according to the cup identification, so that the second cup prompts the use status.
2. The method according to claim 1, characterized in that Before the first cup acquires the motion data, the method further includes: detecting whether the first cup moves; If the movement of the first cup is detected, the step of acquiring movement data of the first cup is entered.
3. The method according to claim 1, characterized in that The motion data includes a plurality of tilt angles and a tilt time corresponding to each tilt angle, and the use status includes a water output; The obtaining the usage status of the first cup according to the motion data includes: Obtaining an angle water meter corresponding to the first cup, wherein the angle water meter records the water output per unit time corresponding to multiple tilt angles of the first cup; The water output of the first cup is determined according to the multiple tilting angles, the tilting time corresponding to each tilting angle, and the angle water meter.
4. The method according to claim 1, characterized in that The first cup is provided with a three-axis acceleration sensor, a compass and a gyroscope; the first cup acquires motion data, including: The first cup obtains acceleration data detected by a three-axis acceleration sensor; Obtaining compass data detected by the compass in the first cup; Acquiring gyroscope data detected by the gyroscope in the first cup; The motion data of the first cup is obtained according to the acceleration data, the compass data and the gyroscope data.
5. A cup, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the cup interaction method according to any one of claims 1 to 4 when executing the computer program.
6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the cup interaction method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Intelligent water cup and method for automatically measuring volume of drinking water
CN107048920A
Holdable water cup capable of detecting drinking amount
CN107510336A
Information interacting method and system of water cup
CN107981650A
Intelligent water cup correlation method and intelligent water cup
CN109744821A
Cup system
CN210727422U