自动咖啡机项目-软件规格说明书

全自动咖啡机是整个咖啡机行业里发展最快的。从1999年GAGGIA发布了第一台能制作Espresso(意式浓缩咖啡)的全自动咖啡机,各个不同的咖啡机厂商都在致力于研究开发,使得其功能不断的完善,已经有能加热牛奶并把它按比例配在咖啡里的高端机型面市。好的全自动咖啡机制作出来的咖啡完全可以和商用专业机相媲美,而因其能自动磨豆且相对于专业机来说价格又低很多,所以从问世以来便一直受到家庭及办公场所的青睐。

1.3 定义和缩写

自动咖啡机能依靠机械电动磨粉、填充和烧煮咖啡,全部免除了手工的操作。或称全自动咖啡机,内部装有电子控制系统,用来控制磨豆粗细的调节,每杯的水量。

Automatic Coffee Machine (ACM)

1.4 参考资料

自动咖啡机_百度百科
全自动咖啡机_百度百科

2. 任务概述

2.1 目标

制作流程为:Feeder机构取一空杯放到传送带上,传送带把空杯送到龙头下,牛奶、糖浆、浓缩咖啡液和热水按照配方比例混合后装入空杯,传送带把满杯的咖啡送到用户取杯处,用户取走咖啡后,自动咖啡机可以继续响应面板上的按钮制作下一杯咖啡。

2.2 用户的特点

身体健康,手指无残疾现象。有喝咖啡的习惯,并且愿意接受现冲咖啡。

2.3 假定和约束

  • 实验条件: 一块STM32的板子。可编程的的电脑。Github分布式协作管理。
  • 开发期限:2017年10月完成软件开发,2017年11月完成集成调试。
  • 开发流程:按照软件流程规范,进行需求分析文档撰写和评审、系统架构方案撰写和评审、单元模块代码开发和单元测试、软件集成测试、现场调试和bug修复等工作。

3. 需求规定

3.1 功能需求规定

3.1.1 功能1–美式咖啡

  • 功能描述:

    美式咖啡的原料就是沸水和咖啡粉,所以只需要Coffee 和 Water Part 正常工作即可。

  • 输入:按下“美式咖啡”
  • 参数:无

  • 处理过程:Feeder取空杯,传送带传动。两个Part的阀门打开,加热器加热。按照比例调节咖啡粉和沸水的配比。
  • 输出:美式清咖

3.1.2 功能2–拿铁

  • 功能描述:

    拿铁的原料是咖啡粉,沸水,牛奶。所以只需要Coffee、Milk 和 Water Part 正常工作即可

  • 输入:按下“拿铁”
  • 参数:无

  • 处理过程:Feeder取空杯,传送带传动。三个Part的阀门打开,加热器加热。按照比例调节咖啡粉和沸水以及牛奶的配比。
  • 输出:拿铁咖啡

3.1.3 功能3–卡布奇诺

  • 功能描述:

    卡布奇诺的原料是咖啡粉,沸水,糖、牛奶。所以需要Coffee、Milk、Sugar 和 Water Part 正常工作方可运行。

  • 输入:按下“卡布奇诺”
  • 参数:无

  • 处理过程:Feeder取空杯,传送带传动。四个Part的阀门打开,加热器加热。按照1:1:1比例调节咖啡粉和糖以及牛奶的配比。
  • 输出:卡布奇诺

3.2 性能需求的规定

3.2.1 精度要求

由于实力有限,目前只规定了产品类型,具体的口味清淡暂时无法顾及

3.2.2 实时性要求

对于实时性的需求不大,反应时间控制在五秒内即可。生产过程不予考虑

3.2.3 开放性和扩展性

后期添加产品类型的浓淡之分。本质上是添加了不同的输入按钮。或者可以添加二级输入。需要扩展命令集。

3.3 输入输出要求

硬件接口:

按钮

软件接口:

I/O接口

3.4 数据存储和管理能力要求

数据保存

在按钮被按下后,需要保存当前的输入。确保不会因为生产期间再次被按下按钮从而产生信 冲突。

3.5 故障和错误处理要求

不存在的。

3.6 其他特殊要求

要求生产过程中不接受按钮的信 量,短暂屏蔽,生产完成后才可以接受新的输入。

4. 用例

4.1 用例1:***操作过程

5. 运行环境规定

5.1 硬件设备及接口

STM32、PLC可编程控制器

5.2 软件平台及配置

Matlab/Simulink物理建模以及代码模块生成、gcc-ubuntu整体代码生成

5.3 通信协议

超文本咖啡壶控制协议(英文:Hyper Text Coffee Pot Control Protocol,HTCPCP)是一种用于控制、监测和诊断咖啡壶的协议。

6. 附录

6.1.1 The BREW method, and the use of POST

Commands to control a coffee pot are sent from client to coffee
server using either the BREW or POST method, and a message body with
Content-Type set to “application/coffee-pot-command”.

A coffee pot server MUST accept both the BREW and POST method
equivalently. However, the use of POST for causing actions to happen
is deprecated.

Coffee pots heat water using electronic mechanisms, so there is no
fire. Thus, no firewalls are necessary, and firewall control policy
is irrelevant. However, POST may be a trademark for coffee, and so
the BREW method has been added. The BREW method may be used with
other HTTP-based protocols (e.g., the Hyper Text Brewery Control
Protocol).

6.1.2 GET method

In HTTP, the GET method is used to mean “retrieve whatever
information (in the form of an entity) identified by the Request-
URI.” If the Request-URI refers to a data-producing process, it is
the produced data which shall be returned as the entity in the
response and not the source text of the process, unless that text
happens to be the output of the process.

In HTCPCP, the resources associated with a coffee pot are physical,
and not information resources. The “data” for most coffee URIs
contain no caffeine.

6.1.3 PROPFIND method

If a cup of coffee is data, metadata about the brewed resource is
discovered using the PROPFIND method [WEBDAV].

6.1.4 WHEN method

When coffee is poured, and milk is offered, it is necessary for the
holder of the recipient of milk to say “when” at the time when
sufficient milk has been introduced into the coffee. For this
purpose, the “WHEN” method has been added to HTCPCP. EnoughSay
WHEN.

文章知识点与官方知识档案匹配,可进一步学习相关知识C技能树首页概览114088 人正在系统学习中 相关资源:渣浆泵的计算机选型软件及应用.rar-制造文档类资源-CSDN文库

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2017年9月20日
下一篇 2017年9月20日

相关推荐