Closed Marc-Egli closed 1 year ago
Thanks for reporting.
Actually, there was an issue in the CipherKeyData
structure: it was missing the TAIList
length prefix. The last commit fixes that, and additionally simplify the TAIList
structure and align it on the way it's implemented in the TS24501_IE.py file (for 5G). You now need to set TAIList
instances with values like the following:
v1 = [{'Type': 2,
'PTAI': {'TAIs': {0: ('141244', 29130),
1: ('867870', 2785),
2: ('374480', 26778),
3: ('975385', 28236),
4: ('943105', 18146),
5: ('323038', 42805),
6: ('707112', 40629),
7: ('244860', 44753),
8: ('975249', 40293),
9: ('481625', 58339),
10: ('825629', 3382)}}}]
v2 = [{'Type': 2,
'PTAI': {'TAIs': {0: ('643219', 59086)}}}]
Thank you very much for the fix ! Everything works fine for me now.
Hello,
I am currently trying to generate a valid
CipherKeyData
field in anEMMTrackingAreaUpdateAccept
message defined inpycrate_mobile/TS24301_EMM.py
but I am facing a decoding error when the IE contains more than 1 element (it is a sequence).If it contains only one element there is no error
The error occurs when
CipherKeyData
contains 2 or more elements.The error when running the second code snippet is
CipherKeyData, _from_char: unable to decode IE, CipherKeyData
. I am not sure of the real reason behind the error but I was able to trace it back to the call to_from_char
inpycrate_mobile/TS24007.py:298
Thank you in advance.