- TM uu h6a: thy& &rang Iva chon boi giao thirc co anh huemg tea hieu nang mang ve dO tre, hru luqng thrc va dO tier kiem nang luqng DE dat tE
Chirong 3: Tim hieu cfich ho3t dOng ciia giao thtit dinh tuyen ARPEES
dinh tuyen ARPEES
Boat dOng cua ARPEES duce chia thinh cac yang, m& yang bao gem 2 pha duce the hien trong hinh 2 : pha thanh lap cvm vi lva chgn cvm tnremg theo sau ben pha truyen tai der lieu trong d6 der lieu dugc truyen ten tram gOc qua cac net chuyen giao.
3.1. Pha thInh gip cum vi thu4t toin Iva chyn cum truirng:
Ban du, tat ca cac nut mango gang thai nahi de tiet lciem nang lugng. Khi mot sv kien duqc phat hien trong mpg, cac nut gan vi tri xay ra sv kien duqc kich hoot vi se,tien hanh do dac thuOc tinh dA duqc chi dinh cam hien. Neu gia nhan to cam bien cao ban mirc ngutmg dinh tusk, cac net d6 se dfirc thi thuot town nh6m cvm vi chqn cvm truemg. Cac nut Thing ba g6i tin REQCLUSTER tai cac nut hang x6m. Ban tin nay bao gem ID dm not, mirc nAng luqng con lai va thong tin mil to dor lieu cam bien duqc sv kien:
REQCLUSTER (ID(i),ERes(i),I(01 (5)
Sau do cac nut se dat bt) dem thati gian toi U. Trong khoang then gian tl,moi nut se nhan ban tin REQCLUSTER tir tat ca cac nut trong cum vi thvc thi ham chqn Cluster_Head nhu sau:
FcH(i) = ER.(i) x I(i) , vgi mqi i thuOc X (6) MaxFCH(i) -> Cluster Head
Trong do X la tap cac nut duqc kich hoot bed su kien.
Khi khoang theri gian t 1 k'e't thuc, nut co gia tnj F cH(i) len nhat se tv bau no lam cvm trueing. Cum twang se luu tat ID cita tat ca cac nut trong tap cac nut duce kich hoot X, vi lap 1 lich TDMA de sip xep cho timg nut lan Itrqt girl du lieu toi cvm twang. Chtic nAng cim lich la tranh viec xung dOt trong truyen tai dir lieu va dong bQ h6a gift cac nut ben trong cvm. Cac nut con 1ai ty dat minh lam nut thanh vien vi cher dqi de nhan lich TDMA fir cum tnremg. Vgi Etch di ducat sip xep, cac nut co the tit cac thanh phan thu nhan tin hieu ngoai trir trong khoang thin gian truyen tai dir lieu.
(c) (d)
Hinh 3.2: Hinh thanh cym chzu tren sv kin viz thigh town lva ch9n cym triton
TO THE SECOND STAGE
Hinh 3.1: Luu do aia trgng that th& nhal
(a) (b)
L
BEGIN
Broadcast REQ_CLUSTER
The first stage
Back to Sleep/listen mode
Wait G to receive all REQ_CLUSTER (i)
Vi e X)
Sense data and wait for time slot i to transmit do
to CH
N N N