PreviousNext
Authorize bond
Help > Peripherals > Coordinator > Authorize bond

Authorizes previously prebonded [Ns]. This assigns the [Ns] to the final network address. The command must not be used inside Batch or Selective Batch.

 

Request

 

NADR

PNUM

PCMD

HWPID

0

1…4

n × 5

n × 5 + 1… n × 5 + 4

NADR

0x00

0x0D

?

ReqAddr0

MID0

ReqAddr n

MIDn

 

ReqAddr           See Bond Node request.
If 0xFF is specified then the prebonded [N] is unbonded and then reset.
Values 0x00 and 0xFF are not allowed if multiple [Ns] (more than 1) are validated.

MID                  Module ID of the [N] to be authorized. Module ID is typically obtained by PrebondedMemoryReadPlus1.

 

Response

NADR

PNUM

PCMD

HWPID

ErrN

DpaValue

0

1

NADR

0x00

0x8D

?

0

?

BondAddr

DevNr

 

 

 

 

 

BondAddr         Single [N] authorization: address of the [N] newly bonded to the network

                        Multiple [Ns] authorizations: 0

DevNr               Total number of bonded Nodes

 

Error codes

ERROR_FAIL      a. Nonzero ReqAddr is already used.
b. No free address is available when ReqAddr equals 0.
c. Internal call to nodeAuthorization failed when single [N] was validated.
d. Some ReqAddr is out of an interval [1;239] but multiple [Ns] are validated.