WO2017167057A1 - 液体供给系统、设备及其通信方法、装置和控制方法、装置 - Google Patents

液体供给系统、设备及其通信方法、装置和控制方法、装置 Download PDF

Info

Publication number
WO2017167057A1
WO2017167057A1 PCT/CN2017/077327 CN2017077327W WO2017167057A1 WO 2017167057 A1 WO2017167057 A1 WO 2017167057A1 CN 2017077327 W CN2017077327 W CN 2017077327W WO 2017167057 A1 WO2017167057 A1 WO 2017167057A1
Authority
WO
WIPO (PCT)
Prior art keywords
liquid
liquid supply
supply device
output
command
Prior art date
Application number
PCT/CN2017/077327
Other languages
English (en)
French (fr)
Inventor
张阳
张可志
李永坡
王建亮
Original Assignee
北京古点科技有限公司
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
Priority claimed from CN201610184648.8A external-priority patent/CN105736946B/zh
Priority claimed from CN201610183699.9A external-priority patent/CN105739341B/zh
Priority claimed from CN201610183484.7A external-priority patent/CN105808068B/zh
Application filed by 北京古点科技有限公司 filed Critical 北京古点科技有限公司
Publication of WO2017167057A1 publication Critical patent/WO2017167057A1/zh

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16KVALVES; TAPS; COCKS; ACTUATING-FLOATS; DEVICES FOR VENTING OR AERATING
    • F16K31/00Actuating devices; Operating means; Releasing devices
    • F16K31/02Actuating devices; Operating means; Releasing devices electric; magnetic
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F17STORING OR DISTRIBUTING GASES OR LIQUIDS
    • F17DPIPE-LINE SYSTEMS; PIPE-LINES
    • F17D1/00Pipe-line systems
    • F17D1/08Pipe-line systems for liquids or viscous products
    • F17D1/14Conveying liquids or viscous products by pumping
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F17STORING OR DISTRIBUTING GASES OR LIQUIDS
    • F17DPIPE-LINE SYSTEMS; PIPE-LINES
    • F17D3/00Arrangements for supervising or controlling working operations
    • F17D3/18Arrangements for supervising or controlling working operations for measuring the quantity of conveyed product
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers

Definitions

  • the present invention relates to the field of Internet of things, and in particular, to a liquid supply system, a device, and a communication method, apparatus, and control method and apparatus therefor.
  • Faucets are a very common household item in people's daily life, used to control the size and switch of the water flow.
  • the current faucet In order to facilitate the user to use hot water, the current faucet also has the function of mixing hot and cold water, so that hot water or warm water can be used directly.
  • Most of the common faucets are mechanical structures. Most of the spools include a moving piece and a static piece. The relative movement between the moving piece and the static piece makes the hole on the moving piece communicate with the water inlet hole on the static piece. The hole communicates with the outlet passage so that hot water is mixed into the faucet. After the hot and cold water faucet is opened, people cannot know the temperature of the water. They can only be tested by hand and need to be debugged several times to reach the temperature that people need. The commissioning process is time consuming and cumbersome, and the effluent is too hot to cause burns. In addition, such faucets are also unable to quantify water, which is likely to cause waste of resources.
  • the present invention provides a novel liquid supply apparatus that is more convenient to control and that can achieve multifunctional effects.
  • an embodiment of the present invention provides a liquid supply device including: a liquid faucet, a central controller, and a liquid conduit;
  • the liquid faucet comprises: a main body portion and a bracket for supporting the main body portion, the main body portion is provided with a liquid outlet, and the bracket is provided with a conduit that is electrically connected to the liquid outlet;
  • the liquid pipeline comprises: a transfer pipe, an electric pump and an electric valve; the transfer pipe of the liquid pipe is connected to the pipe on the liquid faucet bracket, and the supply source and the liquid faucet are turned on; the electric pump and the electric valve are arranged on the transfer pipe, the electric pump Providing liquid transmission power for the liquid pipeline, the electric valve acts as a switch for the liquid pipeline; wherein the electric pump and the electric valve are electrically connected to the central controller;
  • the central controller controls the electric pump and the electric valve of the liquid pipeline according to a user instruction to realize the output of the liquid or the output of the liquid.
  • an embodiment of the present invention provides a liquid supply apparatus including: a liquid faucet, a central controller, a liquid conduit, and a recovery tank, wherein the liquid faucet is provided with a liquid outlet and a water conduit that is electrically connected to the liquid outlet and a beverage conduit, the liquid conduit comprising: a water inlet conduit and a beverage inlet conduit, the inlet conduit comprising: a cold water inlet conduit, a hot water inlet Pipes and shared outlet pipes;
  • the cold water inlet pipe includes a water storage device, and a first electric pump and a first electric valve are sequentially disposed on the conveying pipe of the cold water inlet pipe along a conveying direction of the water storage device to the liquid faucet;
  • the water inlet pipe includes a heating device, and a second electric pump and a second electric valve are disposed on the conveying pipe of the hot water inlet pipe along a conveying direction of the heating device to the liquid faucet; the cold water inlet pipe and the cold water inlet pipe a transfer pipe of the hot water inlet pipe is connected to the water conduit through the shared outlet pipe;
  • the into-drinking pipe includes a beverage storage box, and a third electric pump and a third electric valve are sequentially disposed on the conveying pipe of the drinking beverage pipe along a conveying direction of the beverage storage box to the liquid faucet; the transmission of the recycling tank
  • the tube is connected to the supply side of the third electric pump; wherein the first electric pump, the first electric valve, the second electric pump, the second electric valve, the third electric pump and the third electric valve are electrically connected to the central controller ;
  • the central controller determines the working state of the liquid supply device. If the liquid supply device is in the water discharge state or is in the cleaning state, the water discharge instruction is not executed, and the reason for not executing is fed back to the user; otherwise, according to the water discharge instruction
  • the indicated water temperature is turned on to open the corresponding electric pump and electric valve, and the water of the corresponding temperature is started to be pumped to the liquid faucet.
  • the quantitative effluent is completed, the water is pumped to the liquid faucet, and it is judged whether the current cup number is the last cup, if not The last cup restarts pumping the water to the liquid faucet. If it is the last cup, the third electric pump and the third electric valve are opened, and the third electric pump is controlled to rotate in the opposite direction to pump the residual liquid in the transfer pipe. Go to the recovery tank.
  • the liquid supply device of the present invention connects a liquid supply source and a liquid faucet by using a liquid pipe by providing a liquid faucet, a central controller and a liquid pipe, and is provided with an electric pump and an electric valve on the liquid pipe, and the electric pump is controlled by the central controller. And the working state of the electric valve enables automatic control of the liquid supply.
  • the liquid supply device of the invention can not only achieve multi-functional effects such as quantitative liquid output, automatic liquid residue recovery, automatic cleaning, but also can cooperate with the mobile control terminal to realize non-contact with the liquid supply device. Remote control, control mode is more convenient and flexible.
  • the present invention provides a communication method, apparatus, and liquid supply system for a liquid supply device to implement a communication scheme of the smart liquid supply device.
  • the present invention provides a communication method of a liquid supply device, wherein a central communication controller of the liquid supply device is provided with a wireless communication module, and the communication method of the liquid supply device includes:
  • the command frame is parsed by the central controller, and according to the parsed liquid output command, the liquid supply device is controlled to output the liquid from the liquid faucet, and a response frame is generated according to the liquid output result, and the generated response frame is sent to the control terminal.
  • the present invention provides a communication device for a liquid supply device, comprising:
  • a wireless communication module configured to establish a data connection between the liquid supply device and the control terminal
  • a data receiving module configured to receive, by using a data connection established by the wireless communication module, a command frame sent by the control terminal, where the command frame includes a liquid output command indicating that the liquid supply device outputs a liquid;
  • a parsing module configured to parse the command frame, so that the central controller controls the liquid supply device to output liquid from the liquid faucet, and generates a response frame according to the liquid output result;
  • the data sending module is configured to read the response frame generated in the central controller, and send the generated response frame to the control terminal.
  • the present invention provides a liquid supply system comprising: a liquid supply device and a control terminal;
  • a communication device is provided in a central controller of the liquid supply device.
  • the technical solution establishes a wireless communication module in the central controller of the liquid supply device, establishes a wireless connection with the control terminal by using the wireless communication module, receives a control command sent by the control terminal through the wireless connection, and controls the liquid output of the liquid supply device according to the control command.
  • the solution ensures the realization of the wireless control of the intelligent liquid supply device, thereby ensuring that the liquid supply device can realize quantitative, constant temperature water discharge, automatic recovery of residual liquid in the pipeline, pipeline cleaning control, etc., enriching the function of the liquid supply device, Conducive to the promotion and application of Internet of Things technology.
  • the present invention provides a method and apparatus for controlling a liquid supply apparatus to achieve convenient control of a liquid supply apparatus.
  • the present invention provides a method of controlling a liquid supply apparatus, comprising:
  • the present invention provides a control apparatus for a liquid supply apparatus including a communication unit, a control unit, and a detection unit provided in an application for generating an adaptive liquid supply apparatus based on an application development platform, the control unit including a liquid output Module
  • a detecting unit when controlling the liquid supply device, detecting a triggering event of starting the communication unit, and detecting a triggering event of the liquid output module in the starting control unit after establishing a data connection with the liquid supply device;
  • a communication unit when the detecting unit detects a triggering event of starting the communication unit, establishing a data connection with the liquid supply device according to a configured communication manner;
  • a liquid output module after establishing a data connection with the liquid supply device, transmitting a control command to the liquid supply device through the data connection to control the liquid supply when the detecting unit detects a trigger event of activating the liquid output module
  • the device performs liquid output.
  • the technical solution generates an application for adapting a liquid supply device based on an application development platform, and by setting a communication unit and a control unit in the application, when the liquid supply device needs to be controlled, the communication unit and the liquid supply device are used for data connection, and After the data connection is established, the liquid output of the liquid supply device is controlled by the liquid output module in the control unit to realize convenient control of the liquid supply device.
  • the functions of the liquid supply device can be flexibly added, deleted, updated and personalized, which enriches the function of the liquid supply device, improves the intelligence of the liquid supply device, and facilitates the Internet of Things. Promotion and application of technology.
  • Embodiment 1 is a structural block diagram of a liquid supply device provided in Embodiment 1;
  • Figure 2 is a front elevational view of the liquid faucet provided in the first embodiment
  • Figure 3 is a bottom plan view of the liquid faucet of Figure 2;
  • 4-1 is a schematic diagram of a pipeline of a liquid supply device provided in Embodiment 2;
  • 4-2 is a schematic view of a pipe of another liquid supply device provided in the second embodiment
  • FIG. 5 is a schematic diagram showing the control logic for setting the liquid supply accurately to the cold water provided in the second embodiment
  • FIG. 6 is a schematic diagram of a control logic for setting a precise hot water supply for the liquid supply provided in the second embodiment
  • FIG. 7 is a schematic diagram of a control logic for setting a precise temperature of the liquid supply provided by the second embodiment
  • Figure 8 is a schematic diagram showing the control logic for setting the precise milk out of the liquid supply provided in the second embodiment
  • Embodiment 9 is a flow chart of a communication method of a liquid supply device provided in Embodiment 3;
  • FIG. 10 is a schematic diagram showing a frame structure of frame data provided in Embodiment 4.
  • FIG. 11 is a schematic diagram of a command frame description of 10 types of frame data provided in Embodiment 4.
  • Figure 12 is a block diagram showing the structure of a communication device of the liquid supply device provided in the fifth embodiment.
  • Figure 13 is a block diagram showing the structure of a liquid supply system provided in Embodiment 6;
  • Figure 14 is a schematic diagram showing the interaction between the liquid supply device and the control terminal of the liquid supply system provided in the sixth embodiment
  • Figure 15 is a flow chart showing a control method of the liquid supply apparatus provided in the seventh embodiment.
  • FIG. 16 is a block diagram of a module of an application provided in Embodiment 8.
  • FIG. 17 is a schematic diagram showing a scan module icon displayed in an operation area of a main interface provided in Embodiment 8;
  • Embodiment 18 is a schematic diagram of an operation area of a main interface provided in Embodiment 8.
  • FIG. 19 is a schematic diagram of a first output interface of the water outlet module provided in Embodiment 8.
  • FIG. 20 is a development effect diagram of a hidden interface of a trigger icon provided in Embodiment 8.
  • Fig. 21 is a block diagram showing the configuration of a control device for a liquid supply apparatus according to a ninth embodiment.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the liquid supply device includes: a liquid faucet 1, a central controller 2, and a liquid conduit 3; as shown in FIG. 2 and FIG.
  • the liquid faucet 1 includes a main body portion 11 and a bracket 12 for supporting the main body portion.
  • the main body portion 11 is provided with a liquid outlet 111
  • the bracket 12 is provided with a conduit that conducts with the liquid outlet;
  • the liquid pipe 3 includes: a transfer pipe 31, an electric pump 32, and an electric valve 33; the transfer pipe 31 of the liquid pipe 3 is connected to a conduit on the holder 12 of the liquid tap 1 to conduct a supply source and a liquid tap; the electric pump 32 and the electric valve 33 Disposed on the transfer pipe 31, the electric pump 32 provides power for liquid transfer for the liquid pipe, and the electric valve 33 serves as a switch for the liquid pipe; wherein the electric pump 32 and the electric valve 33 are electrically connected to the central controller 2; the central controller 2 is in accordance with a user command The electric pump 32 and the electric valve 33 that control the liquid pipe realize the output of the liquid or the output of the liquid.
  • the central controller of the present embodiment controls the electric pump and the electric valve of the liquid pipeline according to the user instruction. It can be understood that the central controller and the user's mobile control terminal have a set communication protocol, and when the user sends a control command through the mobile control terminal, The central controller receives the control command and controls the electric pump and the electric valve of the liquid pipeline according to the control command to realize the control of the liquid output.
  • the electric pump in this embodiment includes a metering module.
  • the metering module turns off the electric pump to achieve precise control of the liquid output.
  • a peristaltic electric pump with a relatively high measurement accuracy is preferred, and the central controller can set parameters such as the rotational speed and the number of revolutions of the peristaltic electric pump according to the received user command, so as to accurately control the output.
  • Liquid volume may be disposed in the liquid pipeline, and the metering function of the flow meter is used to control the liquid discharge amount of the liquid faucet.
  • a liquid having a weighing function is provided in the cup holder, and the liquid output amount is controlled by the weight data sensed by the sensor.
  • a cup holder having a load cell is disposed, wherein the load cell is electrically connected to the central controller; during the liquid output process, the load sensor transmits the sensed weight to the central controller, when the set weight is reached, The central controller controls the working state of the electric pump and the electric valve to achieve the liquid Precise control of volume output.
  • the liquid pipe provided in this embodiment can connect different types of liquid supply sources to the liquid faucet, for example, the liquid pipe can realize the communication between the purified water source and the liquid faucet, or simultaneously Connect all types of drinks (milk, juice, coffee, etc.) to the liquid faucet.
  • the liquid pipeline includes a water inlet conduit and/or a beverage conduit
  • the conduit on the bracket includes a water conduit and/or a beverage conduit
  • the inlet conduit includes: a cold water inlet conduit, a hot water inlet conduit, and a shared outlet conduit
  • the cold water refers to normal temperature water (water temperature of about 25 degrees Celsius), and this embodiment is distinguished by hot water, cold water or warm water for convenience of description.
  • the cold water inlet pipe includes a water storage device, and along the transmission direction of the water storage device to the liquid faucet, the electric pump is sequentially arranged as a first electric pump and the electric valve is a first electric valve on the transmission pipe of the cold water inlet pipe;
  • the water inlet pipe comprises a heating device, along the conveying direction of the heating device to the liquid faucet, an electric pump is arranged on the transmission pipe of the hot water inlet pipe as the second electric pump, the electric valve is the second electric valve; the cold water inlet pipe and The transfer pipe of the hot water inlet pipe is connected to the water pipe on the bracket through a shared outlet pipe.
  • the drinking beverage pipe includes a beverage storage box, and along the conveying direction of the beverage storage box to the liquid faucet, the electric pump is sequentially set as the third electric pump and the electric valve is the third electric valve on the conveying pipe of the drinking pipe.
  • the beverage storage box also has a refrigerating function, such as using a refrigerator to keep milk fresh and avoiding deterioration of milk.
  • the water storage device in the cold water inlet pipe in the embodiment may be a purified tap water source or a water storage tank for storing pure water.
  • the heating device in the hot water inlet pipe is connected to the purified tap water source; when the water storage device in the cold water inlet pipe is the water storage tank, the hot water inlet pipe is in the hot water inlet pipe The heating device is correspondingly connected to the water storage tank.
  • the water pressure of the water storage tank should be higher than the water pressure of the heating device, so that the water in the water storage tank can smoothly flow into the heating device; wherein the hot water inlet pipe
  • the heating device in the middle is preferably a hot water heating box or a water heater, such as a step-type water machine.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the embodiment provides a temperature controllable liquid supply device, the liquid supply device comprises: a liquid faucet, a central controller, a liquid pipeline and a recovery tank, the liquid faucet is provided with a liquid outlet and a water conduit connected to the liquid outlet And a beverage conduit, the liquid pipeline includes: a water inlet pipe and a drinking water pipe, and the water inlet pipe includes: a cold water inlet pipe, a hot water inlet pipe, and a shared outlet pipe;
  • the cold water inlet pipe comprises a water storage device, and the first electric pump and the first electric valve are sequentially disposed on the conveying pipe of the cold water inlet pipe along the conveying direction of the water storage device to the liquid faucet;
  • the hot water inlet pipe includes a heating device a second electric pump and a second electric valve are disposed on the conveying pipe of the hot water inlet pipe along the conveying direction of the heating device to the liquid faucet;
  • the conveying pipe of the cold water inlet pipe and the hot water inlet pipe passes through the shared outlet pipe Connected to a water conduit;
  • the beverage pipeline includes a beverage storage box, along the direction of the beverage storage tank to the liquid faucet, in the beverage pipeline.
  • a third electric pump and a third electric valve are sequentially disposed on the transmission pipe; the transfer pipe of the recovery tank is connected to the supply side of the third electric pump; wherein, the first electric pump, the first electric valve, the second electric pump, and the second The electric valve, the third electric pump and the third electric valve are electrically connected to the central controller;
  • the central controller determines the working state of the liquid supply device. If the liquid supply device is in the water discharge state or is in the cleaning state, the water discharge instruction is not executed, and the reason for not executing is fed back to the user; otherwise, according to the water discharge instruction
  • the indicated water temperature is turned on to open the corresponding electric pump and electric valve, and the water of the corresponding temperature is started to be pumped to the liquid faucet.
  • the quantitative effluent is completed, the water is pumped to the liquid faucet, and it is judged whether the current cup number is the last cup, if not The last cup restarts pumping the corresponding temperature to the liquid faucet. If it is the last cup, the third electric pump and the third electric valve are opened, and the third electric pump is controlled to rotate in the reverse direction, and the liquid pump remaining in the transmission pipe is transferred. Into the recycling tank.
  • a third temperature sensor is disposed outside the pipe wall of the common outlet pipe, and when receiving the water discharge command, the central controller controls the third electric pump to reversely rotate according to the water temperature in the common outlet pipe from the third temperature sensor, so as to The water pump that does not meet the temperature requirement is put into the recovery tank until the water temperature sensed by the third temperature sensor meets the desired water temperature, and the third electric pump is turned off.
  • the hot water inlet pipe in this embodiment further includes a fourth electric valve, one end of which is connected to the output side of the second electric valve, and the other end is connected to the output side of the heating device; the central controller is in the liquid supply device
  • the fourth electric valve is opened, and the second electric pump is controlled to rotate in the forward direction, and is surrounded by a transmission pipe between the heating device, the second electric pump and the fourth electric valve.
  • the inner circulation loop of the hot water inlet pipe avoids the temperature of the transfer pipe of the hot water inlet pipe to be too low, and ensures the temperature of the hot water when the hot water inlet pipe starts to output hot water.
  • the water discharge command in the embodiment may be a cold water command, a hot water command, a hot water command, etc., and when the water command received by the central controller is a cold water command, the first electric pump and the first electric valve are opened.
  • Pumping cold water into the liquid faucet when the water supply command received by the central controller is the hot water command, the fourth electric valve is closed, and the second electric pump and the second electric valve are opened to pump hot water to the liquid faucet;
  • the water supply command received by the central controller is the warm water command, the fourth electric valve is closed, and the first electric pump and the hot water inlet water in the cold water inlet pipe are set according to the temperature of the warm water indicated in the received control command.
  • the pumping speed and the pumping amount of the second electric pump in the pipeline open the first electric pump, the first electric valve, and the second electric pump and the second electric valve pump cold water and hot water to the liquid faucet.
  • the present embodiment describes in detail the arrangement of the liquid conduit of the liquid supply device and the function supported by the liquid supply device.
  • This embodiment is described by way of an example of a liquid supply apparatus that supports two liquid outputs, which respectively provide water and milk, wherein the water inlet pipe can supply cold water, warm water, and hot water.
  • the liquid pipeline in this embodiment includes the water inlet pipe and the drinking water pipe in the first embodiment.
  • the water storage device in the cold water inlet pipe is set as a water storage tank, and the heating in the hot water inlet pipe is heated.
  • the device is set to a heating box (or Figure 4-1 shows a schematic diagram of the pipeline of the liquid supply device provided by the embodiment, and the water storage tank provides water source for the cold water inlet pipe and the hot water inlet pipe at the same time;
  • the beverage storage box in the middle is set as a milk storage tank.
  • the liquid supply apparatus in this embodiment further includes a recovery tank, and cleaning and residual liquid recovery of the liquid supply apparatus are realized by providing the recovery tank.
  • the transfer pipe of the recovery tank is connected to the supply side of the third electric pump, and the supply side is specifically the side where the milk storage tank is located with respect to the liquid faucet side.
  • the central controller opens the first electrical valve according to the set cleaning strategy, and controls the first electric pump to rotate in the forward direction, or opens the second electric valve, and controls the second electric pump to rotate in the forward direction, or opens the first An electric valve and a second electric valve, and controlling the first electric pump and the second electric pump to rotate in the forward direction, the water pump is inserted into the water conduit, and the third electric valve is opened according to the set cleaning strategy, and the third electric pump is controlled Reverse rotation, pumping the residual liquid in the liquid pipeline to the recovery tank.
  • the explanation is as follows: when the liquid is pumped from the liquid supply source side to the liquid faucet side, the rotation direction of the electric pump is set to be positive rotation; When the faucet side is pumped to the side of the recovery tank, the direction of rotation of the electric pump is set to reverse rotation.
  • the cleaning strategy in this embodiment includes a whole machine cleaning and a milk tube cleaning strategy.
  • the central controller opens the first electric valve, the second electric valve and the third electric valve, and controls the first electric
  • the pump and the second electric pump rotate in the forward direction, control the third electric pump to rotate in the reverse direction, and the water in the transfer pipe is sequentially pumped into the recovery tank through the water pipe, the milk conduit and the milk pipe transfer pipe.
  • the central controller can open the first electric valve (or the second electric valve) and the third electric valve, and control the first electric pump (or the second electric pump) to rotate in the forward direction, and control the first The three electric pumps rotate in the opposite direction, and the water in the transfer pipe is sequentially pumped into the recovery tank through the water pipe, the milk pipe and the transfer pipe of the milk pipe to realize the cleaning of the milk pipe.
  • an alternative transfer tube can be placed between the cold water inlet pipe and the milk line, and a fifth electrical valve can be placed on the alternate transfer tube.
  • the central controller can open the fifth electric valve, control the reverse rotation of the third electric pump, and put the cold water pump in the water storage tank into the recovery tank to clean the milk tube.
  • the liquid supply device in this embodiment further includes a third temperature sensor disposed outside the wall of the shared outlet pipe, and the third temperature sensor senses the water temperature in the shared outlet pipe in real time, and senses The water temperature is transmitted to the central controller in real time, and the central controller controls the third electric pump to reversely rotate according to the received water temperature to input the water pump that does not meet the temperature requirement into the recovery tank until the third temperature sensor senses The water temperature is in accordance with the desired water temperature, and the third electric pump and the third electric valve are closed.
  • FIG. 5 is a schematic diagram of the control logic for accurately setting the cold water provided by the liquid supply according to the embodiment.
  • the specific process of the central controller in the embodiment for controlling the liquid water from the liquid tap is as follows:
  • step S510 when receiving the cold water command, determining the working state of the liquid supply device, if the liquid supply device is out In the water or milking state or in the cleaning state, step S521 is performed, otherwise step S522 is performed.
  • the cold water command is not executed, and the reason for not executing is fed back to the user. If the liquid supply device is currently in the effluent or milking state or is in the cleaning state, the user is fed back that the device is busy; if the liquid supply device is unable to execute the cold water command (the instruction received by the central controller is incomplete, etc.), the user is The feedback command is faulty.
  • the first electric pump and the first electric valve are opened, and the cold water is pumped into the liquid faucet.
  • step S530 it is determined whether the quantitative effluent is completed. If the quantitative effluent is completed, step S540 is performed; otherwise, step S522 is performed to continue pumping cold water to the liquid faucet.
  • step S550 determining whether the current cup number is the last cup, if it is the last cup, executing step S560, otherwise performing step S522.
  • the third electric pump and the third electric valve are opened, and the third electric pump is controlled to rotate in the reverse direction, and the residual cold water in the transmission pipeline is pumped into the recovery tank to end the cold water output.
  • the hot water inlet pipe in FIG. 4-1 further includes a fourth electric valve, wherein the fourth electric valve is connected at one end to the output side of the second electric valve, and the other end is connected to The output side of the heating box.
  • the central controller opens the fourth electric valve and controls the second electric pump to rotate in the forward direction, using the heating box, the second electric pump and the fourth electric
  • the transfer tube between the valves encloses the inner circulation loop of the hot water inlet pipe, avoiding the temperature of the transfer pipe of the hot water inlet pipe being too low, and ensuring the temperature of the hot water when the hot water inlet pipe starts to output hot water.
  • FIG. 6 is a schematic diagram of the control logic for setting the precise hot water supply for the liquid supply according to the embodiment. Referring to FIG. 6 , the specific process of the central controller controlling the hot water of the liquid tap in the embodiment is as follows:
  • step S610 when receiving the hot water supply command, determining the working state of the liquid supply device, if the liquid supply device is in the water discharge or milking state or in the cleaning state, step S621 is performed, otherwise step S622 is performed.
  • the hot water instruction is not executed, and the reason for not executing is fed back to the user. If the liquid supply device is currently in the effluent or milking state or is in the cleaning state, the user is fed back that the device is busy; if the liquid supply device is unable to execute the hot water instruction (the instruction received by the central controller is incomplete, etc.), then User feedback command error.
  • the liquid supply device supplies the hot water
  • the inner circulation circuit of the hot water inlet pipe is in operation, that is, the second electric pump is opened, the second electric valve is closed, and the fourth electric valve is opened. . Therefore, when it is necessary to pump hot water into the liquid faucet, it is only necessary to close the fourth electric valve and open the second electric valve.
  • the electric power that does not satisfy the temperature demand can be pumped into the recovery tank by using a third temperature sensor disposed at the common outlet pipe. That is, when the hot water supply is started, the third temperature sensor senses the common water outlet at the same time. The water temperature, when the water temperature does not meet the required hot water temperature, the central controller opens the third electric pump and the third electric valve, controls the third electric pump to rotate in the reverse direction, and pumps the electric power in the transmission pipeline that does not meet the temperature requirement into the recovery. In the tank, until the water temperature sensed by the third temperature sensor meets the desired water temperature, the central controller turns off the third electric pump and the third electric valve when the water temperature sensed by the third temperature sensor meets the desired water temperature.
  • step S630 it is determined whether the quantitative effluent is completed. If the quantitative effluent is completed, step S640 is performed, otherwise step S622 is performed to continue to pump hot water to the liquid faucet.
  • step S650 determining whether the current cup number is the last cup, if it is the last cup, executing step S660, otherwise performing step S622, opening the second electric pump and the second electric valve, and continuing to pump hot water to the liquid faucet.
  • FIG. 7 is a schematic diagram of the control logic for setting the precise temperature of the liquid supply according to the embodiment of the present invention. Referring to FIG. 7 , the specific process of the central controller controlling the liquid faucet in the present embodiment is as follows:
  • step S710 when receiving the warm water command, determining the working state of the liquid supply device, if the liquid supply device is in the water discharge or milking state or in the cleaning state, step S721 is performed, otherwise step S722 is performed.
  • the warm water command is not executed, and the reason for not executing is fed back to the user. If the liquid supply device is currently in the effluent or milking state or in the cleaning state, the user is fed back that the device is busy; if the liquid supply device is unable to execute the warm water command (the instruction received by the central controller is incomplete, etc.), the user is The feedback command is faulty.
  • the cold water inlet pipe and the hot water inlet pipe are pumped to the liquid faucet in the same manner as in the case of starting the supply of cold water and hot water in FIGS. 5 and 6, and will not be described again.
  • the central controller in this embodiment needs to set the cold water into the temperature according to the temperature of the required warm water in the received control command.
  • the pumping speed and pumping amount of the second electric pump in the first electric pump and the hot water inlet pipe in the water pipe to reach the required water temperature.
  • step S730 it is determined whether the quantitative effluent is completed. If the quantitative effluent is completed, step S740 is performed, otherwise step S722 is performed to continue pumping warm water to the liquid faucet.
  • control mode of the cold water inlet pipe and the hot water inlet pipe for stopping the pumping of the water to the liquid faucet is the same as that of the suspension of the supply of the cold water and the hot water in FIGS. 5 and 6, and details are not described herein again.
  • step S750 determining whether the current cup number is the last cup, if it is the last cup, executing step S760, otherwise performing step S722.
  • FIG. 8 is a schematic diagram of the control logic for setting the milk out of the liquid supply according to the embodiment. Referring to FIG. 8 , the specific process of the central controller controlling the liquid faucet in the present embodiment is as follows:
  • step S810 when receiving the milk instruction, determining the working state of the liquid supply device, if the liquid supply device is in the water discharge or milking state or in the cleaning state, step S821 is performed, otherwise step S822 is performed.
  • the milk instruction is not executed, and the user is not informed of the reason for not executing. If the liquid supply device is currently in the effluent or milking state or in the cleaning state, the user is fed back that the device is busy; if the liquid supply device is unable to execute the milk instruction (the instruction received by the central controller is incomplete, etc.), the user is The feedback command is faulty.
  • step S830 judging the amount of milk stored in the milk jug, if the milk in the milk jug is exhausted, step S841 is performed, otherwise step S842 is performed. Is the milk in the milk jug finished?
  • step S842 judging whether the quantitative milking is completed, if the quantitative milking is completed, step S850 is performed, otherwise step S822 is performed, and the milk is continuously pumped to the liquid faucet.
  • step S860 determining whether the current cup number is the last cup, if it is the last cup, executing step S870, otherwise performing step S822, opening the third electric valve and the third electric pump, and continuing to pump the milk to the liquid faucet.
  • step S880 the present embodiment preferably uses cold water to clean the milk tubing.
  • the milk pipe can also be cleaned by using hot water or warm water.
  • the cleaning method is as above, and will not be described here.
  • the liquid supply device in the embodiment has various functional effects, such as quantitative supply of cold water, warm water, hot water and milk, and automatic recovery of water or milk remaining in the liquid pipe after each supply, and Different cleaning schemes are set for the pipeline cleaning of the liquid supply device to meet the cleaning standards of the liquid supply equipment in various application scenarios.
  • the first electric pump and the second electric pump are provided as a peristaltic electric pump
  • the third electric pump is a gear electric pump.
  • the cold water inlet pipe of the embodiment is provided with an air bag at a position close to the first electric pump to suppress the water flow pulse caused by the peristaltic electric pump; the hot water of the embodiment
  • the water inlet pipe is provided with an air bag at a position close to the second electric pump to suppress a water flow pulse caused by the peristaltic electric pump.
  • the common outlet pipe of the embodiment is in the cold water inlet pipe.
  • a check valve is arranged at a position where the road and the hot water inlet pipe meet, so that when the first electric valve and the second electric valve are both opened, the cold water inlet pipe does not transfer the cold water to the hot water inlet pipe, the hot water The inlet pipe also does not transfer hot water to the cold water inlet pipe.
  • the transfer pipe between the third electric pump and the beverage storage tank of the embodiment is provided with a check valve, and between the third electric pump and the recovery tank
  • the transfer tube is provided with a check valve.
  • the cold water inlet pipe of the embodiment is provided with a first temperature sensor and a first pressure sensor on the output side of the water storage tank, and the hot water inlet pipe is heated.
  • the second temperature sensor and the second pressure sensor are disposed on the output side of the box, and the first temperature sensor, the first pressure sensor, the second temperature sensor and the second pressure sensor are electrically connected to the central controller, so that the central controller receives the temperature sensor And data transmitted by the pressure sensor.
  • the liquid remaining in the liquid pipe is automatically recovered into the recovery tank after each liquid output, and the liquid outlet on the liquid faucet of the embodiment is provided with an elastic member, and the water pressure at the liquid outlet is smaller than When the pressure is set, the elastic member covers and blocks the liquid outlet to prevent liquid from flowing out of the liquid outlet; when the water pressure at the liquid outlet is greater than or equal to the set pressure, the elastic member is compressed under the action of water pressure, The liquid outlet is electrically connected to the outside, and the liquid smoothly flows out from the liquid outlet.
  • the liquid outlet on the liquid faucet in this embodiment can be expanded and contracted to adjust the distance between the liquid outlet and the cup holding the liquid, such as a liquid.
  • the liquid outlet of the faucet is 2 cm above the cup to avoid liquid splashing out of the cup during liquid output.
  • the liquid supply apparatus shown in Fig. 4-2 is a modified structure of the liquid supply apparatus shown in Fig. 4-1, as shown in Fig. 4-2, compared to the liquid supply apparatus shown in Fig. 4-1.
  • the liquid supply device shown in 4-2 is not provided with an inner circulation loop of the hot water inlet pipe, that is, the fourth electric valve is not provided, and the second electric pump is connected between the water storage tank and the heating tank, and the second electric pump is
  • the aspect is for introducing the water pump in the water storage tank into the heating tank, and on the other hand, for pumping the heat in the heating tank into the hot water inlet pipe to improve the integrity of the liquid supply device;
  • FIG. 4-2 shows The connection between other structural members of the liquid supply device is the same as that of the liquid supply device shown in FIG. 4-1, that is, the water supply strategy, the milk supply strategy, and the cleaning strategy of the liquid supply device shown in FIG. 4-2 are as shown in FIG.
  • the liquid supply device shown by -1 is the same and will not be described again here
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the liquid supply device in this embodiment is the liquid supply device disclosed in the first embodiment or the second embodiment, and a wireless communication module is disposed in the central controller of the liquid supply device.
  • the wireless communication module in this embodiment is a Bluetooth module, and the Bluetooth module is preferably set to a passwordless data connection mode, which is convenient for automatically establishing a wireless connection with the control terminal.
  • FIG. 9 is a flowchart of a communication method of a liquid supply device according to an embodiment. As shown in FIG. 9, the method in FIG. 9 includes:
  • the control terminal in this embodiment may be an intelligent mobile terminal such as a smart watch, a mobile phone terminal, or a PAD, and an application adapted to the liquid supply device is set in the control terminal.
  • the adaptation means that the generated application is adapted to the liquid supply device software system, the version adaptation and the application need to be adapted to the model of the hardware device in the liquid supply device, and the like.
  • the liquid supply device in this embodiment allows the central controller of the liquid supply device to control the device of the liquid supply device according to the received command frame by providing devices such as an electric pump, an electric valve, a temperature sensor, and a pressure sensor in its liquid conduit.
  • devices such as an electric pump, an electric valve, a temperature sensor, and a pressure sensor in its liquid conduit.
  • the central controller analyzes the command frame, and according to the parsed liquid output command, controls the liquid supply device to output the liquid from the liquid faucet, generates a response frame according to the liquid output result, and sends the generated response frame to the control terminal.
  • a wireless communication module is set in a central controller of the liquid supply device, a wireless connection is established with the control terminal by using the wireless communication module, a control command sent by the control terminal is received through the wireless connection, and a liquid output of the liquid supply device is controlled according to the control command. Mode for easy control of liquid supply equipment.
  • the embodiment further includes:
  • the current working state of the liquid supply device is detected. If the liquid supply device is currently in a normal working state and there is no liquid output, the control liquid supply device outputs the liquid from the liquid faucet and generates a response frame indicating that the liquid supply device executes the liquid output command. If the liquid supply device is currently in a normal working state and there is a liquid output, a response frame indicating that the liquid supply device is busy is generated; otherwise, a response frame indicating a command error is generated.
  • the type of the command frame of the embodiment further includes: a pause command indicating that the liquid supply device suspends the liquid output, a re-output command instructing the liquid supply device to cancel the suspension of the liquid output, a cancel command instructing the liquid supply device to cancel the liquid output, indicating the cleaning A washing command of the liquid pipe of the liquid supply device, a state acquisition command instructing acquisition of the state of the liquid supply device, and an attribute acquisition command instructing acquisition of attribute information of the liquid supply device.
  • the central controller parses the pause command, detecting the current working state of the liquid supply device; when the liquid supply device is currently in a normal working state and there is a liquid output, controlling the liquid supply device to stop outputting the liquid from the liquid faucet, and A response frame is generated that instructs the liquid supply device to suspend liquid output to the control terminal.
  • the central controller parses out the re-output command, the current working state of the liquid supply device is detected; when the liquid supply device is currently in the working state of suspending the output liquid, the control liquid supply device continues to output the liquid from the liquid faucet to generate A response frame indicating that the liquid supply device re-outputs the liquid is sent to the control terminal.
  • the central controller parses the cancel command, detecting the current working state of the liquid supply device; when the liquid supply device is currently in a normal working state and there is an output liquid, controlling the liquid supply device to stop the liquid from the liquid faucet The medium output and recover the liquid remaining in the liquid pipe, and generate a response frame indicating that the liquid supply device cancels the liquid output and send it to the control terminal.
  • the central controller parses out the cleaning command, the current working state of the liquid supply device is detected; if the liquid supply device is currently in a normal working state and there is no liquid output, the liquid supply device is controlled to wash the liquid pipe with water, and generate an indication liquid supply device.
  • a response frame for executing the cleaning command is sent to the control terminal; if the liquid supply device is currently in a normal working state and there is a liquid output, a response frame indicating that the liquid supply device is busy is generated and sent to the control terminal.
  • the central controller parses the state acquisition command, the temperature and pressure information of each liquid supply source is acquired, and the acquired information is generated to generate a response frame indicating the current state of the liquid supply device to the control terminal.
  • the central controller parses the attribute acquisition command, the PID value and/or the hardware version model and/or the firmware version model of the liquid supply device are acquired, and the acquired information generates a response frame indicating the liquid device attribute information.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • the present embodiment specifically describes the communication mode of the liquid supply device by using its wireless connection module and the control terminal.
  • the command frame in this embodiment includes the liquid output command, the pause command, the re-output command, the cancel command, the wash command, and the state acquisition command in the third embodiment.
  • a liquid supply device supporting two liquid outputs will be described as an example. Assuming that the liquid supply device can supply water and milk, the liquid output command can be divided into a water discharge command and a milk discharge command.
  • the command frame and the response frame in this embodiment have the same frame structure, as shown in FIG. 10, including the frame header, the frame length, the command word, and Data body
  • a fixed network byte character in the frame header to identify the starting position of the command frame and response frame. For example, you can set the network byte character to a fixed value, such as 0Xxxxxxxxx, where 0X is the hexadecimal identifier and xxxxxxxx is the network. a fixed value of the byte character;
  • a byte length indicating a command word and a data body in a frame length preferably the length of the byte ranges from 0 to 255 bytes;
  • the type data identifying the command frame or the response frame is set in the command word, and the setting parameter data of the control command or the response parameter data of the setting response command is set in the data body.
  • the liquid supply device is used to quantitatively supply cold water, warm water, hot water and milk, and water or milk remaining in the liquid pipe is automatically recovered after each supply, and the pipe cleaning function is exemplified, and 10 types are exemplarily set.
  • the command word distinguishes the frame data, and the command word description of the 10 types of frame data is as shown in FIG.
  • Table 1 shows the command frame structure of the effluent/out milk command, in which the liquid type of the data body part of the effluent/out milk command is occupied.
  • Use 1 byte that is, the 7th byte
  • the capacity occupies 3 bytes (that is, the 8th-11th byte)
  • the temperature occupies 1 byte (that is, the 12th byte)
  • the output cup occupies 1 byte (ie, the first 13 bytes).
  • Table 2 is a command frame structure of the response response command, wherein the response response command data body portion includes an answer word, and the response word can be divided into three types, namely, a normal response, a device busy, and no support for the command.
  • Table 2 is as follows: :
  • Table 3 shows the structure of the command frame of the status acquisition command. Table 3 lists the following:
  • Table 4 shows the command frame structure of the re-water/out milk command. Table 4 reads as follows:
  • Table 5 shows the structure of the command frame for suspending the water/out milk command. Table 5 reads as follows:
  • Table 6 shows the structure of the command frame for canceling the water/out milk command. Table 6 reads as follows:
  • the present embodiment only shows the structure of the frame header, the frame length, and the command frame in Tables 3 to 6, because the state acquisition command, re-watering/out of milk
  • the contents of the data in the command frame of the command, the pause water/out milk command, and the cancel water/out milk command are empty, and therefore are not shown in Tables 3 to 6.
  • Table 7 shows the response frame structure of the status response command.
  • the status word of the response frame data body part occupies 1 byte (that is, the 7th byte), and the cold water pressure occupies 3 bytes (that is, the 8th-11th byte), cold water.
  • the water temperature, hot water temperature, and water temperature each occupy 1 byte (that is, occupy the 12th byte, the 13th byte, and the 14th byte in turn), and the remaining amount of the milk cartridge occupies 2 bytes (that is, the 15th to 16th bytes).
  • the alarm status word occupies 1 byte (ie, the 17th byte). Table 7 reads as follows:
  • Table 8 shows the structure of the command frame of the attribute acquisition command.
  • the command frame is also given only the structure of the frame header, frame length, and command frame.
  • the data body content is empty, and is omitted. Table 8 reads as follows:
  • Table 9 shows the response frame structure of the attribute response command.
  • the PID Port Identification, port number
  • the hardware version number occupies 1 byte (ie, the first 11 bytes)
  • the firmware version number occupies 1 byte (ie, the 12th byte); wherein, exemplarily, the upper four digits of the hardware version number are the large version number, and the lower four bits are the minor version number, such as V1.0. 0X10;
  • the upper four digits of the firmware version number are the large version number, and the lower four digits are the minor version number, such as V1.00X10.
  • Table 9 reads as follows:
  • Table 10 shows the command frame of the cleaning command. Table 10 reads as follows:
  • the command frame parsed by the central controller is specifically:
  • the response frame corresponding to the received command frame is determined according to the correspondence between the command word of the command frame and the command word of the response frame.
  • the command word 0X01 of the water/out milk command in the present embodiment and the command word 0X04 of the re-watering/out milk command, the command word 0X05 of the pause water/out milk command, and the command word 0X06 of the cancel water/out milk command.
  • the command word 0Xa of the cleaning command corresponds to the command word 0X02 of the response response command, that is, the 0X01 command word, the 0X04 command word, the 0X05 command word, the 0X05 command word, and the 0Xa all correspond to the 0X02 command word;
  • the command word 0X03 of the state acquisition command is
  • the status response command 0X07 corresponds to the 0X03 command word corresponding to the 0X07 command word;
  • the command word 0X08 of the attribute acquisition command corresponds to the command word 0X09 of the attribute response command, that is, the 0X08 command word corresponds to the 0X09 command word.
  • the present embodiment uses the central controller to parse the liquid output command as an example to describe the manner in which the response frame is generated:
  • the central controller parses the received command frame according to the communication protocol, parses out the command word 0X01 and the data body of the command frame;
  • the type of the command frame is determined according to the parsed command word 0X01.
  • the liquid output command is determined, the current working state of the liquid supply device is detected. If the liquid supply device is currently in a normal working state and there is no liquid output, according to The parsed data body controls the liquid supply device with the parameters of the liquid type, the capacity, the temperature, the number of cups and the like, and outputs the corresponding liquid from the liquid faucet; and according to the correspondence relationship of the above command words, determines that the response of the command word is 0X02.
  • the frame is sent to the control terminal, and the response word in the response frame should be the normal response 0X00; if the liquid supply device is currently in the normal working state and there is liquid output, according to the corresponding relationship of the above command words, it is determined that the response of the command word is 0X02
  • the frame is sent to the control terminal.
  • the response word in the response frame should be the device busy 0X01; otherwise (if the liquid output command cannot be executed), according to the corresponding relationship of the above command words, it is determined that the response frame with the command word is 0X02 should be sent.
  • the response word in the response frame should not support this command 0X02.
  • Embodiment 5 is a diagrammatic representation of Embodiment 5:
  • the present embodiment provides a communication device for a liquid supply device, wherein the liquid supply device in the embodiment is the liquid supply device disclosed in the first embodiment or the second embodiment.
  • FIG. 12 is a structural block diagram of a communication device of a liquid supply device, and the communication device includes:
  • the wireless communication module 1201 is configured to establish a data connection between the liquid supply device and the control terminal.
  • the data receiving module 1202 is configured to receive, by using a data connection established by the wireless communication module 1201, a command frame sent by the control terminal, where the command frame includes a liquid output command indicating that the liquid supply device outputs the liquid.
  • the parsing module 1203 is configured to parse the command frame, so that the central controller controls the liquid supply device to output the liquid from the liquid faucet, and generates a response frame according to the liquid output result; preferably, the parsing module is disposed in the central controller to reduce communication The interaction of the device with the central controller increases the speed of command processing.
  • the data sending module 1204 is configured to read the response frame generated in the central controller, and send the generated response frame to the control terminal.
  • the wireless communication module and/or the data receiving module and/or the data sending module may also be disposed in the central controller.
  • the wireless communication module corresponds to the central controller.
  • Wireless communication data interface For example, when the wireless communication module is specifically a Bluetooth module, the Bluetooth module corresponds to the Bluetooth to serial port Hc-05 of the central controller.
  • the type of the command frame of the embodiment further includes: a pause command indicating that the liquid supply device suspends the liquid output, a re-output command instructing the liquid supply device to cancel the suspension of the liquid output, a cancel command instructing the liquid supply device to cancel the liquid output, indicating the cleaning A washing command of the liquid pipe of the liquid supply device, a state acquisition command instructing acquisition of the state of the liquid supply device, and an attribute acquisition command instructing acquisition of attribute information of the liquid supply device.
  • the central controller detects the current working state of the liquid supply device when receiving the liquid output command; if the liquid supply device is currently in a normal working state and there is no liquid output, the control liquid supply device outputs the liquid from the liquid faucet, and Generating a response frame indicating that the liquid supply device executes the liquid output command; if the liquid supply device is currently in a normal working state and there is a liquid output, generating a response frame indicating that the liquid supply device is busy; otherwise, generating a response frame indicating a command error;
  • the sending module 1204 reads the response frame generated by the central controller and transmits the response frame to the control terminal.
  • the central controller detects the current working state of the liquid supply device; when the liquid supply device is currently in the normal working state and there is liquid output, the control liquid supply device stops the liquid from the liquid tap. Outputting and generating a response frame indicating that the liquid supply device suspends the liquid output; the data transmitting module 1204 reads the response frame generated by the central controller and transmits the response frame to the control terminal.
  • the central controller detects the current working state of the liquid supply device; when the liquid supply device is currently in the working state of suspending the output liquid, the liquid supply device continues to control the liquid supply device.
  • the body outputs from the liquid faucet to generate a response frame indicating that the liquid supply device re-outputs the liquid; the data transmitting module 1204 reads the response frame generated by the central controller, and transmits the response frame to the control terminal.
  • the parsing module 1203 parses the cancel command, and the central controller detects the current working state of the liquid supply device; when the liquid supply device is currently in a normal working state and there is an output liquid, the control liquid supply device stops outputting the liquid from the liquid tap. And recovering the residual liquid in the liquid pipeline to generate a response frame indicating that the liquid supply device cancels the liquid output; the data transmitting module 1204 reads the response frame generated by the central controller, and transmits the response frame to the control terminal.
  • the central controller detects the current working state of the liquid supply device; if the liquid supply device is currently in a normal working state and has no liquid output, the liquid supply device controls the liquid cleaning device to clean the liquid pipeline and generate an indication.
  • the liquid supply device executes a response frame of the cleaning command; if the liquid supply device is currently in a normal working state and there is a liquid output, generating a response frame indicating that the liquid supply device is busy; if the liquid supply device is currently in a normal working state and there is a liquid output, A response frame indicating that the liquid supply device is busy is generated; the data transmitting module 1204 reads the response frame generated by the central controller and transmits the response frame to the control terminal.
  • the parsing module 1203 parses the state acquisition command, the temperature and pressure information of each liquid supply source is acquired, and the acquired information generates a response frame indicating the current state of the liquid supply device; the data sending module 1204 reads the central controller to generate a response frame. Response frame and send the response frame to the control terminal.
  • the parsing module 1203 parses the attribute obtaining command of the attribute information, the PID value and/or the hardware version model and/or the firmware version model of the liquid supply device are acquired, and the acquired information generates a response frame indicating the liquid device attribute information.
  • the command frame and the response frame in this embodiment have the same frame structure, and all include: a frame header, a frame length, a command word, and a data body; A fixed network byte character is set to identify the start position of the command frame and the response frame; a length of the byte indicating the command word and the data body is set in the frame length; and a type indicating the command frame or the response frame is set in the command word Data; a setting parameter of a control command or a response parameter for setting a response command is set in the data body.
  • the parsing unit 1203 specifically parses the command word and the data body from the command frame according to the set communication protocol, and extracts the command type and the control command of the command frame from the command word and the data body respectively; the command according to the command frame Corresponding relationship between the word and the command word of the response frame determines the response frame corresponding to the received command frame.
  • This embodiment provides a liquid supply system.
  • FIG. 13 is a structural block diagram of a liquid supply system according to the embodiment, the system includes: a liquid supply device 1302 and a control terminal 1301;
  • the liquid supply device 1302 includes a liquid conduit connecting the liquid supply source and the liquid faucet, and a central controller 13021.
  • the central controller 13021 is provided with the communication device of the fifth embodiment.
  • the control terminal 1301 may be an intelligent mobile terminal such as a smart watch, a mobile phone terminal, or a PAD, and an application adapted to the liquid supply device is set in the control terminal.
  • the liquid supply device has the quantitative supply of cold water, warm water, hot water and milk, and after each supply.
  • the central controller in this embodiment has corresponding functional modules, such as a sensor module, an electric pump control module and an electric valve control module, etc., in the function of automatically recovering residual water or milk in the liquid pipeline, and cleaning the pipeline.
  • the specific design method is not limited as long as it can be combined with the liquid supply device to achieve the above functions.
  • FIG. 14 is a schematic diagram of interaction between a liquid supply device and a control terminal of the liquid supply system according to the embodiment, and the specific interaction process is as follows:
  • the control terminal sends a liquid output command to the liquid supply device according to the user operation
  • the liquid supply device parses the liquid output command, controls the output of the liquid according to the liquid output command, and sends a corresponding response frame to the control terminal, thereby implementing the implementation.
  • the liquid supply device may send a response frame to the control terminal, the device is busy, or does not support the response frame.
  • the manner in which the liquid supply device generates the response frame when receiving the liquid output command is specifically referred to the related description in the fifth embodiment. I will not repeat them here.
  • control terminal can also send a control command such as a pause command, a cancel command, a re-output command, and a wash command to the liquid supply device, so that the liquid supply device can control the working state at any time to improve the user experience.
  • a control command such as a pause command, a cancel command, a re-output command, and a wash command
  • control terminal can also send a status acquisition command and an attribute acquisition command to the liquid supply device, so that the user can know the working status and attribute information of the liquid supply device at any time.
  • control commands in this embodiment refer to Embodiment 3 and Embodiment 4.
  • FIG. 15 is a flowchart of a method for controlling a liquid supply device according to an embodiment. As shown in FIG. 15, the method in FIG. 15 includes:
  • this embodiment uses Android Android as an application development platform, adopts Java development technology and Bluetooth Bluetooth. 2.0 wireless communication technology, using Socket to achieve the underlying protocol transmission, and through the custom communication protocol to achieve data transmission with the liquid supply device, to achieve application of the liquid supply device wireless control and data interaction.
  • the liquid supply device in this embodiment comprises: a liquid pipe connecting the liquid supply source and the liquid faucet and a central controller, and the central controller is provided with a wireless communication module.
  • step S1510 “generating an application for adapting the liquid supply device based on the application development platform” is understood to be: the generated application and the liquid supply device software system are adapted, the version is adapted, and the application needs and the hardware device in the liquid supply device. The model fits and so on.
  • an event that the application launches into the first interface (or called a Splash interface) of the application may be used as a trigger event of the communication unit, and an instruction sent by the user to click the device object may also be used as a trigger event.
  • the wireless communication module of the liquid supply device is configured in a passwordless mode, when the application successfully establishes a data connection with the liquid supply device according to the device information in the local configuration file (the device information may include the address information and the name information of the device), It can give users a ready-to-use user experience and reduce user operations.
  • the present embodiment sets a communication unit and a control unit, and when the liquid supply device needs to be controlled, performs a data connection with the liquid supply device through the communication unit, and after establishing the data connection,
  • the liquid output of the liquid supply device is controlled by the liquid output module in the control unit to realize convenient control of the liquid supply device.
  • the communication unit of the embodiment is provided with a scanning module, a connection module and a disconnection reconnection module.
  • the control unit is further provided with a data display module and a cleaning module.
  • This embodiment details the setting of the scanning module, the connection module and the following implementation scheme. How to disconnect the reconnect module, liquid output module, data display module and cleaning module:
  • connection module The way to set the connection module and the connection module in the application is as follows:
  • the setting connection module When detecting a trigger event of starting the communication unit, detecting device information saved in the application local configuration file, when the device information includes the current liquid supply device, the setting connection module requests data connection with the current liquid supply device according to the device information request. In order to realize the on-demand control mode of the liquid supply device, it is preferable to detect the device information saved in the application local configuration file to implement automatic data connection when the application enters the first interface of the application.
  • the scanning module is set when the sliding direction and/or the sliding distance satisfy the search condition. Searching for the identifiable liquid supply device, displaying the device information of the searched liquid supply device on the display interface of the connection module; for example, when detecting that the icon slides down and the sliding distance is greater than 200px, it is considered that the device search can be performed. conditions of.
  • the setting connection module receives the device information sent by the user by clicking the corresponding device in the display interface, establishes a data connection with the liquid supply device, and saves the device information of the liquid supply device that is successfully connected in the local configuration file.
  • the broadcast receiver method BroadcastReceiver of the Android platform can be used to receive the Bluetooth device searched by the scanning module, and the scanned Bluetooth device object BluetoothDevice is determined by using the online receiver onReceiver method, and the specific device will be satisfied.
  • the object of the attribute condition is displayed in the display interface of the connection module for the user to view the selection; when the user clicks on the object corresponding to the searched liquid supply device, the liquid supply device of the specified address is obtained by applying the local Bluetooth adapter to perform the Bluetooth connection. After the connection is successful, the device information of the liquid supply device is written to the local configuration file.
  • the liquid supply device When the liquid supply device performs corresponding liquid output, the temperature and flow rate of the output liquid are obtained in real time, and the progress information displayed on the temperature progress bar and the liquid output progress bar on the second output interface is updated in real time by the acquired temperature and output.
  • each liquid output module in the implementation includes a first output interface and a second output interface; wherein the first output interface is configured to receive a temperature and an output of the output liquid set by the user, and may be at the first output interface.
  • the temperature progress bar, the output progress bar, and the start button are respectively set, and the temperature progress bar and the output progress bar have a draggable range, and the temperature is achieved by dragging the temperature progress bar and the output progress bar to the corresponding positions.
  • the setting of the output quantity when receiving the start instruction sent by the click start button, enters the second output interface; the second output interface is used for displaying the real-time progress of the liquid temperature and the output quantity during the liquid output process of the liquid supply device,
  • the implementation scheme also sets a temperature progress bar and an output progress bar on the second output interface, and uses the obtained temperature and output amount to update the progress information displayed on the temperature progress bar and the liquid output progress bar on the second output interface in real time, so as to facilitate The user grasps the progress of the liquid output in real time.
  • the Fragment method Fragment in the Android Android platform.
  • a timer is created, and the control sub-thread acquires the processed temperature data sent from the device, and uses the temperature data to update the progress of the temperature progress bar.
  • the temperature data processed here can be understood as: the average value of the cold water and hot water temperature within the set time (such as every 5 seconds), and the processed temperature data does not affect the accuracy of the final temperature data, and can Make the progress of the temperature progress bar change smoothly.
  • the maximum value of the progress bar can be set to a slightly larger value to achieve a continuously changing visual effect.
  • the display interface of the data display module is set.
  • the child thread receives and parses the state data
  • the main thread receives the state data parsed by the child thread, and updates the display interface of the data display module.
  • the status data is usually sent once every second. Since the application of the embodiment receives the data through the sub-thread, the data display module displays the interface. The data update is performed in the main process, so it is necessary to use the Android Android platform handler Handle to implement inter-thread communication, and the handler Handle communication mechanism needs to use the information object Message to realize data transmission, if every second is created An information object Message can seriously consume application performance. Based on this, the present embodiment preferably uses the acquisition information object obtainMessage to obtain an old temporarily useless information object Message to load data, that is, the present embodiment achieves the purpose of reducing application performance by repeatedly utilizing an information object Message.
  • the alarm icon includes a first picture and a second picture, and when detecting that the device of the liquid supply device is abnormal, or the supply source is insufficient, the first picture and the second picture are repeatedly switched to achieve flickering. Visual effect.
  • the animation frame method FrameAnimator frame animation that is, sets two pictures, and repeatedly switches between the two pictures to achieve the illusion effect of flicker.
  • a trigger icon having a hidden interface is set in the application, and when a trigger event of the click trigger icon is detected, a hidden interface of the trigger icon is popped up, and icons of the cleaning module and the disconnection module are displayed on the hidden interface.
  • the embodiment preferably sets the icons of the cleaning module and the disconnection module to be hidden.
  • the setting may be popped up.
  • the cleaning module and the icon of the reconnecting module are disconnected; for the pop-up effect of the hidden interface, the animation property method propertyAnimation supported by the Android Android platform and the Java animation package nineoldandriod.jar can be used.
  • the application has the scanning module, the connection module, and the disconnected reconnection module. Block, liquid output module, data display module and cleaning module.
  • the liquid supply device supporting the two liquid outputs is controlled as an example.
  • the liquid supply device respectively supplies water and milk; wherein, when controlling the liquid supply device to discharge water or milk, the water output and the water are mainly realized. Temperature or milk output is controlled.
  • FIG. 16 is a block diagram of a module of an application provided by the embodiment.
  • This embodiment generates an adaptive liquid supply device based on an application development platform according to the setting manner of the communication unit and the control unit of the application in the seventh embodiment.
  • the scanning module, the connection module, the disconnection module, the liquid output module (the water outlet module and the milking module), the data display module and the cleaning module are set.
  • the application in this embodiment is further provided with a first interface and a main interface, wherein icons of all modules of the application are set on the main interface;
  • connection module When entering the first interface of the application, detecting device information saved in the application local configuration file, and sending the detection result to the connection module, so that the connection module requests data connection with the current liquid supply device according to the device information request;
  • FIG. 18 is a schematic diagram of the main interface applied in the embodiment.
  • the main interface of this embodiment includes an operation area on the right side and a common area on the left side.
  • the icon of the scan module is displayed in the operation area on the right side of the main interface. As shown in FIG. 17, the icon of the scanning module is displayed in the right area of the main interface of FIG.
  • the sliding direction and/or the sliding distance of the scanning module icon are detected, when the sliding direction and/or the sliding distance satisfy the search condition (such as when detecting When the icon slides down and the sliding distance is greater than 200px, it is considered that the condition for device search can be reached), the identifiable liquid supply device is searched, and the device information of the searched liquid supply device is displayed on the display interface of the connection module (
  • the display interface of the connection module can be set on the lower side of the icon of the scanning module in the operation area of the main interface; the connection module receives the device information sent by the user by clicking the corresponding device in the display interface, and establishes a data connection with the liquid supply device, and The device information of the successfully connected liquid supply device is saved in the local configuration file.
  • connection module After the connection module successfully establishes the data connection with the liquid supply device, it directly enters the operation area of the main interface, as shown in FIG. 18, when the trigger event of clicking the icon of the water outlet module or the milking module on the operation interface is detected, Enter the first output interface of the corresponding liquid output module.
  • the first output interface of the water outlet module is accessed, and the user sends an instruction sent by the temperature progress bar and the water flow progress bar in the first output interface to know the water temperature and the water output required by the liquid supply device.
  • the water temperature required for the output of the liquid supply device is 0 ° C, and the water output is 100 ml, so that the liquid supply device can be controlled to start outputting water according to the water supply parameter set by the user, and enter the second output interface of the water discharge module.
  • the obtained temperature and flow rate are updated in real time to the progress information displayed on the temperature progress bar and the water output progress bar on the second output interface.
  • the present embodiment exemplarily shows state data including water temperature, water pressure, and milk remaining percentage
  • the child thread receives and parses the state data
  • the main thread receives the state data parsed by the child thread and updates the presentation interface of the data display module.
  • the cleaning module of this embodiment may include milk pipe cleaning and machine cleaning.
  • This kind of processing not only makes the user interface more concise, but also avoids the occurrence of misoperation.
  • the application when the application is in the operation area of the main interface, it is detected whether there is a user operation on the main interface. If the user operation is not detected within the set time, the operation area is closed to avoid accidental touch.
  • the specific implementation principle is: when the main interface is initialized, a timer is created, and the user operation is detected according to the time interval of the timer, such as detecting whether there is a user operation every two minutes, and updating the timer when detecting that a user operation occurs. The value of the current time. If no user action is detected within two minutes, the operation area of the main interface is closed.
  • FIG. 21 is a structural block diagram of a control device for a liquid supply device according to the embodiment.
  • the control device includes a communication unit 2101, a control unit 2102, and a detection unit 2103 disposed in an application for generating an adaptive liquid supply device based on an application development platform, and the control unit 2102 includes a liquid output module 21021;
  • the detecting unit 2103 is configured to detect a triggering event of the starting communication unit when the liquid supply device is controlled, and detect a triggering event of the liquid output module in the starting control unit after establishing a data connection with the liquid supply device;
  • the communication unit 2101 is configured to establish a data connection with the liquid supply device according to the configured communication manner when the detecting unit 2103 detects the triggering event of the starting communication unit 2101;
  • the liquid output module 21021 after establishing the data connection with the liquid supply device, when the detecting unit 2103 detects the triggering event of the liquid output module 21021, sends a control command to the liquid supply device through the data connection to control the liquid supply device. Liquid output.
  • the communication unit 2101 in this embodiment includes: a scanning module: 21011 and a connection module 21012, and a scanning module 21011. An icon is provided, and the connection module 21012 is provided with a display interface;
  • the detecting unit 2103 detects the device information saved in the local configuration file of the application.
  • the connection module 21012 requests a data connection with the current liquid supply device according to the device information request; the detecting unit 2103
  • the scanning module 21011 searches for The identifiable liquid supply device displays the device information of the searched liquid supply device on the display interface of the connection module 21012; and the connection module 21012 receives the device information sent by the user by clicking the corresponding device in the display interface, and establishes The data connection of the liquid supply device and the device information of the successfully connected liquid supply device are saved in the local configuration file.
  • Each liquid output module is provided with an icon and a corresponding output interface; the detecting unit 2103 detects a trigger event of clicking the icon of the liquid output module; and the liquid output module 21021 enters when the detecting unit 2103 detects a trigger event of clicking the icon thereof.
  • the icon corresponds to the first output interface of the liquid; the receiving user sends the instruction sent by the temperature progress bar and the output progress bar in the first output interface to know the temperature and output of the liquid outputted by the liquid supply device, and controls the liquid supply device to perform Corresponding liquid output, and enters a second output interface corresponding to the liquid; when the liquid supply device performs corresponding liquid output, the temperature and output of the output liquid are obtained in real time, and the second output interface is updated in real time by the obtained temperature and output amount. Progress information displayed on the temperature progress bar and liquid output progress bar.
  • control unit 2102 further includes: a data display module 21022 and a cleaning module 21023.
  • the communication unit 2101 further includes: a disconnection reconnection module 21013; wherein the data display module 21022 is provided with a display interface, the cleaning module 21023 and the The open weight continuous mode 21013 block is provided with a corresponding icon;
  • the detecting unit 2103 detects the status data sent by the liquid supply device
  • the data display module 21022 when the detecting unit 2103 detects the status data sent by the liquid supply device, receives and parses the status data through the sub-thread, receives the status data parsed by the sub-thread through the main thread, and updates its display interface;
  • the detecting unit 2103 is configured to detect a trigger event of the click trigger icon, the trigger icon is set in the application and has a hidden interface; when the detecting unit 2103 detects the trigger event of the click trigger icon, the trigger icon pops up the hidden interface, and the hidden interface The icon for the cleaning module and disconnecting the reconnect module is displayed.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • Devices For Dispensing Beverages (AREA)

Abstract

一种液体供给系统、设备及其通信方法、装置和控制方法、装置。其中,液体供给设备包括:液体龙头(1)、中央控制器(2)和液体管道(3);液体龙头(1)包括:主体部分(11)和用于支撑主体部分(11)的支架(12),主体部分(11)设置有液体出口(111),支架(12)上设置有与液体出口(111)导通的导管;液体管道(3)包括:传输管(31)、电泵(32)和电气阀门(33);液体管道(3)的传输管(31)连接到液体龙头(1)的支架(12)上的导管,导通供给源与液体龙头;电泵(32)和电气阀门(33)设置在所述传输管(31)上,并电连接中央控制器(2);中央控制器(2)根据用户指令控制液体管道的电泵(32)和电气阀门(33),实现液体的输出或关闭液体的输出。该液体供给设备控制更为方便。

Description

液体供给系统、设备及其通信方法、装置和控制方法、装置 技术领域
本发明涉及物联网技术领域,特别涉及一种液体供给系统、设备及其通信方法、装置和控制方法、装置。
发明背景
水龙头是人们日常生活中非常常见的一种生活用品,用来控制水流的大小和开关。为了方便用户使用热水,现在的水龙头还带有冷热水混合的功能,这样就可以直接使用热水或者温水。
常见的水龙头多为机械式结构,其阀芯大多数包括一个动片和一个静片,动片与静片之间相对运动,使动片上的孔与静片上的进水孔连通,动片上的孔与出水通道连通,从而使热水混入水龙头。这种冷热水龙头在打开后,人们不能知道出水温度,只能通过用手试探,需要多次调试才能达到人们需要的温度。调试过程费时且麻烦,并且出水太热容易造成烫伤。此外,这种水龙头也无法定量出水,容易造成资源浪费。
目前,也有通过电子控制的水龙头,例如集成有红外传感器的水龙头,这种水龙头功能较为单一,仅能自动控制开关水,影响技术的推广。
发明内容
基于本发明的一个目的,本发明提供了一种控制更为方便、且能实现多功能效果的新型液体供给设备。
为达到上述目的,本发明的技术方案是这样实现的:
一方面,本发明实施例提供了一种液体供给设备,包括:液体龙头、中央控制器和液体管道;
液体龙头包括:主体部分和用于支撑主体部分的支架,主体部分设置有液体出口,支架上设置有与液体出口导通的导管;
液体管道包括:传输管、电泵和电气阀门;液体管道的传输管连接到液体龙头支架上的导管,导通供给源与液体龙头;电泵和电气阀门设置在所述传输管上,电泵为液体管道提供液体传输的动力,电气阀门作为液体管道的开关;其中电泵和电气阀门电连接中央控制器;
中央控制器根据用户指令控制所述液体管道的电泵和电气阀门,实现液体的输出或关闭液体的输出。
另一方面,本发明实施例提供了一种液体供给设备,包括:液体龙头、中央控制器、液体管道和回收槽,所述液体龙头上设置有液体出口以及与液体出口导通的水导管和饮品导管,所述液体管道包括:进水管道和进饮品管道,所述进水管道包括:冷水进水管道、热水进水 管道和共用出水管;
所述冷水进水管道包括储水装置,沿着储水装置至液体龙头的传输方向,在所述冷水进水管道的传输管上依次设置第一电泵和第一电气阀门;所述热水进水管道包括加热装置,沿着加热装置至液体龙头的传输方向,在所述热水进水管道的传输管上设置第二电泵和第二电气阀门;所述冷水进水管道和所述热水进水管道的传输管通过所述共用出水管连接到水导管;
所述进饮品管道包括饮品储藏箱,沿着饮品储藏箱至液体龙头的传输方向,在所述进饮品管道的传输管上依次设置第三电泵和第三电气阀门;所述回收槽的传输管连接在所述第三电泵的供给源侧;其中,第一电泵、第一电气阀门、第二电泵、第二电气阀门、第三电泵和第三电气阀门电连接中央控制器;
中央控制器在接收到出水指令时,判断液体供给设备的工作状态,若液体供给设备处于出水状态或处于清洗状态,则不执行出水指令,并向用户反馈不执行的原因;否则根据出水指令中指示的所需水温打开相应的电泵和电气阀门,开始向液体龙头泵入相应温度的水,在完成定量出水时,暂停向液体龙头泵水,并判断当前杯数是否为最后一杯,若不是最后一杯则重新开始向液体龙头泵入相应温度的水,若是最后一杯,则打开第三电泵和第三电气阀门,并控制第三电泵反向转动,将传输管道中残留的液体泵入到所述回收槽中。
本技术方案本发明的液体供给设备通过设置液体龙头、中央控制器和液体管道,利用液体管道连通液体供给源与液体龙头,在液体管道上设置电泵和电气阀门,通过中央控制器控制电泵和电气阀门的工作状态实现对液体供给的自动控制。相比于现有技术,本发明的液体供给设备不但能实现定量液体输出、残液自动回收、自动清洗等多功能效果,还可以与移动控制终端进行配合,实现对液体供给设备的非接触、远距离控制,控制方式更为方便灵活。
基于本发明的另一个目的,本发明提供了一种液体供给设备的通信方法、装置和液体供给系统,以实现智能液体供给设备的通信方案。
为达到上述目的,本发明的技术方案是这样实现的:
一方面,本发明提供了一种液体供给设备的通信方法,该液体供给设备的中央控制器中设置有无线通信模块,液体供给设备的通信方法包括:
利用无线通信模块建立液体供给设备与控制终端间的数据连接;
利用建立的数据连接接收所述控制终端发送的命令帧,命令帧包括指示液体供给设备输出液体的液体输出命令;
利用中央控制器解析所述命令帧,根据解析出的液体输出命令,控制液体供给设备将液体从液体龙头中输出,并根据液体输出结果生成响应帧,将生成的响应帧发送至控制终端。
另一方面,本发明提供了一种液体供给设备的通信装置,包括:
无线通信模块,用于建立液体供给设备与控制终端间的数据连接;
数据接收模块,用于利用所述无线通信模块建立的数据连接接收所述控制终端发送的命令帧,所述命令帧包括指示液体供给设备输出液体的液体输出命令;
解析模块,用于解析所述命令帧,使所述中央控制器控制液体供给设备将液体从液体龙头中输出,并根据液体输出结果生成响应帧;
数据发送模块,用于读取中央控制器中生成的响应帧,并将生成的响应帧发送至控制终端。
另一方面,本发明提供了一种液体供给系统,包括:液体供给设备和控制终端;
该液体供给设备的中央控制器中设置通信装置。
本技术方案通过在液体供给设备的中央控制器中设置无线通信模块,利用无线通信模块与控制终端建立无线连接,通过无线连接接收控制终端发送的控制命令,根据控制命令控制液体供给设备的液体输出模式,实现对液体供给设备的便捷控制。利用本方案保障了对智能液体供给设备的无线控制的实现,从而保证了液体供给设备能够实现定量、定温出水、自动回收管道中残留液体、管道清洗控制等,丰富了液体供给设备的功能,有利于物联网技术的推广和应用。
基于本发明的另一个目的,本发明提供了一种液体供给设备的控制方法和装置,以实现对液体供给设备的便捷控制。
为达到上述目的,本发明的技术方案是这样实现的:
一方面,本发明提供了一种液体供给设备的控制方法,包括:
基于应用开发平台生成适配液体供给设备的应用,并在应用中设置与液体供给设备进行数据连接的通信单元和液体供给设备的控制单元,所述控制单元中设置有控制所述液体供给设备进行液体输出的液体输出模块;
在对液体供给设备进行控制时,当检测到启动所述通信单元的触发事件时,按照通信单元配置的通信方式建立与所述液体供给设备间的数据连接;
在建立与所述液体供给设备间的数据连接后,当检测到启动所述控制单元中液体输出模块的触发事件时,通过所述数据连接向所述液体供给设备发送控制命令,以控制液体供给设备进行液体输出。另一方面,本发明提供了一种液体供给设备的控制装置,包括设置在基于应用开发平台生成适配液体供给设备的应用中的通信单元、控制单元和检测单元,所述控制单元包括液体输出模块;
检测单元,在对液体供给设备进行控制时,检测启动所述通信单元的触发事件,以及在建立与液体供给设备间的数据连接后,检测启动控制单元中液体输出模块的触发事件;
通信单元,在所述检测单元检测到启动所述通信单元的触发事件时,按照配置的通信方式建立与所述液体供给设备间的数据连接;
液体输出模块,在建立与液体供给设备间的数据连接后,当检测单元检测到启动所述液体输出模块的触发事件时通过所述数据连接向所述液体供给设备发送控制命令,以控制液体供给设备进行液体输出。
本技术方案基于应用开发平台生成适配液体供给设备的应用,通过在该应用中设置通信单元和控制单元,在需要对液体供给设备进行控制时,利用通信单元与液体供给设备进行数据连接,并在建立数据连接后,通过控制单元中的液体输出模块对液体供给设备的液体输出进行控制,实现对液体供给设备的便捷控制。基于本方案提供的控制架构,能够灵活对液体供给设备中的各种功能进行增删、更新以及个性化设计等,丰富了液体供给设备的功能,提高了液体供给设备智能化的程度,便于物联网技术的推广和应用。
附图简要说明
附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明实施例一起用于解释本发明,并不构成对本发明的限制。在附图中:
图1为实施例一提供的液体供给设备的结构框图;
图2为实施例一提供的液体龙头的正视图;
图3为图2中的液体龙头的仰视图;
图4-1为实施例二提供的液体供给设备的管道示意图;
图4-2为实施例二提供的另一种液体供给设备的管道示意图;
图5为实施例二提供的液体供给设置精确出冷水的控制逻辑示意图;
图6为实施例二提供的液体供给设置精确出热水的控制逻辑示意图;
图7为实施例二提供的液体供给设置精确出温水的控制逻辑示意图;
图8为实施例二提供的液体供给设置精确出牛奶的控制逻辑示意图;
图9为实施例三提供的液体供给设备的通信方法流程图;
图10为实施例四提供的帧数据的帧结构示意图;
图11为实施例四提供的10类型的帧数据的命令帧描述示意图;
图12为实施例五提供的液体供给设备的通信装置结构框图;
图13为实施例六提供的液体供给系统的结构框图;
图14为实施例六提供的液体供给系统的液体供给设备和控制终端的交互示意图;
图15为实施例七提供的液体供给设备的控制方法流程图;
图16为实施例八提供的应用的模块框图;
图17为实施例八提供的主界面的操作区域内显示扫描模块图标的示意图;
图18为实施例八提供的主界面的操作区域示意图;
图19为实施例八提供的出水模块的第一输出界面示意图;
图20为实施例八提供的触发图标的隐藏界面的展开效果图;
图21为实施例九提供的液体供给设备的控制装置结构框图。
实施本发明的方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
实施例一:
图1为本实施例提供的液体供给设备的结构框图,如图1所示,该液体供给设备包括:液体龙头1、中央控制器2和液体管道3;如图2和图3分别为本实施例提供的液体龙头的外观示意图,如图2和图3所示,液体龙头1包括:主体部分11和用于支撑主体部分的支架12,主体部分11设置有液体出口111,支架12上设置有与液体出口导通的导管;
液体管道3包括:传输管31、电泵32和电气阀门33;液体管道3的传输管31连接到液体龙头1支架12上的导管,导通供给源与液体龙头;电泵32和电气阀门33设置在传输管31上,电泵32为液体管道提供液体传输的动力,电气阀门33作为液体管道的开关;其中电泵32和电气阀门33电连接中央控制器2;中央控制器2根据用户指令控制液体管道的电泵32和电气阀门33,实现液体的输出或关闭液体的输出。
本实施例中央控制器根据用户指令控制液体管道的电泵和电气阀门可理解为:中央控制器与用户的移动控制终端间具有设定的通信协议,在用户通过移动控制终端发送控制指令时,中央控制器接收该控制指令,并依据该控制指令控制液体管道的电泵和电气阀门,以实现对液体输出的控制。
需要说明的是,本实施例中的电泵包括计量模块,在电泵向液体龙头泵入设定量的液体时,计量模块关闭电泵,实现对液体输出量的精确控制。为了精确控制泵入液体龙头中的液体量,优选计量精度比较高的蠕动电泵,中央控制器可以根据接收到的用户指令设置蠕动电泵的转速、转动圈数等参数,以达到精确控制出液量。当然,在具体实现时,还可以在液体管道中设置电连接中央控制器的流量计,利用流量计的计量功能控制液体龙头的出液量。
本实施例在设计控制液体输出量的控制方案时,还通过在杯托中设置具有称重功能的传感器,利用传感器感应到的重量数据控制液体输出量。具体的,设置具有称重传感器的杯托,其中称重传感器电连接中央控制器;在液体输出过程中,该称重传感器将感应到的重量发送给中央控制器,在达到设定重量时,中央控制器控制电泵和电气阀门的工作状态,实现对液 体输出量的精确控制。
为了丰富本发明液体供给设备可支持的功能,本实施例设置的液体管道可连通不同类型的液体供给源至液体龙头,如该液体管道可实现净化自来水源与液体龙头间的连通,也可同时将各类饮品(牛奶、果汁、咖啡等饮品)连通至液体龙头。
具体的,液体管道包括进水路管道和/或进饮品管道,支架上的导管包括水导管和/或饮品导管;进水管道包括:冷水进水管道、热水进水管道和共用出水管;其中,冷水是指常温水(25摄氏度左右的水温),本实施例为了便于描述,用热水、冷水或温水进行区分。
冷水进水管道包括储水装置,沿着储水装置至液体龙头的传输方向,在冷水进水管道的传输管上依次设置电泵为第一电泵、电气阀门为第一电气阀门;热水进水管道包括加热装置,沿着加热装置至液体龙头的传输方向,在热水进水管道的传输管上设置电泵为第二电泵、电气阀门为第二电气阀门;冷水进水管道和热水进水管道的传输管通过共用出水管连接到支架上的水导管。
进饮品管道包括饮品储藏箱,沿着饮品储藏箱至液体龙头的传输方向,在进饮品管道的传输管上依次设置电泵为第三电泵、电气阀门为第三电气阀门。根据饮品类型的不同,饮品储藏箱还具有冷藏功能,如利用冷藏箱保鲜牛奶,避免牛奶变质。
需要说明的是,本实施例中的冷水进水管道中的储水装置可以为净化自来水源,也可以是一个存储纯净水的储水箱。当冷水进水管道中储水装置为净化自来水源时,热水进水管道中的加热装置连接该净化自来水源;当冷水进水管道中储水装置为储水箱时,热水进水管道中的加热装置则对应连接至储水箱。值得注意的是,当储水装置为储水箱时,应使储水箱的水压高于加热装置的水压,使得储水箱中水可以顺畅的流入至加热装置中;其中,热水进水管道中的加热装置优选为热水加热箱或开水机,如步进式开水机。
实施例二:
本实施例提供了一种温度可控的液体供给设备,该液体供给设备包括:液体龙头、中央控制器、液体管道和回收槽,液体龙头上设置有液体出口以及与液体出口导通的水导管和饮品导管,液体管道包括:进水管道和进饮品管道,进水管道包括:冷水进水管道、热水进水管道和共用出水管;
冷水进水管道包括储水装置,沿着储水装置至液体龙头的传输方向,在冷水进水管道的传输管上依次设置第一电泵和第一电气阀门;热水进水管道包括加热装置,沿着加热装置至液体龙头的传输方向,在热水进水管道的传输管上设置第二电泵和第二电气阀门;冷水进水管道和热水进水管道的传输管通过共用出水管连接到水导管;
进饮品管道包括饮品储藏箱,沿着饮品储藏箱至液体龙头的传输方向,在进饮品管道的 传输管上依次设置第三电泵和第三电气阀门;回收槽的传输管连接在第三电泵的供给源侧;其中,第一电泵、第一电气阀门、第二电泵、第二电气阀门、第三电泵和第三电气阀门电连接中央控制器;
中央控制器在接收到出水指令时,判断液体供给设备的工作状态,若液体供给设备处于出水状态或处于清洗状态,则不执行出水指令,并向用户反馈不执行的原因;否则根据出水指令中指示的所需水温打开相应的电泵和电气阀门,开始向液体龙头泵入相应温度的水,在完成定量出水时,暂停向液体龙头泵水,并判断当前杯数是否为最后一杯,若不是最后一杯,则重新开始向液体龙头泵入相应温度的水,若是最后一杯,则打开第三电泵和第三电气阀门,并控制第三电泵反向转动,将传输管道中残留的液体泵入到回收槽中。
本实施例中的共用出水管的管壁外侧设置第三温度传感器,中央控制器在接收到出水指令时,根据来自第三温度传感器的共用出水管内的水温控制第三电泵反向转动,以将不满足温度需求的水泵入到回收槽中,直至第三温度传感器感应到的水温符合期望水温,关闭第三电泵。
本实施例中的热水进水管道还包括第四电气阀门,第四电气阀门的一端连接到第二电气阀门的输出侧,另一端连接到加热装置的输出侧;中央控制器在液体供给设备的热水进水管道无需向出水管供给热水时,打开第四电气阀门、并控制第二电泵正向转动,利用加热装置、第二电泵和第四电气阀门间的传输管围成热水进水管道的内循环回路,避免热水进水管道的传输管温度过低,保证热水进水管道在开始进行热水输出时热水的温度。
其中,本实施例中的出水指令可以为出冷水指令、出热水指令、出温水指令等,在中央控制器接收到的出水指令为出冷水指令时,打开第一电泵和第一电气阀门向液体龙头泵入冷水;在中央控制器接收到的出水指令为出热水指令时,关闭第四电气阀门,并打开第二电泵和第二电气阀门,向液体龙头泵入热水;在中央控制器接收到的出水指令为出温水指令时,关闭第四电气阀门,并根据接收到的控制指令中指示所需温水的温度,设置冷水进水管道中第一电泵和热水进水管道中第二电泵的泵水速度和泵水量,打开第一电泵、第一电气阀门,第二电泵和第二电气阀门向液体龙头泵入冷水和热水。
为了详细说明本发明的有益效果,本实施例对液体供给设备的液体管道的设置方案和液体供给设备支持的功能进行详细描述。
本实施例以支持两种液体输出的液体供给设备为例进行说明,该液体供给设备分别提供水和牛奶,其中进水管道可以提供冷水、温水和热水。
具体的,本实施例中的液体管道包括实施例一中的进水管道和进饮品管道,为了便于描述,冷水进水管道中的储水装置设置为储水箱,热水进水管道中的加热装置设置为加热箱(或 开水机等),如图4-1所示,图4-1为本实施例提供的液体供给设备的管道示意图,储水箱同时为冷水进水管道和热水进水管道提供水源;进饮品管道中的饮品储藏箱设置为储奶罐。
本实施例中的液体供给设备还包括回收槽,通过设置回收槽实现对液体供给设备的清洗和残液回收。参考图4-1所示,回收槽的传输管连接在第三电泵的供给源侧,该供给源侧相对于液体龙头侧而言,具体为储奶罐所在侧。
具体的,中央控制器根据设定的清洗策略,打开第一电气阀门、并控制第一电泵正向转动,或者打开第二电气阀门、并控制第二电泵正向转动,或者打开第一电气阀门和第二电气阀门、并控制第一电泵和第二电泵正向转动,将水泵入到水导管中,以及根据设定的清洗策略打开第三电气阀门、并控制第三电泵反向转动,将液体管道传输管中的残液泵入到回收槽中。
对于本实施例中电泵的正向转动和反向转动的释义为:将液体由液体供给源侧泵入至液体龙头侧时,电泵的转动方向设定为正向转动;将液体由液体龙头侧泵入至回收槽侧时,电泵的转动方向设定为反向转动。
本实施例中的清洗策略包括整机清洗和牛奶管清洗策略,当需要对整机进行清洗时,中央控制器打开第一电气阀门、第二电气阀门和第三电气阀门,并控制第一电泵和第二电泵正向转动、控制第三电泵反向转动,将传输管中的水依次经由水导管、牛奶导管和牛奶管道的传输管泵入到回收槽中。当需要对牛奶管进行清洗时,中央控制器可以打开第一电气阀门(或第二电气阀门)和第三电气阀门,并控制第一电泵(或第二电泵)正向转动,控制第三电泵反向转动,将传输管中的水依次经由水导管、牛奶导管和牛奶管道的传输管泵入到回收槽中,实现牛奶管的清洗。当然,如图4-1所示,可以在冷水进水管道和牛奶管道之间设置一个备选传输管,并在该备选传输管上设置第五电气阀门。在需要对牛奶管进行清洗时,中央控制器可以打开第五电气阀门,控制第三电泵反向转动,将储水箱中的冷水泵入到回收槽中,实现对牛奶管的清洗。
从图4-1中可以看出,本实施例中的液体供给设备还包括设置在共用出水管管壁外侧的第三温度传感器,第三温度传感器实时感应共用出水管内的水温,并将感应到的水温实时地传输给中央控制器,中央控制器根据接收到的水温控制第三电泵反向转动,以将不满足温度需求的水泵入到所述回收槽中,直至第三温度传感器感应到的水温符合期望水温,关闭第三电泵和第三电气阀门。
图5为本实施例提供的液体供给设置精确出冷水的控制逻辑示意图,参考图5所示,本实施例中的中央控制器控制液体龙头出冷水的具体过程如下:
S510,在接收到出冷水指令时,判断液体供给设备的工作状态,若液体供给设备处于出 水或出牛奶状态或处于清洗状态,则执行步骤S521,否则执行步骤S522。
S521,不执行出冷水指令,并向用户反馈不执行的原因。如果液体供给设备当前处于出水或出牛奶状态或处于清洗状态,则向用户反馈设备正忙;如果液体供给设备无法执行出冷水指令(中央控制器接收到的指令不完整等原因),则向用户反馈指令出错。
S522,打开第一电泵和第一电气阀门,开始向液体龙头泵入冷水。
S530,判断是否完成定量出水,若完成定量出水,则执行步骤S540,否则执行步骤S522,继续向液体龙头泵入冷水。
S540,关闭第一电泵和第一电气阀门,暂停向液体龙头泵入冷水。
S550,判断当前杯数是否为最后一杯,若为最后一杯,则执行步骤S560,否则执行步骤S522。
S560,打开第三电泵和第三电气阀门,并控制第三电泵反向转动,将传输管道中残留的冷水泵入到回收槽中,结束冷水输出。
如图4-1所示,图4-1中的热水进水管道还包括第四电气阀门,该第四电气阀门所在的传输管一端连接到第二电气阀门的输出侧,另一端连接到加热箱的输出侧。
在液体供给设备的热水进水管道无需向出水管供给热水时,中央控制器打开第四电气阀门、并控制第二电泵正向转动,利用加热箱、第二电泵和第四电气阀门间的传输管围成热水进水管道的内循环回路,避免热水进水管道的传输管温度过低,保证热水进水管道在开始进行热水输出时热水的温度。
图6为本实施例提供的液体供给设置精确出热水的控制逻辑示意图,参考图6所示,本实施例中的中央控制器控制液体龙头出热水的具体过程如下:
S610,在接收到出热水指令时,判断液体供给设备的工作状态,若液体供给设备处于出水或出牛奶状态或处于清洗状态,则执行步骤S621,否则执行步骤S622。
S621,不执行出热水指令,并向用户反馈不执行的原因。如果液体供给设备当前处于出水或出牛奶状态或处于清洗状态,则向用户反馈设备正忙;如果液体供给设备无法执行出热水指令(中央控制器接收到的指令不完整等原因),则向用户反馈指令出错。
S622,关闭第四电气阀门,并打开第二电气阀门,开始向液体龙头泵入热水。
在本步骤中,由于液体供给设备在供给热水前,热水进水管道的内循环回路处于工作状态,即第二电泵被打开、第二电气阀门被关闭,而第四电气阀门被打开。因此,在需要向液体龙头泵入热水时,只需关闭第四电气阀门、打开第二电气阀门即可。
本实施例优选地,还可以利用设置在共用出水管处的第三温度传感器将不满足温度需求的电泵入到所述回收槽中。即在开始供给热水时,第三温度传感器实时感应共用出水管处的 水温,在水温不满足所需热水温度时,中央控制器打开第三电泵和第三电气阀门,控制第三电泵反向转动,将传输管道中不满足温度要求的电泵入到回收槽中,直至第三温度传感器感应到的水温符合期望水温,在第三温度传感器感应到的水温符合期望水温时,中央控制器关闭第三电泵和第三电气阀门。
S630,判断是否完成定量出水,若完成定量出水,则执行步骤S640,否则执行步骤S622,继续向液体龙头泵入热水。
S640,关闭第二电泵和第二电气阀门,暂停向液体龙头泵入热水。
S650,判断当前杯数是否为最后一杯,若为最后一杯,则执行步骤S660,否则执行步骤S622,打开第二电泵和第二电气阀门,继续向液体龙头泵入热水。
S660,打开第三电泵和第三电气阀门,并控制第三电泵反向转动,将传输管道中残留的热水泵入到回收槽中,结束热水输出。
图7为本实施例提供的液体供给设置精确出温水的控制逻辑示意图,参考图7所示,本实施例中的中央控制器控制液体龙头出温水的具体过程如下:
S710,在接收到出温水指令时,判断液体供给设备的工作状态,若液体供给设备处于出水或出牛奶状态或处于清洗状态,则执行步骤S721,否则执行步骤S722。
S721,不执行出温水指令,并向用户反馈不执行的原因。如果液体供给设备当前处于出水或出牛奶状态或处于清洗状态,则向用户反馈设备正忙;如果液体供给设备无法执行出温水指令(中央控制器接收到的指令不完整等原因),则向用户反馈指令出错。
S722,控制冷水进水管道和热水进水管道开始向液体龙头泵入一定量的冷水和热水。
本步骤中冷水进水管道和热水进水管道向液体龙头泵水的控制方式与图5和图6中开始供给冷水和热水的方式相同,在此不再赘述。
需要说明的是,在控制冷水进水管道和热水进水管道向液体龙头泵水前,本实施例中的中央控制器需要根据接收到的控制指令中指示所需温水的温度,设置冷水进水管道中第一电泵和热水进水管道中第二电泵的泵水速度和泵水量,以达到所需的水温。
S730,判断是否完成定量出水,若完成定量出水,则执行步骤S740,否则执行步骤S722,继续向液体龙头泵入温水。
S740,控制冷水进水管道和热水进水管道暂停向液体龙头泵水。
本步骤中冷水进水管道和热水进水管道暂停向液体龙头泵水的控制方式与图5和图6中暂停供给冷水和热水的方式相同,在此不再赘述。
S750,判断当前杯数是否为最后一杯,若为最后一杯,则执行步骤S760,否则执行步骤S722。
S760,打开第三电泵和第三电气阀门,并控制第三电泵反向转动,将传输管道中残留的温水泵入到回收槽中,结束温水输出。
图8为本实施例提供的液体供给设置精确出牛奶的控制逻辑示意图,参考图8所示,本实施例中的中央控制器控制液体龙头出牛奶的具体过程如下:
S810,在接收到出牛奶指令时,判断液体供给设备的工作状态,若液体供给设备处于出水或出牛奶状态或处于清洗状态,则执行步骤S821,否则执行步骤S822。
S821,不执行出牛奶指令,并向用户反馈不执行的原因。如果液体供给设备当前处于出水或出牛奶状态或处于清洗状态,则向用户反馈设备正忙;如果液体供给设备无法执行出牛奶指令(中央控制器接收到的指令不完整等原因),则向用户反馈指令出错。
S822,打开第三电气阀门和第三电泵,开始向液体龙头泵入牛奶。
S830,判断牛奶罐中的存奶量,如牛奶罐中牛奶都被抽完,则执行步骤S841,否则执行步骤S842。牛奶罐中的牛奶是否抽完
S841,切换到另一个牛奶罐继续向液体龙头泵入牛奶,并执行步骤S842。
S842,判断是否完成定量出奶,若完成定量出奶,则执行步骤S850,否则执行步骤S822,继续向液体龙头泵入牛奶。
S850,关闭第三电泵和第三电气阀门,暂停向液体龙头泵入牛奶。
S860,判断当前杯数是否为最后一杯,若为最后一杯,则执行步骤S870,否则执行步骤S822,打开第三电气阀门和第三电泵,继续向液体龙头泵入牛奶。
S870,控制第三电泵反向转动,将牛奶管道传输管中残留牛奶回收到的回收槽中。
S880,打开第一电泵和第一电气阀门,用冷水清洗牛奶管道中的传输管。
在步骤S880中,本实施例优选使用冷水清洗牛奶管道。当然,也可以利用热水或温水对牛奶管道进行清洗,清洗方法如上,在此不再赘述。
由上,本实施例中的液体供给设备具有多种功能效果,如可以定量供给冷水、温水、热水和牛奶,还可以在每次供给后,自动回收液体管道中残留的水或牛奶,并对液体供给设备的管道清洗设定不同清洗方案,以满足各种应用场景对液体供给设备的清洗标准。
需要说明的是,由于本实施例中的液体供给设备对进水管道的供水量具有严格要求,以实现对水温的精确控制。因此,本实施例设置第一电泵和第二电泵为蠕动电泵,第三电泵为齿轮电泵。为了保证进水管道中水流的顺畅和平缓,本实施例的冷水进水管道在靠近第一电泵的位置处设置有气囊,以抑制由蠕动电泵造成的水流脉冲;本实施例的热水进水管道在靠近第二电泵的位置处设置有气囊,以抑制由蠕动电泵造成的水流脉冲。
为避免冷水进水管道和热水进水管道间形成回流,本实施例的共用出水管在冷水进水管 道和热水进水管道交汇的位置处设置有单向阀,使得第一电气阀门和第二电气阀门都打开时,冷水进水管道不会将冷水传输到热水进水管道中,热水进水管道也不会将热水传输到冷水进水管道中。以及为了避免饮品储藏箱(储奶罐)和回收槽间形成回流,本实施例的第三电泵和饮品储藏箱之间的传输管设置有单向阀,第三电泵和回收槽之间的传输管设置有单向阀。
进一步需要说明的是,为了获取进水管道中水温和水压,本实施例的冷水进水管道在储水箱的输出侧设置第一温度传感器和第一压力传感器,在热水进水管道在加热箱的输出侧设置第二温度传感器和第二压力传感器,并将第一温度传感器、第一压力传感器、第二温度传感器和第二压力传感器电连接中央控制器,使中央控制器接收上述温度传感器和压力传感器传输的数据。
为了配合液体供给设置在每次液体输出后,将液体管道中残留的液体自动回收至回收槽中,本实施例的液体龙头上的液体出口处设置有弹性件,在液体出口处的水压小于设定压力时,该弹性件覆盖并堵塞液体出口,避免液体从该液体出口流出;在液体出口处的水压大于或等于设定压力时,在水压作用下,该弹性件被压缩,该液体出口与外界导通,液体从该液体出口顺畅的流出。
为了使本实施例中的液体龙头能够配合各种型号的杯子,本实施例中的液体龙头上的液体出口可伸缩,以调节液体出口与盛接液体的杯子之间的距离,如可使液体龙头的液体出口高出杯沿2厘米,避免液体输出过程中液体溅出杯子。
图4-2示出的液体供给设备为图4-1示出的液体供给设备的一种变形结构,如图4-2所示,相比于图4-1示出的液体供给设备,图4-2示出的液体供给设备未设置热水进水管道的内循环回路,即未设置第四电阀门,第二电泵连接在储水箱和加热箱之间,此时第二电泵一方面用于将储水箱中的水泵入至加热箱中,另一方面用于将加热箱中的热水泵入至热水进水管道中,提高液体供给设备的完整性;图4-2示出的液体供给设备的其他结构件间的连接方式均与图4-1示出的液体供给设备相同,即图4-2示出的液体供给设备的供水策略、供牛奶策略、清洗策略均图4-1示出的液体供给设备相同,与在此不再赘述。
实施例三:
本实施例中的液体供给设备为实施例一或实施例二中公开的液体供给设备,该液体供给设备的中央控制器中设置有无线通信模块。本实施例中的无线通信模块为蓝牙模块,优选设置蓝牙模块为无密码的数据连接模式,便于自动与控制终端建立无线连接。
图9为本实施例提供的液体供给设备的通信方法流程图,如图9所示,图9中的方法包括:
S910,利用无线通信模块建立液体供给设备与控制终端间的数据连接。
本实施例中的控制终端可以为智能手表、手机终端、PAD等智能移动终端,在控制终端中设置与液体供给设备适配的应用。所述的适配是指:所生成的应用与液体供给设备软件系统适配、版本适配及应用需要与液体供给设备中的硬件器件的型号相适配等等。
本实施例中的液体供给设备通过在其液体管道中设置电泵、电气阀门、温度传感器和压力传感器等器件,使得液体供给设备的中央控制器可以根据接收到的命令帧控制液体供给设备的器件,以实现定量、定温出水、自动回收管道中残留液体、管道清洗控制,从而达到丰富液体供给设备功能的目的。
S920,利用建立的数据连接接收控制终端发送的命令帧,命令帧包括指示液体供给设备输出液体的液体输出命令。
S930,利用中央控制器解析命令帧,根据解析出的液体输出命令,控制液体供给设备将液体从液体龙头中输出,并根据液体输出结果生成响应帧,将生成的响应帧发送至控制终端。
本实施例通过在液体供给设备的中央控制器中设置无线通信模块,利用无线通信模块与控制终端建立无线连接,通过无线连接接收控制终端发送的控制命令,根据控制命令控制液体供给设备的液体输出模式,实现对液体供给设备的便捷控制。
本实施例在控制液体供给设备将液体从液体龙头中输出之前,还包括:
对液体供给设备当前的工作状态进行检测,若液体供给设备当前处于正常工作状态且没有液体输出,控制液体供给设备将液体从液体龙头中输出,并生成指示液体供给设备执行液体输出命令的响应帧;若液体供给设备当前处于正常工作状态且存在液体输出,生成指示液体供给设备忙的响应帧;否则,生成指示命令错误的响应帧。
其中,本实施例的命令帧的类型还包括:指示液体供给设备暂停液体输出的暂停命令、指示液体供给设备取消暂停液体输出的重新输出命令、指示液体供给设备取消液体输出的取消命令、指示清洗液体供给设备的液体管道的清洗命令、指示获取液体供给设备状态的状态获取命令和指示获取液体供给设备的属性信息的属性获取命令。
在中央控制器解析出暂停命令时,对液体供给设备当前的工作状态进行检测;在液体供给设备当前处于正常工作状态且存在液体输出时,控制液体供给设备停止将液体从液体龙头中输出,并生成指示液体供给设备暂停液体输出的响应帧发送给控制终端。
在中央控制器解析出重新输出命令时,对液体供给设备当前的工作状态进行检测;在液体供给设备当前处于暂停输出液体的工作状态时,控制液体供给设备继续将液体从液体龙头中输出,生成指示液体供给设备重新输出液体的响应帧发送给控制终端。
在中央控制器解析出取消命令时,对液体供给设备当前的工作状态进行检测;在液体供给设备当前处于正常工作状态且存在输出液体时,控制液体供给设备停止将液体从液体龙头 中输出,并回收液体管道中残留的液体,生成指示液体供给设备取消液体输出的响应帧发送给控制终端。
在中央控制器解析出清洗命令时,对液体供给设备当前的工作状态进行检测;若液体供给设备当前处于正常工作状态且没有液体输出,控制液体供给设备用水清洗液体管道,并生成指示液体供给设备执行所述清洗命令的响应帧发送给控制终端;若液体供给设备当前处于正常工作状态且存在液体输出,生成指示液体供给设备忙的响应帧发送给控制终端。
在中央控制器解析出状态获取命令时,获取每种液体供给源的温度和压力信息,并将获取到的信息生成指示液体供给设备当前状态的响应帧发送给所述控制终端。
在中央控制器解析出属性获取命令时,获取液体供给设备的PID值和/或硬件版本型号和/或固件版本型号,并将获取到的信息生成指示液体设备属性信息的响应帧。
实施例四:
为了详细说明液体供给设备的通信方法,本实施例对液体供给设备利用其无线连接模块与控制终端进行的通信方式进行具体描述。
本实施例中的命令帧包括实施例三中的液体输出命令、暂停命令、重新输出命令、取消命令、清洗命令和状态获取命令。为便于描述,以支持两种液体输出的液体供给设备为例进行说明,假设该液体供给设备可供给水和牛奶,则液体输出命令可以分为出水命令和出牛奶命令。
需要说明的是,为了实现液体供给设备与控制终端间的通信,本实施例中的命令帧和响应帧具有相同的帧结构,如图10所示,都包括帧头、帧长、命令字和数据体;
本实施例通过如下方式设置帧结构:
在帧头中设置固定的网络字节符,标识命令帧和响应帧的起始位置;如可以将网络字节符设置为固定值,如0Xxxxxxxxx,其中0X为16进制的标识,xxxxxxxx为网络字节符的固定值;
在帧长中设置指示命令字和数据体的字节长度,优选地该字节长度的范围为0~255字节;
在命令字中设置标识命令帧或响应帧的类型数据,以及,在数据体中设置控制命令的设置参数数据或设置响应命令的应答参数数据。
本实施例为配合液体供给设备实现其定量供给冷水、温水、热水和牛奶,以及在每次供给后自动回收液体管道中残留的水或牛奶,和管道清洗功能,示例性设置10种类型的命令字对帧数据进行区分,该10种类型的帧数据的命令字描述如图11所示。
其中,每种类型的帧数据对应的帧结构参见表1至表10:
表1为出水/出牛奶命令的命令帧结构,其中,出水/出牛奶命令数据体部分的液体类型占 用1字节(即第7字节)、容量占用3字节(即第8-11字节)、温度占用1字节(即第12字节)、输出杯数占用1字节(即第13字节)。
表1
Figure PCTCN2017077327-appb-000001
表2为应答响应命令的命令帧结构,其中,应答响应命令数据体部分包括应答字,该应答字可分为三种类型,分别为正常响应、设备忙和不支持此命令,表2内容如下:
表2
字节 解析
1-4 帧头 0Xxxxxxxxx
5 帧长 2
6 命令字 0X02
7 数据体 应答字(0X00正常响应,0X01设备忙,0X02不支持此命令)
表3为状态获取命令的命令帧结构,表3内容如下:
表3
字节 解析
1-4 帧头 0Xxxxxxxxx
5 帧长 1
6 命令字 0X03
表4为重新出水/出牛奶命令的命令帧结构,表4内容如下:
表4
字节 解析
1-4 帧头 0Xxxxxxxxx
5 帧长 1
6 命令字 0X04
表5为暂停出水/出牛奶命令的命令帧结构,表5内容如下:
表5
字节 解析
1-4 帧头 0Xxxxxxxxx
5 帧长 1
6 命令字 0X05
表6为取消出水/出牛奶命令的命令帧结构,表6内容如下:
字节 解析
1-4 帧头 0Xxxxxxxxx
5 帧长 1
6 命令字 0X06
从表3至表6的内容可以看出,本实施例在表3至表6中仅给出了帧头、帧长和命令帧的结构示意,这是因为状态获取命令、重新出水/出牛奶命令、暂停出水/出牛奶命令和取消出水/出牛奶命令的命令帧中的数据体内容为空,因此在表3至表6中省略未给出。
表7为状态响应命令的响应帧结构,该响应帧数据体部分的状态字占用1字节(即第7字节)、冷水水压占用3字节(即第8-11字节)、冷水水温、热水水温、出水温度各占用1字节(即依次占用第12字节、第13字节、第14字节)、奶盒剩余量占用2字节(即第15-16字节)、告警状态字占用1字节(即第17字节)。表7内容如下:
表7
Figure PCTCN2017077327-appb-000002
表8为属性获取命令的命令帧结构,该命令帧也是仅给出了帧头、帧长和命令帧的结构示意,数据体内容为空,省略未给出。表8内容如下:
表8
字节 解析
1-4 帧头 0Xxxxxxxxx
5 帧长 1
6 命令字 0x08
表9为属性响应命令的响应帧结构,该响应帧数据体部分的PID(Port Identification,端口号)占用4字节(即第7-10字节)、硬件版本号占用1字节(即第11字节)、固件版本号占用1字节(即第12字节);其中,示例性地,硬件版本号的高四位为大版本号,低四位为小版本号,如V1.0 0X10;固件版本号的的高四位为大版本号,低四位为小版本号,如V1.00X10。表9内容如下:
表9
字节 解析
1-4 帧头 0Xxxxxxxxx
5 帧长 7
6 命令字 0X09
7-12 数据体 PID、硬件版本号、固件版本号
表10为清洗命令的命令帧,表10内容如下:
表10
字节 解析
1-4 帧头 0Xxxxxxxxx
5 帧长 2
6 命令字 0X0a
7 数据体 管道清洗类型(0X00全部管道、0X01牛奶管道)
在通过上述表1至10设置各种类型的帧数据后,在接收到控制终端发送的命令帧后,利用中央控制器解析接收到的命令帧具体为:
按照设定的通信协议从命令帧中解析出命令字和数据体,并从命令字和数据体中分别提取该命令帧的命令类型和控制命令;
根据命令帧的命令字和响应帧的命令字的对应关系,确定所接收到的命令帧对应的响应帧。
具体的,本实施例中的出水/出牛奶命令的命令字0X01和重新出水/出牛奶命令的命令字0X04、暂停出水/出牛奶命令的命令字0X05、取消出水/出牛奶命令的命令字0X06、清洗命令的命令字0Xa与应答响应命令的命令字0X02对应,即0X01命令字、0X04命令字、0X05命令字、0X05命令字、0Xa均对应于0X02命令字;状态获取命令的命令字0X03与状态响应命令0X07对应,即0X03命令字对应于0X07命令字;而属性获取命令的命令字0X08与属性响应命令的命令字0X09对应,即0X08命令字对应于0X09命令字。
基于上述各命令帧的命令字和响应帧的命令字的对应关系,本实施例以中央控制器解析出液体输出命令为例说明生成响应帧的方式:
在中央控制器根据通信协议解析接收到的命令帧时,解析出该命令帧的命令字0X01和数据体;
首先,根据解析出的命令字0X01确定该命令帧的类型,在确定为液体输出命令时,对液体供给设备当前的工作状态进行检测,若液体供给设备当前处于正常工作状态且没有液体输出,根据解析出的数据体中关于液体类型、容量、温度、杯数等参数控制液体供给设备将相应的液体从液体龙头中输出;同时根据上述命令字的对应关系,确定应将命令字为0X02的响应帧发送给控制终端,该响应帧中的应答字应为正常响应0X00;若液体供给设备当前处于正常工作状态且存在液体输出,根据上述命令字的对应关系,确定应将命令字为0X02的响应帧发送给控制终端,此时响应帧中的应答字应为设备忙0X01;否则(如无法执行该液体输出命令),根据上述命令字的对应关系,确定应将命令字为0X02的响应帧发送给控制终端,此时响应帧中的应答字应为不支持此命令0X02。
对于其他类型的命令帧,生成相应的响应帧的方式基于与液体输出命令的命令帧相同,在此不再赘述。
实施例五:
本实施例提供了一种液体供给设备的通信装置,其中,本实施例中的液体供给设备为实施例一或实施例二中公开的液体供给设备。
如图12所示,图12为液体供给设备的通信装置结构框图,该通信装置包括:
无线通信模块1201,用于建立液体供给设备与控制终端间的数据连接。
数据接收模块1202,用于利用无线通信模块1201建立的数据连接接收控制终端发送的命令帧,命令帧包括指示液体供给设备输出液体的液体输出命令。
解析模块1203,用于解析命令帧,使中央控制器控制液体供给设备将液体从液体龙头中输出,并根据液体输出结果生成响应帧;优选地将解析模块设置在中央控制器中,以减少通信装置与中央控制器的交互,提高命令处理的速度。
数据发送模块1204,用于读取中央控制器中生成的响应帧,并将生成的响应帧发送至控制终端。
需要说明的是,无线通信模块和/或数据接收模块和/或数据发送模块也可以设置在中央控制器中,当无线通信模块设置在中央控制器中时,该无线通信模块对应为中央控制器的无线通信数据接口。如当无线通信模块具体为蓝牙模块时,该蓝牙模块对应为中央控制器的蓝牙转串口Hc-05。
其中,本实施例的命令帧的类型还包括:指示液体供给设备暂停液体输出的暂停命令、指示液体供给设备取消暂停液体输出的重新输出命令、指示液体供给设备取消液体输出的取消命令、指示清洗液体供给设备的液体管道的清洗命令、指示获取液体供给设备状态的状态获取命令和指示获取液体供给设备的属性信息的属性获取命令。
中央控制器,在接收到液体输出命令时,对液体供给设备当前的工作状态进行检测;若液体供给设备当前处于正常工作状态且没有液体输出,控制液体供给设备将液体从液体龙头中输出,并生成指示液体供给设备执行所述液体输出命令的响应帧;若液体供给设备当前处于正常工作状态且存在液体输出,生成指示液体供给设备忙的响应帧;否则,生成指示命令错误的响应帧;数据发送模块1204读取中央控制器生成的响应帧,并将该响应帧发送至控制终端。
在解析模块1203解析出暂停命令时,中央控制器对液体供给设备当前的工作状态进行检测;在液体供给设备当前处于正常工作状态且存在液体输出时,控制液体供给设备停止将液体从液体龙头中输出,并生成指示液体供给设备暂停液体输出的响应帧;数据发送模块1204读取中央控制器生成的响应帧,并将该响应帧发送至控制终端。
在解析模块1203解析出重新输出命令时,中央控制器对液体供给设备当前的工作状态进行检测;在液体供给设备当前处于暂停输出液体的工作状态时,控制液体供给设备继续将液 体从液体龙头中输出,生成指示液体供给设备重新输出液体的响应帧;数据发送模块1204读取中央控制器生成的响应帧,并将该响应帧发送至控制终端。
在解析模块1203解析出取消命令,中央控制器对液体供给设备当前的工作状态进行检测;在液体供给设备当前处于正常工作状态且存在输出液体时,控制液体供给设备停止将液体从液体龙头中输出,并回收液体管道中残留的液体,生成指示液体供给设备取消液体输出的响应帧;数据发送模块1204读取中央控制器生成的响应帧,并将该响应帧发送至控制终端。
在解析模块1203解析出清洗命令时,中央控制器对液体供给设备当前的工作状态进行检测;若液体供给设备当前处于正常工作状态且没有液体输出,控制液体供给设备用水清洗液体管道,并生成指示液体供给设备执行所述清洗命令的响应帧;若液体供给设备当前处于正常工作状态且存在液体输出,生成指示液体供给设备忙的响应帧;若液体供给设备当前处于正常工作状态且存在液体输出,生成指示液体供给设备忙的响应帧;数据发送模块1204读取中央控制器生成的响应帧,并将该响应帧发送至控制终端。
在解析模块1203解析出状态获取命令时,获取每种液体供给源的温度和压力信息,并将获取到的信息生成指示液体供给设备当前状态的响应帧;数据发送模块1204读取中央控制器生成的响应帧,并将该响应帧发送至控制终端。
在解析模块1203解析出属性信息的属性获取命令时,获取液体供给设备的PID值和/或硬件版本型号和/或固件版本型号,并将获取到的信息生成指示液体设备属性信息的响应帧。
需要说明的是,为了实现液体供给设备与控制终端间的通信,本实施例中的命令帧和响应帧具有相同的帧结构,均包括:帧头、帧长、命令字和数据体;帧头中设置有固定的网络字节符,标识命令帧和响应帧的起始位置;帧长中设置有指示命令字和数据体的字节长度;命令字中设置有标识命令帧或响应帧的类型数据;数据体中设置有控制命令的设置参数或设置响应命令的应答参数。
则解析单元1203,具体是按照设定的通信协议从命令帧中解析出命令字和数据体,并从命令字和数据体中分别提取该命令帧的命令类型和控制命令;根据命令帧的命令字和响应帧的命令字的对应关系,确定所接收到的命令帧对应的应答帧。
本发明装置实施例的各模块的具体工作方式可以参见本发明的方法实施例,在此不再赘述。
实施例六:
本实施例提供了一种液体供给系统。
如图13所示,图13为本实施例提供的液体供给系统的结构框图,该系统包括:液体供给设备1302和控制终端1301;
该液体供给设备1302包括:连通液体供给源与液体龙头的液体管道和中央控制器13021,中央控制器13021中设置有实施例五中的通信装置。
控制终端1301可以为智能手表、手机终端、PAD等智能移动终端,在控制终端中设置与液体供给设备适配的应用。所述的适配是指:所生成的应用与液体供给设备系统适配、版本适配。
需要说明的是,为了实现中央控制器可以根据控制终端发送的命令帧对液体供给设备进行相应的控制,以使液体供给设备具有定量供给冷水、温水、热水和牛奶,以及在每次供给后自动回收液体管道中残留的水或牛奶,和管道清洗等功能,本实施例中的中央控制器具有相应的功能模块,如传感器模块,电泵控制模块和电气阀门控制模块等,本实施例对具体设计方法不做限定,只要能够配合液体供给设备实现上述功能即可。
如图14所示,图14为本实施例提供的液体供给系统的液体供给设备和控制终端的交互示意图,具体交互过程如下:
控制终端根据用户操作,将液体输出命令发送给液体供给设备,液体供给设备解析出该液体输出命令,根据该液体输出命令控制液体的输出,并向控制终端发送相应的应答帧,从而实现本实施例液体供给系统定量液体输出的功能。
其中,液体供给设备可以向控制终端发送正常响应、设备忙或不支持此命令的应答帧,液体供给设备在接收到液体输出命令时,生成应答帧的方式具体参考实施例五中的相关描述,在此不再赘述。
如图14所示,控制终端还可以向液体供给设备发送暂停命令、取消命令、重新输出命令和清洗命令等控制命令,使得液体供给设备可以随时对其工作状态进行控制,以提高用户的使用体验。
当然,控制终端也可以向液体供给设备发送状态获取命令和属性获取命令,使用户可以随时了解液体供给设备的工作状态和属性信息。本实施例中相关控制命令的执行方式请参考实施例三和实施例四。
实施例七
图15为本实施例提供的液体供给设备的控制方法流程图,如图15所示,图15中的方法包括:
S1510,基于应用开发平台生成适配液体供给设备的应用,并在应用中设置与液体供给设备进行数据连接的通信单元和液体供给设备的控制单元,该控制单元中设置有控制液体供给设备进行液体输出的液体输出模块。
示例性的,本实施例以安卓Android为应用开发平台,采用Java开发技术和蓝牙Bluetooth 2.0的无线通信技术,利用Socket实现底层的协议传输,并通过自定义通信协议实现与液体供给设备的数据传输,实现应用对液体供给设备的无线控制和数据交互。
本实施例中的液体供给设备包括:连通液体供给源与液体龙头的液体管道和中央控制器,中央控制器中设置有无线通信模块。
其中,步骤S1510中“基于应用开发平台生成适配液体供给设备的应用”应理解为:所生成的应用与液体供给设备软件系统适配、版本适配及应用需要与液体供给设备中的硬件器件的型号相适配等等。
S1520,在对液体供给设备进行控制时,当检测到启动通信单元的触发事件时,按照通信单元配置的通信方式建立与液体供给设备间的数据连接。
本实施例可以将应用启动进入应用的首界面(或称为Splash界面)的事件作为通信单元的触发事件,也可以将用户点击设备对象发送的指令作为触发事件。
由于液体供给设备的无线通信模块配置为无密码模式,因此,在应用根据本地配置文件中的设备信息(设备信息可以包括设备的地址信息和名称信息)成功建立与液体供给设备的数据连接时,可以给用户即需即用的用户体验,减少用户的操作。
S1530,在建立与液体供给设备间的数据连接后,当检测到启动控制单元中液体输出模块的触发事件时,通过数据连接向液体供给设备发送控制命令,以控制液体供给设备进行液体输出。
本实施例对生成的适配液体供给设备的应用中通过设置通信单元和控制单元,在需要对液体供给设备进行控制时,通过通信单元与液体供给设备进行数据连接,并在建立数据连接后,通过控制单元中的液体输出模块对液体供给设备的液体输出进行控制,实现对液体供给设备的便捷控制。
本实施例的通信单元设置有扫描模块、连接模块和断开重连模块,控制单元中还设置有数据展示模块、清洗模块,本实施例通过下述实现方案详细说明设置扫描模块、连接模块和断开重连模块、液体输出模块、数据展示模块和清洗模块的方式:
其中,在应用中设置连接模块和连接模块的方式为:
为扫描模块设置图标,为连接模块设置显示界面,可以在应用的对应层的用户界面上分别为扫描模块生成对应的图标,并为连接模块生成对应的显示界面;
当检测到启动通信单元的触发事件时,检测应用本地配置文件中保存的设备信息,当设备信息中包括当前的液体供给设备时,设置连接模块根据设备信息请求与当前的液体供给设备进行数据连接;为了实现对液体供给设备的即需即用的控制方式,优选地在应用启动时进入应用的首界面时,检测应用本地配置文件中保存的设备信息实现自动数据连接。
在连接失败或未在本地配置文件中检测到当前的液体供给设备的设备信息时,检测其图标的滑动方向和/或滑动距离,在滑动方向和/或滑动距离满足搜索条件时,设置扫描模块搜索可识别的液体供给设备,将搜索到的液体供给设备的设备信息显示在连接模块的显示界面上;如当检测到图标向下滑动且滑动距离大于200px时,即认为达到了可以进行设备搜索的条件。
以及,设置连接模块接收用户通过点击显示界面中相应设备发送的设备信息,建立与该液体供给设备的数据连接,并将连接成功的液体供给设备的设备信息保存在本地配置文件中。
在设置扫描模块和连接模块时,可以利用Android平台的广播接收器方法BroadcastReceiver来接收扫描模块搜索到的蓝牙设备,利用在线接收器onReceiver方法中对扫描到的蓝牙设备对象BluetoothDevice进行判断,将满足特定属性条件的对象显示到连接模块的显示界面中,供用户观看选择;当用户点击被搜索到的液体供给设备对应的对象时,通过应用本地的蓝牙适配器获取指定地址的液体供给设备进行蓝牙连接,连接成功后,将该液体供给设备的设备信息写入到本地配置文件中。
在应用中设置液体输出模块的方式为:
为每种液体输出模块设置图标和相应的输出界面,设置液体输出模块在检测到点击其图标的触发事件时,进入该图标对应液体的第一输出界面;如图5所示,在应用界面的左侧设置两种类型的液体图标,示例性为出水模块图标和出牛奶模块图标,在检测到点击处说模块图标的触发事件时,在应用界面的右侧显示出水模块的输出界面。
接收用户通过拖动第一输出界面中温度进度条和输出量进度条发送的指令,获知需要液体供给设备输出液体的温度和输出量,控制液体供给设备进行相应液体输出,并进入该液体对应的第二输出界面;
在液体供给设备进行相应液体输出时,实时获取输出液体的温度和流量,通过获取到的温度和输出量实时更新第二输出界面上温度进度条和液体输出量进度条上显示的进度信息。
本实现方案中每种液体输出模块的输出界面包括第一输出界面和第二输出界面;其中,第一输出界面用于接收用户设定的输出液体的温度和输出量,可以在第一输出界面中分别设置温度进度条、输出量进度条和开始按钮,温度进度条和输出量进度条均具有可拖动的范围,通过将温度进度条和输出量进度条拖动到相应的位置处实现温度和输出量的设定,在接收到点击开始按钮发送的开始指令时,进入第二输出界面;第二输出界面用于显示液体供给设备液体输出过程中的液体温度和输出量的实时进度,本实现方案在第二输出界面亦设置温度进度条和输出量进度条,利用获取到的温度和输出量实时更新第二输出界面上温度进度条和液体输出量进度条上显示的进度信息,以便于用户实时地掌握液体输出的进度。
在设置第二输出界面上的温度进度条时,可以利用安卓Android平台中碎片方法Fragment 创建一个定时器Timer,控制子线程获取从设备发送过来的加工过的温度数据,利用该温度数据更新温度进度条的进度。此处加工过的温度数据可理解为:设定时间内(如每隔5秒钟)冷水和热水温度的平均值,利用加工过的温度数据即不影响最终温度数据的准确性,又能够使温度进度条的进度平缓变化。
需要注意的是,为了避免进度条的卡顿现象,在设计上述温度进度条和输出量进度条时,可将进度条的最大值设置为稍大的值,即可达到连续变化的视觉效果。
在应用中设置数据展示模块的方式为:
设置数据展示模块的展示界面,在检测到有液体供给设备发送的状态数据时,子线程接收并解析状态数据,主线程接收子线程解析的状态数据,并更新数据展示模块的展示界面。
由于液体供给设备发送过来的状态数据的频率较高,通常是每一秒钟都会发送一次状态数据,由于本实施例的应用是通过子线程来接收数据的,而数据展示模块中展示界面上的数据更新是在主进程中进行的,因此需要使用安卓Android平台的处理程序Handle实现线程间的通讯,而处理程序Handle通信机制中需要借助信息对象Message实现数据的传输,如果每隔一秒钟创建一个信息对象Message会严重的消耗应用性能。基于此,本实施例优选地使用获取信息对象obtainMessage来得到一个旧的暂时没用的信息对象Message来装填数据,即本实施例通过反复利用一个信息对象Message,达到降低应用性能的占用的目的。
在所述展示界面设置告警图标,该告警图标包括第一图片和第二图片,在检测到液体供给设备的设备异常、或供给源储量不足时,第一图片和第二图片反复切换实现闪烁的视觉效果。
如当液体供给源的剩余量为零时,设置该供给源的图标具有闪烁动画,若动画效果是用动画属性方法PropertyAnimator来完成,则会极大的拖慢CPU的执行效率,因此,本实施例优选地使用动画帧方法FrameAnimator帧动画,即设置两张图片,在两张图片之间反复切换,以实现闪烁的错觉效果。
通过方式在应用中设置清洗模块和断开重连模块:
在应用中设置具有隐藏界面的触发图标,在检测到点击触发图标的触发事件时,弹出触发图标的隐藏界面,并在隐藏界面上显示清洗模块和断开重连模块的图标。
由于清洗模块和断开重连模块的使用频率较低,因此本实施例优选地设置清洗模块和断开重连模块的图标为隐藏,在检测到点击触发图标的触发事件时,即可弹出设置在隐藏界面中的清洗模块和断开重连模块的图标;对于隐藏界面的弹出效果,可使用安卓Android平台支持的动画属性方法propertyAnimation以及Java动画包nineoldandriod.jar实现。
以上,本实施例通过上述实现方案设置所述应用具有扫描模块、连接模块、断开重连模 块、液体输出模块、数据展示模块和清洗模块。
下面本发明通过实施例八具体说明的利用应用的上述单元和模块对液体供给设备的具体控制方法。
实施例八:
本实施例以对支持两种液体输出的液体供给设备进行控制为例说明,该液体供给设备分别提供水和牛奶;其中,在控制液体供给设备出水或出牛奶时,主要实现对出水量、出水温度或出奶量进行控制。
如图16所示,图16为本实施例提供的应用的模块框图,本实施例依据实施例七中对应用的通信单元和控制单元的设置方式,在基于应用开发平台生成适配液体供给设备的应用中设置扫描模块、连接模块、断开重连模块、液体输出模块(出水模块和出奶模块)、数据展示模块和清洗模块。
本实施例中的应用还设置有首界面和主界面,其中,应用的所有模块的图标设置在主界面上;
在应用启动时,进入应用的首界面;
在进入应用的首界面时,检测应用本地配置文件中保存的设备信息,并将检测结果发送给连接模块,使连接模块根据设备信息请求与当前的液体供给设备进行数据连接;
在进入应用的首界面时,同时检测首界面的显示时间,在达到首界面的显示时间时,进入应用的主界面,参见图18所示,图18为本实施例应用的主界面的示意图,本实施例的主界面包括右侧的操作区域和左侧公共区域。
需要说明的是,在由首界面进入主界面时,若连接模块未能通过本地配置文件中的设备信息与液体供给设备建立数据连接,则主界面的右侧的操作区域内显示扫描模块的图标,如图17所示,图17主界面的右侧区域内显示扫描模块的图标,检测扫描模块图标滑动方向和/或滑动距离,在滑动方向和/或滑动距离满足搜索条件时(如当检测到图标向下滑动且滑动距离大于200px时,即认为达到了可以进行设备搜索的条件),搜索可识别的液体供给设备,将搜索到的液体供给设备的设备信息显示在连接模块的显示界面(连接模块的显示界面可以设置主界面操作区域内扫描模块的图标下侧)上;使连接模块接收用户通过点击显示界面中相应设备发送的设备信息,建立与该液体供给设备的数据连接,并将连接成功的液体供给设备的设备信息保存在本地配置文件中。
在连接模块成功建立与液体供给设备的数据连接后,则直接进入主界面的操作区域,如图18所示,此时检测到操作界面上点击出水模块或出奶模块的图标的触发事件时,进入相应的液体输出模块的第一输出界面。示例性,若检测到的点击出水模块的图标的触发事件时, 如图19所示,进入出水模块的第一输出界面,并接收用户通过拖动第一输出界面中温度进度条和出水量进度条发送的指令,获知需要液体供给设备输出的水温和出水量;参考图19所示,可以获知需要液体供给设备输出的水温为0℃,出水量为100ml,从而可以根据用户设置的出水参数控制液体供给设备开始输出水,并进入出水模块的第二输出界面,将获取到的温度和流量实时更新第二输出界面上温度进度条和水输出量进度条上显示的进度信息。
在进入主界面的操作区域时,如图18所示,若此时检测到有液体供给设备发送的状态数据时,本实施例示例性示出包括水温、水压和牛奶剩余百分比的状态数据,子线程接收并解析状态数据,主线程接收子线程解析的状态数据,并更新数据展示模块的展示界面。
在进入主界面的操作区域时,如图20所示,若检测到点击触发图标的触发事件时,弹出触发图标的隐藏界面,并在隐藏界面上显示清洗模块和断开重连模块的图标。本实施例的清洗模块可以包括牛奶管道清洗和整机清洗。
这种处理方式,不但使用户界面更加简洁,而且避免误操作的发生。
需要说明的是,在应用处于主界面的操作区域时,检测主界面上是否存在用户操作,若在设定时间内未检测到用户操作,关闭操作区域,避免发生误触。
具体实现原理是:在主界面进行初始化时,创建一个定时器Timer,按照定时器的时间间隔检测用户操作,如每两分钟检测是否有用户操作,在检测到有用户操作发生时,更新定时器当前时间的value值,如果在两分钟时间内没有检测到用户操作,关闭主界面的操作区域。
实施例九:
本实施例提供了一种液体供给设备的控制装置,如图21为本实施例提供的液体供给设备的控制装置结构框图。
如图21所示,该控制装置包括设置在基于应用开发平台生成适配液体供给设备的应用中的通信单元2101、控制单元2102和检测单元2103,控制单元2102包括液体输出模块21021;
检测单元2103,用于在对液体供给设备进行控制时,检测启动通信单元的触发事件,以及在建立与液体供给设备间的数据连接后,检测启动控制单元中液体输出模块的触发事件;
通信单元2101,用于在检测单元2103检测到启动通信单元2101的触发事件时,按照配置的通信方式建立与液体供给设备间的数据连接;
液体输出模块21021,在建立与液体供给设备间的数据连接后,当检测单元2103检测到启动液体输出模块21021的触发事件时,通过数据连接向液体供给设备发送控制命令,以控制液体供给设备进行液体输出。
本实施例中的通信单元2101包括:扫描模块:21011和连接模块21012,扫描模块21011 设置有图标,连接模块21012设置有显示界面;
检测单元2103,检测应用的本地配置文件中保存的设备信息,当设备信息中包括当前的液体供给设备时,连接模块21012根据设备信息请求与当前的液体供给设备进行数据连接;检测单元2103,在连接失败或未在本地配置文件中检测到当前的液体供给设备的设备信息时,检测其图标的滑动方向和/或滑动距离,在滑动方向和/或滑动距离满足搜索条件时,扫描模块21011搜索可识别的液体供给设备,将搜索到的液体供给设备的设备信息显示在连接模块21012的显示界面上;以及,连接模块21012,接收用户通过点击显示界面中相应设备发送的设备信息,建立与该液体供给设备的数据连接,并将连接成功的液体供给设备的设备信息保存在本地配置文件中。其中,每种液体输出模块设置有图标和相应的输出界面;检测单元2103,检测点击液体输出模块图标的触发事件;液体输出模块21021,在检测单元2103检测到点击其图标的触发事件时,进入该图标对应液体的第一输出界面;接收用户通过拖动第一输出界面中温度进度条和输出量进度条发送的指令,获知需要液体供给设备输出液体的温度和输出量,控制液体供给设备进行相应液体输出,并进入该液体对应的第二输出界面;在液体供给设备进行相应液体输出时,实时获取输出液体的温度和输出量,通过获取到的温度和输出量实时更新第二输出界面上温度进度条和液体输出量进度条上显示的进度信息。
本实施例优选地,控制单元2102还包括:数据展示模块21022和清洗模块21023,通信单元2101还包括:断开重连模块21013;其中,数据展示模块21022设置有展示界面,清洗模块21023和断开重连模21013块设置有相应的图标;
检测单元2103,检测液体供给设备发送的状态数据;
数据展示模块21022,在检测单元2103检测到有液体供给设备发送的状态数据时,通过子线程接收并解析所述状态数据,通过主线程接收子线程解析的状态数据,并更新其展示界面;
检测单元2103,检测点击触发图标的触发事件,该触发图标设置在应用中,并具有隐藏界面;在检测单元2103检测到点击触发图标的触发事件时,触发图标弹出其隐藏界面,并在隐藏界面上显示清洗模块和断开重连模块的图标。
本发明装置实施例的各模块的具体工作方式可以参见本发明的方法实施例八,不再赘述。

Claims (26)

  1. 一种液体供给设备,其特征在于,包括:液体龙头、中央控制器和液体管道;
    所述液体龙头包括:主体部分和用于支撑主体部分的支架,所述主体部分设置有液体出口,所述支架上设置有与所述液体出口导通的导管;
    所述液体管道包括:传输管、电泵和电气阀门;所述液体管道的传输管连接到液体龙头支架上的导管,导通供给源与液体龙头;所述电泵和所述电气阀门设置在所述传输管上,电泵为液体管道提供液体传输的动力,电气阀门作为液体管道的开关;其中所述电泵和所述电气阀门电连接所述中央控制器;
    所述中央控制器根据用户指令控制所述液体管道的电泵和电气阀门,实现液体的输出或关闭液体的输出。
  2. 根据权利要求1所述的液体供给设备,其特征在于,所述电泵包括计量模块,在所述电泵向所述液体龙头泵入设定量的液体时,所述计量模块关闭所述电泵,实现对液体输出量的精确控制;
    和/或,该液体供给设备还包括具有称重传感器的杯托,所述称重传感器电连接所述中央控制器;
    在液体输出过程中,所述称重传感器将感应到的重量发送给所述中央控制器,在达到设定重量时,所述中央控制器控制所述电泵和所述电气阀门的工作状态,实现对液体输出量的精确控制。
  3. 根据权利要求1所述的液体供给设备,其特征在于,所述液体管道包括进水管道和/或进饮品管道,所述支架上的导管包括水导管和/或饮品导管;
    所述进水管道包括:冷水进水管道、热水进水管道和共用出水管;
    所述冷水进水管道包括储水装置,沿着储水装置至液体龙头的传输方向,在所述冷水进水管道的传输管上依次设置所述电泵为第一电泵、所述电气阀门为第一电气阀门;
    所述热水进水管道包括加热装置,沿着加热装置至液体龙头的传输方向,在所述热水进水管道的传输管上设置所述电泵为第二电泵、所述电气阀门为第二电气阀门;
    所述冷水进水管道和所述热水进水管道的传输管通过所述共用出水管连接到支架上的水导管;
    所述进饮品管道包括饮品储藏箱,沿着饮品储藏箱至液体龙头的传输方向,在所述进饮品管道的传输管上依次设置所述电泵为第三电泵、所述电气阀门为第三电气阀门。
  4. 根据权利要求3所述的液体供给设备,其特征在于,所述液体管道包括进水管道和进饮品管道,该液体供给设备还包括回收槽,所述回收槽的传输管连接在所述第三电泵的供给 源侧;
    所述中央控制器根据设定的清洗策略,打开所述第一电气阀门、并控制所述第一电泵正向转动,或者打开所述第二电气阀门、并控制所述第二电泵正向转动,或者打开所述第一电气阀门和所述第二电气阀门、并控制所述第一电泵和所述第二电泵正向转动,将电泵入到水导管中,以及根据设定的清洗策略打开第三电气阀门、并控制所述第三电泵反向转动,将水导管中的水依次经由饮品导管和进饮品管道的传输管泵入到所述回收槽中。
  5. 根据权利要求4所述的液体供给设备,其特征在于,该液体龙头还包括:设置在共用出水管管壁外侧的第三温度传感器;
    所述第三温度传感器实时感应所述共用出水管内的水温,并将感应到的水温实时地传输给所述中央控制器,所述中央控制器根据接收到的水温控制第三电泵反向转动,以将不满足温度需求的水泵入到所述回收槽中,直至所述第三温度传感器感应到的水温符合期望水温,关闭所述第三电泵。
  6. 根据权利要求4所述的液体供给设备,其特征在于,所述热水进水管道还包括第四电气阀门,该第四电气阀门的一端连接到第二电气阀门的输出侧,另一端连接到所述加热装置的输出侧;
    在所述液体供给设备的热水进水管道无需向出水管供给热水时,所述中央控制器打开所述第四电气阀门、并控制所述第二电泵正向转动,利用加热装置、第二电泵和第四电气阀门间的传输管围成热水进水管道的内循环回路,避免热水进水管道的传输管温度过低,保证热水进水管道在开始进行热水输出时热水的温度。
  7. 根据权利要求4所述的液体供给设备,其特征在于,所述出水管在冷水进水管道和热水进水管道交汇的位置处设置有单向阀,避免冷水进水管道和热水进水管道间形成回流;
    所述第三电泵和所述饮品储藏箱之间的传输管设置有单向阀,所述第三电泵和所述回收槽之间的传输管设置有单向阀,避免饮品储藏箱和回收槽间形成回流。
  8. 根据权利要求3所述的液体供给设备,其特征在于,所述第一电泵和所述第二电泵为蠕动电泵,所述第三电泵为齿轮电泵;
    所述冷水进水管道在靠近第一电泵的位置处设置有气囊,以抑制由蠕动电泵造成的水流脉冲,保证冷水进水管道中水流的顺畅和平缓;
    所述热水进水管道在靠近第二电泵的位置处设置有气囊,以抑制由蠕动电泵造成的水流脉冲,保证热水进水管道中水流的顺畅和平缓。
  9. 根据权利要求8所述的液体供给设备,其特征在于,所述液体龙头上的液体出口处设置有弹性件;
    在液体出口处的水压小于设定压力时,所述弹性件覆盖并堵塞所述液体出口,避免液体从该液体出口流出;在液体出口处的水压大于或等于设定压力时,在水压作用下,所述弹性件被压缩,该液体出口与外界导通,液体从该液体出口顺畅的流出。
  10. 一种液体供给设备,其特征在于,包括:液体龙头、中央控制器、液体管道和回收槽,所述液体龙头上设置有液体出口以及与液体出口导通的水导管和饮品导管,所述液体管道包括:进水管道和进饮品管道,所述进水管道包括:冷水进水管道、热水进水管道和共用出水管;
    所述冷水进水管道包括储水装置,沿着储水装置至液体龙头的传输方向,在所述冷水进水管道的传输管上依次设置第一电泵和第一电气阀门;所述热水进水管道包括加热装置,沿着加热装置至液体龙头的传输方向,在所述热水进水管道的传输管上设置第二电泵和第二电气阀门;所述冷水进水管道和所述热水进水管道的传输管通过所述共用出水管连接到水导管;
    所述进饮品管道包括饮品储藏箱,沿着饮品储藏箱至液体龙头的传输方向,在所述进饮品管道的传输管上依次设置第三电泵和第三电气阀门;所述回收槽的传输管连接在所述第三电泵的供给源侧;其中,第一电泵、第一电气阀门、第二电泵、第二电气阀门、第三电泵和第三电气阀门电连接中央控制器;
    所述中央控制器在接收到出水指令时,判断液体供给设备的工作状态,若液体供给设备处于出水状态或处于清洗状态,则不执行所述出水指令,并向用户反馈不执行的原因;否则根据出水指令中指示的所需水温打开相应的电泵和电气阀门,开始向液体龙头泵入相应温度的水,在完成定量出水时,暂停向液体龙头泵水,并判断当前杯数是否为最后一杯,若不是最后一杯则重新开始向液体龙头泵入相应温度的水,若是最后一杯,则打开第三电泵和第三电气阀门,并控制第三电泵反向转动,将传输管道中残留的液体泵入到所述回收槽中。
  11. 根据权利要求10所述的液体供给设备,其特征在于,所述共用出水管的管壁外侧设置第三温度传感器,所述中央控制器在接收到出水指令时,根据来自第三温度传感器的共用出水管内的水温控制第三电泵反向转动,以将不满足温度需求的水泵入到所述回收槽中,直至所述第三温度传感器感应到的水温符合期望水温,关闭所述第三电泵。
  12. 根据权利要求10所述的液体供给设备,其特征在于,所述热水进水管道还包括第四电气阀门,所述第四电气阀门的一端连接到第二电气阀门的输出侧,另一端连接到所述加热装置的输出侧;
    所述中央控制器在所述液体供给设备的热水进水管道无需向出水管供给热水时,打开所述第四电气阀门、并控制所述第二电泵正向转动,利用加热装置、第二电泵和第四电气阀门间的传输管围成热水进水管道的内循环回路,避免热水进水管道的传输管温度过低,保证热 水进水管道在开始进行热水输出时热水的温度。
  13. 根据权利要求12所述的液体供给设备,其特征在于,所述中央控制器接收到的出水指令为出冷水指令时,打开第一电泵和第一电气阀门向液体龙头泵入冷水;
    所述中央控制器接收到的出水指令为出热水指令时,关闭所述第四电气阀门,并打开第二电泵和第二电气阀门,向液体龙头泵入热水;
    所述中央控制器接收到的出水指令为出温水指令时,关闭所述第四电气阀门,并根据接收到的出水指令中指示所需温水的温度,设置冷水进水管道中第一电泵和热水进水管道中第二电泵的泵水速度和泵水量,打开第一电泵、第一电气阀门,第二电泵和第二电气阀门向液体龙头泵入冷水和热水。
  14. 一种权利要求1-13任一项所述的液体供给设备的通信方法,其特征在于,该液体供给设备的中央控制器中设置有无线通信模块,所述液体供给设备的通信方法包括:
    利用所述无线通信模块建立液体供给设备与控制终端间的数据连接;
    利用建立的数据连接接收所述控制终端发送的命令帧,所述命令帧包括指示液体供给设备输出液体的液体输出命令;
    利用中央控制器解析所述命令帧,根据解析出的液体输出命令,控制液体供给设备将液体从液体龙头中输出,并根据液体输出结果生成响应帧,将生成的响应帧发送至控制终端。
  15. 根据权利要求11所述的通信方法,其特征在于,在控制液体供给设备将液体从液体龙头中输出之前,所述方法还包括:
    对液体供给设备当前的工作状态进行检测;
    若液体供给设备当前处于正常工作状态且没有液体输出,控制液体供给设备将液体从液体龙头中输出,并生成指示液体供给设备执行所述液体输出命令的响应帧;
    若液体供给设备当前处于正常工作状态且存在液体输出,生成指示液体供给设备忙的响应帧;
    否则,生成指示命令错误的响应帧。
  16. 根据权利要求14所述的通信方法,其特征在于,所述命令帧的类型还包括:指示液体供给设备暂停液体输出的暂停命令;
    在中央控制器解析出暂停命令时,对液体供给设备当前的工作状态进行检测;
    在液体供给设备当前处于正常工作状态且存在液体输出时,控制液体供给设备停止将液体从液体龙头中输出,并生成指示液体供给设备暂停液体输出的响应帧发送给所述控制终端;
    所述命令帧的类型还包括:指示液体供给设备取消暂停液体输出的重新输出命令;
    在中央控制器解析出重新输出命令时,对液体供给设备当前的工作状态进行检测;
    在液体供给设备当前处于暂停输出液体的工作状态时,控制液体供给设备继续将液体从液体龙头中输出,生成指示液体供给设备重新输出液体的响应帧发送给所述控制终端;
    所述命令帧的类型还包括:指示液体供给设备取消液体输出的取消命令;
    在中央控制器解析出取消命令时,对液体供给设备当前的工作状态进行检测;
    在液体供给设备当前处于正常工作状态且存在输出液体时,控制液体供给设备停止将液体从液体龙头中输出,并回收液体管道中残留的液体,生成指示液体供给设备取消液体输出的响应帧发送给所述控制终端;
    所述命令帧的类型还包括:指示清洗液体供给设备的液体管道的清洗命令;
    在中央控制器解析出清洗命令时,对液体供给设备当前的工作状态进行检测;
    若液体供给设备当前处于正常工作状态且没有液体输出,控制液体供给设备用水清洗液体管道,并生成指示液体供给设备执行所述清洗命令的响应帧发送给所述控制终端;
    若液体供给设备当前处于正常工作状态且存在液体输出,生成指示液体供给设备忙的响应帧发送给所述控制终端;
    所述命令帧的类型还包括:指示获取液体供给设备状态的状态获取命令;
    在中央控制器解析出状态获取命令时,获取每种液体供给源的温度和压力信息,并将获取到的信息生成指示液体供给设备当前状态的响应帧发送给所述控制终端;
    所述命令帧的类型还包括:指示获取液体供给设备的属性信息的属性获取命令;
    在中央控制器解析出属性获取命令时,获取液体供给设备的PID值和/或硬件版本型号和/或固件版本型号,并将获取到的信息生成指示液体设备属性信息的响应帧。
  17. 一种权利要求1-13任一项所述的液体供给设备的通信装置,其特征在于,包括:
    无线通信模块,用于建立液体供给设备与控制终端间的数据连接;
    数据接收模块,用于利用所述无线通信模块建立的数据连接接收所述控制终端发送的命令帧,所述命令帧包括指示液体供给设备输出液体的液体输出命令;
    解析模块,用于解析所述命令帧,使所述中央控制器控制液体供给设备将液体从液体龙头中输出,并根据液体输出结果生成响应帧;
    数据发送模块,用于读取中央控制器中生成的响应帧,并将生成的响应帧发送至控制终端。
  18. 一种液体供给系统,其特征在于,包括:权利要求1-13任一项所述的液体供给设备和控制终端;
    该液体供给设备的中央控制器中设置如权利要求17所述的通信装置。
  19. 一种权利要求1-13任一项所述的液体供给设备的控制方法,其特征在于,包括:
    基于应用开发平台生成适配液体供给设备的应用,并在应用中设置与液体供给设备进行数据连接的通信单元和液体供给设备的控制单元,所述控制单元中设置有控制所述液体供给设备进行液体输出的液体输出模块;
    在对液体供给设备进行控制时,当检测到启动所述通信单元的触发事件时,按照通信单元配置的通信方式建立与所述液体供给设备间的数据连接;
    在建立与所述液体供给设备间的数据连接后,当检测到启动所述控制单元中液体输出模块的触发事件时,通过所述数据连接向所述液体供给设备发送控制命令,以控制液体供给设备进行液体输出。
  20. 根据权利要求19所述的控制方法,其特征在于,在所述通信单元中设置扫描模块和连接模块;
    为所述扫描模块设置图标,为所述连接模块设置显示界面;
    当检测到启动所述通信单元的触发事件时,检测所述应用的本地配置文件中保存的设备信息,当设备信息中包括当前的液体供给设备时,设置所述连接模块根据所述设备信息请求与当前的液体供给设备进行数据连接;
    在连接失败或未在本地配置文件中检测到当前的液体供给设备的设备信息时,检测其图标的滑动方向和/或滑动距离,在所述滑动方向和/或滑动距离满足搜索条件时,搜索可识别的液体供给设备,将搜索到的液体供给设备的设备信息显示在所述连接模块的显示界面上;
    以及,接收用户通过点击显示界面中相应设备发送的设备信息,建立与该液体供给设备的数据连接,并将连接成功的液体供给设备的设备信息保存在本地配置文件中。
  21. 根据权利要求19所述的控制方法,其特征在于,所述方法还包括:
    为每种液体输出模块设置图标和相应的输出界面,设置液体输出模块在检测到点击其图标的触发事件时,进入该图标对应液体的第一输出界面;
    接收用户通过拖动第一输出界面中温度进度条和输出量进度条发送的指令,获知需要液体供给设备输出液体的温度和输出量,控制液体供给设备进行相应液体输出,并进入该液体对应的第二输出界面;
    在液体供给设备进行相应液体输出时,实时获取输出液体的温度和输出量,通过获取到的温度和输出量实时更新第二输出界面上温度进度条和液体输出量进度条上显示的进度信息。
  22. 根据权利要求19所述的控制方法,其特征在于,在所述控制单元中还设置有数据展示模块、清洗模块,在所述通信单元中还设置有断开重连模块;
    通过下述方式在所述应用中设置数据展示模块:
    设置所述数据展示模块的展示界面,在检测到有液体供给设备发送的状态数据时,通过子线程接收并解析所述状态数据,通过主线程接收子线程解析的状态数据,并更新所述数据展示模块的展示界面;
    通过下述方式在所述应用中设置清洗模块和断开重连模块:
    在所述应用中设置具有隐藏界面的触发图标,在检测到点击触发图标的触发事件时,弹出所述触发图标的隐藏界面,并在所述隐藏界面上显示清洗模块和断开重连模块的图标。
  23. 一种权利要求1-13任一项所述的液体供给设备的控制装置,其特征在于,包括设置在基于应用开发平台生成适配液体供给设备的应用中的通信单元、控制单元和检测单元,所述控制单元包括液体输出模块;
    所述检测单元,在对液体供给设备进行控制时,检测启动所述通信单元的触发事件,以及在建立与液体供给设备间的数据连接后,检测启动控制单元中液体输出模块的触发事件;
    所述通信单元,在所述检测单元检测到启动所述通信单元的触发事件时,按照配置的通信方式建立与所述液体供给设备间的数据连接;
    所述液体输出模块,在建立与液体供给设备间的数据连接后,当检测单元检测到启动所述液体输出模块的触发事件时通过所述数据连接向所述液体供给设备发送控制命令,以控制液体供给设备进行液体输出。
  24. 根据权利要求23所述的控制装置,其特征在于,所述通信单元包括扫描模块和连接模块,所述扫描模块设置有图标,所述连接模块设置有显示界面;
    所述检测单元,具体是在检测到启动所述通信单元的触发事件时,检测所述应用的本地配置文件中保存的设备信息,当设备信息中包括当前的液体供给设备时,所述连接模块根据所述设备信息请求与当前的液体供给设备进行数据连接;
    所述检测单元,在连接失败或未在本地配置文件中检测到当前的液体供给设备的设备信息时,检测其图标的滑动方向和/或滑动距离,在所述滑动方向和/或滑动距离满足搜索条件时,所述扫描模块搜索可识别的液体供给设备,将搜索到的液体供给设备的设备信息显示在所述连接模块的显示界面上;
    以及,所述连接模块,接收用户通过点击显示界面中相应设备发送的设备信息,建立与该液体供给设备的数据连接,并将连接成功的液体供给设备的设备信息保存在本地配置文件中。
  25. 根据权利要求23所述的控制装置,其特征在于,每种液体输出模块设置有图标和相应的输出界面;
    所述检测单元,检测点击液体输出模块图标的触发事件;
    所述液体输出模块,在所述检测单元检测到点击其图标的触发事件时,进入该图标对应液体的第一输出界面;接收用户通过拖动第一输出界面中温度进度条和输出量进度条发送的指令,获知需要液体供给设备输出液体的温度和输出量,控制液体供给设备进行相应液体输出,并进入该液体对应的第二输出界面;在液体供给设备进行相应液体输出时,实时获取输出液体的温度和输出量,通过获取到的温度和输出量实时更新第二输出界面上温度进度条和液体输出量进度条上显示的进度信息。
  26. 根据权利要求23所述的控制装置,其特征在于,所述控制单元还包括:数据展示模块和清洗模块,所述通信单元还包括:断开重连模块;其中,所述数据展示模块设置有展示界面,所述清洗模块和所述断开重连模块设置有相应的图标;
    所述检测单元,检测液体供给设备发送的状态数据;
    所述数据展示模块,在所述检测单元检测到有液体供给设备发送的状态数据时,通过子线程接收并解析所述状态数据,通过主线程接收子线程解析的状态数据,并更新其展示界面;
    所述检测单元,检测点击触发图标的触发事件,该触发图标设置在应用中,并具有隐藏界面;在所述检测单元检测到点击触发图标的触发事件时,所述触发图标弹出其隐藏界面,并在隐藏界面上显示清洗模块和断开重连模块的图标。
PCT/CN2017/077327 2016-03-28 2017-03-20 液体供给系统、设备及其通信方法、装置和控制方法、装置 WO2017167057A1 (zh)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN201610184648.8A CN105736946B (zh) 2016-03-28 2016-03-28 一种液体供给设备
CN201610183484.7 2016-03-28
CN201610183699.9A CN105739341B (zh) 2016-03-28 2016-03-28 一种液体供给设备的通信方法、装置和液体供给系统
CN201610183699.9 2016-03-28
CN201610184648.8 2016-03-28
CN201610183484.7A CN105808068B (zh) 2016-03-28 2016-03-28 一种液体供给设备的控制方法和装置

Publications (1)

Publication Number Publication Date
WO2017167057A1 true WO2017167057A1 (zh) 2017-10-05

Family

ID=59963472

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/077327 WO2017167057A1 (zh) 2016-03-28 2017-03-20 液体供给系统、设备及其通信方法、装置和控制方法、装置

Country Status (1)

Country Link
WO (1) WO2017167057A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114198643A (zh) * 2021-12-10 2022-03-18 上海交通大学 多金属结核矿石采集试验装置的水路控制系统及控制方法

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1043051A (ja) * 1996-08-01 1998-02-17 Matsushita Electric Ind Co Ltd 電気湯沸かし器
CN200949925Y (zh) * 2006-09-27 2007-09-19 孟东昕 电热水器的水源转换装置
CN202754871U (zh) * 2012-04-19 2013-02-27 兰州联创环保节能设备科技有限公司 全自动直饮冷热纯净水机
CN105739341A (zh) * 2016-03-28 2016-07-06 北京古点科技有限公司 一种液体供给设备的通信方法、装置和液体供给系统
CN105736946A (zh) * 2016-03-28 2016-07-06 北京古点科技有限公司 一种液体供给设备
CN105808068A (zh) * 2016-03-28 2016-07-27 北京古点科技有限公司 一种液体供给设备的控制方法和装置
CN205606190U (zh) * 2016-03-28 2016-09-28 北京古点科技有限公司 一种液体供给设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1043051A (ja) * 1996-08-01 1998-02-17 Matsushita Electric Ind Co Ltd 電気湯沸かし器
CN200949925Y (zh) * 2006-09-27 2007-09-19 孟东昕 电热水器的水源转换装置
CN202754871U (zh) * 2012-04-19 2013-02-27 兰州联创环保节能设备科技有限公司 全自动直饮冷热纯净水机
CN105739341A (zh) * 2016-03-28 2016-07-06 北京古点科技有限公司 一种液体供给设备的通信方法、装置和液体供给系统
CN105736946A (zh) * 2016-03-28 2016-07-06 北京古点科技有限公司 一种液体供给设备
CN105808068A (zh) * 2016-03-28 2016-07-27 北京古点科技有限公司 一种液体供给设备的控制方法和装置
CN205606190U (zh) * 2016-03-28 2016-09-28 北京古点科技有限公司 一种液体供给设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114198643A (zh) * 2021-12-10 2022-03-18 上海交通大学 多金属结核矿石采集试验装置的水路控制系统及控制方法

Similar Documents

Publication Publication Date Title
WO2017071612A1 (zh) 一种物联网洗衣机控制方法、控制系统及洗衣机
US20190029464A1 (en) Automatic tea maker
CN105030063A (zh) 一种基于蓝牙控制的即热式智能饮水机系统及其控制方法
CN105736946B (zh) 一种液体供给设备
WO2017167057A1 (zh) 液体供给系统、设备及其通信方法、装置和控制方法、装置
CN205538338U (zh) 一种固定式水质采样器
CN207313119U (zh) 一种自动售酒的酒坛
CN205606190U (zh) 一种液体供给设备
CN105251739B (zh) 一种用于灭菌系统的清洗工艺
CN202015060U (zh) 一种即热式饮水机
CN108903647A (zh) 一种饮用水快速降温装置
WO2021237597A1 (zh) 一种智能家居饮水机
CN218355751U (zh) 一种商用远程控制智能节能饮水机
CN209087060U (zh) 一种自动售酒机
CN105919430A (zh) 一种合理利用峰谷电的智能节电储水式饮水机及控制方法
CN110279906A (zh) 一种腹膜透析设备及透析液袋组件
CN206739598U (zh) 一种远程控制的节能健康电热水器
CN208481115U (zh) 一种自动控制装置及饮水机
CN105808068B (zh) 一种液体供给设备的控制方法和装置
CN105739341B (zh) 一种液体供给设备的通信方法、装置和液体供给系统
CN204318439U (zh) 网络化的多功能饮料机
CN204113606U (zh) 一种水泵定时定温控制器
CN205493375U (zh) 一种嵌入式养生茶壶和煮茶锅一体装置
CN219303090U (zh) 一种非接触式的多功能智能存取外卖柜控制装置
WO2022237437A1 (zh) 一种衣物处理设备及采用其控制远程控制端的方法

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17773087

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17773087

Country of ref document: EP

Kind code of ref document: A1