[low-power] add cli command macsend for certification (#5573)

This command allows an Rx-Off-When-Idle device to send an empty mac
data frame or mac datarequest to its parent. This command is only used
for certification.
This commit is contained in:
Li Cao
2020-10-11 10:46:20 -07:00
committed by GitHub
parent a06bba9d1e
commit a4368909ff
12 changed files with 218 additions and 36 deletions
+8
View File
@@ -956,6 +956,14 @@ class NodeImpl:
self.send_command('csl timeout %d' % csl_timeout)
self._expect('Done')
def send_mac_emptydata(self):
self.send_command('mac send emptydata')
self._expect('Done')
def send_mac_datarequest(self):
self.send_command('mac send datarequest')
self._expect('Done')
def set_router_upgrade_threshold(self, threshold):
cmd = 'routerupgradethreshold %d' % threshold
self.send_command(cmd)