fgsect / scat

SCAT: Signaling Collection and Analysis Tool
GNU General Public License v2.0
346 stars 93 forks source link

Isuue With LTE MAC RACH Responce Packet #93

Open michalisk13 opened 9 months ago

michalisk13 commented 9 months ago

Hi everyone,

I am having this issue when I run scat in debug mode with my SIMCOM8200

2023-12-22 18:45:56,785 scat.qualcommparser (parse_lte_mac_rach_response) WARNING: Unexpected MAC RACH Response Subpacket version 49
2023-12-22 18:45:56,786 scat.qualcommparser (parse_lte_mac_rach_response) DEBUG: Hexdump:
01 00 09 00 01 07 2b ff a6 ff 00 00 01 34 00 06 ......+......4..
00 2c 2e 01 00 12 00 00 20 06 1f 55 8f 3c a0 3a .,.........U.<.:
46 00 96 4b 00 00 16 00 01 00 00 00 07 07 00 00 F..K............

Also, anyone can help me out identify how I can redirect LTE MAC layer info to the loopback interface similar with RRC and NAS messages? I've tried this using two different modems, EC25 and a newer 5G SIMCOM8200 and no mac layer messages .

Thanks, Mak

michalisk13 commented 9 months ago

I am trying to parse MAC messages without any success.

peremen commented 9 months ago

The LTE MAC PDUs are carried through GSMTAP, and SCAT can parse the MAC PDUs but it is not enabled by default, see diagcmd.py. By default only RAR is parsed, but not all RACH Response packet versions are decoded, so you are getting that error. By enabling the LOG_LTE_MAC_DL_TRANSPORT_BLOCK and LOG_LTE_MAC_UL_TRANSPORT_BLOCK manually in the log_mask_scat_lte() you can get the MAC PDUs.

Also, due to the baseband's limitation, the MAC PDUs may not carry data for traffic channel.

peremen commented 5 months ago

For MAC layer parsing in Quectel EC25, try with the latest trunk with -L mac option.