CN114145649B - Water intake control method and device - Google Patents
Water intake control method and device Download PDFInfo
- Publication number
- CN114145649B CN114145649B CN202111017365.1A CN202111017365A CN114145649B CN 114145649 B CN114145649 B CN 114145649B CN 202111017365 A CN202111017365 A CN 202111017365A CN 114145649 B CN114145649 B CN 114145649B
- Authority
- CN
- China
- Prior art keywords
- water
- cup
- target
- check
- check code
- 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.)
- Active
Links
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 title claims abstract description 155
- 238000000034 method Methods 0.000 title claims abstract description 47
- 230000035622 drinking Effects 0.000 claims abstract description 73
- 241000190070 Sarracenia purpurea Species 0.000 claims abstract description 54
- 239000008400 supply water Substances 0.000 claims abstract description 16
- 238000012795 verification Methods 0.000 claims description 24
- 239000003651 drinking water Substances 0.000 claims description 23
- 235000020188 drinking water Nutrition 0.000 claims description 23
- 238000004590 computer program Methods 0.000 claims description 13
- 238000012544 monitoring process Methods 0.000 claims description 10
- 230000000153 supplemental effect Effects 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 description 18
- 238000004891 communication Methods 0.000 description 12
- 238000005516 engineering process Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 101100327917 Caenorhabditis elegans chup-1 gene Proteins 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 229910002056 binary alloy Inorganic materials 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000001939 inductive effect Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000005693 optoelectronics Effects 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 238000002310 reflectometry Methods 0.000 description 1
- 238000005507 spraying Methods 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47J—KITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
- A47J31/00—Apparatus for making beverages
- A47J31/44—Parts or details or accessories of beverage-making apparatus
- A47J31/54—Water boiling vessels in beverage making machines
- A47J31/56—Water boiling vessels in beverage making machines having water-level controls; having temperature controls
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods 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/0022—Methods 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 provisions for transferring data to distant stations, e.g. from a sensing device
- G06K17/0025—Methods 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 provisions for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods 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/0022—Methods 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 provisions for transferring data to distant stations, e.g. from a sensing device
- G06K17/0029—Methods 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 provisions for transferring data to distant stations, e.g. from a sensing device the arrangement being specially adapted for wireless interrogation of grouped or bundled articles tagged with wireless record carriers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Food Science & Technology (AREA)
- Devices For Dispensing Beverages (AREA)
Abstract
The invention relates to the field of household appliances, and provides a water taking control method and device, wherein the method comprises the following steps: acquiring coded information read from a water cup label by a reader of the drinking equipment; determining a cup check code based on the encoded information and the target check code; and under the condition that the water cup check code is consistent with the target check code, outputting a water supply instruction for controlling the water drinking device to supply water according to the water taking parameter through the water taking parameter read from the water cup label. According to the invention, under the condition that the target check code is consistent with the cup check code, the water supply instruction can be automatically generated through the water taking parameter read from the cup label, and the water is automatically supplied according to the water taking parameter, so that the water outlet of the drinking equipment is not required to be manually controlled by a user like in the traditional method, and the disturbance of the system where the drinking equipment is located by the cup of other systems can be avoided.
Description
Technical Field
The invention relates to the technical field of household appliances, in particular to a water taking control method and device.
Background
At present, drinking water equipment on the market needs to be manually operated more or less in the water taking process, even some automatic water outlet drinking water equipment also needs to manually adjust the required water yield and water outlet temperature before water taking, and the water taking efficiency is lower.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides the water taking control method, which not only can automatically supply water according to water taking parameters, but also can avoid the disturbance of the water cup of other systems to the system where the water drinking equipment is located.
According to an embodiment of the first aspect of the present invention, a water intake control method includes:
acquiring coded information read from a water cup label by a reader of the drinking equipment;
determining a cup check code based on the coding information and the target check code;
and under the condition that the water 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 water cup label.
According to one embodiment of the present invention, the determining the cup check code based on the encoded information and the target check formula includes:
determining a verification coefficient based on the target verification formula;
based on the check coefficient and the coding information, filling the bit of the coding information to determine check coding data;
and determining the cup check code based on the check code data and the check coefficient.
According to one embodiment of the present invention, the bit filling is performed on the encoded information based on the check coefficient and the encoded information, and the determining check encoded data includes:
determining a supplemental bit number based on the bit number of the check coefficient;
and filling the bit number of the encoded information based on the supplementary bit number to obtain the check encoded data.
According to one embodiment of the present invention, the determining the cup check code based on the check coded data and the check coefficient includes:
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 present invention, the target check code is determined after a target bit number is shifted to the right by a logic initial check code, 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 comprises the following steps:
and carrying out logic right shift on the division operation result to obtain the water cup check code.
According to one embodiment of the invention, the water intake parameters include: at least one of water yield, temperature value and pH value.
According to one embodiment of the present invention, at the output of the water supply instruction for controlling the water drinking device to supply water according to the water intake parameter, the method further comprises:
collecting water outlet monitoring data of the drinking water equipment;
and sending the water outlet monitoring data to a server.
According to one embodiment of the invention, the method further comprises:
receiving a writing instruction sent by a server;
based on the writing instruction, writing the water taking parameter into the water cup label through a writer of the drinking equipment.
The water intake control device according to the embodiment of the second aspect of the present invention includes:
an acquisition unit for acquiring coded information read from the water cup tag by a reader of the drinking device;
the computing unit is used for determining a cup check code based on the coding information and a target check formula;
and the water outlet 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 water cup label under the condition that the water cup check code is consistent with the target check code.
An electronic device according to an embodiment of the third aspect of the present invention includes a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the water intake control method as described in any one of the above when executing the computer program.
A non-transitory computer readable storage medium according to an embodiment of the fourth aspect of the present invention has stored thereon a computer program which, when executed by a processor, implements the steps of the water intake control method as described in any one of the above.
A computer program product according to an embodiment of the fifth aspect of the present invention comprises a computer program which, when executed by a processor, implements the steps of the water intake control method as described in any one of the above.
The above technical solutions in the embodiments of the present invention have at least one of the following technical effects: through the water taking parameter read from the water cup label, the water supply instruction can be automatically generated, and the water is automatically supplied according to the water taking parameter, so that the water outlet of the water drinking device is not required to be manually controlled by a user like in the traditional method, the water supply efficiency is improved, and the water is conveniently taken by the user.
Further, under the condition that the target check code is consistent with the cup check code, a water supply instruction is generated, so that the system where the drinking water equipment is located can be prevented from being disturbed by the cups of other systems.
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 invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a water intake control method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method for acquiring a cup check code according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a water intake control device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention are described in further detail below with reference to the accompanying drawings and examples. The following examples are illustrative of 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 directions or positional relationships indicated by the terms "upper", "lower", "front", "rear", "left", "right", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the devices or elements to be referred to must have a specific direction, be configured and operated in the specific direction, 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 describing embodiments of the present invention, it should be noted that, unless explicitly stated and limited otherwise, the terms "coupled," "coupled," and "connected" should be construed broadly, and may be either a fixed connection, a removable connection, or an integral connection, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium. The specific meaning of the above terms in embodiments of the present invention will be understood in detail by those of ordinary skill in the art.
In embodiments of the invention, unless expressly specified and limited otherwise, a first feature "up" or "down" on a second feature may be that the first and second features are in direct contact, or that the first and second features are in indirect contact via an intervening medium. Moreover, a first feature being "above," "over" and "on" a second feature may be a first feature being directly above or obliquely above the second feature, or simply indicating that the first feature is level higher than the second feature. The first feature being "under", "below" and "beneath" the second feature may be the first feature being directly under or obliquely below the second feature, or simply indicating that the first feature is less level than the second feature.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means 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 the embodiments of the present invention. In this specification, schematic representations of the above terms are not necessarily directed 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, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
The following describes a water intake control method according to an embodiment of the present invention with reference to fig. 1 to 4.
Fig. 1 is a schematic flow chart of a water intake control method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step 110, obtaining coded information read from the cup label by a reader of the drinking device.
In some embodiments, the cup label carries coding information and water taking parameters, and the coding information can represent identification information of the cup, such as manufacturer of the cup, model of the cup, 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 water cup label is an electronic label, the code information in the water cup label can be read by a reader on the water drinking device under the condition that the water cup enters the target range of the water drinking device. When the water cup label is a two-dimensional code label or a bar code label, under the condition that the water cup label is placed in a target scanning area of the water drinking equipment, the coded information in the water cup label can be scanned and read through a scanner on the water drinking equipment.
And 120, determining a cup check code based on the coding information and the target check formula.
In some embodiments, the process of reading the encoded information by the drinking device may be understood as a data transmission process, in which there may be a data transmission error, and if it is determined whether the drinking cup is an authorized user drinking cup directly based on the encoded information after the error data transmission, there may be a misjudgment phenomenon.
After the coded information is read, the embodiment of the invention corrects the error of the read coded information, so that the error code in the data transmission process can be found in time. Before the encoded information is read, additional data may be added after the encoded information, which additional data has a certain relation to the encoded information. If data is in error during transmission, the relationship is destroyed, and whether the data is in error during transmission can be known by judging whether the relationship is destroyed again.
It can be understood that when the error correction is performed on the encoded information, the encoded information can be verified by adopting a target verification method, and a cup verification code can be obtained after the verification is error-free and used for comparing with the target verification code later to confirm whether the cup is an authorized user cup.
And 130, outputting a water supply instruction for controlling the water drinking device to supply water according to the water taking parameter through the water taking parameter read from the water cup label under the condition that the target check code is consistent with the water cup check code.
In some embodiments, after the code information is read from the water cup label, since the code information can represent the identification information of the water cup, the water cup check code obtained based on the code information can determine whether the water cup is an authorized user water cup of the water drinking device, if so, the water drinking device can supply water for the water cup; if not, the drinking water device is not supplied with water, so that the distrusted user cup can be prevented from disturbing the data operation of the drinking water device.
After the drinking water equipment obtains 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 drinking water equipment indicates that the drinking water cup is an authorized user drinking water cup; if the water cup is inconsistent, the water cup is an untrusted user water 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 taking parameter can comprise one or more of drinking water type, drinking water amount, drinking water temperature and the like.
In some embodiments, if the manufacturer corresponding to the drinking device is a, the manufacturer corresponding to the drinking cup 1 is a, the manufacturer corresponding to the drinking cup 2 is B, and the drinking device and the drinking cup 1 belong to the same manufacturer a, so that the drinking device and the drinking cup 1 can perform data interaction and processing by adopting a unified data transmission protocol, a data transmission interface and a data processing rule, for example, in order to improve data transmission and data processing efficiency, data on the drinking device and the drinking cup 1 can be compressed and stored according to a target format, and when the data needs to be processed, the data is decompressed according to the corresponding rule, thereby reducing the transmission quantity of the data in the data transmission process and improving the data processing efficiency. However, for the drinking water device and the drinking cup 2 belonging to different manufacturers, there may be inconsistent communication interfaces and communication protocols between the drinking water device and the drinking cup 2, normal data transmission and data processing cannot be performed, and in addition, because the manufacturer corresponding to the drinking cup 2 is B, the drinking cup 2 also performs data interaction with the device corresponding to the manufacturer B, there may be data to be transmitted to the drinking water device, which may interfere with the data operation process of the drinking water device.
It should be noted that, under the condition that the target check code is consistent with the cup check code, the water supply instruction can be automatically generated through the water taking parameter read from the cup label, and the water is automatically supplied according to the water taking parameter, so that the water outlet of the water drinking device is not required to be manually controlled by a user like in the traditional method.
According to the water taking control 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 parameters read from the cup label can automatically generate the water supply instruction, and the water is automatically supplied according to the water taking parameters, so that the water outlet of the water drinking device is not required to be manually controlled by a user like the traditional method.
In some embodiments, the cup label may be an RFID label, an NFC label, a two-dimensional code label, or a bar code label.
The RFID tag (Radio Frequency Identification, radio frequency identification, also referred to as radio frequency identification technology) is one of automatic identification technologies, and performs non-contact bidirectional data communication in a radio frequency manner, and reads and writes a recording medium (an electronic tag or a radio frequency card) in a radio frequency manner, so as to achieve the purposes of identification target and data exchange, and the RFID tag can be the recording medium such as the electronic tag or the radio frequency card.
NFC tags (Near Field Communication ) have evolved from the integration of contactless Radio Frequency Identification (RFID) and interworking technologies by integrating the functions of inductive readers, inductive cards and point-to-point communication on a single chip. The near field communication service combines the near field communication technology and the mobile communication technology, realizes multiple functions of electronic payment, identity authentication, ticket business, data exchange, anti-counterfeiting, advertisement and the like, is a novel service in the field of mobile communication, and the NFC label can also be a recording medium such as an electronic label or a radio frequency card.
The two-dimensional code labels (2-dimensional bar code) are graphs which are distributed on a plane (in a two-dimensional direction) according to a certain rule by using a certain specific geometric figure, are alternately black and white and record data symbol information; the concept of 0 and 1 bit streams forming the logic foundation in a computer is skillfully utilized in code programming, a plurality of geometric shapes corresponding to binary are used for representing literal numerical information, and the literal numerical information is automatically read through an image input device or an optoelectronic scanning device to realize automatic information processing: it has some commonalities in barcode technology: each code has its specific character set; each character occupies a certain width; has a certain checking function and the like. Meanwhile, the system also has the function of automatically identifying information of different rows and processing graphic rotation change points, and the two-dimension code label can be a recording medium printed with the two-dimension code.
A bar code label (barcode) is a graphic identifier in which a plurality of black bars and spaces having different widths are arranged according to a certain coding rule to express a set of information. A common bar code is a parallel line pattern formed by black bars (short bars) and white bars (short spaces) with very different reflectivities, and a bar code label can be a recording medium printed with the bar code.
The cup label can be similar to RFID label or NFC label such electronic tags, then the cup label just can adopt modes such as subsides or embedded and install on the drinking cup, and the drinking cup label can also be the printing label of two-dimensional code label or bar code label, then the drinking cup label just can adopt modes such as spraying or subsides to set up at the drinking cup surface, can coat at the surface of drinking cup label has the protection film, can prevent pollution to the drinking cup label, plays the guard action.
Based on the above embodiment, based on the target check formula and the encoding information, the process of determining the cup check code, as shown in fig. 2, includes:
step 121, determining a verification coefficient based on a target verification formula;
step 122, based on the coding information and the check coefficient, filling the bit number of the coding information to determine check coding data;
and 123, determining the cup check code based on the check coefficient and the check coding data.
In some embodiments, the target checksum may take a binary bit string, such as polynomial G (x), and polynomial G (x) requires a degree greater than 0 and a coefficient of power 0 of 1.
After determining the target checksum, the checksum may be determined, and in some embodiments, the target checksum may be a polynomial G (x) =x 4 +x 3 +1, code information is ID sequence 10110011, then targetThe check-up is converted into a binary sequence: by G (x) =x 4 +x 3 The +1 indicates that the binary system has 5 bits in total, and the fourth bit, the third bit and the zero bit are respectively 1, and the corresponding check coefficient is 11001.
After determining the check coefficient, the number of bits to be filled in the encoded information may be determined, for example, in the above embodiment, the check coefficient is 11001 (5 bits), and then the number of bits to be filled in the encoded information may be determined to be 5-1=4 bits, i.e., 4 bits 0 may be added after the encoded information, so as to obtain check encoded data.
After the check coefficient and the check coding data are obtained, division operation can be carried out on the check coefficient and the check coding data, and the remainder corresponding to the division operation result is used as a cup check code.
Based on any of the above embodiments, performing bit padding on the encoded information based on the encoded information and the check coefficient, determining check encoded data includes:
determining a supplemental bit number based on the bit number of the check coefficient;
and filling the bit number of the encoded information based on the supplementary bit number to obtain check encoded data.
In some embodiments, the process of reading the encoded information by the drinking device may be understood as a data transmission process, in which there may be a data transmission error, and if it is determined whether the drinking cup is an authorized user drinking cup directly based on the encoded information after the error data transmission, there may be a misjudgment phenomenon.
After the coded information is read, the embodiment of the invention corrects the error of the read coded information, so that the error code in the data transmission process can be found in time. Before the encoded information is read, additional data may be added after the encoded information, which additional data has a certain relation to the encoded information. If data is in error during transmission, the relationship is destroyed, and whether the data is in error during transmission can be known by judging whether the relationship is destroyed again.
In some embodiments, the number of bits to be filled in the encoded information, that is, the complementary number of bits, is determined according to the number of bits of the check coefficient, and then the encoded information is subjected to bit filling to obtain check encoded data.
In some embodiments, the target checksum may be a polynomial G (x) =x 4 +x 3 +1, the encoded information is ID sequence 10110011, then the target checksum is converted to a binary sequence: by G (x) =x 4 +x 3 The +1 indicates that the binary system has 5 bits in total, and the fourth bit, the third bit and the zero bit are respectively 1, and the corresponding check coefficient is 11001.
After determining the check coefficient, the number of bits to be filled in the encoded information may be determined, for example, in the above embodiment, if the check coefficient is 11001 (5 bits), the number of bits to be filled in the encoded information may be determined to be 5-1=4 bits, that is, 4 bits of 0 may be added after the encoded information, to obtain 101100110000 as check encoded data.
Based on any of the above embodiments, determining a cup check code based on the check coefficient and the check encoded data includes:
and determining a division operation result by taking the check coefficient as a divisor and the check coding data as a dividend, and determining the cup check code based on the division operation result.
In some embodiments, after determining the check coefficient and the check encoded data, the check coefficient may be used as a divisor, the check encoded data may be used as a dividend, the two may be divided, the division result may be determined, and the remainder corresponding to the division result may be selected as the cup check code. The division operation may be a modulo-2 division operation, which is not limited in particular in the embodiment of the present invention.
Based on any of the above embodiments, the target check code is determined after the initial check code is logically shifted to the right by the target number of bits, and the initial check code is determined based on the target check formula and the target coding information;
determining a cup check code based on the division operation result, comprising:
and carrying out logical right shift on the division operation result to obtain the cup check code.
In some embodiments, the target encoded information may be preset encoded information that matches the drinking device. The initial check code can be obtained by adopting the mode of obtaining the cup check code, and then the target check code is obtained after the initial check code is logically shifted to the right by the target bit number.
In some embodiments, the verification coefficient is used as a divisor, the verification coding data is used as a dividend, after division operation is performed on the verification coefficient and the dividend, the remainder logic corresponding to the division operation result is shifted to the right by a target bit number, so as to obtain the cup verification code, and whether the cup verification code is consistent with the target verification code or not can be compared later, so that whether the cup is an authorized user cup or not can be judged.
In some embodiments, if the cup tag is an RFID tag, the target check formula may be a polynomial G (x) =x 4 +x 3 +1, the encoded information in the rfid tag is the ID sequence 10110011, then the following method may be used to determine the cup check code, and determine whether the cup check code is consistent with the target check code:
converting the target check formula into a binary sequence: by G (x) =x 4 +x 3 The +1 indicates that the binary system has 5 bits in total, and the fourth, third and zeroth bits are 1 respectively, and the sequence is 11001.
After determining that the number of bits of the target check formula is 5, adding 5-1=4 bits 0 to the read encoded information of the RFID tag, that is, the ID sequence of the RFID tag becomes 101100110000, dividing the encoded information by the divisor 11001 by using modulo-2 division, and performing logical right shift on the obtained remainder 0100 by 2 bits (the shifted number is sequentially shifted to the leftmost side), thereby completing the value 0001 after shift as the check code.
The 0001 is calculated to be written to the destination address of the RFID tag.
When the read-write terminal (for example, an RFID read-write module) performs a read operation or a write operation each time, the data of the target address of the RFID tag is shifted by two bits to the left (the shifted number is sequentially shifted to the rightmost side), and the data is subjected to a modulo-2 division operation with the divisor 11001, so that whether the remainder is consistent with 0100 is verified, and if the remainder is consistent, the RFID tag which has no error from the data and belongs to the system is described.
Based on any of the above embodiments, the water intake parameters include: at least one of temperature value, water yield and pH value.
In some embodiments, the water intake parameter includes at least one of a temperature value, a water output, and a ph. The temperature value can be used for representing the drinking water temperature of a user, the water yield can be used for representing the drinking water yield of the user, and the pH value can be used for representing the drinking water quality of the user.
Based on any one of the above embodiments, when outputting a water supply instruction for controlling the water drinking device to supply water according to the water taking parameter, the water taking control method further includes:
collecting water outlet monitoring data of drinking equipment;
and sending the water outlet monitoring data to a server.
It can be appreciated that the drinking device may further have a sensor, where the sensor may be electrically connected to the controller, where the sensor may monitor the outlet monitoring data of the drinking device, such as the actual outlet volume, the actual outlet temperature or the actual outlet rate, and where the controller of the drinking device may send the outlet monitoring data to the server after obtaining the outlet monitoring data, where the server may analyze the outlet monitoring data using big data, may obtain the drinking habit of the user, and may be applied in more intelligent scenarios, such as where the target physical parameter may be modified to adapt to the habit of the user.
Based on any of the above embodiments, the water intake control method further includes:
receiving a writing instruction sent by a server;
based on the writing instruction, the water taking parameters are written into the water cup label through a writer of the drinking water device.
It can be understood that when the water cup is detected not to be bound, prompt information can be output to the user, for example, prompt voice can be played through a loudspeaker, prompt text can be displayed through a display screen, and the user can be prompted to input corresponding water taking parameters on a control panel of the water drinking device through prompt lamplight flickering.
After the user inputs the corresponding water taking parameters, a writing instruction can be generated, so that the writer of the drinking water device can write the water taking parameters into the water cup label according to the writing instruction.
For example, when the cup label is the electronic tag, the data can be written, the user can be close to the drinking device with the cup, after the reading and writing device of the drinking device recognizes the cup label, the user can be prompted to write in the cup label, and at the moment, the user can set target physical parameters on a control panel of the drinking device, for example, the water yield is: 100 ml, temperature values: 85 ℃, the pH value is: 7.4, wherein the writer can write the water taking parameters into the water cup label.
The water intake control device provided by the embodiment of the present invention is described below, and the water intake control device described below and the water intake control method described above may be referred to correspondingly.
Based on any of the above embodiments, the present invention provides a water intake control device, as shown in fig. 3, including:
an acquisition unit 310 for acquiring encoded information read from the cup tag by the reader of the drinking device;
a calculating unit 320, configured to determine a cup check code based on the encoding information and a target check formula;
and the water outlet unit 330 is used for outputting a water supply instruction for controlling the water drinking device to supply water according to the water taking parameter through the water taking parameter read from the water cup label under the condition that the water cup check code is consistent with the target check code.
Fig. 4 illustrates a physical schematic diagram of an electronic device, as shown in fig. 4, which may include: processor 410, communication interface (Communications Interface) 420, memory 430 and communication bus 440, wherein processor 410, communication interface 420 and memory 430 communicate with each other via communication bus 440. The processor 410 may invoke logic instructions in the memory 430 to perform a water control method comprising: acquiring coded information read from a water cup label by a reader of the drinking equipment; determining a cup check code based on the coding information and the target check code; and under the condition that the water 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 water cup label.
Further, the logic instructions in the memory 430 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform 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, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Further, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer readable storage medium, the computer program when being executed by a processor can execute the water intake control method provided by the above method embodiments, the method includes: acquiring coded information read from a water cup label by a reader of the drinking equipment; determining a cup check code based on the coding information and the target check code; and under the condition that the water 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 water cup label.
In another aspect, embodiments of the present invention further provide a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the water intake control method provided in the above embodiments, the method including: acquiring coded information read from a water cup label by a reader of the drinking equipment; determining a cup check code based on the coding information and the target check code; and under the condition that the water 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 water cup label.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
The above embodiments are only for illustrating the present invention, and are not limiting of the present invention. While the invention has been described in detail with reference to the embodiments, those skilled in the art will appreciate that various combinations, modifications, or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and it is intended to be covered by the scope of the claims of the present invention.
Claims (7)
1. A water intake control method, characterized by comprising:
acquiring coded information read from a water cup label by a reader of the drinking equipment;
determining a cup check code based on the coding information and the target check code; the target verification type is adopted to verify the coded information, and the cup verification code can be obtained after verification is correct;
outputting a water supply instruction for controlling the water drinking device to supply water according to the water taking parameter through the water taking parameter read from the water cup label under the condition that the water cup checking code is consistent with the target checking code; the target check code is determined after the initial check code is logically shifted to the right by a target bit number, and the initial check code is determined based on target coding information and the target check formula;
wherein, based on the coding information and the target check formula, determining the cup check code includes:
determining a verification coefficient based on the target verification formula;
determining a supplemental bit number based on the bit number of the check coefficient;
based on the supplementary bit number, bit filling is carried out on the coding information to obtain 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 carrying out logic right shift on the division operation result by a target bit number to obtain the cup check code.
2. The water intake control method of claim 1, wherein the water intake parameters include: at least one of water yield, temperature value and pH value.
3. The water intake control method according to claim 1, wherein at the output of a water supply instruction for controlling the water drinking device to supply water in accordance with the water intake parameter, the method further comprises:
collecting water outlet monitoring data of the drinking water equipment;
and sending the water outlet monitoring data to a server.
4. The water intake control method of claim 1, further comprising:
receiving a writing instruction sent by a server;
based on the writing instruction, writing the water taking parameter into the water cup label through a writer of the drinking equipment.
5. A water intake control device, characterized by comprising:
an acquisition unit for acquiring coded information read from the water cup tag by a reader of the drinking device;
the computing unit is used for determining a cup check code based on the coding information and a target check formula; the target verification type is adopted to verify the coded information, and the cup verification code can be obtained after verification is correct;
the water outlet 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 water cup label under the condition that the water cup check code is consistent with the target check code; the target check code is determined after the initial check code is logically shifted to the right by a target bit number, and the initial check code is determined based on target coding information and the target check formula;
wherein, based on the coding information and the target check formula, determining the cup check code includes:
determining a verification coefficient based on the target verification formula;
determining a supplemental bit number based on the bit number of the check coefficient;
based on the supplementary bit number, bit filling is carried out on the coding information to obtain 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 carrying out logic right shift on the division operation result by a target bit number to obtain the cup check code.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor performs the steps of the water intake control method as claimed in any one of claims 1 to 4 when the program is executed.
7. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the water intake control method as claimed in any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111017365.1A CN114145649B (en) | 2021-08-31 | 2021-08-31 | Water intake control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111017365.1A CN114145649B (en) | 2021-08-31 | 2021-08-31 | Water intake control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114145649A CN114145649A (en) | 2022-03-08 |
CN114145649B true CN114145649B (en) | 2024-02-23 |
Family
ID=80461849
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111017365.1A Active CN114145649B (en) | 2021-08-31 | 2021-08-31 | Water intake control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114145649B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102375941A (en) * | 2010-08-06 | 2012-03-14 | 国民技术股份有限公司 | Method and system for validating chip validity by utilizing graphical chip |
CN103759782A (en) * | 2014-01-13 | 2014-04-30 | 杭州电子科技大学 | Multi-user drinking water management method for water dispensers |
CN107479596A (en) * | 2017-07-13 | 2017-12-15 | 珠海格力电器股份有限公司 | Direct drinking machine and water outlet control method and device thereof |
CN107836997A (en) * | 2017-11-10 | 2018-03-27 | 深圳市叮咚互联科技有限公司 | Water dispenser response method, system and computer-readable recording medium |
DE202018102170U1 (en) * | 2018-04-19 | 2018-04-27 | Chengdu Hongshenglianchuang Technology Co., Ltd. | Smart water dispenser system |
JP2020125154A (en) * | 2019-01-31 | 2020-08-20 | 株式会社コスモライフ | Water server |
-
2021
- 2021-08-31 CN CN202111017365.1A patent/CN114145649B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102375941A (en) * | 2010-08-06 | 2012-03-14 | 国民技术股份有限公司 | Method and system for validating chip validity by utilizing graphical chip |
CN103759782A (en) * | 2014-01-13 | 2014-04-30 | 杭州电子科技大学 | Multi-user drinking water management method for water dispensers |
CN107479596A (en) * | 2017-07-13 | 2017-12-15 | 珠海格力电器股份有限公司 | Direct drinking machine and water outlet control method and device thereof |
CN107836997A (en) * | 2017-11-10 | 2018-03-27 | 深圳市叮咚互联科技有限公司 | Water dispenser response method, system and computer-readable recording medium |
DE202018102170U1 (en) * | 2018-04-19 | 2018-04-27 | Chengdu Hongshenglianchuang Technology Co., Ltd. | Smart water dispenser system |
JP2020125154A (en) * | 2019-01-31 | 2020-08-20 | 株式会社コスモライフ | Water server |
Also Published As
Publication number | Publication date |
---|---|
CN114145649A (en) | 2022-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU768579B2 (en) | Data communication transponder and communications system employing it | |
US7837125B2 (en) | Methods and systems for encoding a magnetic stripe | |
CN102375941B (en) | Method and system for validating chip validity by utilizing graphical chip | |
TWI332632B (en) | Radio frequency identification tags capable of embedding receiver signal strength indications | |
CN104809618B (en) | Antifake method for products based on electronic tag | |
CN102446280B (en) | A kind of method of verification msg, Apparatus and system | |
JP4974613B2 (en) | IC memory, access device for IC memory, and validity verification method | |
CN1612494A (en) | Mobile communication terminal with RFID function and RFID programming method in the same | |
CN102333305A (en) | Communication equipment, communication means and communication system | |
CN102129585A (en) | Method and system for transmitting information, device for displaying bar code and device for reading bar code | |
CN104854597A (en) | Authentication server, authentication system, authentication method, and program | |
US8857727B2 (en) | System for generating an incrementally completed 3D security mark | |
CN114145649B (en) | Water intake control method and device | |
CN101187912A (en) | Memory card system and method transmitting host identification information thereof | |
CN103995815A (en) | Handheld terminal and method for having access to website through handheld terminal | |
US8973843B2 (en) | System for generating an incrementally completed security mark | |
CN102255999B (en) | Method for determining communication protocol between terminal and smart card and expansion card | |
US8864041B2 (en) | System for generating an incrementally completed 2D security mark | |
CN106897908A (en) | A kind of Method of printing of invoice, device and printer | |
CN102087698B (en) | A kind of information transferring method and system, bar code display and reading device | |
CN107423804A (en) | Smart card, smart card administrative system and management method | |
CN114145641B (en) | Drinking water management system | |
CN114145643B (en) | Water outlet control method and device and drinking water equipment | |
CN102087699B (en) | Information transmission method and system, bar code display device and reading device | |
US9424502B2 (en) | System for generating an incrementally completed security mark |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |