CN114154600A - Drinking water management method and device - Google Patents

Drinking water management method and device Download PDF

Info

Publication number
CN114154600A
CN114154600A CN202111017371.7A CN202111017371A CN114154600A CN 114154600 A CN114154600 A CN 114154600A CN 202111017371 A CN202111017371 A CN 202111017371A CN 114154600 A CN114154600 A CN 114154600A
Authority
CN
China
Prior art keywords
water
drinking water
user
drinking
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111017371.7A
Other languages
Chinese (zh)
Inventor
袁焘
罗景开
宋志鸿
赵云
黄必成
昂永程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Midea Group Co Ltd
Foshan Shunde Midea Water Dispenser Manufacturing Co Ltd
Original Assignee
Midea Group Co Ltd
Foshan Shunde Midea Water Dispenser Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Midea Group Co Ltd, Foshan Shunde Midea Water Dispenser Manufacturing Co Ltd filed Critical Midea Group Co Ltd
Priority to CN202111017371.7A priority Critical patent/CN114154600A/en
Publication of CN114154600A publication Critical patent/CN114154600A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication

Abstract

The invention relates to the field of household appliances, and provides a drinking water management method and a drinking water management device, wherein the drinking water management method comprises the following steps: reading the coded information of the cup label; determining a cup check code based on the coded information; under the condition that the cup check code is consistent with the target check code, outputting a water supply instruction for controlling the water drinking equipment to supply water according to the water taking parameter through the water taking parameter read from the cup label; under the condition that water supply is finished, generating user drinking water information and sending the user drinking water information to a server; and receiving drinking water prompt information sent by the server and displaying the drinking water prompt information. The invention can automatically generate a water supply instruction under the condition that the target check code is consistent with the cup check code, and does not need to manually control the water outlet of the drinking water equipment by a user like the traditional method. Under the condition that the water supply is accomplished, the server can be based on the automatic formation of user's drinking water information that drinking water equipment sent and send drinking water prompt message, realizes carrying out the suggestion of customization drinking water according to different user's drinking water information.

Description

Drinking water management method and device
Technical Field
The invention relates to the technical field of household appliances, in particular to a drinking water management method and device.
Background
With the development of science and technology and the continuous innovation of technology, various drinking water devices emerge endlessly.
However, the conventional drinking water apparatus controls the water discharge by a manual operation of a user. In addition, the user usually drinks water when feeling thirsty, and the physical health requirements of the user cannot be met.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a drinking water management method, which not only can automatically supply water according to water taking parameters, but also can carry out customized drinking water prompt according to drinking water information of different users.
The invention further provides a drinking water management device.
The drinking water management method according to the embodiment of the first aspect of the invention is applied to drinking water equipment and comprises the following steps:
reading the coded information of the cup label;
determining a cup check code based on the coded information;
under the condition that the cup check code is consistent with the target check code, outputting a water supply instruction for controlling the water drinking equipment to supply water according to the water taking parameter through the water taking parameter read from the cup label;
under the condition that water supply is finished, generating user drinking water information and sending the user drinking water information to a server;
receiving drinking water prompt information sent by the server and displaying the drinking water prompt information; the drinking water prompt information is determined by the server based on the drinking water information of the user.
According to an embodiment of the present invention, the determining the cup check code based on the encoded information includes:
and carrying out redundancy check operation on the coded information to obtain the water cup check code.
According to an embodiment of the present invention, the performing redundancy check operation on the coded information to obtain the cup check code includes:
performing byte-by-byte XOR operation on target data bytes of the coded information to obtain the cup check code;
according to an embodiment of the present invention, the performing redundancy check operation on the coded information to obtain the cup check code includes:
determining a check coefficient based on the target check formula;
based on the check coefficient and the coding information, carrying out bit filling on the coding information to determine check coding data;
and determining a division operation result by taking the check coding data as a dividend and the check coefficient as a divisor, and determining the cup check code based on the division operation result.
According to one embodiment of the invention, the target check code is determined by logically right-shifting an initial check code by a target digit, and the initial check code is determined based on target coding information and the target check formula;
the determining the cup check code based on the division operation result includes:
and carrying out logic right shift on the division operation result by a target digit to obtain the cup check code.
According to one embodiment of the invention, the parameter of getting water is read based on the following steps:
reading the water getting parameters of the cup label when reading the coded information of the cup label;
alternatively, the first and second electrodes may be,
and reading the water taking parameters of the cup label under the condition that the cup check code is consistent with the target check code.
The drinking water management method according to the embodiment of the second aspect of the invention is applied to a server and comprises the following steps:
receiving user drinking water information sent by drinking water equipment;
and determining drinking water prompt information based on the user drinking water information, and sending the drinking water prompt information to the client.
According to the drinking water management method provided by the embodiment of the invention, the drinking water prompt information is determined based on the drinking water information of the user, so that customized scientific drinking water prompt can be realized according to the drinking water information of different users.
According to one embodiment of the invention, the user drinking water information comprises a user state and user drinking water data;
based on user drinking water information, confirm drinking water tip information, include:
determining a standard water intake of the user based on the user state;
determining the actual water drinking amount of the user based on the user drinking water data;
and determining the drinking prompt information based on the standard drinking amount and the actual drinking amount.
According to one embodiment of the invention, the user states comprise a user body state and a user motion state;
the determining the standard drinking water amount of the user based on the user state comprises the following steps:
determining a first recommended water intake based on the user's physical state;
determining a second recommended water intake based on the user motion state;
determining the standard water intake based on the first recommended water intake and the second recommended water intake.
According to an embodiment of the present invention, the determining drinking water prompting information based on the user drinking water information includes:
determining a drinking water evaluation result based on at least one of the water quality parameter and the placing time of the water in the water cup, wherein the drinking water information of the user comprises at least one of the water quality parameter and the placing time of the water in the water cup, and the drinking water prompt information comprises the drinking water evaluation result.
According to an embodiment of the invention, after said determining the drinking water evaluation result, the method further comprises:
and sending a water quality abnormity warning prompt to the client under the condition that the drinking water evaluation result is a target result.
According to an embodiment of the invention, after the determining drinking prompt information, the method further comprises:
and storing the drinking water prompt information to a database so that the database can establish a mapping relation between the user label and the drinking water prompt information.
According to an embodiment of the present invention, after the storing the drinking prompt information to the database, the method further comprises:
receiving a drinking water pushing request sent by the client, wherein the drinking water pushing request carries a user tag to be pushed;
and determining drinking water prompt information corresponding to the user tag to be pushed based on the mapping relation between the user tag and the drinking water prompt information, and sending the drinking water prompt information corresponding to the user tag to be pushed to the client.
According to the third aspect embodiment of the invention, the drinking water management device is arranged on drinking equipment and comprises:
the reading unit is used for reading the coded information of the cup label;
the checking unit is used for determining a water cup checking code based on the coded information;
the control unit is used for outputting a water supply instruction for controlling the water drinking equipment to supply water according to the water taking parameter through the water taking parameter read from the cup label under the condition that the cup check code is consistent with the target check code;
the sending unit is used for generating user drinking water information and sending the user drinking water information to the server under the condition that water supply is finished;
the display unit is used for receiving the drinking water prompt information sent by the server and displaying the drinking water prompt information; the drinking water prompt information is determined by the server based on the drinking water information of the user.
The drinking water management device according to the fourth aspect of the invention is applied to a server, and comprises:
the receiving unit is used for receiving user drinking water information sent by the drinking water equipment;
and the determining unit is used for determining drinking water prompt information based on the user drinking water information and sending the drinking water prompt information to the client.
An electronic device according to an embodiment of the fifth aspect of the present invention includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of any of the drinking water management methods as described above when executing the computer program.
A non-transitory computer readable storage medium according to a sixth aspect of the invention has stored thereon a computer program which, when being executed by a processor, carries out the steps of the drinking water management method according to any one of the preceding claims.
A computer program product according to an embodiment of the seventh aspect of the invention comprises a computer program which, when being executed by a processor, carries out the steps of the drinking water management method according to any one of the above-mentioned claims.
One or more technical solutions in the embodiments of the present invention have at least one of the following technical effects: under the condition that the target check code is consistent with the cup check code, the water taking parameters read from the cup label can automatically generate a water supply instruction for supplying water according to the water taking parameters, and the condition that the system where the water drinking equipment is located is disturbed by the cups of other systems can be avoided.
Further, under the condition that water supply is accomplished, automatic generation and send user's drinking water information to server to the server can be based on user's drinking water information automatic generation and send drinking water prompt message, realizes carrying out the scientific drinking water suggestion of customization according to different user's drinking water information.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a drinking water management method provided by an embodiment of the invention;
FIG. 2 is a block diagram of a drinking water management system according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of cup verification provided by the embodiment of the invention;
FIG. 4 is a schematic flow chart illustrating a writing process of a water fetching parameter according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of cup label binding according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart of water intake statistics based on a Bluetooth cup according to an embodiment of the present invention;
FIG. 7 is a second schematic flow chart of a drinking water management method according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a drinking water management device provided by an embodiment of the invention;
FIG. 9 is a second schematic structural view of a drinking water management device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
In the description of the embodiments of the present invention, it should be noted that the terms "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of describing the embodiments of the present invention and simplifying the description, but do not indicate or imply that the referred devices or elements must have a specific orientation, be configured in a specific orientation, and operate, and thus, should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the embodiments of the present invention, it should be noted that, unless explicitly stated or limited otherwise, the terms "connected" and "connected" should be interpreted broadly, and in some embodiments, the terms may be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. Specific meanings of the above terms in the embodiments of the present invention can be understood in specific cases by those of ordinary skill in the art.
In embodiments of the invention, unless expressly stated or limited otherwise, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through intervening media. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of an embodiment of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The drinking water management method and apparatus of the present invention will be described with reference to fig. 1-10.
Fig. 1 is a schematic flow chart of a drinking water management method provided by an embodiment of the present invention, and as shown in fig. 1, the method is applied to drinking equipment, and includes the following steps:
and step 110, reading the coded information of the cup label.
In some embodiments, the cup label carries coded information and water intake parameters, and the coded information can represent identification information of the cup, such as a manufacturer to which the cup belongs, a cup model, a user ID, and the like. The cup label can be an electronic label, a two-dimensional code label, a bar code label and the like. When the cup label is an electronic label, under the condition that the cup enters the target range of the drinking equipment, the coded information in the cup label can be read through a reader on the drinking equipment. When the cup label is a two-dimensional code label or a bar code label, the coded information in the cup label can be scanned and read through a scanner on the drinking equipment under the condition that the cup label is arranged in a target scanning area of the drinking equipment.
And step 120, determining a cup check code based on the coded information.
In some embodiments, the process of reading the coded information by the drinking device may be understood as a data transmission process, in which a data transmission error may exist, and if it is determined whether the cup is an authorized user cup based on the coded information after the data transmission error, a misjudgment phenomenon may exist.
After the coded information is read, the error correction is carried out on the coded information obtained by reading, so that the codes with errors in the data transmission process can be found in time. Before reading the encoded information, additional data may be added after the encoded information, the additional data having a relationship to the encoded information. If data are wrong in the transmission process, the relationship of the data is destroyed, and whether the data are wrong in the transmission process can be known by judging whether the relationship is destroyed again.
It can be understood that when the encoded information is corrected, the encoded information can be verified by adopting a preset formula, and a cup verification code can be obtained after the encoded information is verified to be correct, so that whether the cup is an authorized user cup or not can be determined by comparing the cup verification code with a target verification code.
And step 130, under the condition that the target check code is consistent with the cup check code, outputting a water supply instruction for controlling the water drinking equipment to supply water according to the water taking parameters through the water taking parameters read from the cup label.
In some embodiments, after the coded information is read from the cup tag, since the coded information can represent the identification information of the cup, it can be determined whether the cup is an authorized user cup of the water drinking device based on the cup check code obtained from the coded information, and if so, the water drinking device can supply water to the cup; if not, the water is not supplied to the water cup at the water drinking equipment, so that the water cup of an untrusted user can be prevented from disturbing the data operation of the water drinking equipment.
After the drinking equipment acquires the cup check code, the cup check code can be compared with the target check code, and if the cup check code is consistent with the target check code, the cup is an authorized user cup; if the cup is not consistent, the cup is an untrusted user cup. And under the condition that the target check code is consistent with the cup check code, outputting a water supply instruction through the water taking parameter read from the cup label, wherein the water supply instruction is used for controlling the water drinking equipment to supply water according to the water taking parameter. Wherein, the water intake parameter may include one or more of drinking water type, drinking water amount, drinking water temperature, etc.
In some embodiments, if the manufacturer corresponding to the drinking device is a, the manufacturer corresponding to the water cup 1 is a, and the manufacturer corresponding to the water cup 2 is B, because the drinking device and the water cup 1 belong to the same manufacturer a, the drinking device and the water cup 1 may use a uniform data transmission protocol, a data transmission interface, and data processing rules to perform data interaction and processing, for example, to improve data transmission and data processing efficiency, data on the drinking device and the water cup 1 may be compressed and stored according to a target format, and when data needs to be processed, data is decompressed according to the corresponding rules, so that the transmission amount of data may be reduced in the data transmission process, and the data processing efficiency is improved. However, for the drinking water equipment and the water cup 2 belonging to different manufacturers, the situation that the communication interface and the communication protocol are inconsistent may exist between the two, and normal data transmission and data processing cannot be performed, and in addition, since the manufacturer corresponding to the water cup 2 is B, the water cup 2 may also perform data interaction with the equipment corresponding to the manufacturer B, data interactive with the equipment of the manufacturer B may be transmitted to the drinking water equipment, so that the data operation process of the drinking water equipment may be disturbed.
It should be noted that, under the condition that the target check code is consistent with the cup check code, the water taking parameter read from the cup label can automatically generate a water supply instruction, and water can be automatically supplied according to the water taking parameter without manually controlling the water outlet of the water drinking device by a user like in the traditional method.
And 140, generating user drinking water information under the condition that water supply is finished, and sending the user drinking water information to the server.
In some embodiments, when the water supply is completed, the water dispensing device may automatically generate user water dispensing information, such as user water dispensing time, user water consumption, user water dispensing temperature, user water dispensing type, and send the user water dispensing information to the server, and may send the user water dispensing information to the server in a wireless data transmission manner.
It can be understood that, a flowmeter can be arranged in the drinking equipment to obtain the drinking water amount of the user, a thermometer is arranged to obtain the drinking water temperature of the user, and then the drinking water information of the user is generated and sent to the server. The water cup can also be provided with a flow meter to obtain the water intake of the user, the thermometer is arranged to obtain the water drinking temperature of the user, and then the generated water drinking information of the user is sent to the water drinking equipment through the Bluetooth, so that the water drinking equipment uploads the water drinking information of the user to the server.
Step 150, receiving drinking water prompt information sent by the server, and displaying the drinking water prompt information; the drinking prompt information is determined by the server based on the drinking information of the user.
In some embodiments, after receiving the drinking water information of the user, the server may determine whether the current drinking water state of the user meets the healthy drinking water standard according to a target algorithm, and if not, may send drinking water prompt information to the drinking water equipment or the client to prompt the user to drink water scientifically.
In some embodiments, the drinking water information of the user may include sign data of the user and drinking water data of the user, the server may determine an appropriate drinking water amount of the user based on the sign data of the user, and may calculate an actual drinking water amount of the user based on the drinking water data of the user, and if the actual drinking water amount is smaller than the appropriate drinking water amount, it indicates that the current drinking water amount of the user is insufficient, and drinking water needs to be supplemented, and may send corresponding drinking water prompt information to a drinking water device or a client to prompt the user to drink water.
It can be understood that the drinking equipment can be provided with a voice module, and after the drinking equipment receives the drinking prompt information sent by the server, the drinking prompt information is played through the voice module; the drinking equipment can be provided with a display module, and after the drinking equipment receives the drinking prompt information sent by the server, the drinking prompt information is displayed through the display module; can set up storage module on drinking water equipment for storage drinking water reminder information, thereby the user both can send voice command to voice module in order to acquire drinking water reminder information when needs acquire drinking water reminder information, also can call out through display module and show corresponding drinking water reminder information.
In some embodiments, a plurality of folders may be established in the storage module, and the corresponding drinking water prompting information is stored according to the user name or the information generation time, so that the user may directly obtain the historical drinking water prompting information from the folders as a reference.
The table 1 is a drinking water recommendation table for the user, and as shown in table 1, corresponding drinking water amount calculation methods are provided according to the weight, height and age of the user, drinking times, drinking time and drinking water amount are recommended, so that drinking water of the user can be scientifically managed, and scientific drinking water suggestions are provided for the user.
TABLE 1
Figure BDA0003240395330000091
For example, when there is weight data of the user and the weight of the user is between 50kg and 75kg, the calculation may be performed according to the water intake calculation formula shown in table 1, for example, when the weight of the user is 60kg, the water intake (ml) is 57.5kg × 40-500ml is 1800ml, and the corresponding residual average water intake is 450 ml.
When there is height data of the user, the calculation may be performed according to the calculation formula of the water intake after the weight is converted from the height shown in table 1, for example, when the height of the user is 150cm, the weight obtained after the weight is converted from the height is 49kg, and then falls into a range smaller than 50kg, then the corresponding total water intake is 1500ml, and then the corresponding residual average water intake is 350 ml.
When there is age data of a user, and the age of the user is less than or equal to 20 years old, the calculation may be performed according to the calculation formula of the water intake after age-converted weight shown in table 1, for example, when the age data of the user is 20 years old, the weight obtained after age-converted weight is 48kg, which falls into a range less than 50kg, which corresponds to 1500ml of total water intake, which corresponds to 350ml of residual average water intake.
It is worth mentioning that the drinking time and amount recommendation may not be limited to the rule between the total recommended drinking amount for one day and the recommended drinking amount value for the corresponding time period in table 1, and may also be set according to practical situations, for example, the sum of the recommended drinking amount values for each time period may not be equal to the total recommended drinking amount for one day, when the user's weight is less than 50kg, for example, the total water intake may be 1500ml, the corresponding water intake recommended value of 7:00-9:00 can be 150ml, the water intake recommended value of 9:00-11:00 can be 250ml, the water intake recommended value of 11:00-13:00 can be 150ml, the water intake recommended value of 13:00-17:00 can be 250ml, the water intake recommended value of 17:00-19:00 can be 150ml, and the water intake recommended value of 19:00-22:00 can be 250 ml.
Therefore, according to the drinking water management method provided by the embodiment of the invention, under the condition that the target check code is consistent with the cup check code, the water taking parameter read from the cup label can be used for automatically generating a water supply instruction, and automatic water supply is carried out according to the water taking parameter, without the need of manually controlling water outlet of the drinking water equipment by a user in the traditional method. In addition, under the condition that the water supply is accomplished, automatic generation and send user's drinking water information to server to the server can be based on user's drinking water information automatic generation and send drinking water prompt message, realizes carrying out the scientific drinking water suggestion of customization according to different user's drinking water information.
Fig. 2 is a schematic diagram of a framework of a drinking water management system according to an embodiment of the present invention, as shown in fig. 2, a line (i) corresponds to that a drinking water device can read coded information and a water intake parameter in a cup RFID, the drinking water device automatically outputs water according to the water intake parameter when a cup check code determined based on the coded information is consistent with a target check code, and generates user drinking water information and sends the user drinking water information to a cloud platform server through the line (i) when water supply is completed, so that the cloud platform server generates and sends drinking water prompt information based on the user drinking water information. The circuit II corresponds to that the water cup can also have a Bluetooth communication function, the water drinking information of the user is sent to the mobile phone APP through Bluetooth, and the mobile phone sends the water drinking information of the user to the cloud platform server through the circuit fifth, so that the cloud platform server generates and sends the water drinking prompt information based on the water drinking information of the user. In addition, the cloud platform server can perform data interaction with a third-party data server through a line (c), and a user can realize interaction with drinking equipment, a water cup and a mobile phone APP through a line (c) and (c).
Based on the above embodiment, determining the cup check code based on the encoded information includes:
and carrying out redundancy check operation on the coded information to obtain a water cup check code.
In some embodiments, the process of reading the coded information by the drinking device may be understood as a data transmission process, in which a data transmission error may exist, and if it is determined whether the cup is an authorized user cup based on the coded information after the data transmission error, a misjudgment phenomenon may exist.
After the coded information is read, the embodiment of the invention carries out redundancy check operation on the coded information to obtain the water cup check code, thereby being capable of finding the code with errors in the data transmission process in time. The redundancy check operation may be any one of a parity check operation, a longitudinal redundancy check, and the like.
Based on any one of the above embodiments, performing redundancy check operation on the encoded information to obtain a cup check code, includes:
determining a check coefficient based on the target check formula;
based on the coding information and the check coefficient, carrying out bit filling on the coding information to determine check coding data;
determining a division operation result by taking the check coefficient as a divisor and the check coded data as a dividend, and determining a cup check code based on the division operation result;
based on any one of the above embodiments, performing redundancy check operation on the encoded information to obtain a cup check code, includes:
and carrying out byte-by-byte exclusive OR operation on the target data of the coded information to obtain the cup check code.
In some embodiments, the process of reading the coded information by the drinking device may be understood as a data transmission process, in which a data transmission error may exist, and if it is determined whether the cup is an authorized user cup based on the coded information after the data transmission error, a misjudgment phenomenon may exist.
After the coded information is read, the error correction is carried out on the coded information obtained by reading, so that the codes with errors in the data transmission process can be found in time. After reading the encoded information, the check coefficient may be determined by the target check equation.
Meanwhile, the coded information needs to be bit-padded, that is, extra data of the bit-padded information has a certain relation with the coded information. If data are wrong in the transmission process, the relationship of the data is destroyed, and whether the data are wrong in the transmission process can be known by judging whether the relationship is destroyed again.
Based on the coding information and the check coefficient, extra data for bit filling can be determined, and the coding information is bit filled to obtain check coding data. And then, performing division operation on the check coded data and the check coefficient, namely determining a division operation result by taking the check coefficient as a divisor and the check coded data as a dividend, and taking a remainder corresponding to the division operation result as a cup check code. It is to be understood that the division operation herein may be a modulo-2 division operation, and the embodiment of the present invention is not limited in this respect.
The embodiment of the invention can also carry out recursive traversal on the target data bytes of the coded information, and carry out XOR operation on the target data bytes to obtain the cup check code.
Therefore, the embodiment of the invention determines the cup check code based on the coded information, can verify whether the coded information is wrong in the data transmission process, further avoids obtaining the wrong cup check code due to the data transmission error, and improves the accuracy of the water drinking equipment for verifying whether the cup is an authorized user cup.
Based on any one of the embodiments, the target check code is determined after the initial check code is logically right-shifted by the target digit, and the initial check code is determined based on the target coding information and the target check formula;
determining a cup check code based on a division operation result, comprising:
and performing logic right shift on the division operation result to obtain the cup check code.
In some embodiments, logical right shift refers to right shifting without regard to sign bits, with zero padding on the left. In some embodiments, 01100110 follows a logical right shift of 8-bit binary number 11001101 by one bit. The target check code can be stored in the target address, and can be obtained by performing logical right shift on the initial check code by a target digit, and the initial check code is obtained based on the following steps:
based on the target coding information and the check coefficient, target extra data used for bit filling can be determined, and bit filling is carried out on the target coding information to obtain target check coding data. And then, performing division operation on the target check coding data and the check coefficient, namely determining a division operation result by taking the check coefficient as a divisor and the target check coding data as a dividend, and taking a remainder corresponding to the division operation result as an initial check code.
Meanwhile, in the process of obtaining the cup check code, a division result is obtained, and after the remainder corresponding to the result is logically shifted to the right by the target digit in the same way, the cup check code is obtained, namely the cup check code and the target check code are determined based on the same rule, so that if the cup check code is consistent with the target check code, the cup is an authorized user cup of the water drinking equipment, namely the water drinking equipment can supply water for the cup.
The embodiment of the invention determines the cup check code based on the coded information, can verify whether the coded information is wrong in the data transmission process, further avoids obtaining the wrong cup check code caused by the data transmission error, and improves the accuracy of the water drinking equipment for verifying whether the cup is an authorized user cup.
Based on any one of the above embodiments, the water getting parameter is read based on the following steps:
reading the water getting parameters of the cup label under the condition that the target check code is consistent with the cup check code;
alternatively, the first and second electrodes may be,
when the coded information of the cup label is read, the water taking parameter of the cup label is read.
In some embodiments, in the case that the target check code is consistent with the cup check code, indicating that the cup is an authorized user cup of the water dispensing device, the water getting parameter of the cup label may be read at this time to generate a water supply instruction for getting water according to the water getting parameter. Under the condition, the water taking parameters can be read after the water cup is determined to be the water cup of the authorized user of the water drinking equipment, so that resource waste is avoided.
Or when the drinking equipment reads the coded information of the cup label, the water taking parameters of the cup label can be synchronously read. Under the condition, the coded information and the water taking parameters of the cup label are synchronously read, so that the information in the cup label can be acquired at one time, and the reading efficiency is improved.
In addition, fig. 3 is a schematic diagram of a process of checking a water cup according to an embodiment of the present invention, as shown in fig. 3, when a water cup tag is an RFID card, when a drinking device senses the RFID card, reading coded information in the RFID card, generating a water cup check code based on the coded information, comparing whether the water cup check code is consistent with a target check code, if so, determining that the RFID card is an effective card, automatically discharging water, and after water discharge is completed, uploading water discharge data to a server; if not, the RFID card is judged to be an invalid card.
Fig. 4 is a schematic diagram of a process of writing in water getting parameters according to an embodiment of the present invention, as shown in fig. 4, when a cup tag is an RFID card and no water getting parameters are written in the card or the water getting parameters need to be updated, when a water drinking device senses the RFID card, reading coded information in the RFID card, generating a cup check code based on the coded information, comparing whether the cup check code is consistent with a target check code, if so, determining that the RFID card is a valid card, and writing the water getting parameters in the card; if not, the RFID card is judged to be an invalid card.
Fig. 5 is a schematic diagram of a process of binding a cup label according to an embodiment of the present invention, as shown in fig. 5, when a cup label is an RFID card and a drinking device senses the RFID card, it is checked whether the cup and the drinking device belong to the same system (if the cup and the drinking device belong to the same manufacturer) based on encoded information in the card, if so, under the condition that the RFID card and the drinking device are in a bound state, a water intake parameter in the RFID card is read, and water is automatically generated and uploaded to a server after water is discharged according to the water intake parameter. Under the condition that RFID card and drinking water equipment are the unbound state, indicate, then can bind the RFID card through cell-phone APP, bind the success back, can set up the water intaking parameter. And after the binding fails, prompting and carrying out binding operation again.
Fig. 6 is a schematic flow chart of water intake statistics based on a bluetooth cup according to an embodiment of the present invention, and as shown in fig. 6, an angle sensor may be disposed in the cup for calculating an inclination angle of the cup when a cup cover of the cup is opened, and calculating an effective water output if the inclination angle of the cup is between 55 ° and 125 °. At the moment, if the change of the inclination angle of the water cup within +/-5 degrees every 0.5S is detected, the water intake is calculated, 7.5mL is accumulated every 0.25S, and when the change of the inclination angle of the water cup within 0.5S is detected to be larger than minus 10 degrees (namely the cup opening lifting angle is larger than 10 degrees), the accumulated water intake is finished.
In summary, under the condition that the target check code is consistent with the cup check code, the water taking parameter read from the cup label can automatically generate a water supply instruction, and automatic water supply is carried out according to the water taking parameter without manually controlling water outlet of the water drinking equipment by a user like in the traditional method. In addition, under the condition that the water supply is accomplished, automatic generation and send user's drinking water information to server to the server can be based on user's drinking water information automatic generation and send drinking water prompt message, realizes carrying out the scientific drinking water suggestion of customization according to different user's drinking water information.
Based on any one of the embodiments, the invention provides a drinking water management method, which is applied to a server and comprises the following steps as shown in fig. 7:
and step 710, receiving the drinking water information of the user sent by the drinking water equipment.
In some embodiments, when the water supply of the water dispenser is completed, the water dispenser may automatically generate user drinking water information, such as user drinking water time, user drinking water amount, user drinking water temperature, user drinking water type, and send the user drinking water information to the server, so that the server receives the user drinking water information, and may send the user drinking water information to the server in a wireless data transmission manner.
It can be understood that, a flowmeter can be arranged in the drinking equipment to obtain the drinking water amount of the user, a thermometer is arranged to obtain the drinking water temperature of the user, and then the drinking water information of the user is generated and sent to the server. The water cup can also be provided with a flow meter to obtain the water intake of the user, the thermometer is arranged to obtain the water drinking temperature of the user, and then the generated water drinking information of the user is sent to the water drinking equipment through the Bluetooth, so that the water drinking equipment uploads the water drinking information of the user to the server.
And 720, determining drinking water prompt information based on the drinking water information of the user, and sending the drinking water prompt information to the client.
In some embodiments, after receiving the drinking water information of the user, the server may determine whether the current drinking water state of the user meets the healthy drinking water standard according to a target algorithm, and if not, may send drinking water prompt information to the drinking water equipment or the client to prompt the user to drink water scientifically.
In some embodiments, the drinking water information of the user may include physical sign data of the user and drinking water data of the user, the server may determine an appropriate drinking water amount of the user based on the physical sign data of the user, and the actual drinking water amount of the user may be calculated based on the drinking water data of the user.
In some embodiments, if the actual water consumption is less than the appropriate water consumption, it indicates that the current water consumption of the user is insufficient, and water needs to be supplemented, and then corresponding water drinking prompt information can be sent to the water drinking equipment or the client to remind the user of drinking water.
Therefore, the drinking water management method provided by the embodiment of the invention automatically generates and sends drinking water prompt information based on the drinking water information of the user, thereby realizing customized scientific drinking water prompt according to the drinking water information of different users.
Based on any one of the embodiments, the user drinking water information comprises user drinking water data and a user state;
based on user drinking water information, confirm drinking water tip information, include:
determining the standard water intake of the user based on the user state;
determining the actual water drinking amount of the user based on the water drinking data of the user;
and determining drinking prompt information based on the actual drinking amount and the standard drinking amount.
In some embodiments, the user drinking information includes user drinking data and user status, wherein the user status is used to determine a standard drinking volume, i.e., scientific drinking volume, of the user, and the user drinking data is used to determine an actual drinking volume of the user. If the actual water intake is smaller than the standard water intake, the actual water intake of the user is insufficient, water needs to be supplemented, and water drinking prompt information for prompting the user to supplement water can be generated at the moment so as to send the water drinking prompt information to the client to prompt the user to drink water in time.
Therefore, the drinking water management method provided by the embodiment of the invention automatically generates and sends drinking water prompt information according to the actual drinking water amount and the standard drinking water amount, thereby realizing customized scientific drinking water prompt according to drinking water information of different users.
According to any of the above embodiments, the user state includes a user motion state and a user body state;
based on the user state, determining the standard drinking water amount of the user, comprising:
determining a first recommended water intake based on the physical state of the user;
determining a second recommended water intake based on the user motion state;
based on the first recommended water intake and the second recommended water intake, a standard water intake is determined.
In some embodiments, the user state includes a user motion state and a user physical state, the user motion state may be indicative of an amount of activity of the user, a greater amount of activity indicating a greater amount of water consumption the user needs to replenish.
In some embodiments, the physical state of the user may represent physical sign information of the user, such as height, weight, age, etc. of the user, and the weight is reduced, indicating that the more water needs to be replenished by the user.
According to the embodiment of the invention, the first recommended water intake can be determined according to the physical state of the user, and the second recommended water intake can be determined according to the motion state of the user. In combination with the first recommended water intake and the second recommended water intake, a standard water intake may be determined, such as the standard water intake being the first recommended water intake + the second recommended water intake.
In some embodiments, the physical states of the user a and the user B are the same, that is, the first recommended water consumption amounts corresponding to the user a and the user B are the same. However, the activity of the user a is greater than that of the user B, then the second recommended water intake corresponding to the user a is greater than that of the user B, and further the standard water intake corresponding to the user a is greater than that of the user B.
Table 2 is a comparison table of the exercise status of the user and the drinking advice, and as shown in table 2, the larger the number of steps, the larger the activity of the user, the more electrolyte the user needs to supplement, i.e. the larger the drinking amount the user needs to supplement.
TABLE 2
State of step count Amount of movement Advising
The number of steps is less than 6000/distance and less than 3 km Is normal Without the need for supplemental electrolyte
6000 to 1 ten thousand/distance is between 3 km and 5 km Slightly larger Replenishing certain electrolyte
The number of steps is more than 1 ten thousand/distance and more than 5 kilometers Is larger Sufficient electrolyte is replenished
The number of steps is more than 2 ten thousand/distance and more than 10 kilometers Explosion watch A large amount of supplementary electrolyte
Based on any one of the above embodiments, based on the user drinking water information, determine the drinking water prompt information, including:
and determining a drinking water evaluation result based on at least one of the water quality parameter and the placing time of the water in the water cup, wherein the drinking water information of the user comprises at least one of the water quality parameter and the placing time of the water in the water cup, and the drinking water prompt information comprises the drinking water evaluation result.
In some embodiments, the water quality parameter is a characteristic indicator that is indicative of various substances in the water of the cup. In some embodiments, the turbidity, clarity, color, odor, taste, water temperature, pH, TDS value, etc. of the water. It can be understood that a water quality detection module can be arranged in the water cup and used for detecting water quality parameters.
In some embodiments, the water quality detection module can be installed in the cup cover, the screen of the cup is switched to the TDS value display interface, the cup is inverted or inclined for 5 seconds after the screen is pressed for a long time and the cup body vibrates, the TDS value is automatically displayed, the drinking water evaluation result aiming at the value is synchronized to the water quality information interface,
in some embodiments, the drinking water evaluation result may be any one of good quality, poor quality, and the like, and when the drinking water evaluation result is poor, a prompt message of "do not suggest to quote" may be further displayed.
In some embodiments, the length of time that water is placed in the cup can be indicative of the freshness of the water, and a longer length of time indicates that the water is less suitable for drinking, i.e., the corresponding drinking water assessment result is worse.
Table 3 is a comparison table of the standing time of the water in the water cup and the drinking water evaluation result, and as shown in Table 3, the drinking water evaluation result is preferably 100 minutes within 3 minutes after water receiving; after the water is taken, the time is more than 30 minutes, the time is increased by half an hour and is reduced by 5 minutes, and drinking is not recommended when the water is taken for more than 4 hours.
TABLE 3
Figure BDA0003240395330000171
Based on any embodiment, after determining the drinking water evaluation result, the method further comprises:
and sending a water quality abnormity warning prompt to the client under the condition that the drinking water evaluation result is a target result.
In some embodiments, when the drinking water evaluation result is a target result, it indicates that the drinking water evaluation result is worse, that is, the water quality in the water cup is worse, and at this time, if the user drinks water in the water cup, the user is unfavorable for the health, so that the embodiment of the invention sends a water quality abnormality alarm prompt to the client when the drinking water evaluation result is the target result, and informs the user that the water quality is abnormal and the user is not suitable for drinking, thereby scientifically guiding the user to drink water.
Based on any of the above embodiments, after determining the drinking prompt information, the method further includes:
and storing the drinking water prompt information to a database so that the database can establish a mapping relation between the user label and the drinking water prompt information.
In some embodiments, after determining the drinking prompt information, the server may store the drinking information to a database so that the database may establish a mapping relationship between the drinking prompt information and the user tags. The user tag may be coded information of the water cup or identification information of the user, which is not specifically limited in the embodiment of the present invention.
Based on any of the above embodiments, after the drinking prompt information is stored in the database, the method further includes:
receiving a drinking water pushing request sent by a client, wherein the drinking water pushing request carries a user tag to be pushed;
based on the mapping relation between the drinking water prompt information and the user tags, the drinking water prompt information corresponding to the user tags to be pushed is determined, and the drinking water prompt information corresponding to the user tags to be pushed is sent to the client.
In some embodiments, when a user needs to acquire drinking water prompt information, a drinking water pushing request can be sent through the client, a user tag to be pushed is carried in the drinking water pushing request, the server can determine the drinking water prompt information corresponding to the user tag to be pushed according to the user tag to be pushed and by combining with a mapping relation between the drinking water prompt information and the user tag, and the drinking water prompt information is sent to the client, so that the user can refer to historical drinking water prompt information to perform drinking water management.
Based on any of the above embodiments, before receiving the user drinking water information sent by the client, the method further includes:
and sending a data collection request to the drinking equipment at regular time so that the drinking equipment determines the drinking water information of the user based on the data collection request.
In some embodiments, before receiving the user drinking water information sent by the client, the server may send a data collection request to the drinking water device at regular time, and after receiving the data collection request, the drinking water device generates the user drinking water information and sends the user drinking water information to the server, so that the server determines the drinking water prompt information according to the user drinking water information.
The drinking water management device provided by the embodiment of the invention is described below, and the drinking water management device described below and the drinking water management method described above can be referred to correspondingly.
Based on any one of the above embodiments, the present invention provides a drinking water management device, which is installed in a drinking water apparatus, as shown in fig. 8, and the device includes:
and the reading unit 810 is used for reading the coded information of the cup label.
In some embodiments, the cup label carries coded information and water intake parameters, and the coded information can represent identification information of the cup, such as a manufacturer to which the cup belongs, a cup model, a user ID, and the like. The cup label can be an electronic label, a two-dimensional code label, a bar code label and the like. When the cup label is an electronic label, under the condition that the cup enters the target range of the drinking equipment, the coded information in the cup label can be read through a reader on the drinking equipment. When the cup label is a two-dimensional code label or a bar code label, the coded information in the cup label can be scanned and read through a scanner on the drinking equipment under the condition that the cup label is arranged in a target scanning area of the drinking equipment.
And the checking unit 820 is used for determining a cup checking code based on the coding information.
In some embodiments, the process of reading the coded information by the drinking device may be understood as a data transmission process, in which a data transmission error may exist, and if it is determined whether the cup is an authorized user cup based on the coded information after the data transmission error, a misjudgment phenomenon may exist.
It can be understood that when the encoded information is corrected, the encoded information can be verified by adopting a preset formula, and a cup verification code can be obtained after the encoded information is verified to be correct, so that whether the cup is an authorized user cup or not can be determined by comparing the cup verification code with a target verification code.
And the control unit 830 is configured to output a water supply instruction for controlling the water dispenser to supply water according to the water intake parameter through the water intake parameter read from the cup tag under the condition that the cup check code is consistent with the target check code. In some embodiments, after the coded information is read from the cup tag, since the coded information can represent the identification information of the cup, it can be determined whether the cup is an authorized user cup of the water drinking device based on the cup check code obtained from the coded information, and if so, the water drinking device can supply water to the cup; if not, the water is not supplied to the water cup at the water drinking equipment, so that the water cup of an untrusted user can be prevented from disturbing the data operation of the water drinking equipment.
After the drinking equipment acquires the cup check code, the cup check code can be compared with the target check code, and if the cup check code is consistent with the target check code, the cup is an authorized user cup; if the cup is not consistent, the cup is an untrusted user cup. And under the condition that the target check code is consistent with the cup check code, outputting a water supply instruction through the water taking parameter read from the cup label, wherein the water supply instruction is used for controlling the water drinking equipment to supply water according to the water taking parameter. Wherein, the water intake parameter may include one or more of drinking water type, drinking water amount, drinking water temperature, etc.
The sending unit 840 is configured to generate user drinking water information and send the user drinking water information to the server when water supply is completed.
In some embodiments, when the water supply is completed, the water dispensing device may automatically generate user water dispensing information, such as user water dispensing time, user water consumption, user water dispensing temperature, user water dispensing type, and send the user water dispensing information to the server, and may send the user water dispensing information to the server in a wireless data transmission manner.
The display unit 850 is configured to receive the drinking water prompt information sent by the server, and display the drinking water prompt information; the drinking water prompt information is determined by the server based on the drinking water information of the user.
In some embodiments, after receiving the drinking water information of the user, the server may determine whether the current drinking water state of the user meets the healthy drinking water standard according to a target algorithm, and if not, may send drinking water prompt information to the drinking water equipment or the client to prompt the user to drink water scientifically.
According to the drinking water management device provided by the embodiment of the invention, under the condition that the target check code is consistent with the cup check code, the water taking parameter read from the cup label can be used for automatically generating the water supply instruction, and automatic water supply is carried out according to the water taking parameter, without manually controlling water outlet of the drinking water equipment by a user in the traditional method. In addition, under the condition that the water supply is accomplished, automatic generation and send user's drinking water information to server to the server can be based on user's drinking water information automatic generation and send drinking water prompt message, realizes carrying out the scientific drinking water suggestion of customization according to different user's drinking water information.
Based on any one of the above embodiments, the present invention provides a drinking water management device, which is installed in a server, and as shown in fig. 9, the device includes:
a receiving unit 910, configured to receive user drinking water information sent by a drinking water device;
in some embodiments, when the water supply of the water dispenser is completed, the water dispenser may automatically generate user drinking water information, such as user drinking water time, user drinking water amount, user drinking water temperature, user drinking water type, and send the user drinking water information to the server, so that the server receives the user drinking water information, and may send the user drinking water information to the server in a wireless data transmission manner.
It can be understood that, a flowmeter can be arranged in the drinking equipment to obtain the drinking water amount of the user, a thermometer is arranged to obtain the drinking water temperature of the user, and then the drinking water information of the user is generated and sent to the server. The water cup can also be provided with a flow meter to obtain the water intake of the user, the thermometer is arranged to obtain the water drinking temperature of the user, and then the generated water drinking information of the user is sent to the water drinking equipment through the Bluetooth, so that the water drinking equipment uploads the water drinking information of the user to the server.
And the determining unit 920 is configured to determine drinking water prompt information based on the user drinking water information, and send the drinking water prompt information to a client.
In some embodiments, after receiving the drinking water information of the user, the server may determine whether the current drinking water state of the user meets the healthy drinking water standard according to a target algorithm, and if not, may send drinking water prompt information to the drinking water equipment or the client to prompt the user to drink water scientifically.
In some embodiments, the drinking water information of the user may include sign data of the user and drinking water data of the user, the server may determine an appropriate drinking water amount of the user based on the sign data of the user, and may calculate an actual drinking water amount of the user based on the drinking water data of the user, and if the actual drinking water amount is smaller than the appropriate drinking water amount, it indicates that the current drinking water amount of the user is insufficient, and drinking water needs to be supplemented, and may send corresponding drinking water prompt information to a drinking water device or a client to prompt the user to drink water.
Therefore, the drinking water management device provided by the embodiment of the invention automatically generates and sends drinking water prompt information based on the drinking water information of the user, so that customized scientific drinking water prompt is realized according to the drinking water information of different users.
Fig. 10 illustrates a physical structure diagram of an electronic device, and as shown in fig. 10, the electronic device may include: a processor (processor)1010, a communication Interface (Communications Interface)1020, a memory (memory)1030, and a communication bus 1040, wherein the processor 1010, the communication Interface 1020, and the memory 1030 communicate with each other via the communication bus 1040. Processor 1010 may invoke logic instructions in memory 1030 to perform a water management method comprising: reading the coded information of the cup label; determining a cup check code based on the coded information; under the condition that the cup check code is consistent with the target check code, outputting a water supply instruction for controlling the water drinking equipment to supply water according to the water taking parameter through the water taking parameter read from the cup label; under the condition that water supply is finished, generating user drinking water information and sending the user drinking water information to a server; receiving drinking water prompt information sent by the server and displaying the drinking water prompt information; the drinking water prompt information is determined by the server based on the drinking water information of the user.
Or receiving user drinking water information sent by the drinking water equipment; and determining drinking water prompt information based on the user drinking water information, and sending the drinking water prompt information to the client.
Furthermore, the logic instructions in the memory 1030 can be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Further, the present invention also provides a computer program product comprising a computer program, the computer program being storable on a non-transitory computer-readable storage medium, the computer program, when executed by a processor, being capable of executing the drinking water management method provided by the above-mentioned method embodiments, the method comprising: reading the coded information of the cup label; determining a cup check code based on the coded information; under the condition that the cup check code is consistent with the target check code, outputting a water supply instruction for controlling the water drinking equipment to supply water according to the water taking parameter through the water taking parameter read from the cup label; under the condition that water supply is finished, generating user drinking water information and sending the user drinking water information to a server; receiving drinking water prompt information sent by the server and displaying the drinking water prompt information; the drinking water prompt information is determined by the server based on the drinking water information of the user.
Or receiving user drinking water information sent by the drinking water equipment; and determining drinking water prompt information based on the user drinking water information, and sending the drinking water prompt information to the client.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to execute the drinking water management method provided in the foregoing embodiments, where the method includes: reading the coded information of the cup label; determining a cup check code based on the coded information; under the condition that the cup check code is consistent with the target check code, outputting a water supply instruction for controlling the water drinking equipment to supply water according to the water taking parameter through the water taking parameter read from the cup label; under the condition that water supply is finished, generating user drinking water information and sending the user drinking water information to a server; receiving drinking water prompt information sent by the server and displaying the drinking water prompt information; the drinking water prompt information is determined by the server based on the drinking water information of the user.
Or receiving user drinking water information sent by the drinking water equipment; and determining drinking water prompt information based on the user drinking water information, and sending the drinking water prompt information to the client.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
The above embodiments are merely illustrative of the present invention and are not to be construed as limiting the invention. Although the present invention has been described in detail with reference to the embodiments, it should be understood by those skilled in the art that various combinations, modifications or equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention, and the technical solution of the present invention is covered by the claims of the present invention.

Claims (18)

1. A drinking water management method is applied to drinking water equipment and is characterized by comprising the following steps:
reading the coded information of the cup label;
determining a cup check code based on the coded information;
under the condition that the cup check code is consistent with the target check code, outputting a water supply instruction for controlling the water drinking equipment to supply water according to the water taking parameter through the water taking parameter read from the cup label;
under the condition that water supply is finished, generating user drinking water information and sending the user drinking water information to a server;
receiving drinking water prompt information sent by the server and displaying the drinking water prompt information; the drinking water prompt information is determined by the server based on the drinking water information of the user.
2. The drinking water management method of claim 1, wherein the determining a cup check code based on the encoded information includes:
and carrying out redundancy check operation on the coded information to obtain the water cup check code.
3. The drinking water management method according to claim 2, wherein the performing redundancy check operation on the coded information to obtain the cup check code comprises:
and carrying out byte-by-byte XOR operation on the target data bytes of the coded information to obtain the cup check code.
4. The drinking water management method according to claim 2, wherein the performing redundancy check operation on the coded information to obtain the cup check code comprises:
determining a check coefficient based on the target check formula;
based on the check coefficient and the coding information, carrying out bit filling on the coding information to determine check coding data;
and determining a division operation result by taking the check coding data as a dividend and the check coefficient as a divisor, and determining the cup check code based on the division operation result.
5. The drinking management method according to claim 4, characterized in that the target check code is determined by logically right-shifting an initial check code by a target digit, the initial check code being determined based on target coding information and the target check formula;
the determining the cup check code based on the division operation result includes:
and carrying out logic right shift on the division operation result by a target digit to obtain the cup check code.
6. The drinking water management method according to any one of claims 1 to 5, characterized in that the water intake parameters are read based on the following steps:
reading the water getting parameters of the cup label when reading the coded information of the cup label;
alternatively, the first and second electrodes may be,
and reading the water taking parameters of the cup label under the condition that the cup check code is consistent with the target check code.
7. A drinking water management method is applied to a server and is characterized by comprising the following steps:
receiving user drinking water information sent by drinking water equipment;
and determining drinking water prompt information based on the user drinking water information, and sending the drinking water prompt information to the client.
8. The drinking water management method according to claim 7, characterized in that the user drinking water information includes user status and user drinking water data;
based on user drinking water information, confirm drinking water tip information, include:
determining a standard water intake of the user based on the user state;
determining the actual water drinking amount of the user based on the user drinking water data;
and determining the drinking prompt information based on the standard drinking amount and the actual drinking amount.
9. The drinking management method of claim 8, characterized in that the user states include a user physical state and a user motion state;
the determining the standard drinking water amount of the user based on the user state comprises the following steps:
determining a first recommended water intake based on the user's physical state;
determining a second recommended water intake based on the user motion state;
determining the standard water intake based on the first recommended water intake and the second recommended water intake.
10. The drinking water management method of claim 7, wherein the determining drinking water prompt information based on the user drinking water information includes:
determining a drinking water evaluation result based on at least one of the water quality parameter and the placing time of the water in the water cup, wherein the drinking water information of the user comprises at least one of the water quality parameter and the placing time of the water in the water cup, and the drinking water prompt information comprises the drinking water evaluation result.
11. The drinking management method of claim 10, wherein after the determination of the drinking evaluation, the method further comprises:
and sending a water quality abnormity warning prompt to the client under the condition that the drinking water evaluation result is a target result.
12. The drinking water management method according to any one of claims 7 to 11, characterized in that after the determination of drinking water prompt information, the method further comprises:
and storing the drinking water prompt information to a database so that the database can establish a mapping relation between the user label and the drinking water prompt information.
13. The water management method of claim 12, wherein after the storing the drinking tips information to a database, the method further comprises:
receiving a drinking water pushing request sent by the client, wherein the drinking water pushing request carries a user tag to be pushed;
and determining drinking water prompt information corresponding to the user tag to be pushed based on the mapping relation between the user tag and the drinking water prompt information, and sending the drinking water prompt information corresponding to the user tag to be pushed to the client.
14. The utility model provides a drinking water management device installs in drinking water equipment, its characterized in that includes:
the reading unit is used for reading the coded information of the cup label;
the checking unit is used for determining a water cup checking code based on the coded information;
the control unit is used for outputting a water supply instruction for controlling the water drinking equipment to supply water according to the water taking parameter through the water taking parameter read from the cup label under the condition that the cup check code is consistent with the target check code;
the sending unit is used for generating user drinking water information and sending the user drinking water information to the server under the condition that water supply is finished;
the display unit is used for receiving the drinking water prompt information sent by the server and displaying the drinking water prompt information; the drinking water prompt information is determined by the server based on the drinking water information of the user.
15. The utility model provides a drinking water management device installs in server, its characterized in that includes:
the receiving unit is used for receiving user drinking water information sent by the drinking water equipment;
and the determining unit is used for determining drinking water prompt information based on the user drinking water information and sending the drinking water prompt information to the client.
16. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the drinking water management method according to any one of claims 1 to 13 are implemented when the program is executed by the processor.
17. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the drinking water management method according to any one of claims 1 to 13.
18. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the drinking water management method according to any one of claims 1 to 13 when being executed by a processor.
CN202111017371.7A 2021-08-31 2021-08-31 Drinking water management method and device Pending CN114154600A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111017371.7A CN114154600A (en) 2021-08-31 2021-08-31 Drinking water management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111017371.7A CN114154600A (en) 2021-08-31 2021-08-31 Drinking water management method and device

Publications (1)

Publication Number Publication Date
CN114154600A true CN114154600A (en) 2022-03-08

Family

ID=80461885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111017371.7A Pending CN114154600A (en) 2021-08-31 2021-08-31 Drinking water management method and device

Country Status (1)

Country Link
CN (1) CN114154600A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232348A (en) * 2006-10-04 2008-07-30 马维尔国际贸易有限公司 Method and device for error correcting using cyclic redundancy check
CN102375941A (en) * 2010-08-06 2012-03-14 国民技术股份有限公司 Method and system for validating chip validity by utilizing graphical chip
KR20130001098A (en) * 2011-06-24 2013-01-03 삼성전자주식회사 Apparatus and method for transmitting and receiving data in communication/broadcasting system
CN105717815A (en) * 2016-03-25 2016-06-29 宇龙计算机通信科技(深圳)有限公司 Information adjustment method and information adjustment device based on intelligent water glass and intelligent water glass
CN105811996A (en) * 2014-12-30 2016-07-27 华为技术有限公司 Data processing method and system based on quasi-cyclic LDCP
CN107479596A (en) * 2017-07-13 2017-12-15 珠海格力电器股份有限公司 Drinking fountain and its water outlet control method and device
CN213155400U (en) * 2020-03-27 2021-05-11 广东昇辉电子控股有限公司 Intelligent water dispenser

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232348A (en) * 2006-10-04 2008-07-30 马维尔国际贸易有限公司 Method and device for error correcting using cyclic redundancy check
CN102375941A (en) * 2010-08-06 2012-03-14 国民技术股份有限公司 Method and system for validating chip validity by utilizing graphical chip
KR20130001098A (en) * 2011-06-24 2013-01-03 삼성전자주식회사 Apparatus and method for transmitting and receiving data in communication/broadcasting system
CN105811996A (en) * 2014-12-30 2016-07-27 华为技术有限公司 Data processing method and system based on quasi-cyclic LDCP
CN105717815A (en) * 2016-03-25 2016-06-29 宇龙计算机通信科技(深圳)有限公司 Information adjustment method and information adjustment device based on intelligent water glass and intelligent water glass
CN107479596A (en) * 2017-07-13 2017-12-15 珠海格力电器股份有限公司 Drinking fountain and its water outlet control method and device
CN213155400U (en) * 2020-03-27 2021-05-11 广东昇辉电子控股有限公司 Intelligent water dispenser

Similar Documents

Publication Publication Date Title
EP3248933B1 (en) Beverage dispensing apparatus and method
US8009040B2 (en) Medication dispensing system
JP6383316B2 (en) Hydrogen station reservation system control method, hydrogen fuel production method, and hydrogen station filling reservation apparatus
WO2006119084A2 (en) Method and system for monitoring consumable item usage and providing replenishment thereof
CN104048702B (en) fuel refill sensor
CN101208067A (en) Medicine weighing device
CN110187618A (en) A kind of printer system
US20200113517A1 (en) Method for automatically identifying users of body-fat meter
US10986475B1 (en) Consumable product storage system that monitors product consumption
CN107705472A (en) A kind of space-time locating module, high in the clouds billing system and method for making out an invoice
CA2925530A1 (en) Beverage inventory systems and methods
CN114154600A (en) Drinking water management method and device
CN114145613A (en) Drinking water prompting method and device and water cup
US20180032953A1 (en) Automated resupply based on sensor data
US11521144B2 (en) Automated resupply based on sensor data
CN114145641B (en) Drinking water management system
CN109703203B (en) Consumable allowance information monitoring method and printing system
CN112021935A (en) Household appliance and control method, control device, terminal and storage medium thereof
CN114145649B (en) Water intake control method and device
CN110553703B (en) Calibration information generation method and system based on oil meter
CN114145648A (en) Water intake control method and device
CN113435971A (en) Seasoning purchasing method and system, seasoning box, server and cooking system
CN108766514A (en) Student health situation big data analysis system
US20230153721A1 (en) Chemical Ordering Operator App
Watson et al. PNS166 CROSS-COUNTRY ICER EVOLUTION: WHAT DOES IT NOW MEAN TO BE COST-EFFECTIVE?

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination