Compare commits

..

No commits in common. "a499bdc9c8083add60a41c889eb6ffbb3d5f17a5" and "e43e4646e8c4543a3d309000ba5471918131ee0c" have entirely different histories.

19 changed files with 1024 additions and 1027 deletions

View file

@ -24,7 +24,7 @@ class appdata(tcobject):
subtype = 0
size = 0
comment = ""
delta = 2
delta = 1
def bin(self):
return b""

View file

@ -17,8 +17,8 @@ def main(cf_dir='./solo/configurations/', op_dir='./xml_tcs_hetept_v0010/'):
fm2_txt = cf_dir+ 'hetept2/v0010/hetept_config_fm2.txt'
write_xml_cf_to_icu(fm1_txt, op_dir, 0x20000, eeprom_page=0x0)
write_xml_cf_to_icu(fm2_txt, op_dir, 0x40000, eeprom_page=0x0)
write_xml_cf_to_eeprom(fm1_txt, op_dir, eeprom_page=0x0, pointer_reset=0x30000+0x80)
write_xml_cf_to_eeprom(fm2_txt, op_dir, eeprom_page=0x0, pointer_reset=0x50000+0x80)
write_xml_cf_to_eeprom(fm1_txt, op_dir, eeprom_page=0x0)
write_xml_cf_to_eeprom(fm2_txt, op_dir, eeprom_page=0x0)
write_xml_table_index_execution(op_dir)

View file

@ -1,5 +1,5 @@
<TCs>
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to calibration for -6.0 deg C" delta="00:00:02">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to calibration for -6.0 deg C" delta="00:00:01">
<parameter name="SensorID" id="PID00083">2</parameter>
<parameter name="IndexTable" id="PID00084">1</parameter>
<parameter name="BlockIndex" id="PID00077">10</parameter>

View file

@ -1,5 +1,5 @@
<TCs>
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to calibration for -0.8 deg C" delta="00:00:02">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to calibration for -0.8 deg C" delta="00:00:01">
<parameter name="SensorID" id="PID00083">2</parameter>
<parameter name="IndexTable" id="PID00084">1</parameter>
<parameter name="BlockIndex" id="PID00077">11</parameter>

View file

@ -1,5 +1,5 @@
<TCs>
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to nominal mode" delta="00:00:02">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to nominal mode" delta="00:00:01">
<parameter name="SensorID" id="PID00083">2</parameter>
<parameter name="IndexTable" id="PID00084">1</parameter>
<parameter name="BlockIndex" id="PID00077">2</parameter>

View file

@ -1,5 +1,5 @@
<TCs>
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to close mode" delta="00:00:02">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to close mode" delta="00:00:01">
<parameter name="SensorID" id="PID00083">2</parameter>
<parameter name="IndexTable" id="PID00084">1</parameter>
<parameter name="BlockIndex" id="PID00077">4</parameter>

View file

@ -1,5 +1,5 @@
<TCs>
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to far mode" delta="00:00:02">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to far mode" delta="00:00:01">
<parameter name="SensorID" id="PID00083">2</parameter>
<parameter name="IndexTable" id="PID00084">1</parameter>
<parameter name="BlockIndex" id="PID00077">8</parameter>

View file

@ -1,5 +1,5 @@
<TCs>
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to calibration for -11.6 deg C" delta="00:00:02">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to calibration for -11.6 deg C" delta="00:00:01">
<parameter name="SensorID" id="PID00083">2</parameter>
<parameter name="IndexTable" id="PID00084">1</parameter>
<parameter name="BlockIndex" id="PID00077">9</parameter>

View file

@ -1,5 +1,5 @@
<TCs>
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to calibration for -0.8 deg C" delta="00:00:02">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to calibration for -0.8 deg C" delta="00:00:01">
<parameter name="SensorID" id="PID00083">3</parameter>
<parameter name="IndexTable" id="PID00084">2</parameter>
<parameter name="BlockIndex" id="PID00077">10</parameter>

View file

@ -1,5 +1,5 @@
<TCs>
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to calibration for +4.4 deg C" delta="00:00:02">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to calibration for +4.4 deg C" delta="00:00:01">
<parameter name="SensorID" id="PID00083">3</parameter>
<parameter name="IndexTable" id="PID00084">2</parameter>
<parameter name="BlockIndex" id="PID00077">11</parameter>

View file

@ -1,5 +1,5 @@
<TCs>
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to nominal mode" delta="00:00:02">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to nominal mode" delta="00:00:01">
<parameter name="SensorID" id="PID00083">3</parameter>
<parameter name="IndexTable" id="PID00084">2</parameter>
<parameter name="BlockIndex" id="PID00077">2</parameter>

View file

@ -1,5 +1,5 @@
<TCs>
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to close mode" delta="00:00:02">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to close mode" delta="00:00:01">
<parameter name="SensorID" id="PID00083">3</parameter>
<parameter name="IndexTable" id="PID00084">2</parameter>
<parameter name="BlockIndex" id="PID00077">4</parameter>

View file

@ -1,5 +1,5 @@
<TCs>
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to far mode" delta="00:00:02">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to far mode" delta="00:00:01">
<parameter name="SensorID" id="PID00083">3</parameter>
<parameter name="IndexTable" id="PID00084">2</parameter>
<parameter name="BlockIndex" id="PID00077">8</parameter>

View file

@ -1,5 +1,5 @@
<TCs>
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to calibration for -6.0 deg C" delta="00:00:02">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to calibration for -6.0 deg C" delta="00:00:01">
<parameter name="SensorID" id="PID00083">3</parameter>
<parameter name="IndexTable" id="PID00084">2</parameter>
<parameter name="BlockIndex" id="PID00077">9</parameter>

View file

@ -32,7 +32,7 @@ def write_xml_cf_to_icu(cf_txt, op_dir, conf_mem_addr, eeprom_page=None):
return ct_table
def write_xml_cf_to_eeprom(cf_txt, op_dir, eeprom_page=None, pointer_reset=None):
def write_xml_cf_to_eeprom(cf_txt, op_dir, eeprom_page=None):
"""
Loads .txt-format configuration tables and writes XML commands to write the configuration tables to the
unit eeprom.
@ -51,9 +51,6 @@ def write_xml_cf_to_eeprom(cf_txt, op_dir, eeprom_page=None, pointer_reset=None)
# create xml commands for writing the new config to the EEPROM
tc_seq_eeprom = ct_table.upload_index_patch()
if pointer_reset:
tc_seq_eeprom[1][-1] = telecom.store_messages_to_config_store(pointer_reset, unit=ct_table.magic.unit, flags=12, delta=300, comment="Reset table pointer to default table location")
write_xml(op_dir + 'hetept%i_v%04d_%s_to_EEPROM.tcs' % (ct_table.magic.unit - 1, ct_table.magic.version, hex(ct_table.crc)), tc_seq_eeprom)
return ct_table