Disclosure of Invention
In view of the above, there is a need to provide a group management method, apparatus, system, computer device and readable storage medium.
In one aspect, an embodiment of the present application provides a group management method, where the method includes:
acquiring identity identification information of a plurality of intelligent cups;
judging whether each piece of identity identification information is in a group identity information list or not, wherein the group identity information list comprises identity identification information corresponding to all intelligent cups in the intelligent cup group;
if the identity identification information is not in the group identity information list, sending a request group entering instruction to a terminal through a server, wherein the request group entering instruction is used for requesting whether to approve to join the intelligent cup group or not;
receiving an instruction sent by the server and based on the request to join the group, wherein the operation instruction is used for indicating whether to approve to join the intelligent cup group;
and managing the intelligent cup group according to the operation instruction.
In one embodiment, the managing the group of smart cups according to the operation instructions includes:
if the operation instruction is to approve to join the intelligent cup group, then:
acquiring an equipment identification code corresponding to the identity identification information;
and adding the equipment identification codes into a group equipment identification code list, wherein the group equipment identification code list comprises the equipment identification codes corresponding to all the intelligent cups in the intelligent cup group.
In one embodiment, the method further comprises:
and adding the identity identification information into the group identity information list.
In one embodiment, the method further comprises:
and if the identity identification information is in the group identity information list, deleting the identity identification information from the group identity information list.
In a second aspect, an embodiment of the present application provides a group management method, including:
receiving a group identifier of an intelligent cup group sent by a terminal;
receiving a request instruction sent by a starter, wherein the request instruction comprises identity identification information of the intelligent cup, and the request instruction is used for indicating to join or quit an intelligent cup group corresponding to the group identification;
if the request instruction is to request to join the intelligent cup group, sending a request group entering instruction to the terminal, wherein the request group entering instruction is used for requesting whether to allow the intelligent cup group to be joined or not;
receiving a group entering request instruction sent by the terminal, wherein the operation instruction is used for indicating whether to approve to join the intelligent cup group;
and managing the intelligent cup group corresponding to the group identification according to the operation instruction.
In one embodiment, the managing the group information of the smart cups corresponding to the group identifier according to the operation instruction includes:
if the operation instruction is to approve to join the intelligent cup group, then:
and adding the identity identification information into a group identity information list corresponding to the group identification, wherein the group identity information list comprises identity identification information corresponding to all the intelligent cups in the intelligent cup group.
In one embodiment, if the operation instruction is to approve to join the group of smart cups, the method further includes:
acquiring an equipment identification code corresponding to the identity identification information;
sending the device identification code to the initiator.
In one embodiment, the managing the group information of the smart cups corresponding to the group identifier according to the operation instruction includes:
and if the operation instruction is refusing to join the intelligent cup group, sending the operation instruction to the starter.
In one embodiment, if the request command is a request to join a group, the method further includes:
judging whether the intelligent cup is bound with the terminal;
and if not, binding the intelligent cup with the terminal.
In one embodiment, the method further comprises:
and if the request command is to request to quit the intelligent cup group, deleting the identity identification information from a group identity information list corresponding to the group identification.
In one embodiment, the receiving a request instruction sent by an initiator includes:
and receiving a request instruction sent by the initiator through the gateway.
In one embodiment, the method further comprises:
receiving a display mode of an intelligent cup indicator lamp sent by the gateway;
and sending the display mode to the terminal.
The present application further provides a group management system, comprising an initiator and a server, wherein the initiator is configured to perform the steps of the method as provided in the first aspect; the server is adapted to perform the steps of the method as provided in the second aspect above.
The application also provides an intelligent cup group management device, including:
the identity identification acquisition module is used for acquiring identity identification information of the intelligent cup;
the judging module is used for judging whether each piece of identity identification information is in a group identity information list or not, wherein the group identity information list comprises identity identification information corresponding to all intelligent cups in the intelligent cup group;
a request group-entering instruction sending module, configured to send a request group-entering instruction to a terminal through a server if the identity information is not in the group identity information list, where the request group-entering instruction is used to request whether to approve joining the smart cup group;
an operation instruction receiving module, configured to receive an operation instruction based on the request group entering instruction sent by the server, where the operation instruction is used to indicate whether to approve joining the smart cup group;
and the management module is used for managing the intelligent cup group according to the operation instruction.
The application also provides an intelligent cup group management device, including:
the group identification receiving module is used for receiving the group identification of the intelligent cup group sent by the terminal;
the request instruction receiving module is used for receiving a request instruction sent by the starter, wherein the request instruction comprises the identity identification information of the intelligent cup, and the request instruction is used for indicating to join or leave the intelligent cup group corresponding to the group identification;
a request group-entering instruction sending module, configured to send a request group-entering instruction to the terminal if the request instruction requests to join the smart cup group, where the request group-entering instruction is used to request whether to grant the joining of the smart cup group;
an operation instruction receiving module, configured to receive an operation instruction based on the request group entering instruction sent by the terminal, where the operation instruction is used to indicate whether to approve joining the smart cup group;
and the management module is used for managing the intelligent cup group corresponding to the group identification according to the operation instruction.
The present application further provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the method as described above when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method as set forth above.
According to the group management method, the device, the system, the computer equipment and the readable storage medium, the identification information of the intelligent cups is obtained through the starter, whether the identification information is in the group identification information list or not is judged, and if the identification information is not in the group identification information list, the server obtains the operation instruction from the terminal to manage the intelligent cup group. The group management method, the device, the system, the computer equipment and the readable storage medium can add a plurality of intelligent cups into a group by identifying the identity information of the intelligent cups, so as to realize the establishment and management of the intelligent cup group. The establishment and management of the intelligent cup group provide conditions for interaction among a plurality of intelligent cups, so that a plurality of people can participate in the interaction at the same time, and more scene requirements can be met. Meanwhile, the group management method, the group management device, the group management system, the computer equipment and the readable storage medium realize the establishment and management of the group through the starter, so that the intelligent cup can be controlled through the starter to realize game and interaction subsequently, the participation of a terminal is not needed, a user does not need to pay attention to a mobile phone constantly, and the interaction effect is good.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application are further described in detail by the following embodiments in combination with the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not limiting of the application.
Referring to fig. 1, the group management method provided in the present application may be applied to the application environment shown in fig. 1. Wherein, the starter 10 can be connected with the smart cup 20 through a local area network, the starter 10 directly or indirectly communicates with the server 30 through a network, and the terminal 40 communicates with the server 30 through the network. The smart cup 20 comprises an identity identifier and the initiator 10 comprises an identity identifier. The starter 10 can recognize the identification information of the identifier of the smart cup 20 through the identifier. The initiator 10 can mutually transmit data such as information, instructions, and the like with the server 30 via the network. The terminal 40 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster composed of a plurality of servers. The initiator 10 comprises a processor and a memory, the processor being capable of processing computer programs.
The method provided by the embodiment of the application can be used for managing the smart cup group, and specifically includes but is not limited to establishing the smart cup group, joining the smart cup group or exiting the smart cup group.
Referring to fig. 2, an embodiment of the present application provides a group management method, which includes S110-S150. The method provided by the present embodiment may be run in a starter as shown in fig. 1.
S110, obtaining the identification information of the intelligent cups.
The identity identification information refers to information for identifying the unique identity of the intelligent cup, and an identity identifier can be arranged on the intelligent cup and can be a two-dimensional code or a radio frequency tag and the like. An identity recognizer is arranged in the starter, and the identity recognizer can be a code reader or a radio frequency reader. The identity recognizer can recognize the information of the identity marker to obtain the unique identity information of the intelligent cup. By taking the identity identifier as a radio frequency tag and the identity identifier as a radio frequency tag as an example, during operation, the intelligent cup can be close to the starter, and the starter can recognize and read the identity information of the intelligent cup. Optionally, the identification information may be a bluetooth MAC address of the smart cup.
S120, judging whether each identity information is in a group identity information list or not; the group identity information list comprises identity identification information corresponding to all the intelligent cups in the intelligent cup group.
The smart cup group refers to a combination of a plurality of smart cups. The group identity information list represents the situation of the smart cup group, the group identity information list is stored in a memory of the starter, and the group identity information list can comprise the total number of the smart cups in the smart cup group, the identity identification information of each smart cup and the like. Optionally, the group identity information list may further include a time when each smart cup joins the group, and the like. It will be appreciated that when a group is established by the initiator, the list of group identity information may be empty before the first smart cup joins.
After the starter obtains the identity information of the intelligent cup, the identity information is compared with the group identity information list one by one, or the inquiry is carried out in the group identity information list, and whether the identity information is in the group identity information list or not is judged.
And S130, if the identity identification information is not in the group identity information list, sending a request group entering instruction to the terminal through the server, wherein the request group entering instruction is used for requesting whether to approve to join the intelligent cup group or not.
If the identity information is not in the group identity information list, the fact that the intelligent cup corresponding to the identity information needs to be added into the intelligent cup group is shown. The starter sends a request group entering instruction to the terminal through the server and inquires whether the current intelligent cup is allowed to be added into the intelligent cup group.
S140, receiving an operation instruction based on the request group entering instruction sent by the server, wherein the operation instruction is used for indicating whether to approve to join the smart cup group.
The terminal receives an operation instruction input by a user and sends the operation instruction to the starter through the server. For example, after a certain smart cup approaches the starter, the starter obtains the identification information of the smart cup, and after the judgment, the identification information is not in the group identification information list, the starter sends a request instruction to the mobile phone through the server, and the mobile phone interface displays "is it agreed to join the current smart cup group? The user makes a selection according to the inquiry information, and the mobile phone sends the obtained operation instruction to the starter through the server.
And S150, managing the intelligent cup group according to the operation instruction.
And after the starter receives the operation instruction, managing the intelligent cup group according to the operation instruction, and selecting to add the current intelligent cup into the intelligent cup group or not to add the intelligent cup group. The starter can manage the intelligent cup group by managing and updating the group identity identification list. Meanwhile, each intelligent cup in the intelligent cup group can be controlled and managed through the starter.
In this embodiment, the intelligent cup group is managed by acquiring the identification information of the plurality of intelligent cups, determining whether each identification information is in the group identification information list, and if the identification information is not in the group identification information list, acquiring an operation instruction from the terminal through the server. The method provided by the embodiment can add a plurality of intelligent cups into the group by identifying the identification information of the intelligent cups, thereby realizing the establishment and management of the intelligent cup group. The establishment and management of the intelligent cup group provide conditions for interaction among a plurality of intelligent cups, so that a plurality of people can participate in the interaction at the same time, and more scene requirements can be met. Meanwhile, the method provided by the embodiment realizes the establishment and management of the group through the starter, so that the game and the interaction can be realized subsequently by controlling the intelligent cup through the starter without the participation of a terminal, a user does not need to pay attention to a mobile phone all the time, and the interaction effect is good.
Referring to fig. 3, the present embodiment relates to a possible implementation manner of managing the smart cup group according to the operation instruction if the operation instruction agrees to join the smart cup group, as shown in fig. 3, S150 includes:
and S151, acquiring the equipment identification code corresponding to the identity identification information.
The device identification code (dice ID) may be a dynamic identification code that uniquely corresponds to the identification information, the device identification code being used to characterize the unique identification information of the smart cups that are eligible to join the smart cup group. The device identification code can be randomly distributed and issued to the starter through the server, specifically, after the server receives an instruction of agreeing to join the intelligent cup group sent by the terminal, the only device identification code is randomly distributed and sent to the starter.
S152, adding the equipment identification codes into a group equipment identification code list, wherein the group equipment identification code list comprises the equipment identification codes corresponding to all the intelligent cups in the intelligent cup group.
The initiator adds the received device identification code into the group device identification code list. The device identification code list includes information of smart cups agreeing to join the smart cup group, and optionally, the device identification code list may include the total number of smart cups in the smart cup group, a device identification code of each smart cup in the smart cup group, and a joining time of each device identification code. The list of device identifiers may be used for control of each smart cup in the list in a group of smart cups using the bluetooth MESH network by a subsequent initiator.
In this embodiment, when the operation instruction agrees to join the smart cup group, the update of the smart cup group is realized by acquiring the device identification code corresponding to the identity information and adding the device identification code to the group device identification code list. Meanwhile, the intelligent cup group is managed through the equipment identification code, so that the follow-up control of the intelligent cups in the intelligent cup group is facilitated, and the management and control efficiency of the intelligent cup group is improved.
Further, as shown in fig. 3, S150 further includes:
s153, adding the identification information into the group identification information list.
If the operation instruction is that the intelligent cup group is allowed to be added, identity identification information is further added into the group identity information list, and the group identity information list is updated, so that the information of the intelligent cup group is accurate, comparison between the intelligent cup group and the group identity information list when the intelligent cup group is added or quitted is facilitated, and the accuracy of intelligent cup group management is improved.
Referring to fig. 4, when a user needs to exit a group of smart cups from a current group of smart cups, the method may be implemented in the manner shown in fig. 4, and the method further includes:
s160, if the id information is in the group id information list, deleting the id information from the group id information list.
The starter compares the acquired identification information with the group identification information list, the identification information is in the group identification information list and indicates that the current intelligent cup needs to quit the group, and the starter deletes the identification information list. Further, the starter deletes the equipment identification code corresponding to the identity identification information in the equipment identification code list.
In this embodiment, when the identity information is in the group identity information list, the identity information is deleted from the group identity information list, and the smart cup exits from the current smart cup group, so that group management is further implemented, and the group management function is improved.
Referring to fig. 5, an embodiment of the present application further provides a group management method, which includes S210-S250. The method provided by the embodiment can be operated in the server shown in fig. 1.
S210, receiving the group identification of the intelligent cup group sent by the terminal.
The group identification is information representing the unique identity of the current intelligent cup group, the group identification is uniquely corresponding to the starter, and one starter can establish the intelligent cup group with the unique group identification. The server can manage a plurality of intelligent cup groups, so that the server can store group identifications corresponding to the plurality of intelligent cup groups. The terminal can obtain the group identification of the intelligent cup group in the forms of scanning the two-dimensional code and the like arranged on the starter, and transmits the group identification to the server, and the server receives the group identification. The terminal may interact with the server through the installed application. Alternatively, the application may be an applet.
And S220, receiving a request instruction sent by the starter, wherein the request instruction comprises the identity identification information of the intelligent cup, and the request instruction is used for indicating to join or quit the intelligent cup group corresponding to the group identification.
The starter sends a request instruction for requesting the intelligent cup corresponding to the current identity identification information to join or quit the intelligent cup group to the server, and the server receives the request instruction.
And S230, if the request instruction is to request to join the intelligent cup group, sending a request group entering instruction to the terminal, wherein the request group entering instruction is used for requesting whether to allow the intelligent cup group to be joined or not.
And if the request instruction is a request for joining the intelligent cup group, the server further sends a request group joining instruction to the terminal to request the intelligent cup corresponding to the current identity representation information to join the intelligent cup group.
S240, receiving an operation instruction based on the request group entering instruction sent by the terminal, wherein the operation instruction is used for indicating whether to approve to join the intelligent cup group.
The terminal asks the user whether the user agrees to join the smart cup group. The user inputs an operation instruction to the terminal in modes of input, click and the like, and the terminal receives the operation instruction input by the user and sends the operation instruction to the server. The server receives the operation instruction.
And S250, managing the intelligent cup group corresponding to the group identification according to the operation instruction.
And after receiving the operation instruction, the server manages the intelligent cup group according to the content of the operation instruction, and selects to add or not add the current intelligent cup into the intelligent cup group corresponding to the group identifier. The server can manage and update all the intelligent cup groups by managing the group identity information list and the equipment identification code list.
In this embodiment, by receiving the group identifier of the smart cup group sent by the terminal and the request instruction sent by the initiator, when the request instruction requests to join the smart cup group, the operation instruction is obtained from the terminal, and the smart cup group corresponding to the group identifier is managed according to the operation instruction. The method provided by the embodiment can add a plurality of intelligent cups into the group by receiving the group identification of the intelligent cup group sent by the terminal and the request instruction sent by the starter, so as to realize the establishment and management of the intelligent cup group. The establishment and management of the intelligent cup group provide conditions for interaction among a plurality of intelligent cups, so that a plurality of people can participate in the interaction at the same time, and more scene requirements can be met.
Referring to fig. 6, the present embodiment relates to a possible implementation manner of managing the smart cup group corresponding to the group identifier according to the operation instruction if the operation instruction agrees to join the smart cup group, as shown in fig. 6, S240 includes:
s251, adding the identity identification information into a group identity information list corresponding to the group identification; the group identity information list comprises identity identification information corresponding to all intelligent cups in the intelligent cup group.
The group identity information list characterizes the condition of the smart cup group, and is stored in a memory of the server. And if the server receives an operation instruction which is sent by the terminal and agrees to join the intelligent cup group, the server searches a group identity information list corresponding to the group identification and adds the current identity identification information into the group identity information list.
And S252, acquiring the equipment identification code corresponding to the identity identification information.
And S253, sending the equipment identification code to the initiator.
And the server randomly allocates the equipment identification code which is uniquely corresponding to the identity identification information and sends the equipment identification code to the starter. Optionally, the server may further store the device identification code in a memory, and add the device identification code to a device identification code list stored therein. The device identification code and the meaning of the device identification code list refer to the above embodiments, and are not described herein again.
In this embodiment, when the operation instruction agrees to join the smart cup group, the current smart cup is added to the smart cup group by adding the identity information to the group identity information list corresponding to the group identity. According to the method provided by the embodiment, the identification information is added into the group identification information list corresponding to the group identification, the group identification information list is updated, the management of the intelligent cup is realized, and the accuracy is high. Meanwhile, the equipment identification code corresponding to the identity identification information is acquired, and the equipment identification code is sent to the starter, so that the starter can conveniently manage and control the intelligent cup group through the equipment identification code, and the group management efficiency of the starter is improved.
This embodiment relates to a possible implementation manner if the operation instruction is to refuse to join the smart cup group, S250 further includes:
and S254, if the operation instruction is refusal to join the intelligent cup group, sending the operation instruction to the starter.
When the server receives the operation instruction sent by the terminal and refuses to join the intelligent cup group, the server only sends the operation instruction refusing to join the intelligent cup group to the starter.
Referring to fig. 7, the embodiment relates to a method for determining the binding between the smart cup and the terminal if the request command is to request to join the group, and referring to fig. 7, the method further includes:
and S260, judging whether the intelligent cup is bound with the terminal.
The terminal can enter the applet while acquiring the group identifier by scanning the two-dimensional code of the starter, and the server can acquire the terminal identifier information of the terminal through the applet. Further, the server can judge whether the current intelligent cup is bound with the terminal by inquiring the stored intelligent cup and terminal binding list.
And S270, if not, binding the intelligent cup with the terminal.
And if the intelligent cup is not bound with the terminal, the server associates the identity identification code with the terminal identification information to form binding.
If yes, step S250 is executed to manage the smart cup group according to the operation instruction, and specific implementation manners refer to the above embodiments, which are not described herein again.
In the embodiment, whether the intelligent cup is bound with the terminal or not is judged, and the intelligent cup is bound with the terminal, so that the terminal and the intelligent cup are in one-to-one correspondence, a user can conveniently join a network for intelligent cup group management through the terminal, and the man-machine interaction intelligence is improved.
Referring to fig. 8, when a user needs to exit a group of smart cups from a current group of smart cups, the method may be implemented in the manner shown in fig. 8, and the method further includes:
and S280, if the request command is to request to quit the smart cup group, deleting the identity identification information from the group identity information list corresponding to the group identification.
And if the server receives a command of requesting to quit the intelligent cup group sent by the starter, the server searches a group identity information list corresponding to the group identification and deletes the group identity information list. The method provided by the embodiment realizes that the current intelligent cup exits the intelligent cup group, and further improves the function of intelligent cup group management.
The server and the initiator can communicate with each other or indirectly communicate with each other. The embodiment relates to the method for receiving a request instruction sent by an initiator when the server and the initiator realize communication through a gateway. Referring to fig. 9, S220 includes:
and S221, receiving a request instruction sent by the initiator through the gateway.
The starter sends the request instruction to the server through the gateway, and meanwhile, the server sends information such as the equipment identification code and the operation instruction of refusing to join the group to the starter through the gateway. The interaction between the starter and the server is realized through the gateway, the communication between a local area network and a wide area network is realized, and the interaction between the starter and the intelligent cup can be realized in the local area network.
Referring to fig. 10, the present embodiment relates to a possible implementation manner of implementing the confirmation information by using a server, and as shown in fig. 10, the method further includes:
and S290, receiving the display mode of the intelligent cup indicator lamp sent by the gateway.
When the gateway receives the message sent by the starter, the display mode of the intelligent cup indicator lamp is acquired and simultaneously sent to the intelligent cup and the server, and meanwhile, the gateway controls the intelligent cup to be added into the intelligent cup group to display in the display mode. The display mode of the smart cup indicator light may include one of displaying color, displaying time, displaying frequency, and the like. The server receives the display mode of the intelligent cup indicator lamp.
And S291, transmitting the display mode to the terminal.
The server sends the display mode of the intelligent cup indicator lamp to the terminal, the terminal prompts to inquire the display mode, and the user confirms. The terminal receives display mode confirmation information input by a user, and the server receives the confirmed display mode and sends the display mode to the starter.
In this embodiment, through the display mode of receiving the intelligence cup pilot lamp that the gateway sent to with display mode send to the terminal, make the user can confirm the intelligence cup of treating joining in intelligence cup group, improved the accuracy of intelligence cup group management.
It should be understood that although the various steps in the flow charts of fig. 2-10 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-10 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
One embodiment of the present application provides a group management system, which includes an initiator and a server. Wherein, the initiator is used for executing the steps of the method provided by the embodiment shown in fig. 2-4; the server is configured to execute steps for implementing the methods provided by the embodiments shown in fig. 5-10.
Referring to fig. 11, the process of the method steps executed by the group management system according to the present embodiment is as follows:
s301, the terminal obtains the group identification of the intelligent cup group and sends the group identification to the server.
S310, the starter obtains the identification information of the intelligent cup.
S320, the initiator compares the id information with the group information list stored in its memory, and determines whether the id information is in the group id information list, if the id information is not in the group id information list of the initiator, step S321 is executed, and if the id information is not in the group id information list of the initiator, step S391 is executed.
S321, the initiator sends a request group entering instruction to the gateway, the request group entering instruction comprises identity identification information, and the request group entering instruction is used for requesting whether to allow the identity identification information to be added into the smart cup group or not.
S322, the gateway randomly obtains the display mode of the intelligent cup indicator lamp.
And S323, the gateway sends the request group-entering instruction and the display mode to the server.
And S324, the gateway sends the display mode to the intelligent cup.
And S330, controlling the indicator lamp of the intelligent cup to display according to the display mode.
And S350, the server judges whether the intelligent cup is bound with the terminal according to the identity identification information and the terminal identification information in the group entering request instruction, if not, the step S351 is executed, and if bound, the step S360 is executed.
S351, binding the terminal and the intelligent cup.
And S360, the server sends the request group entering instruction and the display mode to the terminal.
And S370, the terminal displays the group entering request instruction and the display mode and acquires the operation instruction. The operation instruction is used for indicating whether the intelligent cup corresponding to the display mode is allowed to be added into the intelligent cup group. For example: "please confirm whether to agree with a red-lit smart cup joining the group? ". And the user inputs an operation instruction according to the color displayed by the intelligent cup and the prompt information of the terminal, and indicates to approve to join the intelligent cup group or refuse to join the intelligent cup group. If the operation command indicates that the user agrees to join the smart cup group, step S3811 is performed, and if the operation command indicates that the user refuses to join the smart cup group, step S382 is performed.
S3811, the server adds the identity identification information into a group identity information list which is stored in a server memory and corresponds to the group identification, and meanwhile, the equipment identification code is randomly distributed.
S3812, the server sends the equipment identification code and the operation instruction which agrees to join the intelligent cup group to the starter through the gateway.
S3813, the initiator adds the equipment identification code into the group equipment identification code list and adds the identity identification code into the group identity information list. The joining of the group is completed.
S382, the server sends the instruction of refusing to join the intelligent cup group to the initiator through the gateway.
S391, the starter deletes the identity identification information from the group identity information list and deletes the equipment identification code corresponding to the identity identification information from the group equipment identification code list.
And S392, the initiator sends a group quitting request to the server through the gateway.
S393, the server deletes the identification information from the group identification information list stored therein.
And S394, the server sends prompt information to the terminal to prompt that the intelligent cups are successfully grouped.
The specific embodiment of the group management system provided in this embodiment is similar to the above embodiments in process and beneficial effect, and is not described herein again.
Referring to fig. 12, an embodiment of the present application provides an intelligent cup group management apparatus 10, which includes an identification obtaining module 110, a determining module 120, a request group entering instruction sending module 130, an operation instruction receiving module 140, and a management module 150.
The identification obtaining module 110 is configured to obtain identification information of the smart cup;
the judging module 120 is configured to judge whether each piece of identification information is in a group identification information list, where the group identification information list includes identification information corresponding to all smart cups in a smart cup group;
the request group entering instruction sending module 130 is configured to send a request group entering instruction to the terminal through the server if the identity information is not in the group identity information list, where the request group entering instruction is used to request whether to approve to join the smart cup group;
the operation instruction receiving module 140 is configured to receive an operation instruction sent by the server and based on the request group entering instruction, where the operation instruction is used to indicate whether to approve to join the smart cup group;
the management module 150 is configured to manage the group of smart cups according to the operation instruction.
In one embodiment, the management module 150 is configured to obtain an equipment identifier corresponding to the identification information if the operation instruction agrees to join the smart cup group; and adding the equipment identification codes into a group equipment identification code list, wherein the group equipment identification code list comprises the equipment identification codes corresponding to all the intelligent cups in the intelligent cup group.
In one embodiment, the management module 150 is further configured to add the identification information to the group identity information list.
In one embodiment, the management module 150 is further configured to delete the id information from the group id information list if the id information is in the group id information list.
Referring to fig. 13, an embodiment of the present application provides a smart cup group management apparatus 20, which includes a group identifier receiving module 210, a request instruction receiving module 220, a request group entering instruction sending module 230, an operation instruction receiving module 240, and a management module 250. Wherein,
the group identifier receiving module 210 is configured to receive a group identifier of an intelligent cup group sent by a terminal;
the request instruction receiving module 220 is configured to receive a request instruction sent by the initiator, where the request instruction includes identification information of the smart cup, and the request instruction is used to instruct to join or leave a smart cup group corresponding to the group identifier;
the group request instruction sending module 230 is configured to send a group request instruction to the terminal if the group request instruction is to request to join the smart cup group, where the group request instruction is used to request whether to approve joining the smart cup group;
the operation instruction receiving module 240 is configured to receive an operation instruction based on the request group entering instruction sent by the terminal, where the operation instruction is used to indicate whether to approve to join the smart cup group;
the management module 250 is used for managing the intelligent cup group according to the operation instruction.
In one embodiment, the management module 250 is further configured to, if the operation instruction is to approve to join the group of smart cups: and adding the identity identification information into a group identity information list corresponding to the group identification, wherein the group identity information list comprises identity identification information corresponding to all the intelligent cups in the intelligent cup group.
Referring to fig. 14, in one embodiment, the smart cup group management apparatus 20 further includes a device identification code processing module 260. And the equipment identification code processing module 260 is used for acquiring an equipment identification code corresponding to the identity identification information if the operation instruction agrees to join the intelligent cup group, and sending the equipment identification code to the starter.
In one embodiment, the management module 250 is further configured to send the operation instruction to the initiator if the operation instruction is to refuse to join the group of smart cups.
Referring to fig. 15, in one embodiment, the smart cup group management device 20 further includes a binding module 270. The binding module 270 is configured to determine whether the smart cup is bound to the terminal if the request command is a request to join a group, and bind the smart cup to the terminal if the request command is not a request to join a group.
In one embodiment, the management module 250 is further configured to delete the id information from the group id list corresponding to the group id if the request command is a request to exit the group of smart cups.
In an embodiment, the request instruction receiving module 220 is specifically configured to receive a request instruction sent by the initiator through the gateway.
Referring to fig. 16, in one embodiment, the smart cup group management device 20 further includes a display mode processing module 280. The display mode processing module 280 is configured to receive the display mode of the smart cup indicator sent by the gateway, and send the display mode to the terminal.
For the specific limitations of the above-mentioned smart cup group management device 10 and the smart cup group management device 20, reference may be made to the limitations of the above-mentioned smart cup group management method, which will not be described herein again. The modules in the above-mentioned smart cup group management device 10 and the smart cup group management device 20 may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Referring to fig. 17, in one embodiment, a computer device is provided, and the computer device may be a server, and the internal structure thereof may be as shown in fig. 17. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing source data, report data and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a report generating method.
Those skilled in the art will appreciate that the architecture shown in fig. 17 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring identity identification information of a plurality of intelligent cups;
judging whether each piece of identity identification information is in a group identity information list or not, wherein the group identity information list comprises identity identification information corresponding to all intelligent cups in the intelligent cup group;
if the identity identification information is not in the group identity information list, sending a request group entering instruction to a terminal through a server, wherein the request group entering instruction is used for requesting whether to approve to join the intelligent cup group or not;
receiving an instruction sent by the server and based on the request to join the group, wherein the operation instruction is used for indicating whether to approve to join the intelligent cup group;
and managing the intelligent cup group according to the operation instruction.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
receiving a group identifier of an intelligent cup group sent by a terminal;
receiving a request instruction sent by a starter, wherein the request instruction comprises identity identification information of the intelligent cup, and the request instruction is used for indicating to join or quit an intelligent cup group corresponding to the group identification;
if the request instruction is to request to join the intelligent cup group, sending a request group entering instruction to the terminal, wherein the request group entering instruction is used for requesting whether to allow the intelligent cup group to be joined or not;
receiving a group entering request instruction sent by the terminal, wherein the operation instruction is used for indicating whether to approve to join the intelligent cup group;
and managing the intelligent cup group corresponding to the group identification according to the operation instruction.
The specific processes and advantages of the above method steps implemented by the computer device processor provided in the above embodiments are similar to those of the corresponding method embodiments, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring identity identification information of a plurality of intelligent cups;
judging whether each piece of identity identification information is in a group identity information list or not, wherein the group identity information list comprises identity identification information corresponding to all intelligent cups in the intelligent cup group;
if the identity identification information is not in the group identity information list, sending a request group entering instruction to a terminal through a server, wherein the request group entering instruction is used for requesting whether to approve to join the intelligent cup group or not;
receiving an instruction sent by the server and based on the request to join the group, wherein the operation instruction is used for indicating whether to approve to join the intelligent cup group;
and managing the intelligent cup group according to the operation instruction.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a group identifier of an intelligent cup group sent by a terminal;
receiving a request instruction sent by a starter, wherein the request instruction comprises identity identification information of the intelligent cup, and the request instruction is used for indicating to join or quit an intelligent cup group corresponding to the group identification;
if the request instruction is to request to join the intelligent cup group, sending a request group entering instruction to the terminal, wherein the request group entering instruction is used for requesting whether to allow the intelligent cup group to be joined or not;
receiving a group entering request instruction sent by the terminal, wherein the operation instruction is used for indicating whether to approve to join the intelligent cup group;
and managing the intelligent cup group corresponding to the group identification according to the operation instruction.
The specific processes and advantageous effects of implementing the above method steps by the computer-readable storage medium provided by the above embodiments are similar to those of the corresponding method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. 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. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.