Actions
Bug #6119
openaram_get_config runs into an exception on a sysmocomSJA2
Start date:
07/29/2023
Due date:
% Done:
90%
Spec Reference:
Description
- Use a SysmocomSJA2
- pysim master / 791f80a44f8110f478a632cd2bcde5944ad4bd96
pySIM-shell (MF)> select ADF.ARA-M pySIM-shell (MF/ADF.ARA-M)> aram_get_config EXCEPTION of type 'ValueError' occurred with message: auto_collection_DeviceConfigDO(<class 'pySim.ara_m.DeviceInterfaceVersionDO'>): Unknown TLV Class DeviceInterfaceVersionDO in [{'DeviceInterfaceVersionDO': {'major': 0, 'minor': 0, 'patch': 1}}]; expected dict_keys(['device_interface_version_do']) To enable full traceback, run the following command: 'set debug true' pySIM-shell (MF/ADF.ARA-M)> pySIM-shell (MF/ADF.ARA-M)> set debug true debug - was: False now: True pySIM-shell (MF/ADF.ARA-M)> aram_get_config Traceback (most recent call last): File "/home/lynxis/.local/share/virtualenvs/pysim-C216Z-pe/lib/python3.11/site-packages/cmd2/cmd2.py", line 2399, in onecmd_plus_hooks stop = self.onecmd(statement, add_to_history=add_to_history) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lynxis/.local/share/virtualenvs/pysim-C216Z-pe/lib/python3.11/site-packages/cmd2/cmd2.py", line 2852, in onecmd stop = func(statement) ^^^^^^^^^^^^^^^ File "/home/lynxis/projects/osmocom/repos/pysim/pySim/ara_m.py", line 315, in do_aram_get_config res_do = ADF_ARAM.get_config(self._cmd.card._scc._tp) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lynxis/projects/osmocom/repos/pysim/pySim/ara_m.py", line 298, in get_config cmd_do.from_dict([{'DeviceInterfaceVersionDO': { File "/home/lynxis/projects/osmocom/repos/pysim/pySim/tlv.py", line 161, in from_dict self.children = self.nested_collection.from_dict(decoded) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lynxis/projects/osmocom/repos/pysim/pySim/tlv.py", line 406, in from_dict raise ValueError('%s: Unknown TLV Class %s in %s; expected %s' % ValueError: auto_collection_DeviceConfigDO(<class 'pySim.ara_m.DeviceInterfaceVersionDO'>): Unknown TLV Class DeviceInterfaceVersionDO in [{'DeviceInterfaceVersionDO': {'major': 0, 'minor': 0, 'patch': 1}}]; expected dict_keys(['device_interface_version_do']) EXCEPTION of type 'ValueError' occurred with message: auto_collection_DeviceConfigDO(<class 'pySim.ara_m.DeviceInterfaceVersionDO'>): Unknown TLV Class DeviceInterfaceVersionDO in [{'DeviceInterfaceVersionDO': {'major': 0, 'minor': 0, 'patch': 1}}]; expected dict_keys(['device_interface_version_do']) pySIM-shell (MF/ADF.ARA-M)> pySIM-shell (MF/ADF.ARA-M)> aram_get_all [ { "response_all_ref_ar_do": [ { "ref_ar_do": [ { "ref_do": [ { "aid_ref_do": "ffffffffffff" }, { "dev_app_id_ref_do": "550f1a164ccd48d27a5ea3b765957493cd830171" } ] }, { "ar_do": [ { "perm_ar_do": { "permissions": "0000000000000001" } } ] } ] } ] } ]
Actions