From 32e36ec52b16cf7056f5c70fc8f29b43adbcb37c Mon Sep 17 00:00:00 2001 From: Matthieu Cattin Date: Wed, 23 May 2012 11:57:05 +0200 Subject: [PATCH] test23: work in progress. --- test/fmcadc100m14b4cha/python/test23.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/fmcadc100m14b4cha/python/test23.py b/test/fmcadc100m14b4cha/python/test23.py index 385f015..7ab3d54 100755 --- a/test/fmcadc100m14b4cha/python/test23.py +++ b/test/fmcadc100m14b4cha/python/test23.py @@ -45,7 +45,7 @@ def main (default_directory='.'): CALIBR_FILENAME = "calibration_data.txt" CALIBR_FILENAME = os.path.join(default_directory, CALIBR_FILENAME) EEPROM_BIN_FILENAME = "eeprom_content.out" - + EEPROM_SIZE = 8192 # in Bytes start_test_time = time.time() @@ -110,6 +110,10 @@ def main (default_directory='.'): # IF NOT, PUT THE CURRENT DATE (IT MEANS IT'S THE FIRST TIME THE TEST IS RUN). # IF A DATE IS PRESENT, KEEP IT. + # Read entire EEPROM + eeprom_data_read = fmc.sys_i2c_eeprom_read(0, EEPROM_SIZE) + + # FRU field is used to store the date of generation of the eeprom content # This could be used later to determine if the content has to be udated (bug fix, ...) bia = BoardInfoArea(minutes, "CERN", "FmcAdc100m14b4cha", serial, "part number", "fru") -- 2.18.1