Professional Documents
Culture Documents
TI PlcSUITE G3 DC Host MSG
TI PlcSUITE G3 DC Host MSG
The information and/or drawings set forth in this document and all rights in and to inventions
disclosed herein and patents which might be granted thereon disclosing or employing the
materials, methods, techniques, or apparatus described herein are the exclusive property of Texas
Instruments. No disclosure of information or drawings shall be made to any other person or
organization without the prior consent of Texas Instruments.
Revision History
Table of Contents
1.0 INTRODUCTION............................................................................................................. 4
2.0 MESSAGE FORMATS AND APIS ................................................................................ 7
2.1 MESSAGE FORMATS ......................................................................................................... 7
2.2 API LIST .......................................................................................................................... 9
2.3 API SPECIFICATIONS ...................................................................................................... 10
2.3.1 DATA_TRANSFER ................................................................................................... 10
2.3.2 GET_SYSTEM_INFO ............................................................................................... 14
2.3.3 GET_PHY_PIB ......................................................................................................... 16
2.3.4 GET_MAC_PIB ........................................................................................................ 17
2.3.5 SET_INFO................................................................................................................. 18
2.3.6 SHUT_DOWN ........................................................................................................... 22
2.3.7 LOAD_SYSTEM_CONFIG ....................................................................................... 23
2.3.8 SET_MAC_PIB ......................................................................................................... 26
2.3.9 CLEAR_PHY_PIB..................................................................................................... 28
2.3.10 CLEAR_MAC_PIB ................................................................................................ 29
2.4 DIAGNOSTIC MESSAGES ................................................................................................ 29
2.4.1 Flash Firmware Image ............................................................................................. 29
2.4.1.1 Flash Firmware Process .................................................................................... 30
2.4.1.2 Flash Image Messages ...................................................................................... 32
2.4.1.3 FW Image Binary Payload Format ................................................................... 33
3.0 REFERENCES ................................................................................................................ 34
4.0 APPENDIX ...................................................................................................................... 35
4.1 MESSAGE STATUS CODE DEFINITIONS ........................................................................... 35
4.2 CRC16 IMPLEMENTATION ............................................................................................. 35
4.3 CRC 32 IMPLEMENTATION............................................................................................. 38
4.4 G3 DC UMAC/LMAC PACKET INTERFACE FORMAT ................................................... 40
4.5 G3-PLC LIST OF PIB ATTRIBUTES SUPPORTED ............................................................. 41
Table of Figures
1.0 Introduction
This specification defines the APIs provided by TI G3 PLC modem. This API can be used to
build a complete data concentrator/base node solution consisting of a general purpose processor
(GPP) connected to the TI G3 PLC modem over a serial port. The TI G3 PLC modem will run
the complete G3 PHY and lower MAC whereas the GPP will host the upper MAC and other
upper layer components of the G3 stack in addition to any other software components applicable
to a concentrator solution.
Linux Process
API Server
CLI/UI Server
ADP ADP ADP
NIB Timer LOAD PNM
OMAP SNTabl
Routing
e
Linux Table ADP-EAP/PSK
ADP RX ADP TX
Mgr Mgr
HCT
Host Msg
Queue
Serial Interface
HCT
C2000
DSP/BIOS LMAC Tx Mgr
LMAC Rx Mgr
ACM
Messages are formatted as: message header + message body + (padding) as described in
Figure 2.
Field Description
ORG Message origination. A value of 1 represents the message originated from the
host, and value of 0 represents the message originated from the receiver.
RPY Acknowledgement reply bit. If this bit is set, the receiver shall acknowledge
receipt of the message by echoing back the message header, with either new
CRCs supplied or the CRCs set to 0, with the RPY bit set, and no additional
payload. The RPY is only used in DATA_TRANSFER.indicate.
RESV Reserved bits, ignored.
SEQ Sequence Number. This is the 4 bit message sequence number, starting with
0 and incrementing by 1 for each message sequence. The Sequence Number
should be set to 0 unless specified in the message definition.
Message Payload A 16 bit number representing the length of the message payload plus the
Length length of the Message Header CRC16 and Message Payload CRC16 (a
message with no payload will have a length of 4). The maximum message
payload length supported is 1500Bytes.
Message Header The CRC16 of the message header, from the Message Type to the Message
CRC16 Payload Length, but not including the Message Header CRC or the Message
Payload CRC.
A value of 0 denotes no CRC16 present
See Appendix 4.2
Message Payload The CRC16 of the message payload data.
CRC16 A value of 0 denotes no CRC16 present.
See Appendix 4.2
Figure 4 Message Header Fields Description
The DATA_TRANSFER message is used to transfer MPDU between the upper and lower
MACs residing in PLC and host processor. DATA_TRANSFER message can be either initiated
by the upper MAC (TX) or by the lower MAC (RX).
1. Message Sequence for Data Transmit from upper MAC to lower MAC in G3 is:
Field Description
NSDU Handle NSDU Handle. Random number between 0x00-0xff.
ARQ ARQ 1-enabled, 0-disabled
QoS 0 – standard priority, 1 – higher priority
Protocol G3=0
P1901.2 = 1
Band Selection Celenec: 0/ FCC: 1/ ARIB: 3
Tx Power Level PHY transmit Level
0 (minimum) to 0x20 (maximum)
Tone Map Tone map: 1 - valid, 0 - invalid
For Cenelec, each bit represents 6 tones,e.g. Tonemap[0] represents valid tones 0 to 5
For FCC/ARIB, each bit represents 3 tones,e.g. Tonemap[0] represents valid tones 0 to 2
Default Celenec : 0x3F
Default FCC band: 0xFFFFFF
Default ARIB band: 0x3FFFFF
TxRes Tx Gain Resolution corresponding to one gain step
0: 6 dB
1: 3 dB
TxGain Desired transmit gain specifying how many gain steps are requested
MCS Modulation Coding Scheme: (3 bits)
0 = ROBO
1= BPSK
2= QPSK
3 = 8PSK
4 = Reserved
5 = SUPER ROBO (P1901.2 only)
TxCoef Transmit Gain (6 bytes)
For Celenec band: only first 4 bytes are used (See G3 Cenelec Spec)
For FCC/ARIB band, all 6 bytes are used (See the G3 FCC/P1901.2 Spec)
ON OFF MODE Refer to P1901.2 spec
Coherent Mode Refer to P1901.2 spec
Capable
Long CP Mode Refer to P1901.2 spec
Support
Long CP Mode Refer to P1901.2 spec
Recommendation
MPDU payload MAC SDU (payload) size up to 1280. The “segment length” field in segmentation control
size head is ignored.
DC MAC PDU MPDU
Field Description
NDSU Handle NSDU Handle. Random number between 0x00-0xff.
2. Message Sequence for Data Receive initiated by the lower MAC (G3):
Length Bits
Octets 7 6 5 4 3 2 1 0
1 Link Quality Indicator (0x00-0xFF)
1 CFM Phase Reserved
9 FCH
1 Band Selection Protocol (G3/P1901.2)
(Celenec/FCC/ARIB)
1 Rx Power Level
1 Tone Map [7:0]
1 Tone Map [15:8]
1 Tone Map [23:16]
1 Tx Res TX Gain MCS
1 LQI
1 TXCOEF[3:0] + TXCOEF[7:4] Byte[0]
Field Description
LQI Link Quality Indicator measured on received packet
2.3.2 GET_SYSTEM_INFO
The GET_SYSTEM_INFO message is used to retrieve information from the PLC device. It is
always initiated by the host.
GET_SYSTEM_INFO.Request:
This message does not have message body.
GET_SYSTEM_INFO Response:
Len Offset G3
4 0 Firmware Version
2 4 Reserved
16 6 Reserved
1 22 Device Type
1 23 Device Mode
2 24 Hardware Revision
6 26 Reserved
1 32 Port Assignments
1 33 Reserved
6 34 Reserved
1 40 TMR and COH Flags
1 41 Reserved
2 42 Reserved
8 44 Extended Address
6 52 Reserved
Total Message Length Excluding the two 16
bit CRC values
58
Field Description
Firmware Version A 32-bit value representing the firmware version, in the format of
MAJOR.MINOR.REVISION.BUILD.
Device Type The device type. The following are the supported device types:
Hardware Revision The hardware revision. A value of zero (0) represents pre Rev D
hardware, otherwise the revision is the hardware revision (Rev D
would be indicated by 68 (0x44, ‘D’)).
Value Description
0 SCI-A
1 SCI-B
Value Description
0 SCI-A
1 SCI-B
Value Description
0 Coherent Modulation disabled
1 Coherent Modulation enabled
TMR Flag
Value Description
0 ToneMask Request disabled
1 ToneMask Request enabled
Source Address A variable length source address is dependent on the device type as
follows:
2.3.3 GET_PHY_PIB
The GET_PHY_PIB message is used by host to retrieve PLC PHY PIB information on the
device. This message is always initiated by the host. An array of PHY PIB IDs are sent to the
device, and the device will reply will an array of PHY PIB TLVs.
GET_PHY_PIB Request:
Length Bits
Octets 7 6 5 4 3 2 1 0
2 Attribute ID
[. . .]
Field Description
Attribute ID
0xa0: phyStatsCRCIncorrectCount
0xa1: phyStatsCRCFailCount
0xa2: phyStatsTxDropCount
0xa3: phyStatsRxDropCount
0xa4 : phyStatsRxTotalCount
0xa5: phyStatsBlkAvgEvm
0xa8: phyEmaSmoothing
0xb0: phyTxQueueLen
0xb1: phyRxQueueLen
0xb2: phyTxProcessingDelay
0xb3: phyRxProcessingDelay
0xb4: phyAgcMinGain
0xb5: phyAgcStepValue
0xb6: phyAgcStepNumber
GET_PHY_PIB Reply:
Length Bits
Octets 7 6 5 4 3 2 1 0
2 Status
2 Attribute ID
2 Attribute Length
[. . .]
Field Description
Status The status of the request. The list of status codes can be found at Appendix 4.1.
2.3.4 GET_MAC_PIB
The GET_MAC_PIB message is used by host to retrieve PLC MAC PIB information on the
device. This message is always initiated by the host. An array of MAC PIB IDs are sent to the
device, and the device will reply will an array of MAC PIB TLVs.
GET_PIB Request:
Length Bits
Octets 7 6 5 4 3 2 1 0
4 Attribute ID
2 Attribute Index
[. . .]
Field Description
Attribute ID Attribute ID defined in Table 86 of 802.15.4-2006 and Clause 5.2 of G3 MAC
spec. See below section for list of PIBs applicable to G3 DC LMAC
Attribute Index The index within the table of the specified IB attribute to read. This parameter is
valid only for IB attributes that are tables.
GET_PIB Reply:
Length Bits
Octets 7 6 5 4 3 2 1 0
2 Status
4 Attribute ID
2 Attribute Index
2 Attribute Length
[. . .]
Field Description
Status Status Code Status Value
STAT_SUCCESS 0
STAT_ERR_FAILURE 0x81
STAT_UNSUPPORTED_ATTRIBUTE 0x90
STAT_INVALID_INDEX 0x91
Attribute ID Attribute ID defined in Table 86 of 802.15.4-2006 and Clause 5.2 of G3 MAC
spec.
Attribute Index The index within the table of the specified IB attribute to read. This parameter is
valid only for IB attributes that are tables.
Attribute Length Attribute Length for the ID,defined in Table 86 of 802.15.4-2006 and Clause
5.2 of G3 MAC spec.
Attribute Value Attribute Value for the ID, defined in Table 86 of 802.15.4-2006 and Clause 5.2
of G3 MAC spec.
2.3.5 SET_INFO
The SET_INFO message is used by host to set certain system parameters in the PLC device. This
message is always initiated from host.
SET_INFO Request:
Length Bits
Octets 7 6 5 4 3 2 1 0
2 INFO_Type
2 INFO_Length
var INFO_Value
Field Description
INFO_Type Type of information being set.
Value Description
0x0002 G3 PHY TX Parameters
0x0003 G3 PHY RX Parameters
INFO TYPE:
Length bits
Octets 7 6 5 4 3 2 1 0
1 Reserved Modulation
2 TX Level
10/
12/ Tone Mask
14
Field Description
Flag (Byte 0)
TMR Tone Map Request Mode
0 = disabled – non designated mode
1 = Enabled – PHY set to Tone Mask Req Mode.
Modulation TX Modulation:
Value Description
0x00 ROBO
0x01 BPSK
0x02 QPSK
0x03 8PSK
0x04 Reserved
0x05 SUPER ROBO (P1901.2 only)
Tone Mask Set spectral mask (static) where tones start, stop and notch.
UINT8 toneMask[0]: tone number for the first tone in the band.
UINT8 toneMask[1]: number of tones in the band.
UINT8 toneMask[2] – [11]: tone mask, 1 indicates the tone is on, 0
indicates the tone is off.
Length bits
Octets 7 6 5 4 3 2 1 0
1 reserved
2 Gain Value
10/
12/ Tone Mask
14
Field Description
Gain Value Manual gain value of 0 – 7 if AGC = 0. If AGC = 1, this field is
ignored.
AGC Automatic Gain Control. A value of 1 for AGC ON, value of 0
for AGC OFF.
BLI Block Level Interleaver. A value of 1 for BLI ON, value of 0 for
BLI OFF.
SET_INFO.reply:
Length bits
Octets 7 6 5 4 3 2 1 0
2 Status
Field Description
Status The status of the request. The list of status codes can be found at Appendix 4.1.
2.3.6 SHUT_DOWN
SHUT_DOWN Request:
Length bits
Octets 7 6 5 4 3 2 1 0
2 Reset_Type
Field Description
Reset_Type The type of shutdown or reset to perform.
Value Description
0x0000 Soft reset
0x0001 Soft shutdown
SHUT_DOWN Reply:
Length bits
Octets 7 6 5 4 3 2 1 0
2 Status
Field Description
Status The status of the request. The list of status codes can be found at Appendix 4.1
2.3.7 LOAD_SYSTEM_CONFIG
LOAD_SYSTEM_CONFIG Request:
Length Bits
Octets 7 6 5 4 3 2 1 0
2 Config Type
2 Config Length
var Configuration
[…]
Field Description
Config Type The type of configuration. The following are the supported types:
Value Description
0x0001 Port designation
0x0008 G3 configuration
Length bits
Octets 7 6 5 4 3 2 1 0
Field Description
Data Port Data Port designation.
Value Description
0 SCI-A
1 SCI-B
Value Description
0 SCI-A
1 SCI-B
0x0008 – G3 configuration:
Configuration Data:
Length bits
Octets 7 6 5 4 3 2 1 0
1 COH TMR
1 Reserved
8 G3 Long Address
6 Reserved
Field Description
TMR 0 = Tone mask request mode non-designated
1 = Tone mask request mode enabled
COH 0 = Coherent Modulation disabled
1 = Coherent Modulation enabled
G3 Long Address Device long address
LOAD_SYSTEM_CONFIG Reply:
Length bits
Octets 7 6 5 4 3 2 1 0
2 Status
Field Description
Status The status of the request. The list of status codes can be found at Appendix 4.1
2.3.8 SET_MAC_PIB
The SET_MAC_PIB message is used to set PLC PIB information on the device. This message is
always initiated from host. PIB TLVs are sent to the device.
Length bits
Octets 7 6 5 4 3 2 1 0
4 Attribute ID
2 Attribute Index
2 Attribute Length
Field Description
Attribute ID Attribute ID defined in Table 86 of 802.15.4-2006 and Clause 5.2 of G3 MAC spec.
Attribute Index The index within the table of the specified IB attribute to read. This parameter is
valid only for IB attributes that are tables.
Attribute Length Attribute Length for the ID,defined in Table 86 of 802.15.4-2006 and Clause 5.2 of
G3 MAC spec.
Attribute Value Attribute value for writable attribute from Table 86 of 802.15.4-2006 and Clause 5.2
of G3 MAC spec.
Field Description
Status Status Code Status Value
STAT_SUCCESS 0
STAT_ERR_FAILURE 0x81
STAT_UNSUPPORTED_ATTRIBUTE 0x90
STAT_INVALID_INDEX 0x91
STAT_READ_ONLY 0x92
2.3.9 CLEAR_PHY_PIB
The CLEAR_PHY_PIB message is used by host to clear certain PLC PHY PIB information on
the device. This message is always initiated by the host. An array of Attribute IDs are used to
list the PHY PIBs to be cleared.
CLEAR_PHY_PIB Request:
Length bits
Octets 7 6 5 4 3 2 1 0
2 Attribute ID
[. . .]
Field Description
Attribute ID Refer to G3 Spec
CLEAR_PHY_PIB Reply:
Length bits
Octets 7 6 5 4 3 2 1 0
2 Status
Field Description
Status The status of the request. The list of status codes can be found at Appendix 4.1
2.3.10 CLEAR_MAC_PIB
The CLEAR_MAC_PIB message is used by host to clear certain PLC MAC PIB information on
the device. This message is always initiated by the host. An array of Attribute IDs are used to
list the MAC PIBs to be cleared.
CLEAR_MAC_PIB Request:
Length bits
Octets 7 6 5 4 3 2 1 0
4 Attribute ID
Field Description
Attribute ID Attribute ID defined in Table 86 of 802.15.4-2006 and Clause 5.2 of G3
MAC spec.
CLEAR_MAC_PIB Reply:
Length bits
Octets 7 6 5 4 3 2 1 0
2 Status
Field Description
Status Status Code Status Value
STAT_SUCCESS 0
STAT_UNSUPPORTED_ATTRIBUTE 0x90
STAT_INVALID_INDEX 0x91
STAT_READ_ONLY 0x92
A process to flash firmware image is in place to provide an easy firmware update process as well
as help minimize error conditions. Each packet sent by the host is acknowledged by the PLC
modem before the host can send the next packet. The current packet can be resent by the host if
a negative acknowledgement is received from the device.
The host should send firmware image binary format, sent as 16 bit words.
1. The host initiates the firmware flash process by sending the device a START packet. The
payload is a 32bit file length (this should be the total number of bytes that will be sent).
2. The device sends an acknowledgement.
3. The host sends firmware packets (see payload type) to the device
4. For each packet, the device sends an acknowledgement.
5. The host completes the process by sending an END packet.
6. The device acknowledges the END, and reboots to the new firmware.
This diagnostic message is used to flash a firmware image to PLC. It should be noted that the
message is used to allow host application to flash the new PLC image (either received from PLC
network or other network) to the PLC sub-sysem.
Message sequence:
MSG_TYP = 0x94;
MSG_ORG = ‘1’; // originated from host
MSG_RPY = ‘0’; // reply message needed
MSG_BDY =
uint16_t HeaderCRC16; // CRC16 of the APE message header
uint16_t PayloadCRC16; // CRC16 of Payload, excluding
// HeaderCRC16 and PayloadCRC16
uint16_t PacketNum; // Packet Number, in the form of:
// 0x0000: Start (BOF)
// 0xfffe: End (EOF)
// 0xffff: Abort
// 0x0001-0xfffd: Packet Number
uint16_t PayloadType; // Payload Type
// 0x0000: SREC
// 0x0001: binary
uint8_t Payload[0..256]; // Firmware File packet
MSG_TYP = 0x94;
MSG_ORG = ‘0’; // originated from PLC
MSG_RPY = ‘1’; // end of message sequence
MSG_BDY =
uint16_t HeaderCRC16; // CRC16 of the host message header and PacketNum
uint16_t PayloadCRC16; // CRC16 of Payload, excluding
// HeaderCRC16 and PayloadCRC16
uint16_t PacketNum; // Packet Number or request
uint16_t Status;
3.0 References
[1] PLC Suite Host Message Protocol Specification
4.0 Appendix
4.1 Message Status Code Definitions
Message status error codes.
/*
* CRC16 look up table (PLC Message)
*/
static unsigned short crctable[256] = {
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7,
0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef,
0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6,
0x9339, 0x8318, 0xb37b, 0xa35a, 0xd3bd, 0xc39c, 0xf3ff, 0xe3de,
0x2462, 0x3443, 0x0420, 0x1401, 0x64e6, 0x74c7, 0x44a4, 0x5485,
0xa56a, 0xb54b, 0x8528, 0x9509, 0xe5ee, 0xf5cf, 0xc5ac, 0xd58d,
0x3653, 0x2672, 0x1611, 0x0630, 0x76d7, 0x66f6, 0x5695, 0x46b4,
0xb75b, 0xa77a, 0x9719, 0x8738, 0xf7df, 0xe7fe, 0xd79d, 0xc7bc,
0x48c4, 0x58e5, 0x6886, 0x78a7, 0x0840, 0x1861, 0x2802, 0x3823,
0xc9cc, 0xd9ed, 0xe98e, 0xf9af, 0x8948, 0x9969, 0xa90a, 0xb92b,
0x5af5, 0x4ad4, 0x7ab7, 0x6a96, 0x1a71, 0x0a50, 0x3a33, 0x2a12,
0xdbfd, 0xcbdc, 0xfbbf, 0xeb9e, 0x9b79, 0x8b58, 0xbb3b, 0xab1a,
0x6ca6, 0x7c87, 0x4ce4, 0x5cc5, 0x2c22, 0x3c03, 0x0c60, 0x1c41,
0xedae, 0xfd8f, 0xcdec, 0xddcd, 0xad2a, 0xbd0b, 0x8d68, 0x9d49,
0x7e97, 0x6eb6, 0x5ed5, 0x4ef4, 0x3e13, 0x2e32, 0x1e51, 0x0e70,
0xff9f, 0xefbe, 0xdfdd, 0xcffc, 0xbf1b, 0xaf3a, 0x9f59, 0x8f78,
0x9188, 0x81a9, 0xb1ca, 0xa1eb, 0xd10c, 0xc12d, 0xf14e, 0xe16f,
0x1080, 0x00a1, 0x30c2, 0x20e3, 0x5004, 0x4025, 0x7046, 0x6067,
0x83b9, 0x9398, 0xa3fb, 0xb3da, 0xc33d, 0xd31c, 0xe37f, 0xf35e,
0x02b1, 0x1290, 0x22f3, 0x32d2, 0x4235, 0x5214, 0x6277, 0x7256,
0xb5ea, 0xa5cb, 0x95a8, 0x8589, 0xf56e, 0xe54f, 0xd52c, 0xc50d,
0x34e2, 0x24c3, 0x14a0, 0x0481, 0x7466, 0x6447, 0x5424, 0x4405,
0xa7db, 0xb7fa, 0x8799, 0x97b8, 0xe75f, 0xf77e, 0xc71d, 0xd73c,
0x26d3, 0x36f2, 0x0691, 0x16b0, 0x6657, 0x7676, 0x4615, 0x5634,
0xd94c, 0xc96d, 0xf90e, 0xe92f, 0x99c8, 0x89e9, 0xb98a, 0xa9ab,
0x5844, 0x4865, 0x7806, 0x6827, 0x18c0, 0x08e1, 0x3882, 0x28a3,
0xcb7d, 0xdb5c, 0xeb3f, 0xfb1e, 0x8bf9, 0x9bd8, 0xabbb, 0xbb9a,
0x4a75, 0x5a54, 0x6a37, 0x7a16, 0x0af1, 0x1ad0, 0x2ab3, 0x3a92,
0xfd2e, 0xed0f, 0xdd6c, 0xcd4d, 0xbdaa, 0xad8b, 0x9de8, 0x8dc9,
0x7c26, 0x6c07, 0x5c64, 0x4c45, 0x3ca2, 0x2c83, 0x1ce0, 0x0cc1,
0xef1f, 0xff3e, 0xcf5d, 0xdf7c, 0xaf9b, 0xbfba, 0x8fd9, 0x9ff8,
0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0
};
crc = *pcrcvalue;
while (length--)
{
crc = (crc << 8) ^ crctable[(crc >> 8) ^ *buf++];
}
*pcrcvalue = crc;
}
crc = 0;
CRC16_UpdateChecksum(&crc, data, length);
return crc;
}
/// <summary>
/// Calculates the checksum of the input data array.
/// </summary>
/// <param name="data">The input data array.</param>
/// <param name="length">The length of the data array.</param>
/// <returns>Returns the CRC32 value</returns>
/// <remarks></remarks>
public static UInt32 CalculateChecksum(byte[] data, int length)
{
UInt32 crc = CRC32_INIT_VALUE; // equals zero
for (int index = 0; index < length; index++)
{
crc = getCRC32_byte(crc, data[index]);
}
return crc;
}
/// <summary>
/// Calculates the CRC32 from the input byte.
/// </summary>
/// <param name="input_crc32_accum">The input_crc32_accum.</param>
/// <param name="data">The data.</param>
/// <returns>Returns the crc value</returns>
/// <remarks></remarks>
public static UInt32 getCRC32_byte(UInt32 input_crc32_accum, byte data)
{
UInt32 i;
UInt32 crc32_accum;
crc32_accum = input_crc32_accum;
i = ( crc32_accum >> 24 ) ^ ((data));
crc32_accum = (crc32_accum << 8) ^ crctable[i];
return crc32_accum;
}
ADP payload
Encryption
padding
CCM
Encrpyted ADP payload
padding
MAC CCM
Encrpyted ADP payload
header padding
LOWER MAC
MAC CCM
Encrpyted ADP payload
header padding
Note that LMAC will compute the exact PHY PDU size, apply PHY padding and CRC16.
The following list shows the set of MAC PIB attributes that are supported by G3 version 4.2 or
above. The length field shows the value to be used while setting these PIB Attributes.