About Sample Source, " IEEE 802.15.4 PHY test tool" , i do not understand any command.

Dear

I red document   "IEEE 802.15.4 PHY test tool"

url : https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/peripheral/802154_phy_test/README.html#lgetrssi-measure-rssi

By the way, i do not understand any command.

Command is about SetChannel and AntennaID.

1. what is AntennaID ?

2.  

 custom setchannel <channel:3> <channel:2> <channel:1> <channel:0>.

  The four <channel:x> arguments are four octets defining the channel page and number.

For example:

custom setchannel 0 0 8 0

What is Channel page ?

Why are four octets?

Parents Reply Children
  • Just to clarify a bit first:
    In the Phy Test Tool is there are devices of two types: the CMD device and the DUT device. A board is by default in DUT mode after bootup. The idea is that DUT has by default the 802.15.4 radio enabled and it does not need any physical connection to the tester (like UART) - the commands are send to it wireless via the 802.15.4 protocol by the CMD device (to which the user/tester can communicate via UART). Also note, that all the commands have a prefix either l, c or no prefix - where l means perform command on CMD, r - on the DUT device, and no prefix means "perform on both". So, for example custom lsetchannel means set channel on the CMD device, custom rsetchannel means set channel on the DUT device (however the UART command is sent to the CMD device), and the custom setchannel means set channel on both DUT and CMD. So, before you play around with commands you should first try to change the mode to CMD by running the command custom changemode 1.

    When it comes to the setchannel command:
    The number which are passed are a bit mask, and each number represents 8 bits. So for example to set channel 0 (this is impossible, just as an simple example) you have to do custom setchannel 0 0 0 1, to set channel 1 you needcustom setchannel 0 0 0 2, to set channel 2 you needcustom setchannel 0 0 0 4 and so on.

Related