330 likes | 503 Views
Ubiquitous Computing Practice ( XBee - Communication). Youn-Hee Han, In- Seok Kang { yhhan , iseka }@koreatech.ac.kr Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology http://link.koreatech.ac.kr. Contents. Introduction
E N D
Ubiquitous Computing Practice(XBee- Communication) Youn-Hee Han, In-Seok Kang {yhhan, iseka}@koreatech.ac.kr Laboratory of Intelligent NetworksAdvanced Technology Research CenterKorea University of Technology http://link.koreatech.ac.kr
Contents • Introduction • XBee Module, Shield • Setting Xbee Module • X-CTU software • XBee Communication • Xbee Communication Test • Simple Example • Echo server/client • Multi Hop Communication
Introduction • 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 • XBee Explorer USB • Install the firmware, changing setting
Introduction-XBee • XBee • These modules use the IEEE 802.15.4 networking protocol for fast point-to-multipoint or peer-to-peer networking • Chip Antenna, Wire Antenna…
Introduction- XBeeShield • XBee Shield
X-CTU program 을 이용하여 Xbee module 를 설정한다. Setting xbee module
XBee setting coordinator Router & end device
Xbee module을 Coordinator, Router/End Device로 설정 Xbee Module Setting
API Check v
Router, End device • Coordinator 연결을 유지하고 설정 한다. • Coordinator 설정 후 PAN ID 값에 맞춘다.
Router/End device AP = 2 로 설정 후 Write
Device address Device Address 1. Serial Number High 2. Serial Number Low
Xbee Communication TestSimple ExampleEcho server/clientMulti Hop Communication Xbee Communication
Xbee echo server/client Coordinator or End Device Coordinator or End Device Send Data Response
Xbee Library • Download xbee Library • 압축을 푼 후 Xbee폴더를 arduino-1.0.4\libraries 폴더에 넣는다.
Xbee Library (Series 2_Tx) Download Series 2_Tx example Upload to arduino
Upload Rx Code • Downloadserial2_rx_example.ino • And Upload to Arduino Coordinator End Device
도전과제 • Xbee통신으로 LED를 제어하기 • End Device에서 데이터를 전송하여 Coordinator에서 LED 제어하기 • Ex) “5” 라는 데이터 전송 시 5개의 LED on • Ex) “3” 라는 데이터 전송 시 3개의 LED on • 온도, 조도, 습도 센서 값을 전송하기 • End Device 에서 Coordinator 로 전송하기