@@ -623,6 +623,11 @@ def dump(db, f, **options):
623623 create_sub_element_fx (cluster , "SPEED" , "500" )
624624 protocol .attrib ['{{{pre}}}type' .format (pre = xsi )] = "can:PROTOCOL-TYPE"
625625 create_sub_element_fx (cluster , "PROTOCOL-VERSION" , "20" )
626+ protocol_type = db .attribute ("ProtocolType" )
627+ if protocol_type :
628+ manufac_extension = create_sub_element_fx (cluster , "MANUFACTURER-EXTENSION" )
629+ create_sub_element_te (manufac_extension ,"PROTOCOL-FORMAT" ,protocol_type )
630+
626631 channel_refs = create_sub_element_fx (cluster , "CHANNEL-REFS" )
627632 # for each channel
628633 channel_ref = create_sub_element_fx (channel_refs , "CHANNEL-REF" )
@@ -664,6 +669,10 @@ def dump(db, f, **options):
664669 for bu in db .ecus :
665670 ecu = create_sub_element_fx (ecus , "ECU" )
666671 ecu .set ("ID" , bu .name )
672+ nm_address = bu .attribute ("NmStationAddress" )
673+ if nm_address :
674+ manufac_extansion = create_sub_element_fx (ecu , "MANUFACTURER-EXTENSION" )
675+ create_sub_element_te (manufac_extansion , "NM-ECU-ADDRESS" ,nm_address )
667676 create_short_name_desc (ecu , bu .name , bu .comment )
668677 function_refs = create_sub_element_fx (ecu , "FUNCTION-REFS" )
669678 func_ref = create_sub_element_fx (function_refs , "FUNCTION-REF" )
0 commit comments