Compare commits
2 commits
e43e4646e8
...
a499bdc9c8
| Author | SHA1 | Date | |
|---|---|---|---|
| a499bdc9c8 | |||
| d637802a8e |
19 changed files with 1027 additions and 1024 deletions
|
|
@ -24,7 +24,7 @@ class appdata(tcobject):
|
|||
subtype = 0
|
||||
size = 0
|
||||
comment = ""
|
||||
delta = 1
|
||||
delta = 2
|
||||
|
||||
def bin(self):
|
||||
return b""
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue