Giter Site home page Giter Site logo

air-conditioner's Introduction

分布式温控系统设计与实现

2017 BUPT 软件工程大作业

工程代码及相关文档 基于 MIT 协议 发行

工程说明

开发环境

  • 语言:C++ 14 / Qt (GUI Only)
  • 系统:
    • Windows 10
    • Ubuntu 16.04
  • 依赖:
  • 编译器:
    • gcc/clang(命令行 Linux)
    • Visual Studio 2017 - MSVC 15(命令行 Windows)
    • Qt 5(图形化)
  • 数据库:

项目文件

编译前,需要解压第三方库的源文件:

源代码文件

模块依赖图

Dependency

协议文档

2017 分布式温控系统 F 组 通信协议

Json 格式

PACKET = JSON_REQ | JSON_RES \0

传输的 socket 字符流以 空字符 '\0' 结束

从控机报文 (Request)

JSON_REQ = {"request":ACTION, "param":PARAM}

ACTION = "auth" | "pulse"

1) ACTION = "auth"
  PARAM = {"room":ROOM_ID, "guest":GUEST_ID}
2) ACTION = "pulse"
  PARAM = {"room":ROOM_ID, "current":TEMP,
           "target":TEMP, "wind":WIND}

ROOM_ID = [string]
GUEST_ID = [string]
TEMP = [double]
WIND = 1 | 2 | 3

主控机报文 (Response)

JSON_RES = {"success":SUCCESS, "response":RESPONSE}

SUCCESS = true | false

1) SUCCESS = false
  RESPONSE = ERR_MSG
2) SUCCESS = true
  RESPONSE = {"hasWind":HAS_WIND, "energy":ENERGY, "cost":COST,
              "on":SERVER_ON, "mode":MODE}

ERR_MSG = [string]
HAS_WIND = true | false
ENERGY = [double]
COST = [double]
SERVER_ON = true | false
MODE = 0 | 1

相关文档

  1. 需求获取
  2. 面向对象需求分析
  3. 结构化需求分析
  4. 面向对象设计
  5. 结构化设计

贡献者

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.