BLE connectivity cheatsheet — Course 1 M07
This content is not available in your language yet.
Course 1 · Module 7
BLE vs MQTT (pick for Capstone)
หัวข้อที่มีชื่อว่า “BLE vs MQTT (pick for Capstone)”| Need | Prefer |
|---|---|
| Phone / desktop nearby, no Wi‑Fi | BLE |
| Cloud / LAN broker / multi-subscriber | MQTT |
| Both local demo + cloud | Both (M08 bonus) |
CM55 API (TESA)
หัวข้อที่มีชื่อว่า “CM55 API (TESA)”| API | Role |
|---|---|
cm55_trigger_ble_periph_status_get |
Request status (async) |
cm55_ble_periph_status_get_sync |
Request + wait → ipc_ble_periph_status_t |
cm55_get_ble_periph_status |
Read last cached status |
cm55_trigger_ble_periph_adv_ctrl |
ADV action async |
cm55_ble_periph_adv_ctrl_sync |
ADV action + wait result |
cm55_ble_request_scan_all / _name / _addr |
Start scan (observer) |
cm55_ble_ipc_set_event_handler |
Receive IPC_EVT_BLE_* |
Headers (names only): cm55_ipc_app.h, ipc_ble_periph_types.h
ADV actions
หัวข้อที่มีชื่อว่า “ADV actions”action |
Meaning |
|---|---|
0 |
Stop advertising |
1 |
Start advertising |
2 |
Restart advertising |
uint8_t result = 0xFF;(void)cm55_ble_periph_adv_ctrl_sync(1U, &result, 5000U);Status fields (quick)
หัวข้อที่มีชื่อว่า “Status fields (quick)”| Field | Watch for |
|---|---|
profile_ble_active |
BLE profile on |
stack_ready |
Stack up |
connection_id |
Non-zero ⇒ linked |
tx_notify_enabled |
Host enabled notify |
last_error |
Non-zero ⇒ inspect |
ipc_ble_periph_status_t st;(void)cm55_ble_periph_status_get_sync(&st, 5000U);Host checklist
หัวข้อที่มีชื่อว่า “Host checklist”- Firmware BLE profile ON + reboot
- One Central only (
ble-fletor nRF Connect) - Hunt name prefix
TESAIoT- - If invisible after ~60 s idle ADV: reboot board / check ADV policy
Pack: TESAIoT_Hackathon → ble-flet/
Architecture reminder
หัวข้อที่มีชื่อว่า “Architecture reminder”CM55 app --IPC--> CM33 BLE stack (AIROC) --GATT--> Phone/PCFurther reading
หัวข้อที่มีชื่อว่า “Further reading”Lesson · Lab · M08 Capstone
TESA Open Knowledge · © 2026 สมาคมสมองกลฝังตัวไทย (TESA) · CC BY-NC 4.0
Content is licensed CC BY-NC 4.0. Reuse it non-commercially and credit the Thai Embedded Systems Association (TESA) every time. · How to cite TESA