PreviousNext
DP2P Response
Help > DPA Peer-to-Peer > DP2P Response Handshake > DP2P Response

The DP2P Response has the following structure:

 

typedef struct

{

  uns8  Header[3];  // 0xFfFfFf

  uns8  NADR;

  uns8  PDATA[DPA_MAX_DATA_LENGTH];

} STRUCTATTR TDP2Presponse;

 

Header                       Consist of 3 bytes 0xFF. The Header is used for packet validation purposes.

NADR                        Address of the responding [N].

PDATA                      PData part of the DPA Response.

 

Also, the following variables are received:

 

_PNUM                      PNUM of the original DPA request.

_PCMD                      PCMD of the original DPA request with the most significant bit set to indicate DPA Response.

PPAR                        Equals effective packet length (i.e. length to the PData payload plus length of the Header and NADR fields).

DLEN                        Equals effective packet length (PPAR) rounded up to the 16-byte block (to enable AES-128 decryption).