The addresses (Src and Dst) and the PAN ID can be customized via CLI commands. If you want a complete list of the available commands issue the help command.
Once your packet has been customized, use the send
command to send the packet and wake-up the RCP.
Follow this sequence (tested on BRD4166A) to validate the behavior:
Retrieve PanId of the created Thread network.
user@ubuntu:~$ sudo ot-ctl dataset active
Active Timestamp: 1
Channel: 15
Channel Mask: 0x07fff800
Ext PAN ID: 1111111122222222
Mesh Local Prefix: fd47:8922:96ec:b4d0::/64
Network Key: 00112233445566778899aabbccddeeff
Network Name: OpenThreadDemo
PAN ID: 0xcafe
PSKc: 445f2b5ca6f2a93a55ce570a70efeecb
Security Policy: 672 onrc 0
Done