Failed to establish connection between nRF5340 and DUT/Mobile device(Samsung/Pixel mobile)

Hi All;

We are currently working on establishing a connection between the nRF5340 development kit and mobile devices(Samsung/Pixel). I have configured the device as a headset in the buildprog.py and successfully flashed it onto the device.

Upon successful initialization, I can see the advertising packets (Resolvable); however, when attempting to establish the connection, the process fails, and the device cannot connect. Upon reviewing the air log, it appears that there is no response to the AUX Connection Request.

In contrast, when attempting to establish a connection between two nRF5340 dev kits, we are able to stream successfully. However, when testing with a remote device, we encounter the issue quite frequently—observing a failure in 9 out of 10 iterations.

Could you kindly advise if any changes to the code or configuration are necessary to ensure successful connection establishment every time?

Parents
  • Hi,

    Can you provide more information about your setup? 

    Which NCS and Samsung/Pixel versions do you use?

    Best regards,
    Dejan

  • Hi Dejan,

    Thank you for quick response, Please find the answers for the above quires:

    1. We are using nRF connect SDK v2.9.0.

    2.  We are using Samsung S23 Ultra mobile Android version 14, Which used to connect Samsung LE audio buds(Buds 2 and 3 Pro) with successful streaming and Pixel 7 Pro mobile Android version 14 which is latest.

    Please let me know if you need any further detaiks.

    Thanks,

    Ashwin

  • Hi Ashwin,

    We are currently working on establishing a connection between the nRF5340 development kit and mobile devices(Samsung/Pixel). I have configured the device as a headset in the buildprog.py and successfully flashed it onto the device.

    Can you provide more information about your setup? Do you use nrf5340_audio-dk and test with each of the phones (one by one)?

    In contrast, when attempting to establish a connection between two nRF5340 dev kits, we are able to stream successfully. However, when testing with a remote device, we encounter the issue quite frequently—observing a failure in 9 out of 10 iterations.

    Which device is "remote device" in your case? In which case does the problem occur?

    Ashwin R said:
    We are using Samsung S23 Ultra mobile Android version 14, Which used to connect Samsung LE audio buds(Buds 2 and 3 Pro) with successful streaming and Pixel 7 Pro mobile Android version 14 which is latest.

    Is it that connection was successful between both S23 and Pixel7 phones to your Buds but when you replace Buds with audio DK connection does not work with any of the phones? Can you elaborate on the case which does not work? 

    Best regards,
    Dejan

Reply
  • Hi Ashwin,

    We are currently working on establishing a connection between the nRF5340 development kit and mobile devices(Samsung/Pixel). I have configured the device as a headset in the buildprog.py and successfully flashed it onto the device.

    Can you provide more information about your setup? Do you use nrf5340_audio-dk and test with each of the phones (one by one)?

    In contrast, when attempting to establish a connection between two nRF5340 dev kits, we are able to stream successfully. However, when testing with a remote device, we encounter the issue quite frequently—observing a failure in 9 out of 10 iterations.

    Which device is "remote device" in your case? In which case does the problem occur?

    Ashwin R said:
    We are using Samsung S23 Ultra mobile Android version 14, Which used to connect Samsung LE audio buds(Buds 2 and 3 Pro) with successful streaming and Pixel 7 Pro mobile Android version 14 which is latest.

    Is it that connection was successful between both S23 and Pixel7 phones to your Buds but when you replace Buds with audio DK connection does not work with any of the phones? Can you elaborate on the case which does not work? 

    Best regards,
    Dejan

Children
  • Can you provide more information about your setup? Do you use nrf5340_audio-dk and test with each of the phones (one by one)?

    Ans: We are using nRF5340_audio DK and configuring the device as Headset  in buildprog.py i.e:  Device will act as headphone(UMR/CT). Once the Headset is advertising, From the mobile device we are trying to scan and once the Headset name appears we are initiating connection from the mobile(Samsung/Pixel) one after another  but connection fails.

    Which device is "remote device" in your case? In which case does the problem occur?

    Ans: Here the remote device is nRF5340_Audio_DK kit and the Central device is Mobile phone(Samsung/Pixel). During initial LE secure connection we are facing issue i.e: unable to connect. We are trying initially with one mobile device, If the connection is unsuccessful we are trying with another mobile.

    Use case: nRF5340 Audio DK acts as UMR/CT.

    Is it that connection was successful between both S23 and Pixel7 phones to your Buds but when you replace Buds with audio DK connection does not work with any of the phones? Can you elaborate on the case which does not work? 

    Ans: Yes the LE connection and streaming between S23 and Pixel phones to buds are successful. When i'm trying to replace the buds with nRF5340 Audio Dev kit connection was unsuccessful.

    nRF5340 Audio kit advertise with UMR/CT and trying to initiate the connection from the central device i.e: Mobile phone, Here we are observing the issue.

    Note: After flashing initial connection was successful but once the disconnection happens we are unable to re-connect or Fresh connection from other mobile. Only the first/fresh connection after flashing is working. 

  • Hi,

    Thank you for additional information.

    Which NCS version do you use? 

    Did you make any changes in the audio project configuration? Did you make any changes to the audio application?

    In which way are 2 scenarios (nrf5340_audio with S23 and nrf5340_audio with Pixel7) different? Are there any differences in observed behavior and/or logs?

    Can you provide full logs which show the error when connecting nrf5340_audio-dk to each of the phones?

    Best regards,
    Dejan

  • Hi Dejans,

    Could you please let mw know what is NCS version and where to check?

    In which way are 2 scenarios (nrf5340_audio with S23 and nrf5340_audio with Pixel7) different? Are there any differences in observed behavior and/or logs?

    As i clearly mentioned in above conversation that both the scenarios are not working 2 scenarios (nrf5340_audio with S23 and nrf5340_audio with Pixel7) . Then why we need to find the difference between them as same issue observing in both the mobile.

    Did you make any changes in the audio project configuration? Did you make any changes to the audio application?

    No changes in the audio project configuration.

    Please find the capture for the Samsung S23 Ultra, Couldn't be able to capture with Pixel mobile .

    Any way same issue with both the mobiles, Below capture will help you to understand 

    Samsung_S23_Ultra.btt

  • Hi,

    It seems that iPhone is trying to do pairing request, but the Audio-dk might have already been paired and refuses connection. You could try to delete bonding information from the audio-dk by pressing BTN5 when performing reset.

    Best regards,
    Dejan

  • Thank you, Dejan. Could you kindly provide the snippet from the OTA indicating that the iPhone is initiating the connection? I am looking to understand where I can identify the packets related to the iPhone and As per your suggestion i have tried entering BTN5 and performed reset, Still i couldn't be able to connect with the mobile, Please find the attached capture for reference: Samsung_S23_Ultra_BTN5.btt

    Could you please clarify While/After performing BTN5, Is there any Indications does the board has successfully reset or not?

    Thanks,

    Ashwin

Related