How to: execute the demo HVAC on lwIP TCP/IP Stack in KSDK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to: execute the demo HVAC on lwIP TCP/IP Stack in KSDK

How to: execute the demo HVAC on lwIP TCP/IP Stack in KSDK

Because I receive feedback from customers, that it is sometimes complicated to execute this demo,
I created short tutorial how to set it and execute it in KDS 3.0.0.

 

1. Physical connection

In case of TWR-K64F, is needed TWR-SER and correctly set jumpers.

64966_64966.pnghvac_0.png

and for TWR-K64F is needed to set jumper J6 to pins 1 and 2.

 

Be sure, that the TWR-SER and TWR-K64F is correctly connected (by white line)

65098_65098.JPGIMG_2646.JPG

65101_65101.JPGIMG_2643.JPG

2. Network configuration

For changing IP address, please go to Network and Sharing Center, choose Change adapter settings

Right click on Properties and change the IP address (TCP/IPv4) to 192.168.2.100

65084_65084.pnghvac_7.png

65085_65085.pnghvac_8.png65086_65086.pnghvac_9.png

 

3.  Downloading the demo to TWR-K64F

Go to KDS, File - Import and browse the demo, which is located at C:\Freescale\KSDK_1.2.0\examples\twrk64f120m\demo_apps\web_hvac\web_hvac_mqx\kds

65087_65087.pnghvac_1.png65088_65088.pnghvac_2.png

Import all libraries and the demo project and see imported sets in Project Explorer

65089_65089.pnghvac_3.png65090_65090.pnghvac_4.png

Debug the libraries first and then the project.

65091_65091.pnghvac_5.png

Be sure, what debugger is used on the board and set the debugger.

65092_65092.pnghvac_11.png

65093_65093.pnghvac_12.png65094_65094.pnghvac_13.png

And now go to Resume!

65095_65095.pnghvac_14.png

 

4. Test the connection

Go to cmd and ping to 192.168.2.102 (address of HVAC Server)

65102_65102.pngping.png

 

5. HVAC Web Server.Go to browser and type the address 192.168.2.102, you will see page for HVAC Web Server.

65096_65096.pnghvac_15.png

Go to HVAC Demo - HVAC Status and now you can observe the temperatures by pressing button.

There are set combinations which means see below.

  • 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.

65097_65097.pnghvac_16.png

So, if is needed increased temperature, push the first button (SW1) and Fan and Heat mode run. LED1 and LED2 will be light on and the temperature will increase.

65100_65100.pnghvac_17.png

 

Enjoy!

Iva

Labels (1)
No ratings
Version history
Last update:
‎08-18-2015 10:04 AM
Updated by: