PreviousNext
Set DPA Param
Help > Peripherals > Coordinator > Set DPA Param

Sets DPA Param. DPA Param (DPA Parameter) is a one-byte parameter stored in the [C] RAM that configures network behavior. Default value 0x00 is set upon [C] reset. The default value can be changed using the Autoexec feature.

 

Bit

Description

0-1

Specifies which type of DPA Value is returned in every DPA Request or DPA Confirmation messages:

 00

lastRSSI: IQRF OS variable value (*). In the case of the [C] device, the value is 0 until some RF packet is received.

 01

voltage: Value returned by getSupplyVoltage IQRF OS call (*).

 10

system:

  bit 0:              Equals bit DSMactivated.

  bits 1-6:          Reserved

  bit 7:              (*)

 11

user specified DPA Value. See UserDpaValue.

2

If 1, it allows easily diagnosing the network behavior based on following LED activities. Please note that this feature might collide with LED peripheral when used simultaneously giving undesirable effects.

 Red LED flashes

When [N] or [C] receives network message.

 Green LED flashes

When [C] sends network message or when [N] routes network message.

3

If 1, then instead of using ideal timeslot length, a long fixed 200 ms timeslot is used. It allows easier tracking of network behavior.

4-7

Reserved

 

(*) The highest bit.7 indicates that the supply voltage is out of the recommended range. See Supply Voltage for more information about the supply voltage values.

 

DPA Param is transparently sent with every DPA message from the [C] and thus, it controls the network behavior “on the fly”. It is not permanently stored at Nodes.

 

Request

 

NADR

PNUM

PCMD

HWPID

0

NADR

0x00

0x08

?

DpaParam

 

DpaParam        DPA Param to set.

 

Response

 

NADR

PNUM

PCMD

HWPID

ErrN

DpaValue

0

NADR

0x00

0x88

?

0

?

DpaParam

 

DpaParam        Previous value