mirror of
https://github.com/espressif/openthread.git
synced 2026-10-10 09:47:35 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user