Sample rates not matching

Post Reply
GabrielSt
Posts: 2
Joined: Tue Feb 02, 2021 3:58 pm

Hi, I am having trouble getting data from the on-board microphone in the DCL software. It seems that the sample rates do not match with the firmware one. I took the driver from "https://github.com/QuickLogic-Corp/qorc ... import.ssf". Also, this is the log file:
"[92] 6:03 PM: Success - 'Sensor 1' configuration created

[93] 6:04 PM: Error - The sample rate configured in your device firmware does not match your sensor configuration. Setup a new sensor configuration with the matching sample rate or reconfigure your data collection firmware

[94] 6:04 PM: Error - QuickFeather SimpleStream - COM5 data collection firmware sent sample rate 100. Sensor configuration sample rate is 16000"

What should I do? Any help is welcome!
jmoore
Posts: 12
Joined: Fri Oct 16, 2020 4:52 pm
Location: Portland

You will need to rebuild the firmware to collect Audio - qf_apps/qf_ssi_ai_app/inc/Fw_global_config.h lines 73/74:

#define SSI_SENSOR_SELECT_AUDIO (0) // 1 => Select Audio data for live-streaming or recognition modes Change this to a 1
#define SSI_SENSOR_SELECT_SSSS (1) // 1 => Select SSSS sensor data for live-streaming of recognition modes Change this to a 0

From there, you can build and flash. the Quickfeather should then be sending audio configuration, and then audio data, instead of IMU.

Note - you may also want to update to Data Capture Lab 2020.10.4 (releasing today, 2/2/2021), as it adds audio as a natively supported source rather than needing to import with SSF.
juanyi
Posts: 19
Joined: Thu Jan 28, 2021 7:38 am

jmoore wrote: Tue Feb 02, 2021 7:44 pm You will need to rebuild the firmware to collect Audio - qf_apps/qf_ssi_ai_app/inc/Fw_global_config.h lines 73/74:

#define SSI_SENSOR_SELECT_AUDIO (0) // 1 => Select Audio data for live-streaming or recognition modes Change this to a 1
#define SSI_SENSOR_SELECT_SSSS (1) // 1 => Select SSSS sensor data for live-streaming of recognition modes Change this to a 0

From there, you can build and flash. the Quickfeather should then be sending audio configuration, and then audio data, instead of IMU.

Note - you may also want to update to Data Capture Lab 2020.10.4 (releasing today, 2/2/2021), as it adds audio as a natively supported source rather than needing to import with SSF.
This works. Thanks for the post. After changing according to the above, there were compilation error initially, that is because the GCC_project already loaded with files from previous compilation, so for those who have same issue, remember to 'make clean' first then 'make' again.
Post Reply