Bluesee Ble Debugger For Mac
To more easily manipulate the BLE interface without having to continually refer to GUIDs I'm using the BlueSee application on the Mac. In this application you can develop Lua scripts to provide a simple interface in English. Install the SetWifiPoC BlueSee.lua script into the BlueSee application. The serial monitor is fine for debugging purposes, and you don't need bluetooth for that, but that is all it is for and, if you are serious about data aquisition, a proper terminal is a better proposition irrespective of whether you are using bluetooth or cable.
This guide will show you how to turn your Mac into a Bluetooth Low Energy (BLE) peripheral device for creating your very own BLE services and characteristics.
Steps
- Check if you have node.js installed already
In Terminal, run this command: Install node.js on your Mac
Go to the Node.js website
Download the installer for the latest LTS version (v6.11.2 LTS at the time of writing)
Follow the installer promptsDownload example files from the bleno github repoEcho example
It includes two files: main.js & characteristic.js
Place these 2 files by themselves in a folder somewhereIn Terminal, navigate to the folder containing your main.js and characteristic.js files
- Use Node Package Manager (npm) to install bleno in that directory
Run this command in Terminal: - In Terminal, run the main.js script to start advertising your device
- Open a BLE app, like LightBlue to view your device, its services and characteristics
LightBlue for iOS
LightBlue for MacOS
Any value you write to the Echo Characteristic (UUID: 0xEC0E) on the device should be echoed in the Terminal window
Blue Sea Ble Debugger For Mac Catalina
Output in Terminal:
To quit the node program, press Control + C
For more info, see the bleno github page
Blue Sea Ble Debugger For Mac Download
Enjoy!