mirror of
https://github.com/espressif/openthread.git
synced 2026-08-15 07:07:46 +00:00
[diag] add new command to factory diags (#11001)
Commit adds new command to factory diag called `radio`. - `enable` for enabling the interface to default mode, - `disable` for disabling the interface
This commit is contained in:
@@ -227,6 +227,24 @@ Return the state of the radio.
|
||||
sleep
|
||||
```
|
||||
|
||||
### diag radio enable
|
||||
|
||||
Enable radio interface and put it in receive mode.
|
||||
|
||||
```bash
|
||||
> diag radio enable
|
||||
Done
|
||||
```
|
||||
|
||||
### diag radio disable
|
||||
|
||||
Disable radio interface.
|
||||
|
||||
```bash
|
||||
> diag radio disable
|
||||
Done
|
||||
```
|
||||
|
||||
### diag rawpowersetting
|
||||
|
||||
Show the raw power setting for diagnostics module.
|
||||
|
||||
@@ -635,6 +635,14 @@ Error Diags::ProcessRadio(uint8_t aArgsLength, char *aArgs[])
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (StringMatch(aArgs[0], "enable"))
|
||||
{
|
||||
SuccessOrExit(error = Get<Radio>().Enable());
|
||||
}
|
||||
else if (StringMatch(aArgs[0], "disable"))
|
||||
{
|
||||
SuccessOrExit(error = Get<Radio>().Disable());
|
||||
}
|
||||
|
||||
exit:
|
||||
AppendErrorResult(error);
|
||||
|
||||
Reference in New Issue
Block a user