55 lines
2.0 KiB
Markdown
55 lines
2.0 KiB
Markdown
|
|
I want to perform tests of hardware. I need a good system. The main thing is a repo with python scripts. What should they output? I want to be able to trigger a test run for a PCB where i can give some infos about the PCB: Version/Revision, Adjustments (comment), Software version (git commit hash e.g.). And i want the results to be structuredtly saved, with all the information, + datetime. The test results are a latency, a THD input vs output, a SNR input vs output, in the future possible also images. But for now 4 numbers basically. What are my options to structure this nicely, run tests easily and see the results
|
|
|
|
|
|
|
|
# Closed Loop Audio Test Suite
|
|
|
|
## Overview
|
|
|
|
Laptop <-> Audio Interface -> Beacon -> nrf Ref Board or Scout -> Audio Interface (-> Laptop)
|
|
Audio Interface -> Audio Interface (Loop back)
|
|
|
|
Compare the two paths
|
|
Loop back vs Radio
|
|
|
|
|
|
## Capabilities
|
|
- Measure latency (round trip)
|
|
- Measure THD input vs output
|
|
- Measure SNR input vs output
|
|
- Compare fourier transform of input vs output
|
|
|
|
For now start with detecting the audio interface and play a test tone on both channels.
|
|
Record the audio on both input channels and measure the latency. (most likley 0ms right now, dont be confused)
|
|
Calculate the THD and SNR for both channels.
|
|
|
|
|
|
Use the connected scarlett focusrite interface, figure out how to use it.
|
|
|
|
Play a test tone (that is not repeating) to figure out the latency between input channel 1 and input channel 2.
|
|
|
|
Visualize all the results.
|
|
|
|
Play a sine in different frequencies, and for every frequency 5 sec long and do thd of channel 1 and of channel 2, to compare the quality loss.
|
|
|
|
Dont do fourier yet.
|
|
|
|
Do a simple project.
|
|
|
|
|
|
|
|
|
|
----
|
|
|
|
I want you to write a new test:
|
|
Put a 1khz sine into the system and record both channels for x seconds e.g. 60.
|
|
I want you to detect buzzing and other artifacts in the recording.
|
|
Give me a number how many artifacts you found.
|
|
Make the detection algorithm configurable, so we can try different approaches.
|
|
|
|
Again input it into the audio interface and measure both loopback and radio path like in the other test.
|
|
|
|
|
|
|