SAMB11 BLE device radio off

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

When I test and create some applications with the ATSAMB11 BLE functionality I saw that when I power on the device and I don't connect with it, after a couple of time the BLE device is not visible anymore with my smartphone. Does someone knows if there's a sleep mode active or a radio off function that is automatic started after some time?
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I found the solution: In function call:

if((status = at_ble_adv_start(AT_BLE_ADV_TYPE_UNDIRECTED, AT_BLE_ADV_GEN_DISCOVERABLE, NULL, AT_BLE_ADV_FP_ANY, APP_FAST_ADV, APP_ADV_TIMEOUT, 0)) == AT_BLE_SUCCESS)

APP_ADV_TIMEOUT is Advertising time-out between 0x0001 and 0x3FFF in seconds and 0x0000 disables timeout and that solved my problem.