360 likes | 566 Views
ZIGBEE. 1. Equipment. FT-6200 High-power Zigbee Starter Kit. Equipment (cont’). FT-6250 Base Development Board. Equipment (cont’). FT-6251 Sensor Development Board Temperature range 0℃ ~ 70℃ Humidity range 0% ~ 95%. Experiment: Setup environment. Goal Setup environment
E N D
ZIGBEE 1
Equipment • FT-6200 High-power Zigbee Starter Kit
Equipment(cont’) • FT-6250 • Base Development Board
Equipment(cont’) • FT-6251 • Sensor Development Board • Temperature range • 0℃ ~ 70℃ • Humidity range • 0% ~ 95%
Experiment: Setup environment • Goal • Setup environment • Install the development tool • Understand the program • Build the program • Burn image file into Zigbee
Experiment: Setup environment • Jennic SDKhas two development tools • Command Line Interface (CLI) • Integrated Development Environment (IDE)
Experiment: Setup environment ? • Install JN-SW-4031-SDK-Toolchain-v1.1.exe • JN-SW-4030-SDK-Libraries-v1.4.exe • Download from http://www.jennic.com/“Support / software”
Experiment: Setup environment • Install JN-SW-4027-SDKwithCLI.msi • Download from http://www.jennic.com/“Support / software”
Experiment: Setup environment • 將範例程式解壓縮至C:\Jennic\cygwin\jennic\SDK\Application • ExecuteCode::Blocks
Experiment: Setup environment • Execute Jennic Flash Programmer
Experiment: Setup environment • Installation document • CDROM\Document\Installation\JN-UG-3035-SDK-Installation-1v2.pdf
Experiment: LED Flash • Goal • Understand the program • Modify the program • Step1: LED A flash twice, go to step2 • Step2: LED B flash twice, go to step1
Start AppColdStart AppWarmStart InitSystem While(true) Yes No Timer? Yes True False Flag LED1 on LED2 off LED1 off LED2 on Experiment: LED Flash • Program
Experiment: LED Flash • Demo
Experiment: LED Flash • Function library • CDROM\Documents\Board\JN-RM-2001-Integrated-Peripherals-API-2v3.pdf
Experiment: Button Control LED • Goal • 在 FT625x 無線傳輸設備上學習使用按鈕的方式以控制LED燈號。 • Understand the program • Modify the program • Step1: Press button A, start LED flash • Step2: Press button B, stop LED flash • Draft flow chart of the modified program
Experiment: Button Control LED • Execute Code::Blocks
Experiment: UART Control LED • Goal • 在 FT625x無線傳輸設備上學習可以透過UART通訊從設備上取得一些資訊回饋(feedback)。 • Understand the program • Modify the program • PC sends message through serial port to turn on\off the LED
Experiment: UART Control LED • Execute Code::Blocks
Experiment: UART Control LED • Demo Terminal Serial Port Typing in HyperTerminal:ex: aaaaabbbcc FT 6250 UART which UART ASCII code
Experiment: UART Control LED • 使用超級終端機,必須做相關設定如下: 38400 bps, 8 data bits, no parity, 1 stop bit, and no handshaking. • 燒錄程式到FT-6200無線傳輸設備後,務必先重置電源,再接上與超級終端機的連線。
Experiment: Wireless Control LED • Goal • 在 FT625x無線傳輸設備上學習如何使用RF無線傳輸,形成小型無線網路。 • Understand program • Modify the program • PC sends message through wireless to turn on\off the LED • Write the difficult point down while you are experimenting
Experiment: Wireless Control LED • Execute Code::Blocks
Experiment: Wireless Control LED • Architecture
Experiment: Sensor • Goal • 學習如何使用Zigbee裝置收集週遭環境的溫度和溼度,並透過所在無線網路傳遞這些資訊 • Understand program • Modify the program • 讓end device定期回報所感測到的溫溼度數據到coordinator • 設定溫溼度MAX的警告條件 • 溫度警告 - LED_0 閃爍 • 濕度警告 - LED_1 閃爍 請攜帶吹風機
Experiment: Sensor • Execute Code::Blocks
Experiment: Sensor • Demo
Experiment: Flow Testing • Goal • 測試Zigbee Coordinator和End Device的最高傳輸速度 • 速度是否可達到20k-250k bps,如不行請評估原因 • Devices • Zigbee • Smartbits 600
Experiment: Flow Testing SmartBits 600