1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/shell_ble
2022-04-25 08:43:51 +02:00
..
tests-with-config tests/shell_ble: add variant of shell test for stdio_nimble 2022-01-28 19:26:38 +01:00
main.c tests/shell_ble: add variant of shell test for stdio_nimble 2022-01-28 19:26:38 +01:00
Makefile pkg/nimble/autoadv: prefix configurations with CONFIG_ 2022-04-25 08:43:51 +02:00
README.md tests/shell_ble: add variant of shell test for stdio_nimble 2022-01-28 19:26:38 +01:00

This is basically the same tests as for the normal shell, but here we are testing via blueooth instead of UART. You have to set up a virtual serial port manually.

For instructions on how to open a virtual serial port to your bluetooth device see sys/stdio_nimble/README.

Note: make term and make test-with-config will open two different types of terminals.

  • When calling make term then a terminal will communicate with the board via UART. Due to the nature of stdio_nimble the board won't respond to input coming from here)
  • When calling make test-with-config then picocom will communicate with the board via the given virtual serial port

So a procedure to run this test could be: 0. Make sure that the current test application instance is fresh and no test was run on it before. Otherwise your test might fail, because the test case check_control_d only works once per run.

  1. Execute make flash term
  2. Open a virtual serial port with ble-serial and note the virtual serial port that was created (search for Slave created on /tmp/dev_riot_ble -> /dev/pts/25)
  3. Execute PORT=/dev/pts/25 make test-with-config