Acknowledged
CIQQA-4261

BLE not working in simulator after updating to SDK9.2

I'm trying to simulate one data field that uses BLE to connect with sensors. It was working fine until I have updated to SDK9.2

Now, it seems dongle is not available for the simulator. Going back to SDK9.1 still works fine.

Tested in macOS Monterrey

Release notes mention two changes related to BLE. They may have some relation.  

New Features

  • Add bonded connection support in the simulator.

Bug Fixes

  • Fix issue where the simulator crashed when launching a BLE app when the dongle was not connected.

Anyone can try to reproduce this and confirm?

  • i found, that with 9.2.0 in simulator a BLE connection

    - works, with a device using BLE v5 (Laird BL652 chip), data is incoming after connect

    - is not working, with a device using BLE v4 (HM10 module), no data after connect, and connections drops after a few seconds with state=0 (disconnect)

    This issue is not seen on real device (Edge 1050 and Vivoactive 6)

  • I have a BLE datafield which is stable working with 8.4.0, in simulator and on device. With 9.2.0 in simulator (nrf dongle updated to softdevice 140) the datafield scans, pairs and connects, but immediately disconnects. After 3 times, there are no further connetcs. The same code does not show this issue on a real device.

    Code is here: 

    https://github.com/cyberman54/Forumslader-Companion/tree/main/source

  • Seems Garmin should have working samples for things like the new BLE, as that's the source of example code for many devs.

  • Using the NordicThingy52 sample from the 9.2 SDK.  Win11
    1) using the 9.1 SDK and older hex files for the sim, all works fine
    2) using the 9.2 SDK, new hex files, and a f5x device, scanning works, but trying to connect results in an app crash:
    Error: Unhandled Exception
    Exception: Device Already Paired
    Stack:
    - pair() at C:\Users\jmphx\workspace-prod\NordicThingy5292\source\DeviceDataModel.mc:56 0x10001244
    - initialize() at C:\Users\jmphx\workspace-prod\NordicThingy5292\source\DeviceDelegate.mc:19 0x10001ea0
    - getDeviceView() at C:\Users\jmphx\workspace-prod\NordicThingy5292\source\ViewController.mc:46 0x10000f92
    - pushDeviceView() at C:\Users\jmphx\workspace-prod\NordicThingy5292\source\ViewController.mc:52 0x10000fa6
    - onSelect() at C:\Users\jmphx\workspace-prod\NordicThingy5292\source\ScanDelegate.mc:36 0x10001302
    - API code 0x30004b7b
    3) using the 9.2 SDK, new hex files and a f8 device, scanning works.  No crash when trying to connect, but no data seen.  restarting the app doesn't allow scanning and the sim needs to be restarted
  • Also ANT communication isn't working in the simulator