A Web Command Line Interface via NUS (Nordic UART Service) using Web Bluetooth.
- nRF52 based board, see Supported Boards for more information
- A Web Bluetooth enabled browser: Chrome 56+, etc.
- BLE CLI firmware with NUS enabled
This repo has a live web page hosted here:
https://makerdiary.github.io/web-device-cli
The pre-built CLI firmwares can be found in the firmware folder. Follow the commands below to flash the firmware:
# For nRF52832-MDK board
pyocd flash -t nrf52 ble_app_cli_nrf52832_mdk_s132.hex
# For nRF52840-MDK board
pyocd flash -t nrf52840 ble_app_cli_nrf52840_mdk_s140.hex
# For nRF52840-MDK USB Dongle
# Enter Bootloader mode by holding the button and plugging the dongle into your PC
# Flash Softdevice first
nrfutil dfu serial -pkg s140_nrf52_6.1.0_softdevice_dfu_pkg.zip -p <Serial port>
# Then flash the application
nrfutil dfu serial -pkg ble_app_cli_nrf52840_mdk_usb_dongle_app.zip -p <Serial port>
The BLE CLI source code is located here. You can check it out and build your own firmware:
See this post to set up your development environment with nRF5 SDK and ARM GCC.
We are continually adding board-specific support as documented below.
We would love for you to contribute to this project and help make it even better than it is today.