This CLI (Command Line Interface) is based mbed-os. Both NNN50 and NQ620 are supported.
Fork of NNN40_CLI by
BLE CLI Document can be downloaded here .
Note that when evaluate using Windows PC as the host, the Serial driver need to be installed in advance. The instruction is explained in the link below
https://developer.mbed.org/handbook/Windows-serial-configuration
Once installed, a device called 'mbed Serial Port (COM#)' should be recognized in Device Manager, as shown below
Please open the com port at 115200 8n1 as default
Diff: main.cpp
- Revision:
- 25:1423b707b705
- Parent:
- 21:72d7a6e85d7f
--- a/main.cpp Fri Nov 11 09:02:51 2016 +0000 +++ b/main.cpp Fri May 12 01:53:35 2017 +0000 @@ -1,4 +1,3 @@ -#include <mbed-events/events.h> #include <mbed.h> #include "Gap.h" @@ -7,8 +6,12 @@ #include "ble_cli.h" +#if defined(TARGET_DELTA_DFCM_NNN50) +#error Delta_CLI is not supported on NNN50 temporary due to the memory constraint +#endif + #define uart_buffer_size 64 //Do not increase uart_buffer_size to prevent out of memory, -#define uart_baudrate 38400 //supported baudrate range between 1200 to 230400 (38400) for NQ620 (NNN40) +#define uart_baudrate 38400 //supported baudrate range between 1200 to 230400 (38400) for NQ620 (NNN50) unsigned char uart_buf[uart_buffer_size]; unsigned int i = 0;