Skip to content

Commit

Permalink
Translating TESTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fluktuacia committed Feb 21, 2024
1 parent 6d55d26 commit 3b4f657
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions TESTING.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
# Testování TFI2CADT01
# TFI2CADT01 Testing

## Automatické testování (doporučeno)
Postup pro automatické testování sám zkontroluje přeloženou adresu I2C zařizení a vyhodnotí, jestli je to správně nebo ne. Jedná se o jupyter notebook, který je nutné spustit lokálně v počítači, který má prístup k SMBUS sběrnici z kernelu. Instrukce a návod k použití je vepsán přímo v notebooku. Test vyžaduje jedno další I2C zařízení (které obsahuje jedinou I2C adresu)
## Automatic Testing (Recommended)
The process for automatic testing will check the translated I2C device address itself and evaluate whether it is correct or not. This involves a Jupyter notebook that must be run locally on a computer that has access to the SMBUS bus from the kernel. Instructions and a guide for use are written directly in the notebook. The test requires one additional I2C device (which contains a single I2C address).

Notebook se nachází v [sw/pymlab/TFI2CADT_TEST.ipynb](sw/pymlab/TFI2CADT_TEST.ipynb)
The notebook is located in [sw/pymlab/TFI2CADT_TEST.ipynb](sw/pymlab/TFI2CADT_TEST.ipynb)
![image](https://user-images.githubusercontent.com/5196729/219703876-addc8ce5-fa70-4049-870a-2a9e302bb628.png)


## Základní (manuální) testování
Základní testování TFI2CADT01 po výrobě lze provést v kompinaci s TFRPM01 pomocí python [skriptu](https://github.com/ThunderFly-aerospace/TFRPM01/blob/TFRPM01C/sw/pymlab/TFRPM_readout.py) postaveném na knihovně [PyMLAB](https://github.com/MLAB-project/pymlab).
## Basic (Manual) Testing
Basic testing of TFI2CADT01 after its production can be conducted in combination with TFRPM01 using a python[script](https://github.com/ThunderFly-aerospace/TFRPM01/blob/TFRPM01C/sw/pymlab/TFRPM_readout.py) built on the [PyMLAB](https://github.com/MLAB-project/pymlab) library.


Skript ze složky `/sw/pymlab/` spustíte příkazem:
The script from the `/sw/pymlab/`directory can be executed using the following command:

```
sudo python3 TFRPM_readout.py 0 0x25
sudo python3 TFRPM_readout.py 0 0x58
```

Po úspěšném spuštění by se měly objevit měřené hodnoty. Nyní, pomocí nějaké sondy nebo uzeměním signálového pinu, simulujte čitací signál. Hodnota `count` by měla růst. Pro přesnější měření lze použit signál generovaný osciloskopem nebo jiným zdrojem pilového signálu.

After the successful launch, measured values should appear. Now, using some probe or by grounding the signal pin, simulate the reading signal. The `count` value should increase. For a more precise measurement, a signal generated by an oscilloscope or another source of a sawtooth signal can be used.

Výstup pak může vypadat následovně:
The output may then look as follows:

```bash
TFRPM01 test suite.
Expand All @@ -48,5 +46,4 @@ counter module example
1608153510.8490016; count: 11, freq: 1.22, integration_time: 9.05
1608153511.3801253; count: 14, freq: 1.46, integration_time: 9.58
```

V prvním sloupci je čas. Následuje počet detekovaných signálů, určená frekvence a čas po kterou je frekvence počitána.
The first column represents the time. This is followed by the number of detected signals, the determined frequency, and the time over which the frequency is calculated.

0 comments on commit 3b4f657

Please sign in to comment.