vlm / asn1c

The ASN.1 Compiler
http://lionet.info/asn1c/
BSD 2-Clause "Simplified" License
1.03k stars 551 forks source link

Unable to decode BCCH-DLSCH message using uper_decode_complete API #412

Open RevathiGran opened 3 years ago

RevathiGran commented 3 years ago

Hi, I am using vlm/asn1c v0.9.29. RRC version 38.331 15.5.0 I compiled asn using this flags: asn1c -gen-PER -fcompound-names -findirect-choice -fno-include-deps

The PDU is decoded in https://asn1.io/asn1playground/ but unable to decode with this API. Kindly help me out with this.

The PDU is: 74 c5 80 3e 00 61 00 10 08 01 89 90 00 00 00 06 82 e8 05 84 26 81 80 06 41 88 30 22 59 bf e8 02 7f 80 00 00 00 03 07 70 44 20 00 24 90 83 70 84 20 00 00 90 80 00 42 06 84 04 22 90 ea 00 00 40 00 06 20 f3 81 12 cd e8 8a 00 c4 09 db f3 30 39 8f f8 92 5e 10 46 d6 65 c6 00 72 f8 80 41 50 20 00 40 08 a2 49 3c 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 27 f9 00 00

bhati-github commented 3 years ago

https://github.com/bhati-github/5GCore_NMP.git Network Message Protocol This can be used across all possible signaling interfaces and very easy to parse.

adejavel commented 3 years ago

Hello @RevathiGran Did you manage to solve this issue ? We are facing the same problem here Regards.

adejavel commented 3 years ago

Here are some details about the related issue we are facing:

adejavel commented 3 years ago

Hello @RevathiGran, Just to inform you that we solved this issue. We used a forked and a specific branch by OpenAirInterface: https://gitlab.eurecom.fr/oai/asn1c/-/tree/velichkov_s1ap_plus_option_group We had to modify the content of ASN files following the procedure detailed here: https://gitlab.eurecom.fr/oai/openairinterface5g/-/blob/NR_RRC_PUSCH/cmake_targets/tools/generate_asn1 Then, the decoding was working well Regards.

revathigrandhi commented 3 years ago

hello @adejavel , The decoding works fine with this solution. Thank you.

mouse07410 commented 3 years ago

It would be great if you could test https://GitHub.com/mouse07410/asn1c default branch (vlm_master).

It should have the fixes from the repo you referred.