pycrate icon indicating copy to clipboard operation
pycrate copied to clipboard

Creating sample messages of ASN1 objects

Open kbaccar opened this issue 2 years ago • 2 comments

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 ?

kbaccar avatar Apr 13 '22 17:04 kbaccar

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.

p1-bmu avatar Apr 19 '22 15:04 p1-bmu

It seems maybe a similar effort was intended by another user, without feedback unfortunately: https://github.com/P1sec/pycrate/issues/104

p1-bmu avatar Apr 26 '22 13:04 p1-bmu