asn1c icon indicating copy to clipboard operation
asn1c copied to clipboard

Decoding NgReset, NgResetAck, F1Reset, F1ResetAck

Open zorangnb opened this issue 5 years ago • 0 comments

Hi,

we are using branch for code generation

https://github.com/brchiu/asn1c/commits/velichkov_s1ap_plus_option_group_plus_adding_trailing_ull

as it helped to fix some previous issues, see: Issues in decoding Ff1AP DlRrcMsgTransfer, UeCtxtModificationReq (#392). We are using ASN.1 versions NGAP_15.6.0.asn, F1AP_15.7.0.asn.

Trying to APER decode NgReset that is encoded with ResetType set as 'partOfNG-Interface' option, buffer after encoding is 00140013000002000F40020000005800064001601E0000 You can see message decoded fine in https://asn1.io/asn1playground/ APER decoding fails as APER decoder thinks that ResetType is encoded with ResetAll option so it fails, this behaviour is checked with debugger. Same applies to F1Reset when using above setting for ResetType choice, and always to F1ResetAck and NgResetAck messages as these two will be with ResetType choice set as partOfNG-Interface.

Note that APER decoding is fine for both F1Reset and NgReset messages when ResetType is actually set to ResetAll (buffer example for NgReset is 0014000E000002000F400201000058000100).

Can you please advise do you have branch to use that is with enabled APER and also with usage of ASN1C_PREFIX enabled, where this bug is fixed.

Thank you for help!

Regards, Zoran

zorangnb avatar Dec 01 '20 11:12 zorangnb