Open Source: Four Modes to Master BLE Low Energy Bluetooth Development

Open Source: Four Modes to Master BLE Low Energy Bluetooth Development

The Hezhou Air8000 is a high-performance industrial engine that integrates multiple functions such as 4G, Wi-Fi, BLE, and GNSS (Global Navigation Satellite System). It supports 485/232/Ethernet drivers/multi-network integration/VoLTE calls, providing over 50 programmable I/O ports to meet the continuous communication capabilities and complex peripheral expansion needs of IoT devices in complex industrial scenarios.

Previously, we shared a traffic phone/full-duplex intercom solution based on the Air8000. Today, let’s discuss the Bluetooth features that new friends in the community are interested in.

BLE (Bluetooth Low Energy): Also known as Bluetooth Smart, it is a low-power wireless communication technology introduced in Bluetooth 4.0 and later versions, designed for low-bandwidth, intermittent data transmission in IoT and wearable devices.

The Hezhou Air8000 supports the latest BLE 5.4 version: BLE 5.4 continues to optimize power consumption and performance based on the previous generation, providing users with a more efficient and stable Bluetooth connection experience.

Open Source: Four Modes to Master BLE Low Energy Bluetooth Development

1

Four Bluetooth Modes of Air8000

The Air8000 Bluetooth supports four modes: central device mode, peripheral device mode, broadcaster mode, and observer mode, which can be flexibly applied in actual projects.

1.1 Central Device Mode (central)

The central device mode is the party that can search for others and actively establish connections, transitioning from a scanning state.

It can connect and communicate with one or more peripheral devices, regularly scanning the broadcast information sent by surrounding broadcasting devices. It can search for surrounding devices and select the desired slave device for pairing and connection. Once the communication link is successfully established, both parties can send and receive data.

Typical applications: industrial gateways, data collectors

1.2 Peripheral Device Mode (peripheral)

The peripheral device mode transitions from the broadcaster mode, where unconnected peripheral devices first enter a broadcasting state, waiting to be searched by central devices. When a central device scans and establishes a connection with a peripheral device, data can be sent and received between the central device and the peripheral device. It cannot actively establish connections and can only wait for others to connect to it.

The difference from the broadcasting mode is that devices in peripheral mode can be connected, regularly connecting and transmitting data with the central device while acting as a peripheral device during data transmission.

Typical applications: smartwatches, Bluetooth locks

1.3 Broadcaster Mode (ibeacon)

Devices in broadcasting mode periodically broadcast beacon information, which can be scanned but generally will not be connected.

Typical applications: ibeacon beacons

1.4 Observer Mode (scan)

In observer mode, the module is non-connectable, sending broadcasts from one to many, while the observer can receive data from one to many. In this mode, devices can only listen to and read the broadcast data in the air.

The only difference from the central device is: it cannot initiate connections and can only continuously scan peripheral devices.

Typical applications: environmental monitoring

2

Latest Demo and Practical Tutorials

Air8000 application examples are continuously updated, with open-source code; currently, Bluetooth functionality has provided four modes examples, and complete demo source code and practical tutorials can be found at the links below.

Latest source code download:https://gitee.com/openLuat/LuatOS/tree/master/module/Air8000/demo/ble

For practical tutorials, see: https://docs.openluat.com/air8000/luatos/app/BLE/

Open Source: Four Modes to Master BLE Low Energy Bluetooth DevelopmentOpen Source: Four Modes to Master BLE Low Energy Bluetooth Development

Open Source: Four Modes to Master BLE Low Energy Bluetooth Development

That’s all for today’s content~ If you have any questions regarding IoT development selection, feel free to join the technical exchange group or contact the person in charge for discussion.

Open Source: Four Modes to Master BLE Low Energy Bluetooth Development

The Air8000 has many functions, continuously unlocking:

Hezhou AirTalk traffic phone/full-duplex intercom solution

Real-time call functionality allows IoT devices to “hear and speak”

Smart power management solution based on Air8000

G-sensor motion detection function, open-source

SMS function: a lifeboat that never sinks in the digital flood

Modbus function: supports Modbus RTU/TCP/ASCII

Multi-network integration: [Wi-Fi supply] function example

Multi-network integration: [Ethernet supply] function example

3-second quick positioning, AGPS function open-source

For more latest development materials, see the Hezhou Material Center:

—— docs.openluat.com

Open Source: Four Modes to Master BLE Low Energy Bluetooth Development

Leave a Comment