pycrate
pycrate copied to clipboard
Creating sample messages of ASN1 objects
Im trying to create sample messages for all of the RRC NR existing objects without having the binary format of the object. I checked the docs and the only way possible is to incrementally set the values of the objects with the set_val_at method. This is not very efficient given the complexity of the specification, is there a way around this ?
You have different methods to set appropriate values into ASN.1 object : set_val()
, set_val_at()
, as explained in the wiki. There is nothing more provided.
Each ASN.1 protocol has its own specificity, which may require dedicated routines for easing the setting of values. This is up to you to build your own for the RRC NR one, I believe.
It seems maybe a similar effort was intended by another user, without feedback unfortunately: https://github.com/P1sec/pycrate/issues/104