This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Randomly failing to discover services and leading to "Device not supported"

Hi team,

Describe the bug
Running the sample app on Nordic Development Kit "nRF52840-DK" (and also on our firmware board) is randomly failing to discover services leading to connection disconnect with the error message of "Device not supported"


I am basically having two but RANDOM issues:

  1. Not able to provision as described above.
  2. If provisioning is successful, the app is stuck in "Requesting Composition Data" and getting "The bearer is closed".

To Reproduce
Just cloned IOS-nrf-Mesh-Library from the repo, made the Example compile and run on iPad. Tapping the + button to Provision Device. From the scanned list (2 boards for me), tapping one any board.

WorthNoting
After going to iPads Bluetooth Settings', turning the bluetooth Off and On makes both the above cases/issues work. But the same problem comes back after resetting / removing the node. Not sure if it anyone else have faced this problem but surely happening a lot for me.

Expected behavior
The sample app should be able to Provision and load Composition Data successfully every time for the Nordic Dev Kit board at least.

Platform details:

  • Device: iPad 3
  • OS: iOS 13.3
  • App Version: 2.2.3

Logs / Screenshots

Nordic board
2020-09-09 12:45:10.801432+0530 nRF Mesh[408:92785] [Bearer] Central Manager state changed to .poweredOn
2020-09-09 12:45:11.206446+0530 nRF Mesh[408:92785] [Bearer] Connecting to Dev Board...
2020-09-09 12:45:11.818963+0530 nRF Mesh[408:92785] [Bearer] Connected to Dev Board
2020-09-09 12:45:11.819245+0530 nRF Mesh[408:92785] [Bearer] Discovering services...
2020-09-09 12:45:11.962127+0530 nRF Mesh[408:92785] [Bearer] Device not supported
2020-09-09 12:45:11.962701+0530 nRF Mesh[408:92785] [Bearer] Cancelling connection...
2020-09-09 12:45:11.965448+0530 nRF Mesh[408:92785] [Bearer] Disconnected from Dev Board with error: Device not supported
2020-09-09 12:45:12.411416+0530 nRF Mesh[408:92946] [CoreBluetooth] XPC connection invalid

My board
2020-09-09 12:45:22.206242+0530 nRF Mesh[408:92785] [Bearer] Central Manager state changed to .poweredOn
2020-09-09 12:45:22.611192+0530 nRF Mesh[408:92785] [Bearer] Connecting to Ios dev...
2020-09-09 12:45:23.406476+0530 nRF Mesh[408:92785] [Bearer] Connected to Ios dev
2020-09-09 12:45:23.406650+0530 nRF Mesh[408:92785] [Bearer] Discovering services...
2020-09-09 12:45:23.611281+0530 nRF Mesh[408:92785] [Bearer] Device not supported
2020-09-09 12:45:23.611836+0530 nRF Mesh[408:92785] [Bearer] Cancelling connection...
2020-09-09 12:45:23.614616+0530 nRF Mesh[408:92785] [Bearer] Disconnected from Ios dev with error: Device not supported
2020-09-09 12:45:24.059975+0530 nRF Mesh[408:92946] [CoreBluetooth] XPC connection invalid

Please suggest what might be going wrong and how to fix this?

Parents
  • Hi,

    Which example are you using from the Mesh SDK?

    Which Mesh SDK version are you using

  • I mean which firmware example are you running on your DK?

    Sourabh said:
    Mesh SDK Version - Latest commit in master.

     Do you referr to this repo? Mesh SDK v4.2?

  • The "Device not supported" error may also be thrown when the device disconnects before services were discovered. But then retrying should help, I think.

    Having look at the logs tells us that device gets disconnect after "Device not supported" error. Refer below:

    Nordic board

    2020-09-09 12:45:10.801432+0530 nRF Mesh[408:92785] [Bearer] Central Manager state changed to .poweredOn
    2020-09-09 12:45:11.206446+0530 nRF Mesh[408:92785] [Bearer] Connecting to Dev Board...
    2020-09-09 12:45:11.818963+0530 nRF Mesh[408:92785] [Bearer] Connected to Dev Board
    2020-09-09 12:45:11.819245+0530 nRF Mesh[408:92785] [Bearer] Discovering services...
    2020-09-09 12:45:11.962127+0530 nRF Mesh[408:92785] [Bearer] Device not supported
    2020-09-09 12:45:11.962701+0530 nRF Mesh[408:92785] [Bearer] Cancelling connection...
    2020-09-09 12:45:11.965448+0530 nRF Mesh[408:92785] [Bearer] Disconnected from Dev Board with error: Device not supported
    2020-09-09 12:45:12.411416+0530 nRF Mesh[408:92946] [CoreBluetooth] XPC connection invalid

  • After you have provisioned the device -> connect to the device by going into the proxy tab and connect from there -> Then configure the device. The "Requesting Composition Data" should go through now.

    Unfortunately, this also doesn't seem to work. Same logs as earlier. Refer below:

    2020-09-21 11:50:07.502419+0530 DCS Mesh[1528:1385307] [Bearer] Connecting to Ios dev...
    2020-09-21 11:50:08.357985+0530 DCS Mesh[1528:1385307] [Bearer] Connected to Ios dev
    2020-09-21 11:50:08.358481+0530 DCS Mesh[1528:1385307] [Bearer] Discovering services...
    2020-09-21 11:50:08.558037+0530 DCS Mesh[1528:1385307] [Bearer] Device not supported
    2020-09-21 11:50:08.558578+0530 DCS Mesh[1528:1385307] [Bearer] Cancelling connection...
    2020-09-21 11:50:08.561395+0530 DCS Mesh[1528:1385307] [Bearer] Disconnected from Ios dev with error: Device not supported

    The node is visible in the Select Proxy screen but get above error each time when trying to connect. Is this workaround working for you?

  • Yes, the workaround is working fine for me. Which firmware are you running on the DK? Have you made any modifications to the example?

    Can you try an unmodified example from the SDK? Like the Light Switch Client example?

  • We have downloaded the code v4.2.0 from here nrf_SDK_for_Mesh_v4.2.0_src and flashed it on DK.

    We are using v4.2 Mesh SDK and v17.0.2 nrf-SDK clubbed together. No other modifications as such.

    Let me try running "ExampleFirmwares"  hex files provided with the SDK in the DK.

  • Update:

    Can you try an unmodified example from the SDK? Like the Light Switch Client example?

    The workaround is working fine with the "Example Firmware" hex files on the Nordic DK.

    However, iOS nrf-Mesh-Example app doesn't seem to work with "our custom board" (having the same example firmware) while Android nrf-Mesh-Example App is working fine.

Reply Children
Related