This CLI (Command Line Interface) is based mbed-os. Both NNN50 and NQ620 are supported.

Fork of NNN40_CLI by Delta

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

/media/uploads/tsungta/mbed_serial_port_1.png

Please open the com port at 115200 8n1 as default

Committer:
tsungta
Date:
Fri May 12 01:53:35 2017 +0000
Revision:
25:1423b707b705
Parent:
5:ee474e3133eb
update mbed-os to revision 2992; Note that NNN50 is temporary not supported due to the memory constraint

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gillwei7 0:5c195ab2f696 1 /**
gillwei7 0:5c195ab2f696 2 * File: core-cli.c
gillwei7 0:5c195ab2f696 3 * Description: Core CLI commands used by all applications regardless of profile.
gillwei7 0:5c195ab2f696 4 *
gillwei7 0:5c195ab2f696 5 * Copyright 2014 by CYNTEC Corporation. All rights reserved.
gillwei7 0:5c195ab2f696 6 */
gillwei7 0:5c195ab2f696 7
gillwei7 0:5c195ab2f696 8 #include <stdint.h>
gillwei7 0:5c195ab2f696 9 #include <string.h>
gillwei7 0:5c195ab2f696 10 #include "command-interpreter.h"
gillwei7 0:5c195ab2f696 11 #include "nrf.h"
gillwei7 0:5c195ab2f696 12
gillwei7 0:5c195ab2f696 13 #if (DELTA_BLE_ON == 1)
gillwei7 0:5c195ab2f696 14 #include "ble_cli.h"
gillwei7 0:5c195ab2f696 15 #endif
gillwei7 0:5c195ab2f696 16 #if (DELTA_WIFI_ON == 1)
gillwei7 0:5c195ab2f696 17 #include "wifi_cli.h"
gillwei7 0:5c195ab2f696 18 #endif
gillwei7 0:5c195ab2f696 19
gillwei7 0:5c195ab2f696 20
gillwei7 0:5c195ab2f696 21 CyntecCommandEntry cyntecCommandTable[] = {
gillwei7 4:b52035367aee 22 #if (DELTA_BLE_ON == 1)
gillwei7 4:b52035367aee 23 #if SIMPLE_CMD_NAME
gillwei7 4:b52035367aee 24 {"BLE", NULL, (const char*) bleCommandSets, "Command set for BLE module"},
gillwei7 4:b52035367aee 25 #else
gillwei7 4:b52035367aee 26 {"cynb", NULL, (const char*) bleCommandSets, "Command set for BLE module"},
gillwei7 0:5c195ab2f696 27 #endif
gillwei7 4:b52035367aee 28 #endif
gillwei7 4:b52035367aee 29
gillwei7 0:5c195ab2f696 30 #if (DELTA_WIFI_ON == 1)
gillwei7 5:ee474e3133eb 31 #if SIMPLE_CMD_NAME
gillwei7 5:ee474e3133eb 32 {"WIFI", NULL, (const char*) wifiCommandSets, "Command set for WiFi module"},
gillwei7 5:ee474e3133eb 33 #else
gillwei7 4:b52035367aee 34 {"cynw", NULL, (const char*) wifiCommandSets, "Command set for WiFi module"},
gillwei7 0:5c195ab2f696 35 #endif
gillwei7 5:ee474e3133eb 36 #endif
gillwei7 4:b52035367aee 37 {NULL, NULL, NULL, NULL},
gillwei7 0:5c195ab2f696 38 };
gillwei7 0:5c195ab2f696 39
gillwei7 0:5c195ab2f696 40