Skip to main content

NX15 BLE Application Guide

This page explains the common BLE application patterns used with NX15.

It focuses on application behavior such as advertising, connection-based communication, GATT services, and gateway-based data flow.

note

This page does not cover hardware bring-up, antenna layout, or low-power tuning. Use the related pages at the end for those topics.


BLE Application Models

NX15 BLE applications usually follow one of these models.

ModelDescriptionExample
Advertising onlyDevice broadcasts small data without connectionBeacon, simple sensor broadcast
Connection-basedDevice connects to a phone, gateway, or controllerWearable, smart sensor, configuration device
GATT serviceDevice exposes structured data as services and characteristicsBattery, sensor value, device status
Gateway-basedBLE device sends data locally to a gateway, and the gateway forwards it onwardIndustrial monitoring, building automation

Advertising Application

Advertising is useful when the device only needs to broadcast small data or be discovered by another device.

Typical advertising use cases:

Use CaseDescription
BeaconBroadcasts ID or location-related data
Sensor broadcastSends compact sensor data periodically
Device discoveryAllows a phone or gateway to find the device
Status broadcastSends simple device state without connection

Advertising design questions:

QuestionWhy It Matters
What data should be broadcast?Advertising payload is limited
How often should the device advertise?Affects discovery speed and power
Should the device allow connection?Some devices advertise only, others accept connections
Is privacy required?Address behavior and payload design may matter

Connection-Based Application

A connection-based BLE application is useful when the central device needs to read, write, configure, or control the NX15 device.

Common central devices:

Central DeviceExample
SmartphoneMobile app configuration or monitoring
GatewayData collection and local network bridge
PC toolDevelopment, test, or production setup
ControllerLocal control system

Typical connected actions:

ActionExample
Read dataSensor value, battery level, device status
Write configurationMeasurement interval, device mode, threshold
Receive notificationSensor event, alarm, state change
Firmware-related controlDevice mode or update trigger, depending on project implementation

GATT Service Design

GATT is commonly used to organize BLE data into services and characteristics.

GATT ItemMeaning
ServiceA group of related functions
CharacteristicA data point or control item
ReadCentral device reads a value
WriteCentral device updates a value
NotifyPeripheral sends value changes to central device

Example structure:

ServiceCharacteristicOperation
Device Status ServiceBattery levelRead / Notify
Sensor ServiceTemperatureRead / Notify
Configuration ServiceMeasurement intervalRead / Write
Control ServiceDevice modeRead / Write
tip

Keep GATT design simple at first. Start with a small number of services and add more only when the application requires them.


Gateway-Based BLE Flow

In many IoT systems, the BLE device does not connect directly to the cloud. Instead, it sends data to a nearby gateway.

StepDescription
1NX15 reads sensor or application data
2NX15 advertises or connects to a gateway
3Gateway receives BLE data
4Gateway forwards data to local server or cloud
5Application displays or processes the data

This approach is useful for smart buildings, factories, indoor monitoring, and environments where many low-power BLE devices report to one gateway.


Application Bring-up Checklist

StepCheck
1Confirm basic firmware runs
2Verify BLE advertising is visible
3Define advertising payload or GATT structure
4Test connection from phone, PC, or gateway
5Test read/write/notify behavior
6Add sensor or application data
7Validate behavior over time
8Optimize power using the Low Power Guide

Common BLE Application Issues

SymptomPossible CauseCheck
Device not visibleAdvertising not enabled or RF issueCheck firmware and antenna design
Cannot connectDevice not connectable or connection settings mismatchCheck advertising mode
Data not updatingNotification not enabled or application state not refreshedCheck characteristic behavior
Phone sees old dataAdvertising payload not updatedCheck application update logic
Gateway misses dataAdvertising interval too long or scan window too shortCheck both device and gateway settings
Battery drains quicklyBLE timing too aggressiveReview Low Power Guide

What Not to Include Here

TopicGo To
First board bring-upNX15 Quick Start
Power and debug hardwareNX15 Hardware Design
Antenna layoutNX15 Antenna Design
Sleep and current optimizationNX15 Low Power Guide
Thread / Matter applicationNX15 Thread / Matter Guide