家电科技 ›› 2023, Vol. 0 ›› Issue (zk): 448-452.doi: 10.19784/j.cnki.issn1672-0172.2023.99.102

• 第四部分 健康适老与智能 • 上一篇    下一篇

空调嵌入式软件分层方法与实现

王平, 张永良   

  1. 海信空调有限公司 山东青岛 266100
  • 出版日期:2023-12-12 发布日期:2023-12-26
  • 作者简介:王平,硕士学位。研究方向:嵌入式软件设计及应用。E-mail:wangping@hisense.com。

Hierarchical method and implementation of embedded software for air conditioning

WANG Ping, ZHANG Yongliang   

  1. Hisense Air conditioning Co., Ltd. Qingdao 266100
  • Online:2023-12-12 Published:2023-12-26

摘要: 提出一种空调嵌入式软件分层设计方案。根据空调软件的特点,并结合状态机的设计思路,依据调用层次由上至下分为:任务调度层、功能逻辑层、部件驱动层和硬件配置层构成。它们之间的调用规则是:上层只能调用其下层的函数,下层不能调用其上层的函数。各层直接之间通过接口进行数据传递。只要接口不变,其中一层需要修改时其他层的逻辑不受影响。

关键词: 嵌入式软件, 架构设计, 状态机

Abstract: Presents a layered design scheme of embedded software for air conditioning. According to the characteristics of air conditioning software and the design idea of state machine, this software is divided into task scheduling layer, function logic layer, component driver layer and hardware configuration layer. The rule is: the upper layer can only call the function of its lower layer, and the lower layer can’t call the function of its upper layer. Data is transmitted between the layers by the interface. When one layer needs to be modified, the logic of the other layers is not affected as long as the interface is unchanged.

Key words: Embedded Software, Architecture Design, State Machine

中图分类号: