Upload
virginia-dawson
View
218
Download
2
Tags:
Embed Size (px)
Citation preview
Youn-Hee Han, In-Seok Kang{yhhan, Iseka}@kut.ac.kr
Laboratory of Intelligent NetworksAdvanced Technology Research Center
Korea University of Technologyhttp://link.kut.ac.kr
Ubiquitous Computing Practice(xbee - Communication)
/ 322
IntroductionXbee Module, ShieldSetting Xbee Module
X-CTU software
Xbee Communication Xbee Communication Test Simple Example Echo server/client Multi Hop Communication
Contents
/ 324
X-CTU software This is what you need to configure the Xbee modules.
Xbee modules Series 1(802.15.4), Series 2(zigbee), DigiMesh
Xbee Explorer USB, Xbee Shield
Introduction
/ 326
Xbee These modules use the IEEE 802.15.4 networking proto-
col for fast point-to-multipoint or peer-to-peer network-ing
Chip Antenna, Wire Antenna…
Introduction-Xbee
/ 3223
XBEE COMMUNICATION
Xbee Communication TestSimple ExampleEcho server/clientMulti Hop Communication
/ 3226
Xbee Communication Test
void setup() { Serial.begin(9600);}void loop(){ Serial.println(“hello world”); delay(1000);}
/ 3228
Sketch
void setup() { Serial.begin(9600); }
void loop() { while(Serial.available()){
char getData = Serial.read();if(getData == 'a'){
Serial.print(‘a’);}else if(getData == 'b'){
Serial.print(‘b’);}
}}
/ 3231
Xbee 통신으로 LED 를 제어하기 Coordinator 에서 데이터를 전송하여 Router 에서 LED
제어하기 Ex) “5” 라는 데이터 전송 시 5 개의 LED on Ex) “3” 라는 데이터 전송 시 3 개의 LED on
온도 , 조도 , 습도 센서 값을 전송하기 Router 에서 Coordinator 로 전송하기
도전과제