Closed matan1008 closed 4 months ago
RRLP is encoded is unaligned PER, which means the encoding is not aligned on byte-boundary. Hence, the buffer you copy from wireshark may not correspond to the exact PDU part you are looking for. Here, if you offset your buffer from 7 bits, the decoding of this RRLP object will lead to the expected value:
{'locErrorReason': 'gpsAssDataMissing', 'additionalAssistanceData': {'gpsAssistanceData': b' \x00'}}
Please note a new repository has been setup, including new fixes. This repo will keep being maintained : https://github.com/pycrate-org/pycrate.
Thanks a lot!
When parsing LocationError in RRLP component, the result might be wrong, for example:
Gives![image](https://github.com/P1sec/pycrate/assets/21226872/140085b0-449d-4844-a4a8-1e4265b4ce08)
{'locErrorReason': 'notEnoughSats'}
, but according to wireshark the parsing isVersions:
pycrate = 0.7.0 python = 3.12