6 Command Table

User Commands that serves as an convenient method to utilise the API's in Standalone 15.4 PHY component and facilitates switch between different modes in application. These commands implementation can be found in app_phy_cmd_processor.c file under app_p2p_phy/app_phy_cmd_processor/src/ folder. The aforementioned file is highlighted in the following figure.
Note: Argument values/input values alongside the Commands must be given in integer(unsigned/signed) unless exceptionally mentioned as "in hex" in command table below. Some of the range mentioned in the following Command Table description is based on PHY layer Pan Information Base (PIB) attributes. PIB attributes are database of managed objects pertaining to the PHY Layer. Please refer IEEE 802.15.4 - 2003/2006 spec for more details on PIB attributes of PHY layer.
Figure 6-45. app_phy_cmd_processor.c
Table 6-4. Command Table Description
CommandDescriptionSyntax & RangeReference/Example
phyInitPHY Layer Initialization-phyInit
phyResetResets the PHY state machine and sets the default PIB value if requestedphyReset,<set default PIB values-true/false>

phyReset,true

phyEdScanEnergy detection scan startphyEdScan, <set scan duration ranging from 0 to 14>(unit - symbols)phyEdScan,8
getAttributeGet PHY PIB attribute: Attribute id can be referred from PHY PIB attribute table (common command to set any PHY PIB attribute)getAttribute, <attribute id (hex)>getAttribute, <attribute id(hex)>
Note: For Attribute ID refer to IEEE 802.15.4 spec - PHY PIB attributes table.
setAttributeSet PHY PIB attribute (common command to set any PHY PIB attribute)setAttribute, <attr id (hex)>
Note: For Attribute ID refer to IEEE 802.15.4 spec - PHY PIB attributes table.
getChannelGet the Current Channel.--getChannel
setChannelSet the Current Channelsetchannel, <11 – 26>setChannel, 11
getChannelPgSet the Channel Page --getChannelPg
setChannelPgSet the Channel Page setChannelPg, <0/2/16/171>setChannelPg,0
getPanIdGet the PAN ID( INTRAPAN - 16bits)--getPanId
setPanIdSet Network PAN IDsetPanId, <panid in hex 0x0000-0xffff - 16bits>setPanId,0x0001
getDestAddrGet the destination short address (16 bits)--getDestAddr
setDestAddrSet the destination short address (16 bits)setDestAddr,<0x0000-0xffff - 16bits>setDestAddr,0x0001
getExtDestAddrGet the destination short address (64 bits)--getExtDestAddr
setExtDestAddrSet the destination Long address (64 bits)setExtDestAddr,<0x0000000000000000-0x7fffffffffffffff - 64bits>setExtDestAddr,0x123456
getSrcAddrGet Short Address – 16 bits--getSrcAddr
setSrcAddrSet Short Address – 16 bitssetSrcAddr,<0x0000-0xffff>setSrcAddr,0x0002
getIeeeAddrGet IEEE Address – 64 bits--getIeeeAddr
setIeeeAddrSet IEEE Address – 64 bitssetIeeeAddr,<0x0000000000000000-0x7fffffffffffffff - 64bits>setIeeeAddr,0x1234567
getCsmaModeGet the CSMA mode --getCsmaMode
setCsmaModeSet the CSMA modesetCsmaMode,<0-3> setCsmaMode,0
getTxPwrGet the Tx Power in DBm--getTxPwr
setTxPwrSet the Tx Power in DBm setTxPwr,<-12 to 14>(unit - DBm)setTxPwr,3
getIeeeAddrGet 64-bit address--getIeeeAddr
getFrameRetryMAC level frame retries--getFrameRetry
setFrameRetrySet the MAC level Frame Retry to be retried in case of transmission failure.setFrameRetry, <0 – 7>setFrameRetry,1
rxEnableReceiver EnablerxEnable , <Set TRX states PHY_STATE_RX_ON/PHY_STATE_TRX_OFF: true/false>rxEnable ,true
trxSleepPut the transceiver to sleeptrxSleep, <sleep mode - sleep mode 1/deep sleep - false/true>trxSleep, 0
trxWakeupWakeup the transceiver--trxWakeup
CCAPerform CCA over the channel given by the userCCA, <phychannel: 11-26>CCA,11
updateDeviceTableUpdate the Device table with info like short address, ieee address and corresponding device index.updateDeviceTable, <device index (0-total no. of devices), short address(0x0000-0xffff (16 bits)), ieee address(64 bits)>
Note: Total No. of Devices = 64 (default, MACRO associated : NUM_OF_DEVICES)
updateDeviceTable,1,0x1234,0x1234567
readDeviceTableRead the Device table info based on table index.readDeviceTable, < device index – 255 – if entire list of devices in device table need to be displayed/specific index of the device table>readDeviceTable, 2 =>read the device info at index 2

readDeviceTable, 255 =>read the device info of all the devices.

+++Enter data mode+++, <Time period in microseconds>+++,1000000 =>[1000000usec = 1sec]
&&&Exit Data Mode--&&&
periodTestModeEnter Periodic Test ModeperiodTestMode, <Time period in microsecs>periodTestMode,1000000
contTestModeStart Continuous Test Mode--contTestMode
perTestModeStart PER Test Mode--perTestMode
throughputTestModeStart ThroughputTest Mode--throughputTestMode
stopTestModeStop All Active application Test Modes (periodTestMode, contTestMode, perTestMode, throughputTestMode)--stopTestMode
updatePERTestPacketsCntUpdate PER test PacketsupdatePERTestPacketsCnt,<0-4294967295 packets>updatePERTestPacketsCnt,100
promTestModeEnable promiscuous RX mode--promTestMode
updateThroughputTimeUpdate Throughput TimerupdateThroughputTime,<0-4294967295us>updateThroughputTime,1000000
getFrameTypeType of frame to be TX/RX--getFrameType
setFrameTypeType of frame to be TX/RXsetFrameType,<0-5>setFrameType, 0
phyCntTxStarts continuous transmission on current channelphyCntTx,<txMode-0/1-CW_MODE/PRBS_MODE>,<userandomcontent -true/false>phyCntTx,0,true
stopPhyCntTxStops continuous transmission on current channel--stopPhyCntTx
ConfigRxRPCModeConfigures the reduced power consumption mode ConfigRxRPCMode,<true - To Enable the rxRPC mode, false - To disable the rx RPC mode>ConfigRxRPCMode,true
configAutoAckConfigures TRX for auto acknowledging the reserved frameconfigAutoAck,<enableAACK-true/false>configAutoAck,true
getRSSIBaseValget the base RSSI value for respective radios--getRSSIBaseVal
getTrxStatusget the status of the transceiver--getTrxStatus
configRxSensitivityConfigures receiver sensitivity level. This is used to desensitize the receiverconfigRxSensitivity,<pdtlevel:0-15>configRxSensitivity,0
Note: Addressing Mode is set to 16 bit type as default config in application. (Can be modified using the API app_P2P_Phy_setAddressModes)
Note: Please Refer Standalone IEEE 15.4 PHY component API guide for more details