This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Custom BLE packets on mesh network

Hello

I have a mesh node that needs to broadcast a custom BLE packet

To start advertising I call bt_le_adv_start and it works as expected.

I'm curious about the error that I see in the RTT log

00> [00:08:41.658,050] <dbg> bt_mesh_net: bt_mesh_net_relay: Relaying packet. TTL is now 9
00> [00:08:41.658,172] <err> bt_mesh_adv_legacy: Advertising failed: err -120

My understanding is that his is because my app started advertising and the mesh network cannot relay the packet

I tried to call 

bt_mesh_relay_set(BT_MESH_FEATURE_DISABLED,BT_MESH_TRANSMIT(0,1));
before calling bt_le_adv_start  but I get same error -120.
What's the proper way to disable mesh relay?
Is there a way for custom advertising and mesh relay to coexist in a provisioned mesh node?
Thank you
Parents Reply Children
  • Just enabling  CONFIG_BT_EXT_ADV causes the program to crash

    Any suggestions?

    Thanks

    00> [00:00:00.286,407] <err> os: ***** BUS FAULT *****
    00> [00:00:00.286,407] <err> os: Precise data bus error
    00> [00:00:00.286,437] <err> os: BFAR Address: 0xbb672b5[0m
    00> [00:00:00.286,437] <err> os: r0/a1: 0x00000020 r1/a2: 0x0bb672b5 r2/a3: 0x0bb672b5
    00> [00:00:00.286,468] <err> os: r3/a4: 0x00000020 r12/ip: 0x00000007 r14/lr: 0x00057609
    00> [00:00:00.286,468] <err> os: xpsr: 0x81000200
    00> [00:00:00.286,499] <err> os: Faulting instruction address (r15/pc): 0x00057562
    00> [00:00:00.286,529] <err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0

Related