BaudBuddy

A BLE UART terminal for macOS

Nordic UART Service and HM-10 from a Mac, why there is no baud rate to set, and the 20 byte packet limit that makes a working link look broken.

Wireless serial is a comfortable lie. Your board has a UART, a BLE module sits on the other end of it, and from your Mac it feels like a serial port. It is not one, and the places where the illusion leaks are predictable enough to list.

The two services you will meet

There is no standard Bluetooth profile for serial over BLE. Classic Bluetooth had SPP; BLE dropped it, and the industry settled on two conventions instead.

Nordic UART Service. Service UUID 6E400001-B5A3-F393-E0A9-E50E24DCCA9E, with one characteristic you write to and one that notifies you back. If your board is nRF based, or you are using an Adafruit Bluefruit, or you followed almost any ESP32 BLE UART example, this is what you have.

HM-10. Service FFE0, characteristic FFE1, from the CC2541 modules that sell as HM-10, HM-19, AT-09 and JDY-08 depending on who printed the label. One characteristic doing both directions.

Anything else and you are writing to a characteristic by hand.

There is no baud rate

The module has a UART on its wired side, and that side has a baud rate, usually 9600 or 115200. Getting it wrong means the module and your board disagree, and you see nonsense.

The BLE link has no baud rate at all. No parity, no stop bits, no flow control, no break. Those concepts do not exist above the radio.

So a terminal that offers you a baud rate for a Bluetooth connection is showing you a control that does nothing. It is a small dishonesty and it costs someone an hour eventually, when they change it, see no difference, and start looking for the fault somewhere real.

The Bluetooth device list in BaudBuddy, showing discovered BLE peripherals with signal strength

Scanning for peripherals. Live signal strength is worth more here than it sounds: it is the quickest way to tell a module that is asleep from one that is simply out of range.

The 20 byte thing

This is the one that makes a working link look broken.

A BLE notification carries 20 bytes by default, because the default ATT MTU is 23 and three go to the header. Send 100 bytes from your board and they arrive as five separate notifications.

If your code on either side assumes one write equals one message, it breaks here, and it breaks intermittently, which is worse. A short message works. A long one splits. A message that splits across a line ending gets processed as two lines.

Modern stacks negotiate a larger MTU, often up to 244 bytes of payload, but both ends have to agree and plenty of firmware never asks. Assume you may be framed at 20 bytes and make the protocol tolerate it: terminate lines properly, do not rely on packet boundaries, and reassemble before parsing.

Throughput follows from the same place. BLE UART realistically gives you a few kilobytes per second. It is fine for a console and poor for a firmware image.

Connecting from a Mac

macOS handles BLE through Core Bluetooth, and there are two consequences worth knowing.

You will not find these devices in the Bluetooth pane of System Settings. BLE peripherals like this are not paired in the usual sense; the application discovers and connects to them directly. Looking for the module in System Settings and not finding it means nothing is wrong.

And the app needs Bluetooth permission, which macOS asks for once. If a scan finds nothing at all, check that before you check the module.

When you find nothing

In the order that actually resolves it:

  • Is the module advertising? Most stop advertising while connected to something else. Your phone, from the last time you tested. Disconnect it there.
  • Is it powered and out of reset? A board holding the module in reset advertises nothing.
  • Is it BLE? An HC-05 or HC-06 is classic Bluetooth, not BLE. It will never appear in a BLE scan, and it needs pairing in System Settings instead, after which it shows up as a normal serial port.
  • Permission. Check System Settings, Privacy and Security, Bluetooth.
  • Range. BLE claims more range than it delivers indoors. Move closer before concluding anything.

When it connects but nothing arrives

  • Wrong characteristic. With HM-10 you write to and receive on the same one. With Nordic UART they are separate, and writing to the notify characteristic fails silently.
  • Notifications not enabled. The central has to subscribe. A client that connects but never subscribes sits there receiving nothing forever.
  • The module’s wired baud is wrong. The BLE side is fine and the module is reading garbage from your board. Check the UART speed on the module itself.
  • Your board is not actually sending. Confirm over a wired connection first. Half the BLE problems people bring are wiring problems wearing a costume.

Saving the connection

The last small thing. A BLE peripheral is identified by a UUID that macOS assigns, not by a MAC address, and it is stable per Mac. So a saved connection finds the same module again without another scan, which matters when you are flashing and testing the same board fifty times in an afternoon.

BaudBuddy saves BLE connections the same way it saves serial ones, and it does not offer you a baud rate for them, because there is not one.