asn1c icon indicating copy to clipboard operation
asn1c copied to clipboard

5G NR CUCP fail to decode MeasurementReport bit stream encoded by DU RRC

Open lihengzh opened this issue 9 months ago • 4 comments

hi, I found CUCP fail to decode MeasurementReport bit stream encode by DU RRC, uper_decode has following warning: decode_rval.code:1, decode_rval.consumed:0

the MeasurementReport content in DU RRC: para.measId 1 para.servCellId 0 para.numResult 2 para.results[0].physCellId 11 para.results[0].ssb.bitmap 1 para.results[0].ssb.rsrp 60 para.results[0].csirs.bitmap 0 para.results[1].physCellId 13 para.results[1].ssb.bitmap 1 para.results[1].ssb.rsrp 70 para.results[1].csirs.bitmap 0 the MR asn bit encoded by DU RRC: 0x0 0x40 0x0 0x4 0xb 0x51 0xe0 0x20 0x6a 0x91 0x80

CUCP received the same bits as DU RRC: 0x0 0x40 0x0 0x4 0xb 0x51 0xe0 0x20 0x6a 0x91 0x80

On the other hand, I tried to encode MeasurementReport bit stream in CUCP code with same content as DU RRC: para.measId 1 para.servCellId 0 para.numResult 2 para.results[0].physCellId 11 para.results[0].ssb.bitmap 1 para.results[0].ssb.rsrp 60 para.results[0].csirs.bitmap 0 para.results[1].physCellId 13 para.results[1].ssb.bitmap 1 para.results[1].ssb.rsrp 70 para.results[1].csirs.bitmap 0 but the MR asn bits encoded by CUCP are 0x0 0x40 0x0 0x2 0x5 0xa8 0xf0 0x10 0x35 0x48 0xc0, not different with those of DU RRC!!!

could you give some comments?

thanks a lot!

lihengzh avatar Apr 10 '25 13:04 lihengzh

I am sorry, but it is unlikely that I'd be able to help:

  • 5G use of ASN.1 pushes this open source compiler over the edge by using features that a sane designer would avoid;
  • relevant ASN.1 files tend to be monstrous in size and complexity that exceed my level of competence and available time;
  • the information given is not nearly enough for me to even guess where the problem might be.

mouse07410 avatar Apr 15 '25 02:04 mouse07410

@mouse07410 I agree that in most cases it is very difficult to even start looking into an issue without having more information.

Maybe you can setup a custom issue template where you ask for, e.g.:

  • A description of the issue
  • A sample ASN.1 specification
  • The asn1c arguments used to compile the specs
  • A sample file encoded with the given specs
  • The steps to reproduce the issue
  • ...

I think this might help providing a faster reply/solution.

mr-j0nes avatar Apr 15 '25 12:04 mr-j0nes

@mr-j0nes - great idea, thanks! Done - please let me know if the result makes sense.

mouse07410 avatar Apr 16 '25 00:04 mouse07410

@mouse07410 Looks good.

mr-j0nes avatar Apr 16 '25 07:04 mr-j0nes