Skip to content

Commit

Permalink
Translation TFI2CADT_TEST.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
fluktuacia committed Feb 22, 2024
1 parent bcc3063 commit 593c2b8
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions sw/pymlab/TFI2CADT_TEST.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
"id": "f355d8d7",
"metadata": {},
"source": [
"# TFI2CADT test překladu adres\n",
"# TFI2CADT Adress Translation Test \n",
"\n",
"Tento notebook slouží k ověření správného překladu I2C adresu u modulu TFI2CADT. \n",
"This notebook is used to verify the correct translation of the I2C address for the TFI2CADT module. \n",
"\n",
"Postup testu: \n",
" * Připravit si MLAB USBI2C01A (nebo dostupné I2C rozhraní s podporou kernel SMBUS)\n",
" * Zjistit číslo přiřazeného I2C portu (`i2cdetect -l`)\n",
" * Číslo portu zadat do druhého bloku\n",
" * Připojit k I2C sběrnici TFI2CADT a na jeho vstup (do passthrought portu) připojit nějaké I2C zařizení. Je důležité, aby toto I2C zařízení mělo jen jednu I2C adresu (vhodnými moduly jsou napřiklad TFRPM nebo TFHT, nikoliv TFSLOT resp. TFASPDIMU)\n",
" * Spustit následující python blok a stisknout enter. \n",
" * Python by měl detekovat I2C adresu připojeného zařizení. \n",
" * Nyní přepojte I2C zařizení ze vstupu na jeden z překládacích výstupních portů. \n",
" * Stiskněte enter, python by měl rozpoznat novou adresu. \n",
" * I2C zařizení přepojte do druhého překládacího portu \n",
" * Stiskněte enter. \n",
" * Následně uvidíte vyhodnocení testu. Pokud se první I2C adresa změnila dle předpokladu (XOR 0x08 a XOR 0x78), test bude úspšný."
"Test Procedure: \n",
" * Prepare MLAB USBI2C01A (or an available I2C interface with kernel SMBUS support). \n",
" * Determine the assigned I2C port number (`i2cdetect -l`). \n",
" * Enter the port number into the second block. \n",
" * Connect the TFI2CADT to the I2C bus and connect I2C device to its input (to the passthrough port). It is important that this I2C device has only one I2C address (suitable modules include TFRPM or TFHT, not TFSLOT or TFASPDIMU). \n",
" * Run the following python block and press enter. \n",
" * Python should detect the I2C address of the connected device. \n",
" * Now reconnect the I2C device from the input to one of the translating output ports. \n",
" * Press enter, python should recognize the new address. \n",
" * Reconnect the I2C device to the second translating port. \n",
" * Press enter. \n",
" * You will now see the test evaluation. If the first I2C address changed as expected (XOR 0x08 and XOR 0x78), the test will be successful."
]
},
{
Expand All @@ -33,17 +33,17 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Pripojte zarizeni do vstupniho konektoru a stisknete enter\n",
"Connect the device to the input connector and press enter.\n",
"\n",
"Adresa koncoveho I2C zarizeni je: 0x50\n",
"Zapojte zarizeni do prekladaneho vystupu a stisknete enter\n",
"The address of the end I2C device is: 0x50\n",
"Connect the device to the translated output and press enter. \n",
"\n",
"Nova I2C adresa je: 0x28\n",
"Zapojte zarizeni do druheho prekladaneho vystupu a stisknete enter\n",
"The new I2C address is: 0x28\n",
"Connect the device to the second translated output and press enter.\n",
"\n",
"Nova I2C adresa je: 0x58\n",
"The new I2C address is: 0x58\n",
"\n",
"Preklad adres funguje dle ocekavani\n"
"Address translation works as expected\n"
]
}
],
Expand Down

0 comments on commit 593c2b8

Please sign in to comment.