PreviousNext
Send Selective
Help > Peripherals > FRC > Send Selective

Similar to Send but allows to specify a set of Nodes that will receive the FRC command and return FRC data. Together with Acknowledged broadcast - bits it can be then used to execute a DPA Request at selected Nodes only and get the DPA Confirmation plus one data bit from selected Nodes. Both DPA Request and DPA Response have the same structure as Send except the SelectedNodes field. Also, the length of the UserData field is limited to 25 bytes. When 1 byte or 2 bytes are collected then results from all selected Nodes are adjacent, so there are no gaps filled with 0s for unselected Nodes (unlike Send command). IQRF OS function amIRecipientOfFRC can be used at [N] side to find out if the result value is to be returned.

 

Request

 

NADR

PNUM

PCMD

HWPID

0

1 … 30

31 … n

NADR

0x0D

0x02

?

FrcCommand

SelectedNodes

UserData

 

FrcCommand                Specifies data to be collected.

SelectedNodes             Specifies a bitmap with selected Nodes. Bit1 of the 1st byte of the bitmap represents [N] with address 1, bit2 of the 1st byte of the bitmap represents [N] with address 2, …, bit7 of the 30th byte of the bitmaps represents Nodes with address 239.

UserData                      User data that are available at IQRF OS array variable DataOutBeforeResponseFRC at FRC Value event. The length of the data is from 2 to 25 bytes.

 

Response

 

See Send DPA Request.