P1sec / pycrate

A Python library to ease the development of encoders and decoders for various protocols and file formats; contains ASN.1 and CSN.1 compilers.
GNU Lesser General Public License v2.1
381 stars 132 forks source link

RRCNR UL_DCCH_Message can't decode #205

Closed ChuanRayChou closed 2 years ago

ChuanRayChou commented 2 years ago

Hi All,

I useing RRCNR decode UL_DCCH_Message , but something error show out.

from X2AP , "uENRMeasurements": "004d00748e5e5bd300a7ebd49acc" , decode UL_DCCH_Message.

from binascii import unhexlify
asnrrc16 = '004d00748e5e5bd300a7ebd49acc'
from pycrate_asn1dir import RRCNR
deRRC = RRCNR.NR_RRC_Definitions.UL_DCCH_Message
deRRC.from_aper(unhexlify(asnrrc16))

image

Normally should get result as below.

image

ChuanRayChou commented 2 years ago

I have fixed this issue, should be use from_uper not from_aper.