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?

  • 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

  • Just checked in a real device building with SDK9.2

    No issue happens. It seems to be limited to the simulator

  • Thanks Jim, that makes the dongle work again.

    However I'm still having problems with SDK 9.2

    I'm able to scan and identify the sensor to pair (no issue here) pairDevice works as it returns a device, not null (OK for this also). However, connection is not stablished, onConnectedStateChange() is not called.

    Same code still works normally with SDK9.1 and older