ML7065-033 User’s Manual
Chapter 7 Commands
47
7.7 Usage of MAC
This section describes the basic MAC usage.
7.7.1 PAN Initiation Procedure.
To activate the PAN coordinator, first set the PIB attribute in the following procedure and then execute an
MLME-START.REQUEST.
1) Transmit an MLME-RESET.REQUEST. (SetDefaultPIB:TRUE)
2) Set a device specific 64-bit adress. (PIB-ID:0x6F - IEEE 64bits Address)
3) Permit association. (PIB-ID = 0x41 macAssociationPermit)
Set the value to “0” if association must be prohibited immediately after activating PAN.
4) Set a short address of the PAN coordinator. (PIB-ID = 0x53 macShortAddress)
The short address must be set.
To start PAN in 16-bit address mode, reset the values from 0x0000 to 0xFFFD.
To start PAN in 64-bit address mode, set the value to 0xFFFE.
5) Turn the receiver to RX_ON (PIB-ID = 0x52 macRxOnWhenIdle)
6) Transmit an MLME-START.REQUEST.
Example: Initiating PAN with beacons
Setting of PAN:
PANId: EEEEh
shrotAddress:0055h
BO: 1
SO: 1
Starts as the PAN coordinator.
1) MLME-RESET.REQUEST
SCI header
Payload
LSB MSB
Field name
Request
Length
Primitive
Code
SetDefaultPIB
Code 0x02
0x02
0x54
0x01
MLME-RESET.CONFIRM
SCI header
Payload
LSB MSB
Field name
Status
Length
Primitive
Code
status
Code 0x03
0x02
0x55
0x00
2) MLME-SET.REQUEST: IEEE 64bits Address
SCI header
Payload
LSB
MSB
Field
name
Request Length
Primitive
Code
PIBAttribute
PIBAttributeValue
Code 0x02
0x0A
0x5B
0x6F
0x00-0x1E-0xEE-0x64-0x00-0x00-0x00-0x01
MLME-SET.CONFIRM
SCI header
Payload
LSB
MSB
Field name
Status
Length
Primitive
Code
status PIBAttribute
Code 0x03
0x03
0x5C
0x00
0x6F