Compare commits

...

2 commits

Author SHA1 Message Date
a499bdc9c8 New v10 telecommands
According to Alcalá, all commands must have a delay of at least 2s.
The pointer resets after the EEPROM updates have been adjusted. The pointers will now be set to the v09 addresses fm1@0x30080 and fm2@0x50080 after the EEPROM update.
2024-06-11 14:16:26 +02:00
d637802a8e Increase the default delay between TCs from 1s to 2s. 2024-06-11 14:12:09 +02:00
19 changed files with 1027 additions and 1024 deletions

View file

@ -24,7 +24,7 @@ class appdata(tcobject):
subtype = 0
size = 0
comment = ""
delta = 1
delta = 2
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)
write_xml_cf_to_eeprom(fm2_txt, op_dir, 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_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:01">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to calibration for -6.0 deg C" delta="00:00:02">
<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:01">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to calibration for -0.8 deg C" delta="00:00:02">
<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:01">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to nominal mode" delta="00:00:02">
<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:01">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to close mode" delta="00:00:02">
<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:01">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to far mode" delta="00:00:02">
<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:01">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE1 to calibration for -11.6 deg C" delta="00:00:02">
<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:01">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to calibration for -0.8 deg C" delta="00:00:02">
<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:01">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to calibration for +4.4 deg C" delta="00:00:02">
<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:01">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to nominal mode" delta="00:00:02">
<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:01">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to close mode" delta="00:00:02">
<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:01">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to far mode" delta="00:00:02">
<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:01">
<TC type="128" subtype="103" id="ZID52541" comment="Switch HE2 to calibration for -6.0 deg C" delta="00:00:02">
<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):
def write_xml_cf_to_eeprom(cf_txt, op_dir, eeprom_page=None, pointer_reset=None):
"""
Loads .txt-format configuration tables and writes XML commands to write the configuration tables to the
unit eeprom.
@ -51,6 +51,9 @@ def write_xml_cf_to_eeprom(cf_txt, op_dir, eeprom_page=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