device in tal ed in the field, whic is resp n ible for forwardin the sen or data, alarm an network management related information of the f ield device to the gateway device, or f orwardi
Trang 2THIS PUBLICATION IS COPYRIGHT PROTECTED
Copyr ight © 2 15 IEC, Ge e a, Switzer la d
Al rig ts r es r ve Unle s oth rwis s e ifi d, n p rt of this p blc tio ma b r epro u e or uti z d in a y form
or b a y me n , ele tr onic or me h nic l in lu in p oto o yin a d micr ofim, with ut p rmis io in wr itin from
eith r IEC or IEC's memb r Natio al Commite in th c u tr y of th re u ste If y u h v a y q e tio s a o t IEC
c p r i ht or h v a e q ir y a o t o tainin a ditio al ri hts to this p blc tio , ple s c nta t th a dr es b low or
y ur lo al IEC memb r Natio al Commite for ur th r informatio
Th Intern tio al Ele trote h ic l Commis io (IEC) is th le din glo al or ga iz tio th t pr ep res a d p bls e
Internatio al Sta d r ds for al ele tri al ele tr onic a d relate te h olo ie
Abo t IEC p blc tio s
Th te h ic l c nte t of IEC p blc tio s is k pt u d r c n ta t r eview b th IEC Ple s ma e s re th t y u h v th
late t e itio ,a c rr ig n a or a ame dme t mig t h v b e p bls e
IEC Cat alo ue - webst ore.e ch/ cat alo ue
Th st an -alo e a plc t io for c n ultin t he e tire
biblo ra hic l informat io o IEC Intern tio al St an ard ,
Te h ic l Sp cific tio s, Te h ic l R ep rts a d ot her
d c me ts A v aia le for P , Ma OS, A ndroid Ta let s a d
iPa
IEC p blc t i ns s arch - www ie ch/ se rch u
Th a v an e s arc e a le t o fin IEC p blc t io s b a
variety of crit eria (efere c n mb r, t ext, t ec nic l
c mmitt e,…) It als gives informatio o projec t s, re la e
Ele t ro edia - www ele t ro edia.org
Th world's le din o ln dic t io ary of elec t ro ic a d
ele t ric l t erms c nt ainin more th n 3 0 0 terms a d
d finitio s in En ls a d Fre c , wit h e uiv ale t t erms in 15
a ditio al la g a e Als k nown a t he Int ern t io al
Elec t rot ec nic l Vo a ulary (IEV ) o ln
IEC Glos ar y - st d.e ch/ glos ary
More t ha 6 0 0 ele t rot ec nic l termin lo y e t rie in
En ls a d Fre c e tra t ed fom t he Terms a d Definitio s
cla s of IEC p blc t io s is u d sin e 2 0 Some e t rie
h v e b e c le t ed fom e rler p blc tio s of IEC TC 3 ,
7 ,8 a d CISPR
IEC Cust omer Servic Cent re - webst ore.ec ch/ csc
If y ou wis to giv e u your fe d a k o t his p blc tio or
n e furt her a sista c , ple s c nta t t he Cu tomer Serv ic
Ce t re:c c@ie c
Trang 4FOREWORD 12
1 Sco e 14
2 Normative ref eren es 14
3 Terms, def i ition , a breviation , an con ention 14
3.1 Terms an def i ition 14
3.2 Ab reviation 17
3.3 Con ention 19
4 Data codin 2
4.1 Overview 2
4.2 Basic data typ codin 21
4.2.1 Integer codin 21
4.2.2 Un ig ed codin 21
4.2.3 Flo t codin 2
4.2.4 Octetstrin codin 2
4.2.5 Bit Field codin 2
4.2.6 TimeData codin 2
4.2.7 KeyData codin 2
4.3 Stru tured data typ codin 2
4.3.1 Stru ture typ codin 2
4.3.2 List typ codin 2
5 WIA-FA overview 2
5.1 Device typ s 2
5.1.1 Host computer 2
5.1.2 Gateway device 2
5.1.3 Ac es device 2
5.1.4 Field device 2
5.1.5 Han held device 2
5.2 Network to olog 2
5.3 Protocol arc itecture 2
6 Sy tem management 2
6.1 Overview 2
6.2 Device Management Ap lcation Proces 2
6.2.1 Network manager 31
6.2.2 Sec rity manager 31
6.2.3 Network management mod le 31
6.2.4 Sec rity management mod le 31
6.2.5 DMAP state mac ines 31
6.3 Ad res in an ad res as ig ment 4
6.4 Commu ication resource al ocation 4
6.4.1 General 4
6.4.2 Commu ication resource al ocation 4
6.5 Joinin an le ve proces of f ield device 4
6.5.1 Joinin proces of a field device 4
6.5.2 Commu ication resource al ocation to f ield device 4
6.5.3 L avin proces of a field device 4
6.6 Network p r orman e monitorin 4
Trang 56.6.1 Device statu re ort 4
6.6.2 Chan el con ition re ort 4
6.7 Management information b se an services 4
6.7.1 Management information b se 4
6.7.2 MIB services 5
7 Ph sical layer 61
7.1 General 61
7.2 General req irements b sed on IEEE STD 8 2.1 -2 12 61
7.3 Ad itional req irements 6
7.3.1 General 6
7.3.2 Freq en y b n 6
7.3.3 Chan el bitma 6
7.3.4 Tran mis ion p wer 6
7.3.5 Data rate 6
8 Data Lin L yer 6
8.1 General 6
8.1.1 Protocol arc itecture 6
8.1.2 WIA-FA s p r rame 6
8.1.3 Commu ication b sed on multiple ac es devices 6
8.1.4 Time s n hronization 6
8.1.5 Ag regation/Disag regation 6
8.1.6 Retran mis ion 7
8.2 Data ln s b-layer data services 7
8.2.1 General 7
8.2.2 DLDE-DATA.req est primitive 7
8.2.3 DLDE-DATA.in ication primitive 7
8.2.4 Time seq en e of DL data service 7
8.3 Data ln s b-layer management services 7
8.3.1 General 7
8.3.2 Network dis overy services 7
8.3.3 Time s n hronization services 7
8.3.4 Device joinin services 8
8.3.5 Device statu re ort services 8
8.3.6 Chan el con ition re ort services 8
8.3.7 Remote at ribute get services 8
8.3.8 Remote at ribute config ration services 9
8.3.9 Device le vin services 9
8.4 DL f rame f ormats 9
8.4.1 General f rame f ormat 9
8.4.2 Date f rame f ormat 9
8.4.3 Ag regation fame format 9
8.4.4 NACK f ame f ormat 9
8.4.5 GACK f ame f ormat 9
8.4.6 Be con f rame f ormat 9
8.4.7 Join req est f rame f ormat 9
8.4.8 Join resp n e f ame format 9
8.4.9 L ave req est f rame format 9
8.4.10 Device statu re ort fame format 9
8.4.11 Chan el con ition re ort f ame format 9
Trang 68.4.12 Time s n hronization req est f rame f ormat 9
8.4.13 Time s n hronization resp n e f ame format 9
8.4.14 Remote at ribute get req est f rame f ormat 10
8.4.15 Remote at ribute get resp n e f rame format 10
8.4.16 Remote at ribute set req est f rame f ormat 101
8.4.17 Remote at ribute set resp n e fame format 101
8.5 Data ln layer state mac ines 101
8.5.1 DL state mac ine of ac es field 101
8.5.2 DL state mac ine of f ield device 10
8.5.3 Fu ction u ed in DL state tran ition 1 0
9 Wired sp cification b twe n GW an AD 1 1
10.5.2 User a pl cation o ject 1 9
10.5.3 IO data images on gateway device 1 9
10.5.4 Alarm mec anism 12
10.5.5 Ap l cation config ration proces 12
10.6 Ap l cation services 12
10.6.1 Con rmed services an u con rmed services 12
Trang 71 2.2 Key esta ls service 15
1 2.3 Key update service 16
1 2.4 Sec rity alarm service 16
1 3 Sec re join 16
1 3.1 General 16
1 3.2 Sec re join proces of FD 16
1 4 Key management 16
1 4.1 General 16
1 4.2 Key esta ls proces 16
1 4.3 Key update proces 16
1 5 DL sec re commu ication .16
1 6 Sec rity alarm 16
1 7 Sec re f ame format 16
1 7.1 General sec re DL f rame f ormat 16
1 7.2 Sec re aggregation f rame f ormat 171
1 7.3 Key esta ls req est f ame format 17
1 7.4 Key esta ls resp n e f ame f ormat 17
1 7.5 Key update req est f rame f ormat 17
1 7.6 Key update resp n e f ame f ormat 17
1 7.7 Sec rity alarm req est f rame f ormat 17
An ex A (informative) Sec rity strateg for WIA-FA network 17
A.1 Ris analy is for WIA-FA network 17
A.2 Sec rity prin iples for WIA-FA network 17
A.3 Sec rity o jectives f or WIA-FA network 17
A.4 Sec rity grade of WIA-FA network 17
An ex B (informative) Regional modification for compl an e with ETSI stan ard 17
B.1 General 17
B.2 Compl an e with ETSI EN 3 0 4 0-2 V1.4.1 17
B.3 Compl an e with ETSI EN 3 0 3 8 V1.8.1 17
Biblogra h 18
Fig re 1 – Con ention u ed f or state mac ines 19
Fig re 2 – Integer codin 21
Fig re 3 – Un ig ed codin 21
Fig re 4 – Sin le flo t codin 2
Fig re 5 – Double f lo t codin 2
Fig re 6 – WIA-FA en an ed star to olog 2
Fig re 7 – OSI b sic referen e model ma p d to WIA-FA 2
Fig re 8 – Protocol arc itecture of WIA-FA 2
Fig re 9 – Data f low over WIA-FA network 2
Fig re 10 – Sy tem management s heme 2
Fig re 1 – DMAP of management s stem 2
Fig re 12 – DMAP state mac ine of gateway device 3
Fig re 13 – DMAP state mac ine of gateway device for e c field device 3
Fig re 14 – DMAP state mac ine of a f ield device 3
Fig re 15 – L n ad res stru ture of device 4
Trang 8Fig re 16 – Joinin proces of field device 4
Fig re 17 – Commu ication resource al ocation proces for a field device 4
Fig re 18 – Pas ive le ve proces of a field device 4
Fig re 19 – Device statu re ort proces of f ield device 4
Fig re 2 – Chan el con ition re ort proces of field device 4
Fig re 21 – BitMa format 6
Fig re 2 – WIA-FA DL protocol arc itecture 6
Fig re 2 – The template of timeslot stru ture 6
Fig re 2 – WIA-FA def ault s p rf rame 6
Fig re 2 – WIA-FA s p rf rame 6
Fig re 2 – The example of WIA-FA devices multi-c an el commu ication 6
Fig re 2 – An example of b acon commu ication b sed on multiple ADs 6
Fig re 2 – Proces of one-way time s n hronization 6
Fig re 2 – Proces of two-way time s nc ronization 6
Fig re 3 – Ag regation f rame p ylo d f ormat 7
Fig re 31 – Example of retran mis ion mode b sed on NACK 71
Fig re 3 – Example of multi-u icast retran mis ion mode 7
Fig re 3 – Example of multi-bro d ast retran mis ion mode 7
Fig re 3 – Example of GACK-b sed timeslot b c of mode 7
Fig re 3 – Time seq en e of p riod data service f rom FD to GW 7
Fig re 3 – Time seq en e of other data service f rom FD to GW 7
Fig re 3 – Time seq en e of data service f rom GW to FD 7
Fig re 3 – Network dis overy proces 7
Fig re 3 – Time s n hronization proces 8
Fig re 4 – Device join proces 8
Fig re 41 – Device statu re ort proces 8
Fig re 4 – Chan el con ition re ort proces 8
Fig re 4 – Remote at ribute get proces 8
Fig re 4 – Remote at ribute set proces 9
Fig re 4 – Device le ve proces 9
Fig re 4 – General f rame f ormat 9
Fig re 4 – DL f rame he der 9
Fig re 4 – DL f rame control format 9
Fig re 4 – DL Date f rame f ormat 9
Fig re 5 – DL Ag regation f rame format 9
Fig re 51 – NACK f rame f ormat 9
Fig re 5 – GACK f rame f ormat 9
Fig re 5 – GACK information 9
Fig re 5 – DL Be con fame format 9
Fig re 5 – Shared timeslot cou t 9
Fig re 5 – DL join req est fame f ormat 9
Fig re 5 – DL join req est f rame format 9
Fig re 5 – DL le ve req est fame format 9
Trang 9Fig re 5 – DL Device statu re ort f ame format 9
Fig re 6 – DL Chan el con ition re ort f rame f ormat 9
Fig re 61 – DL time s n hronization req est f rame f ormat 9
Fig re 6 – DL time s n hronization resp n e f rame format 9
Fig re 6 – DL Remote at ribute get req est f rame f ormat 10
Fig re 6 – DL remote at ribute get resp n e f rame f ormat 10
Fig re 6 – DL Remote at ribute set req est f rame f ormat 101
Fig re 6 – DL remote at ribute set resp n e f ame format 101
Fig re 6 – DL state mac ine of ac es device 10
Fig re 6 – DL state mac ine of field device 10
Fig re 6 – General f rame f ormat b twe n GW an AD 1 1
Fig re 7 – AL p rtion within WIA-FA protocol stac 1 4
Fig re 71 – The relation hips b twe n UAPs an DAPs 1 8
Fig re 7 – User a pl cation o jects 1 9
Fig re 7 – Implementation example of IO data images on the gateway device 12
Fig re 7 – C/S VCR relation hips b twe n GW an FDs 12
Fig re 7 – P/S VCR relation hips b twe n GW an FDs 12
Fig re 7 – P/S VCR relation hips b twe n FDs an GW 12
Fig re 7 – R/S VCR relation hips b twe n FDs an GW 12
Fig re 7 – Config ration proces f or a field device 12
Fig re 7 – UAO ag regation an disag regation proces 12
Fig re 8 – READ req est mes age f ormat 12
Fig re 81 – READ resp n e(+) mes age format 12
Fig re 8 – READ resp n e(-) mes age format 12
Fig re 8 – READ Service proces 12
Fig re 8 – WRITE req est mes age f ormat 12
Fig re 8 – WRITE resp n e(-) mes age format 12
Fig re 8 – WRITE Service proces 12
Fig re 8 – PUBLISH req est mes age format 12
Fig re 8 – PUBLISH Proced re fom Field Device to Gateway Device 13
Fig re 8 – PUBLISH Proced re f rom Gateway Device to Field Device 13
Fig re 9 – REPORT req est mes age format 13
Fig re 91 – REPORT Service proces 131
Fig re 9 – REPORT ACK req est mes age format 131
Fig re 9 – REPORT ACK resp n e(+) mes age format 131
Fig re 9 – REPORT ACK resp n e(-) mes age format 131
Fig re 9 – REPORT ACK Service proces 13
Fig re 9 – ASL general p c et format 13
Fig re 9 – Format of p c et control field .13
Fig re 9 –Con rmed service primitives ex han ed b twe n layers 13
Fig re 9 – Un onfirmed service primitives ex han ed b twe n layers 13
Fig re 10 – Primitives in okin for re d/ write MIB b twe n layers 13
Fig re 101 – State tran ition diagram of AMCL 14
Trang 10Fig re 10 – State tran ition diagram of AMSV 14
Fig re 10 – State tran ition diagram of AMPB 14
Fig re 10 – State tran ition diagram of AMSB 14
Fig re 10 – State tran ition diagram of AMRS 15
Fig re 10 – State tran ition diagram of AMRK 15
Fig re 10 – Sec rity management arc itecture 15
Fig re 10 – Life c cle of key 15
Fig re 10 – Format of NONCE .15
Fig re 1 0 – Time seq en e of key esta l s ment 16
Fig re 1 1 – Time seq en e of key updatin 16
Fig re 1 2 – SecAlarmt_Stru t stru ture 16
Fig re 1 3 – Time seq en e of sec rity alarm 16
Fig re 1 4 – Sec re join proces of field device 16
Fig re 1 5 – Key esta l s proces for f ield device 16
Fig re 1 6 – Key update state mac ine f or FD 16
Fig re 1 7 – General sec re DL f rame f ormat 17
Fig re 1 8 – Sec re ag regation f ame f ormat 171
Fig re 1 9 – Key esta l s req est fame f ormat 17
Fig re 12 – Key esta l s resp n e f ame format 17
Fig re 121 – Key update req est fame f ormat 17
Fig re 12 – Key update resp n e fame format 17
Fig re 12 – Sec rity alarm req est f rame f ormat 17
Fig re B.1 – Timeslot timin template 17
Ta le 1 – Con ention u ed f or state tran ition 2
Ta le 2 – Definition of integer data typ 21
Ta le 3 – Un ig ed16 codin 21
Ta le 4 – Octetstrin codin 2
Ta le 5 – Codin of Bit Field data with one octet 2
Ta le 6 – Codin of Bit Field data with two octets 2
Ta le 7 – Codin of Bit Field data with thre octet 2
Ta le 8 – Network management fu ction 3
Ta le 9 – Sec rity management fu ction 3
Ta le 10 – DMAP state tran ition of gateway device 3
Ta le 1 – DMAP state tran ition of gateway device f or e c field device 3
Ta le 12 – DMAP state tran ition of a field device 3
Ta le 13 – Fu ction u ed in DMAP state tran ition 41
Ta le 14 – Un tru tured at ributes 4
Ta le 15 – Stru tured atributes 5
Ta le 16 – Sup rf rame Stru t stru ture 5
Ta le 17 – Lin _Stru t stru ture 51
Ta le 18 – ChanCon_Stru t stru ture 51
Ta le 19 – Device Stru t 5
Trang 11Ta le 2 – Key_Stru t stru ture 5
Ta le 21 – VcrEP_Stru t definition 5
Ta le 2 – UAOClas Des _Stru t definition 5
Ta le 2 – ProDataDes _Stru t definition 5
Ta le 2 – UAOIn tDes _Stru t definition 5
Ta le 2 – DMAP-MIB-GET.req est p rameters 5
Ta le 2 – DMAP-MIB-GET.con rm p rameters 5
Ta le 2 – DMAP-MIB-SET.req est p rameters 6
Ta le 2 – DMAP-MIB-SET.con rm p rameters 6
Ta le 2 – PHY protocol selection 61
Ta le 3 – Codin of Mod lation modes 6
Ta le 31 – Chan el in ices 6
Ta le 3 – Data rate 6
Ta le 3 – Parameters of timeslot template 6
Ta le 3 – DLDE-DATA.req est primitive p rameters 7
Ta le 3 – DLDE-DATA.in ication primitive p rameters 7
Ta le 3 – Management services 7
Ta le 3 – DLME-DISCOVERY.req est p rameters 7
Ta le 3 – DLME-DISCOVERY.con rm p rameters 7
Ta le 3 – Be conDes ription_Stru t p rameters 7
Ta le 4 – DLME-TIME-SYN.in ication p rameters 7
Ta le 41 – DLME-TIME-SYN.resp n e p rameters 7
Ta le 4 – DLME-TIME-SYN.confirm p rameters 7
Ta le 4 – DLME-JOIN.req est p rameters 81
Ta le 4 – DLME-JOIN.in ication p rameters 81
Ta le 4 – DLME-JOIN.resp n e p rameters 8
Ta le 4 – DLME-JOIN.confirm p rameters 8
Ta le 4 – DLME-DEVICE-STATUS.req est p rameters 8
Ta le 4 – DLME-DEVICE -STATUS.in ication p rameters 8
Ta le 4 – DLME-DEVICE -STATUS.confirm p rameters 8
Ta le 5 – DLME-CHANNEL-CONDITION.req est p rameters 8
Ta le 51 – DLME-CHANNEL-CONDITION.in ication p rameters 8
Ta le 5 – DLME-CHANNEL-CONDITION.confirm p rameters 8
Ta le 5 – DLME-INFO-GET.req est p rameters 8
Ta le 5 – DLME-INFO-GET.in ication p rameters 8
Ta le 5 – DLME-INFO-GET.resp n e p rameters 8
Ta le 5 – DLME-INFO-GET.confirm p rameters 8
Ta le 5 – DLME-INFO-SET.req est p rameters 9
Ta le 5 – DLME-INFO-SET n ication p rameters 91
Ta le 5 – DLME-INFO-SET resp n e p rameters 9
Ta le 6 – DLME-INFO-SET.confirm p rameters 9
Ta le 61 – DLME-LEAVE.req est p rameters 9
Ta le 6 – DLME-LEAVE.confirm p rameters 9
Trang 12Ta le 6 – Frame typ codin 9
Ta le 6 – Ad res in mode s bfield 9
Ta le 6 – DL state tran ition of ac es device 10
Ta le 6 – DL state tran ition of field device 10
Ta le 6 – Fu ction u ed in DMAP state tran ition 1 0
Ta le 6 – Wired services b twe n GW an AD 1 2
Ta le 6 – Service p rameters of AD join req est 1 3
Ta le 7 – Service p rameters of AD join resp n e 1 3
Ta le 71 – Service p rameters of GW req estin AD to sen GACK 1 3
Ta le 7 – Parameters of GACKInf o_Stru t stru ture 1 3
Ta le 7 – Service p rameters of GW req estin AD to sen NACK 1 3
Ta le 7 – Commu ication models b twe n gateway device an f ield devices 1 5
Ta le 7 – Sin leAnalogData definition 1 6
Ta le 7 – DoubleAnalogData definition 1 6
Ta le 7 – DigitalData definition 1 6
Ta le 7 – DigitalData16 def i ition 1 7
Ta le 7 – DigitalData 2 definition 1 7
Ta le 8 – EventData Def i ition 1 7
Ta le 81 – UAO events def i ition 1 8
Ta le 8 – VCR atribute config ration overview 121
Ta le 8 – Ap l cation services s p orted by UAPs 12
Ta le 8 – Er or code def i ition f or READ resp n e(-) mes age 12
Ta le 8 – Er or code def i ition f or WRITE resp n e(-) 12
Ta le 8 – Er or code def i ition f or REPORT ACK negative resp n e 13
Ta le 8 – ASLDE-DATA.req est primitive p rameter def i ition 13
Ta le 8 – ASLDE-DATA.in ication primitive p rameter definition 13
Ta le 8 – ASLDE-DATA.resp n e primitive p rameter def i ition 13
Ta le 9 – ASLDE-DATA.confirmPrimitive Parameters 13
Ta le 91 – Service Identifier s bfield definition .13
Ta le 9 – Mes age Typ s bf ield definition 13
Ta le 9 –Con rmed service primitives ex han ed b twe n ASL an other layers 13
Ta le 9 – Un onfirmed service primitives ex han ed b twe n ASL an other layers 13
Ta le 9 – Primitives f or re d/ write MIB b twe n layers 13
Ta le 9 – State tran ition ta le of AMCL 14
Ta le 9 – State tran ition ta le of AMSV 14
Ta le 9 – State tran ition ta le of AMPB 14
Ta le 9 – State tran ition ta le of AMSB 14
Ta le 10 – State tran ition ta le of AMRS 15
Ta le 101 – State tran ition ta le of AMRK 15
Ta le 10 – Al Fu ction in ASLM 15
Ta le 10 – Parameters f or KEY-ESTABLISH.req est 15
Ta le 10 – KeyMaterial_Stru t stru ture 15
Ta le 10 – Parameters f or KEY-ESTABLISH.in ication 15
Trang 13Ta le 10 – Parameters for KEY-ESTABLISH.resp n e 15
Ta le 10 – Parameters f or KEY-ESTABLISH.confirm 16
Ta le 10 – Parameters f or KEY-UPDATE.req est 16
Ta le 10 – Parameters for KEY-UPDATE.indication .161
Ta le 1 0 – Parameters f or KEY-UPDATE.resp n e 161
Ta le 1 1 – Parameters f or KEY-UPDATE.con rm 16
Ta le 1 2 – Parameters f or SEC-ALARM.req est 16
Ta le 1 3 – Parameters for SEC-ALARM.in ication 16
Ta le 1 4 – Key update states 16
Ta le 1 5 – Key update state tran ition .16
Ta le 1 6 – Key u ed in DL sec re commu ication 16
Ta le 1 7 – Avai a le sec rity levels f or DL 171
Ta le A.1 – Sec rity grades f or WIA-FA network 17
Ta le B.1 – Ap lca le EN 3 0 4 0-2 req irements l st 17
Trang 14INTERNATIONAL ELECTROTECHNICAL COMMISSION
1 Th Intern tio al Ele trote h ic l Commis io (IEC) is a worldwid org niz tio for sta d rdiz tio c mprisin
al n tio al ele trote h ic l c mmite s (IEC Natio al Commite s) Th o je t of IEC is to promote
intern tio al c -o eratio o al q e tio s c n ernin sta d rdiz tio in th ele tric l a d ele tro ic f i ld To
this e d a d in a ditio to oth r a tivitie , IEC p bls e Intern tio al Sta d rd , Te h ic l Sp cific tio s,
Te h ic l Re orts, Pu lcly Av ia le Sp cif i atio s (P S) a d Guid s (h re f ter refer e to a “IEC
Pu lc tio (s)”) Th ir pre aratio is e tru te to te h ic l c mmite s; a y IEC Natio al Commite intere te
in th s bje t d alt with ma p rticip te in this pre aratory work Intern tio al g v rnme tal a d n n
-g v rnme tal org niz tio s laisin with th IEC als p rticip te in this pre aratio IEC c la orate clo ely
with th Intern tio al Org niz tio f or Sta d rdiz tio (ISO) in a c rd n e with c n itio s d termin d b
a re me t b twe n th two org niz tio s
2) Th f ormal d cisio s or a re me ts of IEC o te h ic l maters e pre s, a n arly a p s ible, a intern tio al
c n e s s of o inio o th rele a t s bje ts sin e e c te h ic l c mmite h s re re e tatio fom al
intere te IEC Natio al Commite s
3) IEC Pu lc tio s h v th form of re omme d tio s for intern tio al u e a d are a c pte b IEC Natio al
Commite s in th t s n e Whie al re s n ble ef forts are ma e to e s re th t th te h ic l c nte t of IEC
Pu lc tio s is a c rate, IEC c n ot b h ld re p n ible for th wa in whic th y are u e or f or a y
misinterpretatio b a y e d u er
4) In ord r to promote intern tio al u if ormity, IEC Natio al Commite s u d rta e to a ply IEC Pu lc tio s
tra s are tly to th ma imum e te t p s ible in th ir n tio al a d re io al p blc tio s An div rg n e
b twe n a y IEC Pu lc tio a d th c re p n in n tio al or re io al p blc tio s al b cle rly in ic te in
th later
5) IEC its lf d e n t pro id a y ate tatio of c nf ormity In e e d nt c rtific tio b die pro id c nf ormity
a s s me t s rvic s a d, in s me are s, a c s to IEC mark of c nf ormity IEC is n t re p n ible f or a y
s rvic s c rie o t b in e e d nt c rtif i atio b die
6) Al u ers s o lde s re th t th y h v th late t e itio of this p blc tio
7) No la i ty s al ata h to IEC or its dire tors, emplo e s, s rv nts or a e ts in lu in in ivid al e p rts a d
memb rs of its te h ic l c mmite s a d IEC Natio al Commite s f or a y p rs n l injury, pro erty d ma e or
oth r d ma e of a y n ture wh ts e er, wh th r dire t or in ire t, or for c sts (in lu in le al f ee ) a d
e p n e arisin o t of th p blc tio , u e of, or rela c u o , this IEC Pu lc tio or a y oth r IEC
Pu lc tio s
8) Ate tio is drawn to th Normativ refere c s cite in this p blc tio Us of th refere c d p blc tio s is
in is e s ble for th c r e t a plc tio of this p blc tio
9) Ate tio is drawn to th p s ibi ty th t s me of th eleme ts of this IEC Pu lc tio ma b th s bje t of
p te t rig ts IEC s al n t b h ld re p n ible for id ntifyin a y or al s c p te t rig ts
A PAS is a tec nical specification not fulfi in the req irements for a stan ard, but made
avai a le to the publ c
IEC PAS 6 9 8 has b en proces ed by s bcommit e 6 C: In u trial network , of IEC
tec nical commite 6 : In u trial-proces me s rement, control an automation
Fol owin publcation of this PAS, whic is a pre-stan ard publcation, the tec nical commite
or s bcommite con erned may tran form it into an International Stan ard
Trang 15This PAS s al remain val d for an initial maximum p riod of 3 ye rs startin fom the
publ cation date The val dity may b exten ed f or a sin le p riod up to a maximum of 3 ye rs,
at the en of whic it s al b publ s ed as another typ of normative doc ment, or s al b
with rawn
A bi n ual version of this publcation may b is ued at a later date
IMPORTANT – The 'colour inside' logo on the cov r pa e of this publ c tion indic te
th t it contains colours whic are considere to be us f ul f or the cor e t
und rsta ding of its conte ts Us rs s ould therefore print this doc me t using a
colour printer
Trang 16This PAS sp cifies the s stem arc itecture an commu ication protocol of WIA-FA (Wireles
Network f or In u trial Automation – Factory Automation) b sed on IEEE STD 8 2.1 -2 12
Ph sical L yer (PHY)
This PAS a ples to wireles network s stems f or factory automation me s rin , monitorin
an control
The f ol owin doc ments, in whole or in p rt, are normatively ref eren ed in this doc ment an
are in isp n a le f or its a pl cation For dated ref eren es, only the edition cited a ples For
u dated referen es, the latest edition of the referen ed doc ment (in lu in an
amen ments) a pl es
IEC 615 8, P re ision clo k sy c ro izat ion prot oc l for n twork ed me sureme t a d c ntrol
systems
IEC 614 9, Th ind ustrial pro es me sureme t a d c ntrol syst em fu ction blo ks
ISO/IEC 7 9 -1, Information Te h olog – Op n Systems I nt erc n e tio – Basic Refere c
Mod el – Th Basic mod el
IEEE STD 8 2.1 -2 12, IEEE Stand ard for Informat ion tec n lo y – Tele ommu ic tions a d
informat io ex ch n e b twee syst ems – L c l a d metro ol itan are n tworks – Sp cific
re uireme ts – Part 1 : Wireles LAN Med ium Ac es Co trol (MAC) a d Ph sic l L y r
n mb r of timeslots fom the start of the network, general y denotin the c r ent timeslot
Note 1 to e try: Th v lu is in reme te b o e, u u ly th s me with th c re t time lot s q e c n mb r
device in tal ed in the field, whic is resp n ible for forwardin the sen or data, alarm an
network management related information of the f ield device to the gateway device, or
f orwardin control sig als, management information an con g ration information of the
gateway device to field devices
Trang 173.1.3
a gre ation
proces of ag regatin data f rom multiple u er a pl cation o jects into one p c et, or
ag regatin several f rames into one f rame
3.1.4
appl c tion configuration
config ration proces for u er a pl cation proces es in f ield devices to f i is certain jo s
d rin the ap l cation of f actory automation
sp cial f rame bro d ast by the ac es device in the WIA-FA network
Note 1 to e try: Tojointh WIA-FA n twork, a n w field d vic s o ld f irst lste to b a o s
state in whic al wireles commu ication solution of a plant u in s ared medium fulf il al
their a pl cation commu ication req irements
proces of dividin the ag regated p c et into data of multiple u er a plcation o jects, or
dividin the ag regated f rame into multiple f rames
3.1.12
f ield d vic
device in taled in in u trial f ield an con ected by sen ors an actuators, whic is u ed for
tran mit in field data an receivin control comman s
Trang 18he rtbe t me s ge
sig al sent by the workin gateway device to the red n ant ones, whic in icates that the
gateway device is workin pro erly
3.1.16
host computer
computer throu h whic o eration, maintenan e an management p rson el interact with the
WIA-FA network
Note 1 to e try: Ho t c mp ter p rorms fu ctio s of c nfig ratio , pro isio in , a d d tadis la
3.1.17
intero erabi ity
a i ty of two or more network s stems to ex han e inf ormation an to make mutual u e of the
information that has b en ex han ed
[SOURCE: ISO/IEC TR 10 0 -1:19 8, 3.2.1 – modified by re lacin “IT s stems” with
intercon ectin p th b twe n two neig b urin devices, whic con ists of a set of p rameters
Note 1 to e try: A s t of p rameters in lu eln id ntif i r, ln ty e, d stin tio a dre s, relativ time lot n mb r,
c re t c a n l in e , a d s p r ame id ntifier
Note 2 to e try: A WIA-FA n twork h s o ly o e primary g tewa d vic
3.1.2
network a dre s
8-bit or 16-bit u sig ed integer u iq ely identifyin the device in the WIA-FA network
Note 1 to e try: It is als c le s ort a dre s
3.1.21
network conf iguration
proces of con g rin p rameters for WIA-FA devices to maintain network o eration an
commu ication
3.1.2
network ma a er
logical role resp n ible for config rin the network, al ocatin commu ication resources,
monitorin an re ortin network p rorman es
Note 1 to e try: Th re is o ly o e n twork ma a er in a WIA-FA n twork
Trang 19Note 2 to e try: : A p y ic l a dre s is a sig e b a ma uf acturer.
3.1.2
primary gatewa de ic
gateway device workin in a WIA-FA network
3.1.2
provisionin
proces of pre-con g rin some static inf ormation that in lu es network identifier, sec rity
level, join key, an s ared key
3.1.2
re unda t g tewa de ic
hot b c up of the primary gateway device
3.1.2
relativ time lot number
timeslot n mb r cou ted fom the start of a s p r rame
3.1.2
s c rity ma a er
logical role resp n ible for con g rin the sec rity p lcies of the whole network, managin
key , an authenticatin devices
3.1.3
s perframe
col ection of c an els an timeslots re e tedly a p ar in one c cle
Note 1 to e try: It s e if i s th tra smitin or re eivin time f or p rio ic c mmu ic tio
3.1.31
time lot
b sic time u it u ed for data ex han e in WIA-FA network
Note 1 to e try: Its d ratio is c n g ra le in th WIA-FA n twork
Trang 20AO Analog Output
ASDU Ap l cation Service Data Unit
EIRP Eq ivalent Isotro ic Radiated Power
KEDU Unicast Data En ryption Key
Trang 21PHY PHYsical layer
VCR Virtual Commu ication Relation hip
WIA-FA Wireles Network for In u trial Automation – F ctory Automation
Figure 1 – Conv ntions u e for state ma hine
The convention u ed in the state mac ines are as folows:
– The la eled circles re resent states that a device can b in
– State tran ition are directed l nes They s ow whic state a comp nent le ves an whic
state it tran ition to
– A tran ition is la eled by T with the events that cau ed it an the cor esp n in action
( his may b empty) The events (a ove the lne) cau in the tran ition is se arated f rom
the res ltin action (b low the l ne) by a horizontal lne
– | L gical "OR"
The con ention u ed in the state tran ition are s own in Ta le 1
Trang 22Table 1 – Conv ntion us d for state tra sitions
The con ention u ed in the state tran ition are as folows:
– = A logical con ition to in icate an item on the lef t is eq al to an item on the rig t
– := Value of an item on the lef t is re laced by value of an item on the rig t If an item on the
rig t is a p rameter, it comes fom the primitive s own as an input event
– = A logical con ition to ju ge an item on the left is eq al to an item on the rig t
– && L gical "AND"
– | L gical "OR"
– != A logical con ition to in icate an item on the left is not eq al to an item on the rig t
This con tru t al ows the exec tion of a seq en e of action in a lo p within one tran ition
The lo p is exec ted f or al values f om start_value to en _value
Ex mple:
for (Id nt ifier = start_v alu t o e d_v alu )
a t io s
e d
This con tru t al ows the exec tion of alternative action de en in on some con ition (whic
may b the value of some identifier or the outcome of a previou action) within one
WIA-FA data codin sp cif ies the mac ine in e en ent s ntax f or the data con eyed by e c
layer services WIA-FA s p orts the def i ition an tran f er of b th b sic an stru t data
typ s
Basic typ s are atomic typ s that can ot b decomp sed into more elemental typ s Stru t
typ s are typ s comp sed of b sic typ s an other stru t typ s Their complexity an de th of
nestin is not con trained by this PAS
Trang 234.2 Ba ic d ta type coding
4.2.1 Inte er coding
The integer is a sig ed value, as s own in Fig re 2 an Ta le 2 For this data typ , MSB is
tran mit ed first, then the s bseq ent octets, an final y the LSB
Notatio s: Integer8,Integer 6, Integer2 , Integer3
1
≤ i ≤ 21
The u sig ed value is coded as s own in Fig re 3 an Ta le 3 F r this data typ , MSB is
sent first, then the s bseq ent octets, an f i al y the LSB
Notatio s: Unsig ed8, Unsig ed16, Unsig ed2 , Unsig ed3 , Unsig ed4 ,
Unsig ed4 , Unsig ed6 , Unsig ed8
Trang 244.2.3 Float codin
The value of f lo tin p int is coded as s own in Fig re 4 an Fig re 5
The MSB of the sig an the exp nent is sent f irst, an then the remained bits of the
exp nent an the bits f rom MSB to LSB of the faction If the value of the flo tin p int data is
u k own, 0x7 an 0xA0 are firstly sent, f olowed by 0x0 , whic me n “Not-a-n mb r”
Value ran e Se in IEC 6 5 9, Sh rt Re l Numb r (3 bits)
2-3
2-4
2-5
2-6
2-7
Fra tio (F)
-8
2-9
2-21
2-2
2-2
SN: sig 0 =p sitiv , 1 = n g tiv
Figure 4 – Sin le float coding
Value ran e Se in IEC 6 5 9, Sh rt Re l Numb r, 6 bits
2-3
2-4
Fra tio (F)
-5
2-6
2-7
2-8
2-9
Fra tio (F)
-21
2-2
2-2
2-2
2-2
2-2
2-2
2-2
Fra tio (F)
-2
2-3
2-31
2-3
2-3
2-3
2-3
2-3
Fra tio (F)
-3
2-3
2-3
2-4
2-41
2-4
2-4
2-4
Fra tio (F)
-4
2-4
2-4
2-4
2-4
2-5
2-51
2-5
SN: sig 0 = o itiv ,1= e ativ
Figure 5 – Double float coding
Trang 254.2.4 Octetstring codin
The Octetstrin codin man er is s own Ta le 4 For the data with N octets, the MSB of the
most sig ificant octet of PDU is f irst sent
Table 4 – Octetstring coding
2
N-3
2N-4
2N-5
2N- 2
2N- 3
2
N- 4
2N- 5
2N- 6
Bit Field data are u ed to en ode o jects as sin le-bit data The bit coding man er is s own
in Ta le 5, Ta le 6, an Ta le 7 This data typ is def i ed as a series of eig t bits For the
data with two octets, the most sig ificant octet of PDU is sent first For e c bit of the bit f ield
data typ , there is a cor esp n in definition ta le
Table 5 – Codin of Bit Field data with one octet
4.2.6 TimeData coding
This data typ is an u sig ed integer with a len th of 6 bits, in icatin time in remented by
1u
4.2.7 Ke Data coding
This data typ is an u sig ed integer with a len th of 12 bits
Trang 264.3 Structure data type codin
4.3.1 Stru ture type coding
A stru ture is made of an ordered set of heterogene u ly dif f erent typ d data caled memb rs,
whic may b b sic data typ or stru tured data typ The memb r of a stru ture is identified
by Memb rID The stru ture data may b ac es ed as a whole, or ju t one of its memb rs
may b ac es ed by sp cifyin the Memb rID
4.3.2 List type coding
A lst is comp sed of an ordered set of homogene u ly same typ d elements cal ed record ,
whic may b b sic data typ or stru tured data typ The record of a lst is identified by
FirstStoreIn ex The l st data may b ac es ed as a whole, or one or several of its record
may b ac es ed by sp cifyin the startin FirstStoreIn ex an the cou t
To improve avaia i ty an rela i ty, WIA-FA network alows the existen e of red n ant
gateway device as a hot b c up, multiple ac es devices workin in p ral el
NOT 1 In th WIA-FA n twork, th re u d nt g tewa d vic (s e 3.1.2 a d th primary g tewa d vic (s e
3.1.2 ) u e th s me n twork a dre s Th y a o t wire c n e tio a d s n hro o s u d te Th re u d nt
g tewa d vic p rio ic ly re eiv s th h artb at sig al fom th primary g tewa d vic in wire c n e tio
ma n r If th re u d nt g tewa d vic d e n t re eiv th h artb at sig al in th p rio of PriGwFaiureTime
(s e Ta le 14), it wi ta e o er al work of th origin l primary g tewa d vic
NOT 2 Ac e s d vic s c n e t th g tewa d vic in th wire ma n r (s e Cla s 9) Multiple a c s d vic s
c n ure tly work
5.1.1 Host computer
Host computer is the interf ace f or the o eration, maintenan e an management p rson el to
exec te fu ction of a pl cation config ration, network con g ration, an data display Its
sp cific implementation is b yon the s o e of this PAS
5.1.2 Gatewa d vic
The main f un tion of the gateway device are l sted as fol ows:
– Providin intercon ection interf aces b twe n WIA-FA network an other external network ,
s c as f ieldbu , u in data ma pin an protocol con ersion me n ;
– Resp n ible for network management an sec rity management;
– Commu icatin with other WIA-FA devices throu h ac es devices, an ex han in
information b twe n devices;
– Actin as the u iq e cloc source in the WIA-FA network for network time s n hronization
5.1.3 Ac e s d vic
The main fu ction of the ac es device are l sted as fol ows:
Trang 27– Receivin data gathered by field device and forwardin them to the gateway device;
– F rwardin the control comman of gateway device to the actuators of field device;
– F rwardin the management inf ormation an con g ration inf ormation of gateway device
to the field devices;
– Receivin alarms an network management information of f ield device an forwardin
them to the gateway device
NOT Th a c s d vic s a d g tewa d vic s are c n e te b wire Th ir s n hro iz tio meth d is b y n
th s o e of this P S
5.1.4 Field de ic
Field devices are in tal ed in in u trial f ield an con ect sen ors an actuators Field devices
col ect f ield a pl cation data an control produ tion proces The p wer s p ly modes of f ield
devices in lu e wired p wer s p ly, b t ery p wer s p ly, etc whic are b yon the s o e
of this PAS
5.1.5 Ha dheld de ic
Han held devices are p rta le devices that u ed for provisionin f ield device, ac es device,
an gateway device A han held device commu icates with its direct con ected device, an
do s not commu icate with other WIA-FA devices Han held devices u e RS-2 2
maintenan e p rt to provision f ield device, ac es device an gateway device an write
sec rity level, join key , s ared key (ex e t sec rity level 0), an network Identifier (ID) for
them
5.2 Network topology
As s own in Fig re 6, WIA-FA s p orts the en an ed star to olog , whic is comprised of a
center an a n mb r of field devices The center is comprised of one gateway device
(red n ant gateway device can exist an one or several ac es devices
Fig re 6 – WIA-FA e ha c d star topology
Trang 285.3 Protocol arc ite ture
The WIA-FA network protocol fol ows the ISO/IEC 7 9 -1 OSI referen e model The WIA-FA
network protocol def i es the Phy ical L yer (PHY), Data Lin L yer (DL ) an Ap l cation
L yer (AL) Fig re 7 s ows the ma pin b twe n WIA-FA an OSI b sic referen e model
Conv ert s b t w een a plc at ion lay er dat a
an t he low er lay er dat a format s
Prov ides t he u er w it h net w ork c ap ble
a plc at ion
Con ec t ion management serv ic es
Prov ides net w ork in e en en
t ran p rent mes age t ran fer
R esolv in net w ork ad res es,
En - t o- en rou n of p c k et s
Est abls es dat a p c k et st ruc ture,
framin , eror det ec t ion, bu arbit rat ion
Mec hanic al / elec t ric al c on ec t ion
Tran mit s raw bit st re m
Dist ribut ed a plc at ionserv ic es
Figure 7 – OSI ba ic refere c model mappe to WIA-FA
Fig re 8 s ows the protocol arc itecture of WIA-FA The protocol arc itecture of WIA-FA
in lu es the fol owin comp nents:
– Protocol layers: in lu in PHY, DL , AL; AL is comprised of ASL, UAP an DMAP;
– Entities of protocol layers: in lu in data entities (DLDE an ASLDE) an management
entities (DLME an ALSME);
– Protocol layer interf aces: in lu in data entities SAPs (DLDE-SAP an ASLDE-SAP) an
management entity SAPs (DLME-SAP an ASLME-SAP)
Device Management Ap l cation Proces (DMAP) in lu es the network manager/network
management mod le, sec rity manager/sec rity management mod le, an MIB DMAP is a
sp cial User Ap l cation Proces (UAP) an u es ASLDE-SAP together with UAP to ex han e
mes ages with ASL
Trang 29Applc t io s b-la erDat a
(IE E STD 8 2.1 -2 12)
Figure 8 – Protocol arc ite ture of WIA-FA
The data f low over WIA-FA network is s own in Fig re 9
– A field device has PHY, DL , an AL;
– An ac es device has PHY an DL ; An ac es device con ects with the gateway device
by wires;
– The gateway device only has AL an p rt of DL The a pl cation ru nin on the gateway
device con ists of a comp nent that commu icates with the a plcation layer of the WI
A-FA network, plu a comp nent that commu icates with the a pl cation layer of the plant
network, plu an comp nents that faci tate tran lation b twe n the a pl cation layer of
the WIA-FA network an the ap l cation layer of the plant network
Gat ew ay Deic
Co t rol
A LField Deic
WIA -FA Networ k via Wir ele
W IA -FA Net w ork ia W ire
Trang 306 System management
6.1 Ov rview
The WIA-FA network ado ts central zed management f ramework, as s own in Fig re 10 The
s stem management is implemented by the network manager an sec rity manager in the
gateway device, an the network management mod les an sec rity management mod les in
f ield devices an ac es devices The network manager an sec rity manager are
resp n ible for managin the ac es devices an field devices Network management
mod les an sec rity management mod les are re l zed in field devices an ac es devices,
whic p rorm management fu ction together with the gateway device
The fu ction of s stem management in WIA-FA network are implemented by the Device
Management Ap l cation Proces (DMAP) in e c device The DMAP is a p rtic lar User
Ap lcation Proces (UAP), resp n ible f or managin devices an providin MIB ac es
services The p sition an comp nent of the DMAP in the protocol arc itecture are s own in
Fig re 1 The grey p rt is the DMAP, an the white p rts are fu ction mod les in DMAP,
in lu in :
– Network Manager (NM) of Gateway Device (GW), the network management mod les of
Ac es Devices (AD) an Field Device (FD);
– Sec rity Manager (SM) of GW, the sec rity management mod les of AD an FD;
– Management Information Base (MIB), savin al the atributes f or network management
an sec rity management in WIA-FA network
DMAP is a sp cial User Ap l cation Proces (UAP) an u es ASLDE-SAP together with UAP
to ex han e mes ages with ASL, as s own in Fig re 1
Trang 31ASLDat a e t it y
Trang 32Table 8 – Network ma a eme t f unctions
Network e ta ls me t Initialz tio : initialzin th NM/n twork ma a eme t mo ule a d
startin th n twork
Time s urc c nfig ratio a d s stem time s rvic ; th WIA-FA n twork
s o ld s t u o e ref ere c time s urc , whic is p rf orme b th
g tewa d vic De ic s in th n twork s o ld o ly s n hro iz with
g tewa d vic
De ic join pro e s ma a eme t: th d vic s n e NetworkID (s e
Ta le 14) b fore joinin Th joinin d vic s in o e th join pro e s,
af ter th a th ntic tio of SM, th NM return th join re p n e
Network a dre s alo atio : Ea hd vic in th WIA-FA n twork h s a
glo al u iq e 6 -bit a dre s whic is c le lo g a dre s a d a 8-bit
or 16-bit n twork a dre s whic is c le s ort a dre s Th lo g
a dre s of e c d vic is a sig e b v n ors a c rdin to th 6 -bit
Exte d d Uniq e Id ntif i r (EUI-6 ) Th s ort a dre s of e c n twork
d vic is a sig e b th NM
To olo y ma a eme t: f ormin a d maintainin th e h n e star
to olo y a s own in Fig re 6
Network c nfig ratio ma a eme t: maintainin th c mmu ic tio
re o rc s, n twork a dre s, n twork atrib te ,in lu in th
inf ormatio of al n twork d vic s distrib te b th NM, finis in th
c nfig ratio of MIB
Network s h d ln a d Commu ic tio
re o rc alo atio
Su er ame e ta ls me t: e ta ls in th s p r ame for
c mmu ic tio a c rdin to th a plc tio re uireme t
Commu ic tio re o rc alo atio : alo atin th c mmu ic tio
De ic h alth statu ma a eme t: mo itorin a d maintainin th
h alth statu of e c d vic
Network p rorma c mo itorin
a d a c s d vic s in lu e p s iv le vin a d a n rmal le vin , Th
p s iv le vin is in o e b th g tewa d vic , th field d vic s a d
a c s d vic s le v th n twork af ter re eivin th le v re u st, a d
th g tewa d vic rele s s th c mmu ic tio re o rc s of f i ld
d vic s; Th a n rmal le vin is d te te a d pro e s d b th
g tewa d vic
Table 9 – Se urity ma a eme t f unctions
Se ure n twork e ta ls me t a d
c n g ratio
Se ure join pro e s: wh n a n w f i ld d vic in o e th s c re join
pro e s, SM s al a th ntic te th field d vic a d return th re ult to
NM; NM return a join re p n e c n id rin th a th ntic tio re ult
Ke e ta ls me t: af ter FD s c re joinin , SM g n rate a d
distrib te k y u e to ma e s c re o eratio d rin n rmal o eratin
Trang 336.2.1 Network ma a er
Network Manager (NM) re l zes network management fu ction in the gateway device, whic
manages the information of al devices in the network One WIA-FA network has only one NM
NM mainly p rf orms the fol owin fu ction :
– Al ocatin the u iq e 8-bit or 16-bit s ort ad res f or al devices in the network (se 6.3);
– Con tru tin an maintainin the en an ed star to olog ;
– Al ocatin commu ication resources f or commu ication of WIA-FA devices;
– Monitorin the p r orman e of the WIA-FA network, in lu in device statu , an c an el
con ition, etc
6.2.2 Se urity ma a er
Sec rity Manager (SM) re l zes the f un tion of sec rity in the gateway device, an one W
IA-FA network has only one SM SM commu icates directly with NM
SM mainly p rorms the fol owin f un tion :
– Authenticatin the f ield devices at emptin to join the WIA-FA network;
– Managin key in the WIA-FA network, in lu in key esta l s ment an update (se 1 4)
– Han l n sec rity alarm
6.2.3 Network ma a eme t module
Network management mod les in the field device an ac es device maintain the inf ormation
ne ded for commu ication
The main f un tion of the network management mod le are as f ol ows:
– Co rdinatin with NM to con tru t an maintain the en an ed star to olog ;
– Co rdinatin with NM to al ocate commu ication resources for devices;
– Co rdinatin with NM to monitor the p rorman e of the WIA-FA network, in lu in device
statu , an c an el con ition, etc
6.2.4 Se urity ma a eme t module
Sec rity management mod les in the field device an ac es device maintain the inf ormation
f or sec rity management fu ction , an re l ze folowin sec rity management fu ction :
– Co rdinatin with SM to con u t sec re joinin (field device only);
– Co rdinatin with SM to manage key ;
– Co rdinatin with SM to re ort sec rity alarm
6.2.5 DMAP state ma hine
6.2.5.1 DMAP state ma hine of g tewa de ic
The DMAP state mac ine of the gateway device is s own in Fig re 12, whic in lu es Init an
Idle states The gateway device enters into Active state if it finis es initial zation
Trang 34The DMAP state tran ition of gateway device is lsted in Ta le 10.
Table 10 – DMAP state tra sition of gatewa de ic
The DMAP of gateway device maintain a state mac ine f or e c field device, as s own in
Fig re 13 The gateway device can proces multiple p c ets fom multiple f ield devices in
p ralel The trig erin con ition fom Init state to Active state in Fig re 1 is one of T1 to T16
(se Ta le 1 )
Trang 36Table 1 – DMAP state tra sition of gatewa de ic f or e c field de ic
Auth ntic tio (Ph Ad r, Se Material) = SU CE S
& Alo ateSh rtAd rAd r = SU CE S
DLME-INFO-S T.re u st(Atrib teOptio := 2, Atrib teID:= 131,
Atrib teMemID:= 12,Atrib teValu := AL OC TION);
DLME-INFO-S T.re u st(Atrib teOptio := 0, (Atrib teID:= 12 ) |
(Atrib teID:= 12 );
}
Re Alo
Primitiv Ty e = DLME-INFO-S T.c nfirm
& (Atrib teID = 12 | Atrib teID = 12 )
DLME-INFO-S T.re u st(Atrib teOptio := 2, Atrib teID:= 131,
Atrib teMemID:= 12, Atrib teValu := OPERATION);
Op ratio
T7 Op ratio
Primitiv Ty e = DMA -MIB-S T.re u st
=
Statu = WriteToMIB(Ha dle, Atrib teOptio , Atrib teID, Atrib teMemID,
FirstStoreIn e , Co nt, Atrib teValu );
DMA -MIB-S T.c n m(Ha dle, Statu );
Op ratio
T8 Op ratio
Primitiv Ty e = DMA -MIB-GE re u st
=
Statu := Re dFromMIB(Ha dle, Atrib teID, Atrib teMemID,
FirstStro In e , Co nt, Atrib teValu );
DMA -MIB-GE c n m(Ha dle, Statu , Co nt, Atrib teValu );
Op ratio
Trang 37# Curent State E ent or co ditio
DLME-INFO-S T.re u st(Ha dle, DstAd r, Atrib teOptio , Atrib teID,
Atrib teMemID, FirstStoreIn e , Co nt,Atrib teValu );
In Join state, the DMAP of the gateway device han les join req est received f rom field
devices an p r orms authentication If a f ield device is authenticated s c es ful y, the
NM in the DMAP as ig s s ort ad res f or the f ield device If authentication or s ort
addres as ig ment f ai s, DMAP in okes DLME-JOIN.resp n e to notify the field device
the fai ure res lt Af ter the DMAP state mac ine enters to En State; if authentication an
s ort ad res as ig ment s c e d , the DMAP of the gateway device in okes DLME
-JOIN.respon e to notify the field device that the join proces is s c es ful; then, the
DMAP state mac ine enters to Op ration state
– Op ration state
In Op ration state, the fol owin events s al oc ur:
a) Host compute remotely sets the f ield device’s MIB atributes; DMAP in okes DLME
-INFO-SET.req est to req est DL generatin a remote at ribute set req est f rame (se
8.4.16)
b) DL in okes DLME-INFO-SET.confirm an return the res lt of remote at ribute set
o eration to DMAP
c) Host compute remotely gets the f ield device’s MIB atributes; DMAP in okes DLME
-INFO-GET.req est to req est DL generatin a remote at ribute get req est fame
(se 8.4.14)
d) DL in okes DLME-INFO-GET.confirm an return the related MIB atributes of a field
device to DMAP
Trang 38e) Host computer in okes DMAP-MIB-SET.req est to local y set the gateway’s MIB
atributes; DMAP sets its MIB atributes an in okes DMAP-MIB-SET.con rm to return
the res lt of local at ribute set o eration to the host computer
f ) Host computer in okes DMAP-MIB-GET.req est to local y get the gateway’s MIB
atributes; DMAP returns its MIB atributes an in okes DMAP-MIB-GET.confirm to
return related MIB at ributes to the host computer
g) DL in okes DLME-DEVICE-STATUS.in ication to DMAP after it receives the device
statu re ort f om a f ield device
h) DL DLME-CHANNEL-STATUS.in ication to DMAP af ter it receives the c an el
con ition re ort f rom a f ield device
i) Host computer req ests a field device le vin WIA-FA network DMAP in okes DLME
-LEAVE.req est to req est DL generatin a le ve comman f rame (se 8.4.9)
– Res Al oc State
In Res Al oc state, the DMAP of the gateway device alocates commu ication resources to
a field device; DMAP in okes DLME-INFO-SET.req est to remotely writin s p rrames or
ln s to the f ield device If the commu ication resource al ocatin proces is completed or
f ai ure, DMAP remotely sets the field device’s DeviceState (se Ta le 19) atribute to
Op ration; then, the DMAP state mac ine enters to Op ration State
– L ave State
In L ave state, DMAP rele ses al MIB at ributes an commu ication resources that are
oc upied by a le vin field device; then, the DMAP state mac ine enters to En state
6.2.5.2 DMAP state ma hine of field d vic
The DMAP state mac ine of f ield device is s own in Fig re 14
Trang 40Table 12 – DMAP state tra sition of a field de ic
Primitiv Ty e = DLME-DISCOVERY.c n rm
& Statu = NO_ EA ON
Primitiv Ty e = DLME-INFO-S T n ic tio
& (Atrib teID = 131 & Atrib teMemID = 12)
& Atrib teValu = AL OCATION
=
Statu =WriteToMIB(Ha dle, Atrib teOptio , Atrib teID,
Atrib teMemID, FirstStoreIn e , Co nt, Atrib teValu );
DLME-INFO-S T.re p n e(Ha dle, Statu );
Re Alo
Primitiv Ty e = DLME-INFO-S T n ic tio
& (Atrib teID = 12 | Atrib teID = 12 )
=
Statu = WriteToMIB(Ha dle, Atrib teOptio , Atrib teID,
Atrib teMemID, FirstStoreIn e , Co nt, Atrib teValu );
DLME-INFO-S T.re p n e(Ha dle, Statu );
Re Alo
Primitiv Ty e = DLME-INFO-S T.n ic tio
& (Atrib teID = 131 & Atrib teMemID = 12)
& Atrib teValu = OPERATION
=
Statu = WriteToMIB(Ha dle, Atrib teOptio , Atrib teID,
Atrib teMemID, FirstStoreIn e , Co nt, Atrib teValu );
DLME-INFO-S T.re p n e(Ha dle, Statu );
Op ratio
Primitiv Ty e = DLME-INFO-S T n ic tio
=
Statu =WriteToMIB(Ha dle, Atrib teOptio , Atrib teID,
Atrib teMemID, FirstStoreIn e , Co nt, Atrib teValu );
DLME-INFO-S T.re p n e(Ha dle, Statu );