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

scat crashs on ec25 #109

Open
lynxis opened this issue Jul 25, 2024 · 0 comments
Open

scat crashs on ec25 #109

lynxis opened this issue Jul 25, 2024 · 0 comments

Comments

@lynxis
Copy link

lynxis commented Jul 25, 2024

SUMMARY
scat crashes on startup

STEPS TO REPRODUCE

  • Use a EC25 with diag on linux, /dev/ttyUSB0 will show up as diag

ENVIRONMENT

  • OS: Linux
  • SCAT version: v1.3.0-20-g2a76b80de32a
  • Python version: 3.11
  • Cellular device: Quectel EC25 (mini pcie via usb)
  • Baseband type: Qualcomm
  • DIAG method: /dev/ttyUSB0

ADDITIONAL INFORMATION
Add any other context about the problem here, such as type of cellular network (2G/3G/4G/5G).

Traceback (most recent call last):
  File "/home/lynxis/.local/bin/scat", line 8, in <module>
    sys.exit(scat_main())
             ^^^^^^^^^^^
  File "src/scat/main.py", line 203, in scat_main
    current_parser.prepare_diag()
  File "src/scat/parsers/qualcomm/qualcommparser.py", line 234, in prepare_diag
    result = self.parse_diag(ext_msg_level_buf[:-1])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lynxis/projects/osmocom/repos/scat/src/scat/parsers/qualcomm/qualcommparser.py", line 309, in parse_diag
    return self.parse_diag_ext_msg_config(pkt)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "src/scat/parsers/qualcomm/qualcommparser.py", line 780, in parse_diag_ext_msg_config
    level = struct.unpack('<L', pkt[pos:pos+4])[0]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
struct.error: unpack requires a buffer of 4 bytes
2024-07-26 00:04:38,790 scat.qualcommparser (stop_diag) INFO: Stopping diag
2024-07-26 00:04:40,293 scat.qualcommparser (init_diag) INFO: Initializing diag
Radio 0: Compile: Aug 21 2017/16:50:54, Release: Nov 30 2016/04:00:00, Chipset: 9607.gen
Radio 0: Build ID: EC25EFAR02A08M4G
Radio 0: Log Config: Retrieve ID ranges: 1: 2270, 4: 2320, 5: 1056, 7: 1279, 10: 906, 11: 513, 13: 511,
Radio 0: Extended message range: 0-116, 500-506, 1000-1007, 2000-2008, 3000-3014, 4000-4010, 4500-4526, 4600-4615, 5000-5031, 5500-5516, 6000-6081, 6500-6521, 7000-7003, 7100-7111, 7200-7201, 8000-8000, 8500-8529, 9000-9008, 9500-9510, 10200-10210, 10251-10255, 10300-10300, 10350-10377, 10400-10415, 49152-49251,
2024-07-26 00:04:59,331 scat.qualcommparser (prepare_diag) INFO: Starting diag
Radio 0: Extended message level:
Radio 0: Message ID 0: 0x1f
Radio 0: Message ID 1: 0x1e
Radio 0: Message ID 2: 0x1f
Radio 0: Message ID 3: 0x18
Radio 0: Message ID 4: 0x1f
Radio 0: Message ID 5: 0x1f
Radio 0: Message ID 6: 0x1e
Radio 0: Message ID 7: 0x1c
Radio 0: Message ID 8: 0x18
Radio 0: Message ID 9: 0x1f
Radio 0: Message ID 10: 0x1f
Radio 0: Message ID 11: 0x1e
Radio 0: Message ID 12: 0x1e
Radio 0: Message ID 13: 0x1e
Radio 0: Message ID 14: 0x1fe
Radio 0: Message ID 15: 0x1e
Radio 0: Message ID 16: 0x1c
Radio 0: Message ID 17: 0x1ff
Radio 0: Message ID 18: 0x1f
Radio 0: Message ID 19: 0x1e
Radio 0: Message ID 20: 0x1f
Radio 0: Message ID 21: 0x1e
Radio 0: Message ID 22: 0x1e
Radio 0: Message ID 23: 0x1f
Radio 0: Message ID 24: 0x1e
Radio 0: Message ID 25: 0x1f
Radio 0: Message ID 26: 0x1e
Radio 0: Message ID 27: 0x1e
Radio 0: Message ID 28: 0x1e
Radio 0: Message ID 29: 0x1e
Radio 0: Message ID 30: 0x3fff9e
Radio 0: Message ID 31: 0x3fffe
Radio 0: Message ID 32: 0x1f
Radio 0: Message ID 33: 0x1e
Radio 0: Message ID 34: 0x1c
Radio 0: Message ID 35: 0x1c
Radio 0: Message ID 36: 0x1c
Radio 0: Message ID 37: 0x1c
Radio 0: Message ID 38: 0x1e
Radio 0: Message ID 39: 0x1e
Radio 0: Message ID 40: 0x1fe
Radio 0: Message ID 41: 0x1f
Radio 0: Message ID 42: 0x1f
Radio 0: Message ID 43: 0x1c
Radio 0: Message ID 44: 0x1c
Radio 0: Message ID 45: 0x1c
Radio 0: Message ID 46: 0x1e
Radio 0: Message ID 47: 0x3fffffe
Radio 0: Message ID 48: 0x7fe
Radio 0: Message ID 49: 0x7fe
Radio 0: Message ID 50: 0x1f
Radio 0: Message ID 51: 0x1f
Radio 0: Message ID 52: 0x1e
Radio 0: Message ID 53: 0x1f
Radio 0: Message ID 54: 0x1f
Radio 0: Message ID 55: 0x1f
Radio 0: Message ID 56: 0x1c
Radio 0: Message ID 57: 0x1f
Radio 0: Message ID 58: 0x1f
Radio 0: Message ID 59: 0x1ff
Radio 0: Message ID 60: 0x7f
Radio 0: Message ID 61: 0x1e
Radio 0: Message ID 62: 0x1e
Radio 0: Message ID 63: 0x1f
Radio 0: Message ID 64: 0x1ffffe
Radio 0: Message ID 65: 0x1f
Radio 0: Message ID 66: 0x1e
Radio 0: Message ID 67: 0x1f
Radio 0: Message ID 68: 0x1f
Radio 0: Message ID 69: 0x1f
Radio 0: Message ID 70: 0x1c
Radio 0: Message ID 71: 0x1c
Radio 0: Message ID 72: 0x1f
Radio 0: Message ID 73: 0x1f
Radio 0: Message ID 74: 0x1f
Radio 0: Message ID 75: 0x1f
Radio 0: Message ID 76: 0x1f
Radio 0: Message ID 77: 0x20001c
Radio 0: Message ID 78: 0x1c
Radio 0: Message ID 79: 0x1f
Radio 0: Message ID 80: 0x1f
Radio 0: Message ID 81: 0x1f
Radio 0: Message ID 82: 0x1f
Radio 0: Message ID 83: 0x1f
Radio 0: Message ID 84: 0x1f
Radio 0: Message ID 85: 0x1f
Radio 0: Message ID 86: 0x1f
Radio 0: Message ID 87: 0x1f
Radio 0: Message ID 88: 0x1f
Radio 0: Message ID 89: 0x1e
Radio 0: Message ID 90: 0x1f
Radio 0: Message ID 91: 0x1f
Radio 0: Message ID 92: 0x1f
Radio 0: Message ID 93: 0x1f
Radio 0: Message ID 94: 0x1f
Radio 0: Message ID 95: 0x1f
Radio 0: Message ID 96: 0x1f
Radio 0: Message ID 97: 0x1e
Radio 0: Message ID 98: 0x1c
Radio 0: Message ID 99: 0x1f
Radio 0: Message ID 100: 0x1c
Radio 0: Message ID 101: 0x1f
Radio 0: Message ID 102: 0x1e
Radio 0: Message ID 103: 0x1e
Radio 0: Message ID 104: 0x1e
Radio 0: Message ID 105: 0x1e
Radio 0: Message ID 106: 0x1f
Radio 0: Message ID 107: 0x1f
Radio 0: Message ID 108: 0x1c
Radio 0: Message ID 109: 0x1f
Radio 0: Message ID 110: 0x1f
Radio 0: Message ID 111: 0x1f
Radio 0: Message ID 112: 0x1f
Radio 0: Message ID 113: 0x1e
Radio 0: Message ID 114: 0x1f
Radio 0: Message ID 115: 0x1f
Radio 0: Message ID 116: 0x1e
Radio 0:
Radio 0: Extended message level:
Radio 0: Message ID 500: 0x1e
Radio 0: Message ID 501: 0x1c
Radio 0: Message ID 502: 0x1c
Radio 0: Message ID 503: 0x1f
Radio 0: Message ID 504: 0x1c
Radio 0: Message ID 505: 0x1c
Radio 0: Message ID 506: 0x1c
Radio 0:
Radio 0: Extended message level:
Radio 0: Message ID 1000: 0x1e
Radio 0: Message ID 1001: 0x1e
Radio 0: Message ID 1002: 0x1e
Radio 0: Message ID 1003: 0x1e
Radio 0: Message ID 1004: 0x1e
Radio 0: Message ID 1005: 0x3e
Radio 0: Message ID 1006: 0x3ffe
Radio 0: Message ID 1007: 0x9f7f47fe
Radio 0:
Radio 0: Extended message level:
Radio 0: Message ID 2000: 0x1e
Radio 0: Message ID 2001: 0x1e
Radio 0: Message ID 2002: 0x1e
Radio 0: Message ID 2003: 0x1e
Radio 0: Message ID 2004: 0x1e
Radio 0: Message ID 2005: 0x7fe
Radio 0: Message ID 2006: 0x1e
Radio 0: Message ID 2007: 0x1e
Radio 0: Message ID 2008: 0x1e
Radio 0:
Radio 0: Extended message level:
Radio 0: Message ID 3000: 0x1c
Radio 0: Message ID 3001: 0x71fffc
Radio 0: Message ID 3002: 0x7c
Radio 0: Message ID 3003: 0x1c
Radio 0: Message ID 3004: 0x1c
Radio 0: Message ID 3005: 0xfc
Radio 0: Message ID 3006: 0x1c
Radio 0: Message ID 3007: 0x1c
Radio 0: Message ID 3008: 0x1c
Radio 0: Message ID 3009: 0x1c
Radio 0: Message ID 3010: 0x1c
Radio 0: Message ID 3011: 0x1c
Radio 0: Message ID 3012: 0x1c
Radio 0: Message ID 3013: 0x1f
Radio 0: Message ID 3014: 0x1f
Radio 0:
Radio 0: Extended message level:
Radio 0: Message ID 4000: 0x1c
Radio 0: Message ID 4001: 0x1e
Radio 0: Message ID 4002: 0x1c
Radio 0: Message ID 4003: 0x1e
Radio 0: Message ID 4004: 0x1e
Radio 0: Message ID 4005: 0x1e
Radio 0: Message ID 4006: 0x1e
Radio 0: Message ID 4007: 0x1e
Radio 0: Message ID 4008: 0x1e
Radio 0: Message ID 4009: 0x3fe
Radio 0: Message ID 4010: 0x1e
Radio 0:
Traceback (most recent call last):
  File "/home/lynxis/.local/bin/scat", line 8, in <module>
    sys.exit(scat_main())
             ^^^^^^^^^^^
  File "scat/src/scat/main.py", line 203, in scat_main
    current_parser.prepare_diag()
  File "scat/src/scat/parsers/qualcomm/qualcommparser.py", line 234, in prepare_diag
    result = self.parse_diag(ext_msg_level_buf[:-1])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "scat/src/scat/parsers/qualcomm/qualcommparser.py", line 309, in parse_diag
    return self.parse_diag_ext_msg_config(pkt)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "src/scat/parsers/qualcomm/qualcommparser.py", line 780, in parse_diag_ext_msg_config
    level = struct.unpack('<L', pkt[pos:pos+4])[0]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
struct.error: unpack requires a buffer of 4 bytes
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

1 participant