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

Thingy52 microphone function

Using the thingy52 microphone function, some models of mobile phones receive data will be lost, under normal circumstances, 1 minute will receive about 60 packets of data, in exceptional circumstances, the receiving data is only 30 packets to 40 packets

Parents
  • Hi,

    The functionality of the microphone will depend on the capabilities of the mobile phone. This means great functionality on higher-end phones and variable functionality on other phones. The problem lies with the mobile phone and not the Thingy:52. This problem is likely to get better over time as the features of higher-end devices trickle down into other models.

    Ketil

  • Thanks ketil, I made the following configuration for the thingy52 program:

    // <h> ADPCM Options
    // <o> Audio Frame Size
    //     <128=>128 Samples (8 ms)
    //     <256=>256 Samples (16 ms)
    //     <512=>512 Samples (32 ms)
    #if (CONFIG_AUDIO_CODEC == CONFIG_AUDIO_CODEC_ADPCM)
    #define CONFIG_AUDIO_FRAME_SIZE_SAMPLES 512

    #define MIN_CONN_INTERVAL_MS            7.5                                         /**< Minimum acceptable connection interval in ms. */
    #define MAX_CONN_INTERVAL_MS            15                                          /**< Maximum acceptable connection interval in ms. */

    The effect is not obvious.

    Below ios11 version will lose data; some Android models will also lose data, such as the Samsung S8, and found that there is little relationship with the version of Android, some Android high version of the phone will lose data.

    I do not know how to optimize the program to improve the transmission effect. Can you advise us? Thank you.

  • Hi,

    I'm not sure that our apps support ADPCM frame lengths above the default. Did you implement this yourself?

    We have tested with a Galaxy S8 in the past and it worked fine. Are you sure you haven't made any modifications that are causing issues?

    It is important to have a large MTU when streaming data. Could you see if there are any issues with the MTU negotiation between the Thingy:52 and your phone?

    Ketil

  • Thank you for your reply. I re-tested and found that in the space where there are no other Bluetooth devices, the packet loss phenomenon is reduced. I do not know what the reason is. After the Bluetooth connection, will it be related to other Bluetooth devices? Why some mobile phones will not be disturbed?

Reply Children
No Data
Related