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:
gillwei7
Date:
Sat Nov 07 09:02:38 2015 +0000
Revision:
4:b52035367aee
Parent:
0:5c195ab2f696
Child:
5:ee474e3133eb
20151107_Gill Wei commit_change to BLE API/nRF library API; _known bug : if write longer data than before, Read data need twice.

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 4:b52035367aee 31 {"cynw", NULL, (const char*) wifiCommandSets, "Command set for WiFi module"},
gillwei7 0:5c195ab2f696 32 #endif
gillwei7 4:b52035367aee 33 {NULL, NULL, NULL, NULL},
gillwei7 0:5c195ab2f696 34 };
gillwei7 0:5c195ab2f696 35
gillwei7 0:5c195ab2f696 36