[diag] add diag rcp echo command (#7585)

There is no command that can generate different sizes of Spinel frames
for testing the SPI/UART interface. This commit adds a diag command
`diag rcp echo` to RCP for testing SPI/UART interface.
This commit is contained in:
Zhanglong Xia
2022-04-14 09:06:49 -07:00
committed by GitHub
parent d51eb07c62
commit 5e9f6f1e67
4 changed files with 114 additions and 4 deletions
+12
View File
@@ -53,5 +53,17 @@ expect "status 0x7"
expect_line "Done"
send "diag rcp power 10\n"
expect_line "Done"
send "diag rcp echo\n"
expect "failed"
expect "status 0x7"
expect_line "Done"
send "diag rcp echo 0123456789\n"
expect_line "0123456789"
expect_line "Done"
send "diag rcp echo -n 0\n"
expect_line "Done"
send "diag rcp echo -n 253\n"
expect_line {[0-9]{253}}
expect_line "Done"
dispose_all