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.

Reply
  • 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.

Children
Related