Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decode LTE RRC UL-DCCH-Message Failed. #116

Open
kevinchychen opened this issue Oct 9, 2016 · 1 comment
Open

Decode LTE RRC UL-DCCH-Message Failed. #116

kevinchychen opened this issue Oct 9, 2016 · 1 comment

Comments

@kevinchychen
Copy link

Hi, @ALL

Has anyone encountered the decoding failed as following?
Can someone share your idea with me? or please suggest that which code I should trace?

- The content in file "1234.dat" was "0x082322340E020006845224" in bytes array.

  • [xxxxxx@rhe67xx EUTRA.RRC]$ ./rrc-dump -p UL-DCCH-Message 1234.dat -otext -dd
  • AD: Processing 1234.dat
  • AD: Decoding 11 bytes
  • Decoding UL-DCCH-Message as SEQUENCE (UPER) (constr_SEQUENCE.c:1050)
  • Decoding member message in UL-DCCH-Message (constr_SEQUENCE.c:1120)
  • PER got 1<=88 bits => span 1 +0[1..88]:08 (87) => 0x0
  • CHOICE UL-DCCH-MessageType got index 0 in range 1 (constr_CHOICE.c:864)
  • Discovered CHOICE UL-DCCH-MessageType encodes c1 (constr_CHOICE.c:892)
  • PER got 4<=87 bits => span 5 +0[5..88]:08 (83) => 0x1
  • CHOICE c1 got index 1 in range 4 (constr_CHOICE.c:864)
  • Discovered CHOICE c1 encodes measurementReport (constr_CHOICE.c:892)
  • Decoding MeasurementReport as SEQUENCE (UPER) (constr_SEQUENCE.c:1050)
  • Decoding member criticalExtensions in MeasurementReport (constr_SEQUENCE.c:1120)
  • PER got 1<=83 bits => span 6 +0[6..88]:08 (82) => 0x0
  • CHOICE criticalExtensions got index 0 in range 1 (constr_CHOICE.c:864)
  • Discovered CHOICE criticalExtensions encodes c1 (constr_CHOICE.c:892)
  • PER got 3<=82 bits => span 9 +0[9..88]:08 (79) => 0x0
  • CHOICE c1 got index 0 in range 3 (constr_CHOICE.c:864)
  • Discovered CHOICE c1 encodes measurementReport-r8 (constr_CHOICE.c:892)
  • Decoding MeasurementReport-r8-IEs as SEQUENCE (UPER) (constr_SEQUENCE.c:1050)
  • PER got 1<=79 bits => span 10 +1[2..80]:23 (78) => 0x0
  • Read in presence bitmap for MeasurementReport-r8-IEs of 1 bits (0..) (constr_SEQUENCE.c:1073)
  • Decoding member measResults in MeasurementReport-r8-IEs (constr_SEQUENCE.c:1120)
  • Decoding MeasResults as SEQUENCE (UPER) (constr_SEQUENCE.c:1050)
  • PER got 1<=78 bits => span 11 +1[3..80]:23 (77) => 0x1
  • PER got 1<=77 bits => span 12 +1[4..80]:23 (76) => 0x0
  • Read in presence bitmap for MeasResults of 1 bits (0..) (constr_SEQUENCE.c:1073)
  • Decoding member measId in MeasResults (constr_SEQUENCE.c:1120)
  • Decoding NativeInteger MeasId (UPER) (NativeInteger.c:246)
  • Integer with range 5 bits (INTEGER.c:601)
  • PER got 5<=76 bits => span 17 +1[9..80]:23 (71) => 0x6
  • Got value 6 + low 1 (INTEGER.c:622)
  • NativeInteger MeasId got value 7 (NativeInteger.c:263)
  • Freeing INTEGER as a primitive type (asn_codecs_prim.c:125)
  • Decoding member measResultPCell in MeasResults (constr_SEQUENCE.c:1120)
  • Decoding measResultPCell as SEQUENCE (UPER) (constr_SEQUENCE.c:1050)
  • Decoding member rsrpResult in measResultPCell (constr_SEQUENCE.c:1120)
  • Decoding NativeInteger RSRP-Range (UPER) (NativeInteger.c:246)
  • Integer with range 7 bits (INTEGER.c:601)
  • PER got 7<=71 bits => span 24 +2[8..72]:22 (64) => 0x22
  • Got value 34 + low 0 (INTEGER.c:622)
  • NativeInteger RSRP-Range got value 34 (NativeInteger.c:263)
  • Freeing INTEGER as a primitive type (asn_codecs_prim.c:125)
  • Decoding member rsrqResult in measResultPCell (constr_SEQUENCE.c:1120)
  • Decoding NativeInteger RSRQ-Range (UPER) (NativeInteger.c:246)
  • Integer with range 6 bits (INTEGER.c:601)
  • PER got 6<=64 bits => span 30 +3[6..64]:34 (58) => 0xd
  • Got value 13 + low 0 (INTEGER.c:622)
  • NativeInteger RSRQ-Range got value 13 (NativeInteger.c:263)
  • Freeing INTEGER as a primitive type (asn_codecs_prim.c:125)
  • PER got 1<= 1 bits => span 1 +0[1..1]:00 (0) => 0x0
  • Member MeasResults->measResultNeighCells is optional, p=0 (1->1) (constr_SEQUENCE.c:1102)
  • Getting normally small length (per_support.c:199)
  • PER got 1<=58 bits => span 31 +3[7..64]:34 (57) => 0x0
  • PER got 6<=57 bits => span 37 +3[13..64]:34 (51) => 0x1
  • l=2 (per_support.c:204)
  • Extensions 2 present in MeasResults (constr_SEQUENCE.c:1145)
  • PER got 2<=51 bits => span 39 +4[7..56]:0e (49) => 0x3
  • Read in extensions bitmap for MeasResults of 2 bits (c0..) (constr_SEQUENCE.c:1158)
  • PER got 1<= 2 bits => span 1 +0[1..2]:c0 (1) => 0x1
  • Decoding member measResultForECID-r9 in MeasResults (nil) (constr_SEQUENCE.c:1186)
  • Getting open type MeasResultForECID-r9... (per_opentype.c:70)
  • PER got 8<=49 bits => span 47 +4[15..56]:0e (41) => 0x1
  • PER got 8<=41 bits => span 55 +5[15..48]:02 (33) => 0x0
  • Getting open type MeasResultForECID-r9 encoded in 1 bytes (per_opentype.c:96)
  • Decoding MeasResultForECID-r9 as SEQUENCE (UPER) (constr_SEQUENCE.c:1050)
  • Decoding member ue-RxTxTimeDiffResult-r9 in MeasResultForECID-r9 (constr_SEQUENCE.c:1120)
  • Decoding NativeInteger INTEGER (UPER) (NativeInteger.c:246)
  • Integer with range 12 bits (INTEGER.c:601)
  • Freeing INTEGER as a primitive type (asn_codecs_prim.c:125)
  • Failed decode ue-RxTxTimeDiffResult-r9 in MeasResultForECID-r9 (constr_SEQUENCE.c:1125)
  • Failed decode measResults in MeasurementReport-r8-IEs (constr_SEQUENCE.c:1125)
  • Failed to decode measurementReport-r8 in c1 (CHOICE) 2 (constr_CHOICE.c:904)
  • Failed to decode c1 in criticalExtensions (CHOICE) 2 (constr_CHOICE.c:904)
  • Failed decode criticalExtensions in MeasurementReport (constr_SEQUENCE.c:1125)
  • Failed to decode measurementReport in c1 (CHOICE) 2 (constr_CHOICE.c:904)
  • Failed to decode c1 in UL-DCCH-MessageType (CHOICE) 2 (constr_CHOICE.c:904)
  • Failed decode message in UL-DCCH-Message (constr_SEQUENCE.c:1125)
  • AD: decode(0) consumed 0+0b (11), code 2
  • AD: Clean up partially decoded structure
  • Freeing UL-DCCH-Message as SEQUENCE (constr_SEQUENCE.c:957)
  • Freeing UL-DCCH-MessageType as CHOICE (constr_CHOICE.c:1041)
  • Freeing c1 as CHOICE (constr_CHOICE.c:1041)
  • Freeing MeasurementReport as SEQUENCE (constr_SEQUENCE.c:957)
  • Freeing criticalExtensions as CHOICE (constr_CHOICE.c:1041)
  • Freeing c1 as CHOICE (constr_CHOICE.c:1041)
  • Freeing MeasurementReport-r8-IEs as SEQUENCE (constr_SEQUENCE.c:957)
  • Freeing MeasResults as SEQUENCE (constr_SEQUENCE.c:957)
  • Freeing MeasId as INTEGER (1, 0x1192280, Native) (NativeInteger.c:326)
  • Freeing measResultPCell as SEQUENCE (constr_SEQUENCE.c:957)
  • Freeing RSRP-Range as INTEGER (1, 0x1192288, Native) (NativeInteger.c:326)
  • Freeing RSRQ-Range as INTEGER (1, 0x1192290, Native) (NativeInteger.c:326)
  • Freeing MeasResultForECID-r9 as SEQUENCE (constr_SEQUENCE.c:957)
  • Freeing INTEGER as INTEGER (1, 0x1192470, Native) (NativeInteger.c:326)
  • Freeing BIT STRING as OCTET STRING (OCTET_STRING.c:1725)
  • AD: ofp 1, no=0, oo=0, dbl=0
  • 1234.dat: Decode failed past byte 0: Input processing error
  • [xxxxxx@rhe67xx EUTRA.RRC]$

I try to decode the message from on-line tools(http://www.marben-products.com/asn.1/services/decoder-asn1-lte.html), and it was decoded as following:

<UL-DCCH-Message>
  <message>
    <c1>
      <measurementReport>
        <criticalExtensions>
          <c1>
            <measurementReport-r8>
              <measResults>
                <measId>7</measId>
                <measResultPCell>
                  <rsrpResult>34</rsrpResult>
                  <rsrqResult>13</rsrqResult>
                </measResultPCell>
                <measResultServFreqList-r10>
                  <MeasResultServFreq-r10>
                    <servFreqId-r10>1</servFreqId-r10>
                    <measResultSCell-r10>
                      <rsrpResultSCell-r10>36</rsrpResultSCell-r10>
                      <rsrqResultSCell-r10>18</rsrqResultSCell-r10>
                    </measResultSCell-r10>
                  </MeasResultServFreq-r10>
                </measResultServFreqList-r10>
              </measResults>
            </measurementReport-r8>
          </c1>
        </criticalExtensions>
      </measurementReport>
    </c1>
  </message>
</UL-DCCH-Message>

Please kindly give me some idea about this.
Appreciate for your valuable suggestion.

Best regards,
Kevin

@zaheermot
Copy link

I'm facing a similar problem, were you able to solve it? Appreciate any response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants