User Commands that serve as a convenient method to utilize the API's in Standalone 15.4
PHY component and facilitates switch between different modes in application. This
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. Refer IEEE 802.15.4 -
2003/2006 spec for more details on PIB attributes of PHY layer.
Figure 7-45. app_phy_cmd_processor.c
Table 7-4. Command Table Description
Command
Description
Syntax and Range
Reference/Example
phyInit
PHY Layer Initialization
—
phyInit
phyReset
Resets the PHY state machine and sets the default PIB value if
requested
phyReset,<set default PIB values-true/false>
phyReset,true
phyEdScan
Energy detection scan start
phyEdScan, <set scan duration ranging from 0 to 14>(unit -
symbols)
phyEdScan,8
getAttribute
Get 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.
setAttribute
Set 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.
ConfigRxRPCMode,<true - To Enable the rxRPC mode, false - To
disable the rx RPC mode>
ConfigRxRPCMode,true
configAutoAck
Configures TRX for auto acknowledging the reserved frame
configAutoAck,<enableAACK-true/false>
configAutoAck,true
getRSSIBaseVal
get the base RSSI value for respective radios
—
getRSSIBaseVal
getTrxStatus
get the status of the transceiver
—
getTrxStatus
configRxSensitivity
Configures receiver sensitivity level. This is used to desensitize
the receiver
configRxSensitivity,<pdtlevel:0-15>
configRxSensitivity,0
Note: Addressing Mode is set to 16 bit type as default configuration
in application. (Can be modified using the API
app_P2P_Phy_setAddressModes)
Note: For more details on standalone IEEE 15.4 PHY component, refer to
the MPLAB® Harmony Wireless 15.4 PHY API Reference Manual of
Software Libraries and Specifications in Reference Documentation from
Related Links.