Kinetis SDK v.1.2 Demo Applications User's Guide  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Heating, Ventilating, and Air Conditioning on lwIP TCP/IP Stack

This demo application demonstrates the Heating, Ventilating, and Air Conditioning demo on lwIP TCP/IP stack with different RTOSes.

Overview

This is simulation of HVAC system with web server using lwIP TCP/IP stack on different RTOSes. The user uses an Internet browser to send a request for connection, to set up HVAC system on board. The board acts as an HTTP server and sends a Web page back to the PC. The user also can directly set up desired temperature by pressing switches on board and observe LEDs status.

Supported RTOS

Supported Hardware

These Freescale Freedom development platforms and Tower System modules are supported by the Kinetis SDK web_hvac demo.

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Software requirements

Getting Started

Prepare the Demo

  1. Connect a USB cable between the PC host and the OpenSDA USB port on the board.
  2. Open a serial terminal with the following settings:
    • 115200 baud rate
    • 8 data bits
    • No parity
    • One stop bit
    • No flow control
  3. Download the program to the target board.
  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

For detailed instructions steps, see a Kinetis SDK User's Guide for your board.

Network Configuration

Configure the IP address of PC network adapters as shown: IP address - 192.168.2.100 Subnet Mask - 255.255.255.0

Run the demo

  1. Download the program to the target board, which should be installed in Tower System or Freescale Freedom.
  2. Connect the Ethernet cable between the PC and the board.
  3. When successfully connected, reset the board to run the demo.
  4. Open the PC command window, type in "ping 192.168.2.102" to test whether lwIP stack is running.
  5. Input "192.168.2.102" in the URL of an Internet browser on a PC. If successful, the web page which the board returns opens in the browser.
  6. In the browser, click on "HVAC Status" option to observe the current information on the target board.
  7. In the browser, Selected "Change Settings" option, input new setting then click "Set" button, the browser loads the status page. If successful, the desired temperature changes to a new setting and the actual temperature increases/decreases until it reaches desired temperature:
    • Change the desired temperature to a greater value and HVAC mode to "Heat", the actual temperature increases until it meet configured desired temperature.
    • Change the desired temperature to a lower value and HVAC mode to "Cool", the actual temperature decreases until it meets the configured desired temperature
  8. On the other hand, the desired temperature can be changed by pressing the switches on board. The LEDs (if they exist) on the board represent HVAC system's state:
    • LED1: Simulate the Fan's state
    • LED2: System in the Heat mode
    • LED3: System in the Cool mode
    • LED4: Simulate the heart beat, increase real temperature (i.e., by hair dryer) to see the LED4 go faster and decrease temperature to see it slow down.