Skip to content

Uplink bit is not set fot LTE RRC packets (qualcomm parser) #114

@rtommy

Description

@rtommy

SUMMARY
For LTE RRC packets the qualcomm diagltelogparser does not consider setting Uplink/Downlink bit.

STEPS TO REPRODUCE
Every SCAT execution with diagltelogparser.

EXPECTED and ACTUAL RESULT
The Uplink/Downlink bit should be properly set in diagltelogparser for LTE RRC packets.

ENVIRONMENT

  • OS: Windows
  • SCAT version: 1.3.0
  • Python version: 3.12
  • Cellular device: Galaxy S22 (SM-S901U)
  • Baseband type: Qualcomm
  • DIAG method: USB or serial

ADDITIONAL INFORMATION
Solution is straight forward, Pull request will be created for this to help.

in parse_lte_rrc()

        uplink = gsmtap_subtype in (
            util.gsmtap_lte_rrc_types.UL_CCCH,
            util.gsmtap_lte_rrc_types.UL_DCCH,
            util.gsmtap_lte_rrc_types.UL_CCCH_NB,
            util.gsmtap_lte_rrc_types.UL_DCCH_NB,
        )

        arfcn = (int(uplink) << 14) + item.earfcn

        gsmtap_hdr = util.create_gsmtap_header(
            version = 2,
            payload_type = util.gsmtap_type.LTE_RRC,
            arfcn = earfcn,
            frame_number = sfn,
            sub_type = gsmtap_subtype,
            sub_slot = subfn,
            device_sec = ts_sec,
            device_usec = ts_usec)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions