Method, device and intelligent terminal for making friends through clinking glasses based on intelligent water cups
By integrating gravity sensor and iBeacon module on the smart water cup, identifying the cup clinking action and sending friend requests, the problem of single function of the smart water cup is solved, and the cup clinking and dating function is realized, improving the user experience.
Patent Information
- Application Number
- CN202210287001.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-23
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2042-03-23
AI Technical Summary
The existing technology's smart water cup has a single function and does not have the function of clinking cups and dating, which leads to inconvenience to users.
The gravity sensor module and iBeacon module are pre-set on the smart water cup, the cup clinking action is recognized through acceleration data, and the friend information is added to the mobile app through the low-power Bluetooth module, and finally a friend relationship request is established in the background.
The smart water cup has the function of clinking cup dating, providing users with a more convenient way to make friends and enhancing the user experience of smart water cups.
Smart Images

Figure CN114615622B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart terminals, and in particular to a method, device, smart terminal and medium for processing a cup-clinking and friendship-making activity based on a smart cup. Background Art
[0002] With the development of electronic technology and the continuous improvement of people's living standards, various smart terminals such as smart water cups are being used more and more.
[0003] With the advent of the mobile smart era, the Internet of Things is developing rapidly, and the interconnection of all things has become an inevitable trend. With the emergence of smart water cups, drinking water with smart water cups has become a daily activity for people. Water cups can remind users how much water to drink and when to drink water based on scientific technology, making drinking water more scientific and healthy, and bringing people a completely different drinking experience. However, the smart water cups in the existing technology have a single function and do not have the function of clinking glasses and making friends, which is sometimes inconvenient for users to use.
[0004] Therefore, the existing technology still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide a method, device, intelligent terminal and computer-readable storage medium for clinking glasses and making friends based on a smart water cup, aiming to solve the technical problems of the prior art smart water cups, which have single functions, do not have the function of clinking glasses and making friends, and are sometimes inconvenient for users to use.
[0006] In order to achieve the above-mentioned object, the first aspect of the present invention provides a method for making friends by clinking glasses based on a smart cup, wherein the method comprises:
[0007] Get the acceleration data of the smart water cup;
[0008] Based on the acceleration data, determining whether the smart cup has a cup-clinking action;
[0009] When the smart cup has a clinking action, the control initiates a broadcast with the smart cup information;
[0010] Based on the broadcast with the smart cup information, determining whether there are two or more smart cups with the same clinking location and time;
[0011] When two or more smart cups clink glasses at the same location and time, a friend adding request is generated and sent to the smartphone bound to the smart cup.
[0012] The method for making friends by clinking glasses based on a smart water cup, wherein the step of obtaining acceleration data of the smart water cup includes:
[0013] Set up the gsensor sensor and iBeacon module on the smart water cup in advance;
[0014] Bind the smart water cup to the corresponding user account in advance, and install the prefabricated smart water cup app on the corresponding user's smartphone to log in to the user account, thereby binding the user account to the corresponding user's smartphone;
[0015] All smart phones installed with the prefabricated smart water cup app can receive the broadcast with smart water cup information sent by the smart water cup, and determine that the location and time of the smart water cup clinking are consistent according to the positioning information and time;
[0016] All smart phones installed with the prefabricated smart water cup app can send the friend request information of the smart water cup to the remote server.
[0017] In the method for making friends by clinking glasses based on a smart water cup, the step of obtaining acceleration data of the smart water cup comprises:
[0018] When the smart cup is detected to be picked up, the gsensor sensor set on the smart cup wakes up the smart cup;
[0019] Continuously detect the gsensor sensor of the smart water cup to obtain the acceleration data of the smart water cup.
[0020] In the method for making friends by clinking glasses based on a smart cup, the step of judging whether the smart cup has a clinking action based on the acceleration data comprises:
[0021] The speed data of the continuous action is obtained, and whether the continuous action is a glass clinking action is determined by an algorithm according to the speed data.
[0022] In the method for making friends through clinking glasses based on a smart cup, when the smart cup has a clinking action, the step of controlling the initiation of a broadcast with information about the smart cup comprises:
[0023] When a clinking action is detected, the smart cup is controlled to switch to ibeacon mode and send an ibeacon broadcast with its own ID;
[0024] After the broadcast is completed, switch back to BLE mode.
[0025] The method for making friends by clinking glasses based on smart cups, wherein the step of judging whether there are two or more smart cups with the same clinking location and time based on the broadcast with the smart cup information comprises:
[0026] The smart phone receives the ibeacon broadcast, and parses the ibeacon broadcast to obtain the time and location of the smart cup clink;
[0027] When a smartphone pre-installed with the smart cup app receives two or more ibeacon broadcasts within a preset range of close distance within the same period of time, it is determined that the time and location of the clinking action are consistent, among which the same period of time means the time is consistent, and the proximity within the preset range means the location is consistent.
[0028] Then determine whether there are two or more smart water cups with the same clinking location and time.
[0029] The method for making friends by clinking glasses based on smart water cups, wherein when two or more smart water cups clink glasses at the same location and time, generating a friend adding request and sending the friend adding request to the smart phone bound to the smart water cup comprises:
[0030] When two or more smart cups clink glasses at the same location and time, a friend request is generated;
[0031] The smartphone app sends all received friend request information to the backend server;
[0032] The backend server distributes all friend adding request information to the corresponding user accounts bound to each smart water cup, and sends it to the smartphone app bound to the corresponding user account, waiting for the smart water cup user to confirm the friend adding request.
[0033] A device for processing clinking glasses and making friends based on a smart cup, comprising:
[0034] An acquisition module is used to obtain acceleration data of the smart water cup;
[0035] A cup clinking judgment module, used for judging whether the smart cup has a cup clinking action based on the acceleration data;
[0036] Broadcast module, used to control the broadcast of smart cup information when the smart cup has a clinking action;
[0037] A time and place determination module, used to determine whether there are two or more smart water cups with the same clinking place and time based on the broadcast with the smart water cup information;
[0038] The friend adding processing module is used to generate a friend adding request when there are more than two smart water cups clinking glasses at the same location and time, and send the friend adding request to the smart phone bound to the smart water cup.
[0039] A smart terminal, wherein the smart terminal comprises: a memory and a processor; the memory stores a processing program for clinking glasses and making friends based on a smart water cup that can be run on the processor, and when the processing program for clinking glasses and making friends based on a smart water cup is executed by the processor, any step of the processing method for clinking glasses and making friends based on a smart water cup is implemented.
[0040] A computer-readable storage medium, wherein a program for clinking glasses and making friends based on a smart water cup is stored on the computer-readable storage medium, and when the program for clinking glasses and making friends based on a smart water cup is executed by a processor, any step of the method for clinking glasses and making friends based on a smart water cup is implemented.
[0041] As can be seen from the above, the present invention provides a method and device for clinking glasses and making friends based on a smart cup, a smart cup and a computer-readable storage medium. The present invention adds a gravity sensor module to the smart cup, uses the gravity sensor to identify the clinking action, sends the adding friend information to the mobile phone app through the low-power Bluetooth module, and transmits the adding friend information to the background through the mobile phone app, thereby establishing a friend relationship request in the background, and finally achieving the purpose of adding friends. The present invention adds a new function to the smart cup: it has the clinking glass and making friends function, which provides convenience for users. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, 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 labor.
[0043] Figure 1 The present invention is a flowchart of a method for making friends through clinking glasses based on a smart cup provided by an embodiment of the present invention.
[0044] Figure 2 The present invention provides an overall system architecture diagram of a method for clinking glasses and making friends based on smart cups provided by an embodiment of the present invention.
[0045] Figure 3 It is a flowchart of a method for clinking glasses and making friends based on a smart cup provided by a specific application embodiment of the present invention.
[0046] Figure 4 The present invention is a block diagram of the principle of a device for processing a toasting and making friends based on a smart cup provided by an embodiment of the present invention.
[0047] Figure 5 It is a block diagram of the internal structure principle of an intelligent terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In the following description, specific details such as specific device structures, techniques, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known devices, apparatuses, circuits, and methods are omitted to avoid obstructing the description of the present invention with unnecessary details.
[0049] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0050] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0051] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0052] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0053] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings of 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.
[0054] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0055] With the development of electronic technology and the continuous improvement of people's living standards, various smart terminals such as smart water cups are being used more and more.
[0056] With the advent of the mobile smart era, the Internet of Things is developing rapidly, and the interconnection of all things has become an inevitable trend. With the emergence of smart water cups, drinking water with smart water cups has become a daily activity for people. Water cups can remind users how much water to drink and when to drink water based on scientific technology, making drinking water more scientific and healthy, and bringing people a completely different drinking experience. However, the smart water cups in the existing technology have a single function and do not have the function of clinking glasses and making friends, which is sometimes inconvenient for users to use.
[0057] In order to solve the problems of the prior art, the embodiments of the present invention provide a method, device, smart cup and medium for making friends by clinking glasses based on a smart cup. The present invention adds a gsensor module to the smart cup, uses the gsensor to identify the action of clinking glasses, sends the adding friend information to the smart phone app through ibeacon, and transmits the adding friend information to the background through the smart phone app, thereby establishing a friend relationship request in the background, and finally achieving the purpose of adding friends. The details are as follows:
[0058] like Figure 2 As shown, the method for making friends by clinking glasses based on a smart cup according to an embodiment of the present invention comprises the following steps:
[0059] Step S100: Acquire acceleration data of the smart water cup;
[0060] When the embodiment of the present invention is implemented, a gsensor sensor and an iBeacon module are pre-set on the smart water cup; wherein, Gsensor: gravity sensor, also known as accelerometer, is a sensor that can sense the magnitude of acceleration and return acceleration values in three directions of xyz.
[0061] iBeacon module: is a very precise micro-positioning technology through low-power Bluetooth (BLE) technology. iBeacon is actually a BLE broadcast. Its working method is that devices equipped with low-power Bluetooth (BLE) communication function use BLE technology to send their own unique ID to the surrounding. Measured Power is the reference received signal strength (RSSI: Received Signal Strength Indicator) when the distance between the iBeacon module and the receiver is 1m. The receiver calculates the distance between the sending module and the receiver based on the reference RSSI and the strength of the received signal.
[0062] In the embodiment of the present invention, each smart water cup can be registered and assigned a designated user account, and the smart water cup will be bound to the corresponding user account in advance, and the corresponding user's smart phone will be logged in to the user account by installing the prefabricated smart water cup app, so as to bind the user account to the corresponding user's smart phone. That is, the user's smart phone can log in to the user account by installing the prefabricated smart water cup app of the smart water cup, and can realize data interaction with the smart water cup.
[0063] The network framework implemented by the embodiment of the present invention is as follows Figure 2 As shown, the user's smartphone installs the prefabricated smart water cup app (referred to as mobile app) to log in to the registered user account, and establishes a binding relationship with the user's smart water cup, and the smartphone can be connected to the cloud server. The present invention will set up all smartphones installed with the prefabricated smart water cup app to receive the broadcast with smart water cup information sent by the smart water cup, and judge the location and time of the smart water cup clinking according to the positioning information and time; it is convenient to realize the clinking and making friends function through the smart water cup. The present invention also sets up all smartphones installed with the prefabricated smart water cup app to send the friend request information of the smart water cup to the remote server.
[0064] When the present invention is implemented, the acceleration data of the smart water cup is obtained, specifically: for example, when it is detected that the smart water cup is picked up, the smart water cup is awakened by the gsensor sensor set on the smart water cup; and the gsensor sensor of the smart water cup is continuously detected to obtain the acceleration data of the smart water cup.
[0065] Step S200: Based on the acceleration data, determining whether the smart cup has a cup-clinking action;
[0066] In the present invention, the acceleration data of the smart water cup detected by the gsensor sensor is used to determine whether the smart water cup has a clinking action. For example, the speed data of the continuous action is obtained by the gsensor sensor set on the smart water cup, and the algorithm is used to determine whether the continuous action is a clinking action based on the speed data. For example, the gsensor is used to sense the continuous action of the acceleration size of the smart water cup, and the acceleration values in the three directions of the xyz axis are returned. When the data of the acceleration values in the three directions of the xyz axis of the continuous action indicate that the action moves forward first, then pauses and returns to the back, it can be determined that the continuous action is a clinking action. Then enter step S300.
[0067] Step S300: When the smart cup has a clinking action, control the initiation of a broadcast with smart cup information;
[0068] In the present invention, when a clinking action is detected in the smart water cup, a broadcast with the smart water cup information is controlled to be initiated. Specifically: for example, when a clinking action is detected, the smart water cup is controlled to switch to ibeacon mode and send an ibeacon broadcast with its own ID to initiate a friend request to nearby smart phones. In the present invention, all smart phones installed with the prefabricated smart water cup app can receive the broadcast with the smart water cup information sent by the smart water cup, and judge that the location and time of the clinking of the smart water cup are consistent according to the positioning information and time; it is convenient to realize the clinking and making friends function through the smart water cup. And all smart phones installed with the prefabricated smart water cup app can send the friend request information of the smart water cup to the remote server. When the broadcast is completed, switch back to BLE mode.
[0069] Step S400: Based on the broadcast with the smart cup information, determine whether there are two or more smart cups with the same clinking location and time;
[0070] In an embodiment of the present invention, based on the broadcast with the smart water cup information, it is determined whether there are more than two smart water cups with the same clinking location and time. For example, a user's smart phone receives a broadcast with the smart water cup information, such as an ibeacon broadcast, sent when the smart water cup generates a clinking action, and parses the ibeacon broadcast to obtain the time and location information of the smart water cup at that time; when a user's smart phone with a pre-made smart water cup app receives more than two ibeacon broadcasts within a preset range (for example, within 0.2 meters) within the same period of time, it is determined that the time and location of the clinking action are consistent, and the same period of time indicates that the time is consistent, and the close distance indicates that the location is consistent. Then, based on the time and location information of the smart water cup at that time, it is determined whether there are at least two smart water cups with the same clinking location and time, that is, it is determined whether there are more than two smart water cups with the same clinking location and time. For example, it is determined whether there are two or more smart water cups that clink together at that time and the location and time of clinking are consistent.
[0071] Step S500: When at least two smart cups clink glasses at the same location and time, a friend adding request is generated and sent to the smart phone bound to the smart cup.
[0072] In the present invention, when at least two smart water cups clink glasses at the same place and time, a request to add a friend is generated, and the request to add a friend is sent to the smart phone bound to the smart water cup. Specifically, for example, when the smart phone receives the ibeacon broadcast and determines that two or more smart water cups clink glasses at the same place and time, a request to add a friend is generated; and the smart phone app sends all received request information to add a friend to the background server; the background server distributes all request information to add a friend to the corresponding user account bound to each smart water cup, and sends it to the smart phone app bound to the corresponding user account, waiting for the smart water cup user to confirm the request to add a friend. Each smart phone that logs in to the corresponding user account through the prefabricated smart water cup app receives the request to add a friend, enters the friend adding operation process, and completes the friend adding. Finally, the purpose of adding friends is achieved. In this way, the present invention adds a new function to the smart water cup: it has the function of clinking glasses and making friends, which provides convenience for users.
[0073] The following is a further description of the method for making friends by clinking glasses based on a smart cup according to a specific application example:
[0074] In actual application, the smart water cup clinking communication system of the present invention satisfies two conditions at the same time: 1. It needs to be recognized that two or more smart water cups have a clinking action; 2. The time and place of the clinking are consistent, that is, clinking at the same time and place is considered to be a valid clinking.
[0075] Regarding the realization of the first condition, a large number of clinking data samples can be collected based on the gsensor data of the water cup, and a clinking action model can be established to identify the clinking action.
[0076] The present invention uses the ibeacon module to solve the second problem, uses the ibeacon positioning function and the ibeacon broadcasting function to identify the same location, and uses whether the mobile phone app receives the ibeacon information in the same time period to determine the consistency of time. The present invention satisfies both conditions at the same time, collects and identifies the clinking action through the gsensor sensor data, and then uses the ibeacon module positioning function to send a friend request using the ibeacon module, which is applied to clinking glasses to make friends; without adding additional hardware costs, the present invention's clinking glasses to make friends based on smart cups makes making friends more accurate, and the making friends operation process is more intelligent, which provides convenience for users.
[0077] Specifically, the present invention is a method for making friends by clinking glasses based on a smart cup. Figure 2 The application scenario of the present invention is a clinking scene, which can be 2 to multiple smart cups clinking, each smart cup can be registered and assigned a designated user account, and the system of the entire application scenario includes a cloud server ( Figure 2 The top cloud represents the cloud server), the smartphone (installed with a prefabricated smart water cup app), and the smart water cup. The smart water cup is connected to the smartphone via Bluetooth Low Energy (BLE). The smartphone is loaded with a customized APP (prefabricated smart water cup app). The smartphone is connected to the customized app cloud service background via the Internet. The smart water cup broadcasts its own location through the ibeacon module.
[0078] like Figure 3 As shown, the method for making friends by clinking glasses based on a smart cup in this specific application embodiment includes the following specific steps:
[0079] Step S10: The smart cup is picked up, and the gsensor sensor triggers an interrupt to wake up the smart cup; and then proceeds to step S20;
[0080] Step S20, continuously detecting the gsensor sensor to obtain the motion acceleration data of the smart water cup, and proceeding to step S30;
[0081] Step S30: Based on the acceleration data, an algorithm is used to detect whether there is a cup clinking action. If yes, the process goes to step S40; otherwise, the process returns to step S20.
[0082] In the embodiment of the present invention, the gsensor sensor carried by the smart cup triggers an interrupt to wake up the smart cup when the cup is picked up, and the gsensor sensor starts to detect the acceleration values of the XYZ axes of the cup; the smart cup obtains the acceleration values of the continuous action, and according to these values, the smart cup determines whether the continuous action is a clinking action through an algorithm. If there is a clinking action, it goes to step S40, and if not, it returns to step S20.
[0083] Step S40, switch to ibeacon mode, send a friend add request, and proceed to step S50;
[0084] Step S50: Whether the smartphone app receives two or more ibeacon friend adding requests in the same time period, then the process goes to step S60;
[0085] Step S60, sending the close or medium distance friend request to the cloud server;
[0086] Step S70: The cloud server sends the friend request to each smart cup user app and waits for user confirmation.
[0087] In this specific application embodiment, when a clinking action is detected, the smart water cup switches to ibeacon mode and carries its own ID (the ID of the smart water cup itself) to send a broadcast (for example, send an ibeacon broadcast). In the embodiment of the present invention, when a clinking action is detected, the water cup switches to ibeacon mode and carries a friend adding instruction. This ibeacon mode is a broadcast mode, and each smart phone with a pre-made smart water cup app that logs in to the smart water cup registration account can receive it. After the smart water cup broadcast is completed, it switches back to BLE mode.
[0088] In the specific implementation of the present invention, after a smart phone installed with a prefabricated smart water cup app receives an ibeacon broadcast, it first determines whether it is an ibeacon broadcast for a clinking cup action, and then determines whether it is a close-range or medium-range ibeacon broadcast, that is, it parses the location information of the ibeacon broadcast to determine whether the location is in the same place; if the smart phone app receives more than two ibeacon broadcasts for adding friends in the same period of time, the smart phone app sends all the received friend-adding information to the background server. After the background receives the friend-adding information sent by the smart phone app, it distributes it to the corresponding users bound to each water cup, and then sends it to the smart phone app bound to the corresponding user, waiting for the water cup user to confirm the friend-adding request.
[0089] Moreover, in the embodiment of the present invention, the smartphone can locate the position of the smart water cup according to the ibeacon broadcast. If a smartphone receives the ibeacon broadcast information of two smart water cups at the same time, and the located positions are the same or not much different, the smartphone app bound to the smart water cup is controlled to enter the adding friend operation process.
[0090] The embodiment of the present invention realizes the judgment of the consistency of the place and time of clinking glasses, and then identifies the effective clinking glasses, that is, the positioning function of ibeacon (module) and the broadcast function of ibeacon (module) are used to identify the same place, and whether the smart phone app receives ibeacon (module) information in the same time period is used to judge the consistency of time, so as to identify the effective clinking glasses, and finally achieve the purpose of adding friends; the present invention adds a new function to the smart water cup: it has the function of clinking glasses and making friends, which provides convenience for users.
[0091] Based on the above embodiments, Figure 5 As shown, the present invention also provides a processing device for clinking glasses and making friends based on a smart cup, comprising:
[0092] An acquisition module 410 is used to acquire acceleration data of the smart water cup;
[0093] A cup clinking determination module 420 is used to determine whether the smart cup has a cup clinking action based on the acceleration data;
[0094] The broadcast module 430 is used to control the initiation of a broadcast with information about the smart cup when the smart cup has a clinking action;
[0095] A time and place determination module 440 is used to determine whether there are two or more smart water cups with the same clinking place and time based on the broadcast with the smart water cup information;
[0096] The adding friend processing module 450 is used to generate an adding friend request when there are two or more smart water cups clinking glasses at the same location and time, and send the adding friend request to the smart phone bound to the smart water cup, as described above.
[0097] Based on the above embodiments, the present invention further provides an intelligent terminal, whose principle block diagram can be shown as follows: Figure 5As shown. The smart terminal includes a processor, a memory, a network interface, and a display screen connected through a system bus. Among them, the processor of the smart terminal is used to provide computing and control capabilities. The memory of the smart terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the smart terminal is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for clinking glasses and making friends based on a smart water cup is implemented. The display screen of the smart terminal can be a liquid crystal display screen or an electronic ink display screen.
[0098] Those skilled in the art will understand that Figure 5 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the smart terminal to which the scheme of the present invention is applied. The specific smart terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0099] In one embodiment, a smart device is provided, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations:
[0100] Get the acceleration data of the smart water cup;
[0101] Based on the acceleration data, determining whether the smart cup has a cup-clinking action;
[0102] When the smart cup has a clinking action, the control initiates a broadcast with the smart cup information;
[0103] Based on the broadcast with the smart cup information, determining whether there are two or more smart cups with the same clinking location and time;
[0104] When two or more smart cups clink glasses at the same location and time, a friend adding request is generated and sent to the smartphone bound to the smart cup.
[0105] Wherein, the step of obtaining the acceleration data of the smart water cup includes:
[0106] Set up the gsensor sensor and iBeacon module on the smart water cup in advance;
[0107] Bind the smart water cup to the corresponding user account in advance, and install the prefabricated smart water cup app on the corresponding user's smartphone to log in to the user account, thereby binding the user account to the corresponding user's smartphone;
[0108] All smart phones installed with the prefabricated smart water cup app can receive the broadcast with smart water cup information sent by the smart water cup, and determine that the location and time of the smart water cup clinking are consistent according to the positioning information and time;
[0109] All smart phones installed with the prefabricated smart water cup app can send the friend request information of the smart water cup to the remote server.
[0110] The step of obtaining the acceleration data of the smart water cup includes:
[0111] When the smart cup is detected to be picked up, the gsensor sensor set on the smart cup wakes up the smart cup;
[0112] Continuously detect the gsensor sensor of the smart water cup to obtain the acceleration data of the smart water cup.
[0113] Wherein, the step of judging whether the smart cup has a cup-clinking action based on the acceleration data includes:
[0114] The speed data of the continuous action is obtained, and whether the continuous action is a glass clinking action is determined by an algorithm according to the speed data.
[0115] Wherein, when the smart water cup has a clinking action, the step of controlling to initiate a broadcast with the smart water cup information comprises:
[0116] When a clinking action is detected, the smart cup is controlled to switch to ibeacon mode and send an ibeacon broadcast with its own ID;
[0117] After the broadcast is completed, switch back to BLE mode.
[0118] Wherein, the step of judging whether there are two or more smart water cups with the same clinking location and time based on the broadcast with the smart water cup information includes:
[0119] The user's smartphone receives the ibeacon broadcast and parses the ibeacon broadcast to obtain the time and location of the smart cup clink;
[0120] Then determine whether there are two or more smart water cups with the same clinking location and time.
[0121] Wherein, when there are two or more smart water cups clinking glasses at the same place and time, generating a friend adding request, and sending the friend adding request to the smart phone bound to the smart water cup comprises:
[0122] When two or more smart cups clink glasses at the same location and time, a friend request is generated;
[0123] The smartphone app sends all received friend request information to the backend server;
[0124] The backend server distributes all friend adding request information to the corresponding user accounts bound to each smart water cup, and sends it to the smartphone app bound to the corresponding user account, waiting for the smart water cup user to confirm the friend adding request.
[0125] 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 computer program can be stored in a non-volatile computer-readable storage medium. When the computer 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 by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can 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). .
[0126] Based on the above embodiments, an embodiment of the present invention further provides a computer-readable storage medium, on which a program for clinking glasses and making friends based on a smart water cup is stored. When the program for clinking glasses and making friends based on a smart water cup is executed by a processor, the steps of any one of the methods for clinking glasses and making friends based on a smart water cup provided in the embodiments of the present invention are implemented.
[0127] In summary, the present invention discloses a method, device, and smart water cup for clinking glasses and making friends based on a smart water cup. The method includes: obtaining acceleration data of the smart water cup; judging whether the smart water cup has a clinking action based on the acceleration data; when the smart water cup has a clinking action, controlling the initiation of a broadcast with smart water cup information; judging whether there are more than two smart water cups with the same clinking location and time based on the broadcast with smart water cup information; when more than two smart water cups have the same clinking location and time, generating a request to add a friend, and sending the request to add a friend to the smart phone bound to the smart water cup. The present invention adds a gravity sensor module to the smart water cup, uses the gravity sensor to identify the clinking action, and sends the add friend information to the mobile phone app through a low-power Bluetooth module, thereby ultimately achieving the purpose of adding friends. The present invention adds a new function to the smart water cup: it has a clinking glass and making friends function, which provides convenience for users.
[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for making friends by clinking glasses based on a smart cup, characterized in that: The method comprises: Get the acceleration data of the smart water cup; Based on the acceleration data, determining whether the smart cup has a cup-clinking action; When the smart cup has a clinking action, the control initiates a broadcast with the smart cup information; Based on the broadcast with the smart cup information, determining whether there are two or more smart cups with the same clinking location and time; When two or more smart cups clink glasses at the same location and time, a friend adding request is generated and sent to the smartphone bound to the smart cup; The step of obtaining acceleration data of the smart water cup includes: Set up the gsensor sensor and iBeacon module on the smart water cup in advance; Bind the smart water cup to the corresponding user account in advance, and install the prefabricated smart water cup app on the corresponding user's smartphone to log in to the user account, thereby binding the user account to the corresponding user's smartphone; All smart phones installed with the prefabricated smart water cup app can receive the broadcast with smart water cup information sent by the smart water cup, and determine that the location and time of the smart water cup clinking are consistent according to the positioning information and time; All smart phones installed with the prefabricated smart water cup app can send the friend request information of the smart water cup to the remote server; The step of judging whether the smart water cup has a cup-clinking action based on the acceleration data comprises: Acquire speed data of the continuous action, and determine whether the continuous action is a glass clinking action through an algorithm according to the speed data; The gsensor is used to sense the acceleration of the smart water cup and return the acceleration values in the three directions of the xyz axis. When the acceleration values in the three directions of the xyz axis of the continuous action are forward first, paused, and then returned to the back, it can be determined that the continuous action is a cup clinking action. When the smart cup has a clinking action, the step of controlling to initiate a broadcast with the smart cup information comprises: When a clinking action is detected, the smart cup is controlled to switch to ibeacon mode and send an ibeacon broadcast with its own ID; After the broadcast is completed, switch back to BLE mode; All smart phones installed with the prefabricated smart water cup app can receive the broadcast with smart water cup information sent by the smart water cup, and judge that the location and time of the smart water cup clinking are consistent according to the positioning information and time; thus, it is convenient to realize the function of clinking glasses and making friends through the smart water cup; The step of judging whether there are two or more smart water cups with the same clinking location and time based on the broadcast with the smart water cup information comprises: The smart phone receives the ibeacon broadcast, and parses the ibeacon broadcast to obtain the time and location of the smart cup clink; When a smart phone with a pre-installed smart cup app receives two or more ibeacon broadcasts within a preset range within the same period of time, it is determined that the time and location of the cup clinking action are consistent, where the same period of time means the time is consistent, and the distance within the preset range means the location is consistent; When two or more smart water cups clink glasses at the same location and time, generating a friend adding request, and sending the friend adding request to the smart phone bound to the smart water cup includes: When two or more smart cups clink glasses at the same location and time, a friend request is generated; The smartphone app sends all received friend request information to the backend server; The backend server distributes all friend adding request information to the corresponding user accounts bound to each smart water cup, and sends it to the smartphone app bound to the corresponding user account, waiting for the smart water cup user to confirm the friend adding request.
2. The method for making friends by clinking glasses based on a smart cup according to claim 1, characterized in that: The step of obtaining acceleration data of the smart water cup includes: When the smart cup is detected to be picked up, the gsensor sensor set on the smart cup wakes up the smart cup; Continuously detect the gsensor sensor of the smart water cup to obtain the acceleration data of the smart water cup.
3. A device for making friends by clinking glasses based on a smart cup, characterized in that: include: An acquisition module is used to obtain acceleration data of the smart water cup; A cup clinking judgment module, used for judging whether the smart cup has a cup clinking action based on the acceleration data; Broadcast module, used to control the broadcast of smart cup information when the smart cup has a clinking action; A time and place determination module, used to determine whether there are two or more smart water cups with the same clinking place and time based on the broadcast with the smart water cup information; A friend adding processing module is used to generate a friend adding request when two or more smart water cups clink glasses at the same location and time, and send the friend adding request to the smart phone bound to the smart water cup; The step of obtaining acceleration data of the smart water cup includes: Set up the gsensor sensor and iBeacon module on the smart water cup in advance; Bind the smart water cup to the corresponding user account in advance, and install the prefabricated smart water cup app on the corresponding user's smartphone to log in to the user account, thereby binding the user account to the corresponding user's smartphone; All smart phones installed with the prefabricated smart water cup app can receive the broadcast with smart water cup information sent by the smart water cup, and determine that the location and time of the smart water cup clinking are consistent according to the positioning information and time; All smart phones installed with the prefabricated smart water cup app can send the friend request information of the smart water cup to the remote server; The step of judging whether the smart water cup has a cup-clinking action based on the acceleration data comprises: Acquire speed data of the continuous action, and determine whether the continuous action is a glass clinking action through an algorithm according to the speed data; The gsensor is used to sense the acceleration of the smart water cup and return the acceleration values in the three directions of the xyz axis. When the acceleration values in the three directions of the xyz axis of the continuous action are forward first, paused, and then returned to the back, it can be determined that the continuous action is a cup clinking action. When the smart cup has a clinking action, the step of controlling to initiate a broadcast with the smart cup information comprises: When a clinking action is detected, the smart cup is controlled to switch to ibeacon mode and send an ibeacon broadcast with its own ID; After the broadcast is completed, switch back to BLE mode; All smart phones installed with the prefabricated smart water cup app can receive the broadcast with smart water cup information sent by the smart water cup, and judge that the location and time of the smart water cup clinking are consistent according to the positioning information and time; thus, it is convenient to realize the function of clinking glasses and making friends through the smart water cup; The step of judging whether there are two or more smart water cups with the same clinking location and time based on the broadcast with the smart water cup information comprises: The smart phone receives the ibeacon broadcast, and parses the ibeacon broadcast to obtain the time and location of the smart cup clink; When a smart phone with a pre-installed smart cup app receives two or more ibeacon broadcasts within a preset range within the same period of time, it is determined that the time and location of the cup clinking action are consistent, where the same period of time means the time is consistent, and the distance within the preset range means the location is consistent; When two or more smart water cups clink glasses at the same location and time, generating a friend adding request, and sending the friend adding request to the smart phone bound to the smart water cup includes: When two or more smart cups clink glasses at the same location and time, a friend request is generated; The smartphone app sends all received friend request information to the backend server; The backend server distributes all friend adding request information to the corresponding user accounts bound to each smart water cup, and sends it to the smartphone app bound to the corresponding user account, waiting for the smart water cup user to confirm the friend adding request.
4. An intelligent terminal, characterized in that: The smart terminal includes: a memory and a processor; the memory stores a processing program for clinking glasses and making friends based on a smart water cup that can be run on the processor, and when the processing program for clinking glasses and making friends based on a smart water cup is executed by the processor, the steps of the processing method for clinking glasses and making friends based on a smart water cup are implemented as described in any one of claims 1-2.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program for clinking glasses and making friends based on a smart cup. When the program for clinking glasses and making friends based on a smart cup is executed by a processor, the steps of the method for clinking glasses and making friends based on a smart cup are implemented as claimed in any one of claims 1 to 2.
Citation Information
Patent Citations
Data processing method, intelligent cup networking system and electronic equipment
CN108702384A