DIAG parser and to GSMTAP converter
C Makefile Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build build: First round of reducing the utility to its core Sep 3, 2016
.gitignore
.travis.yml
COPYING
Makefile
Makefile.Android Unifiy Android/host makefiles Feb 23, 2015
README.md
address.c
address.h
assignment.c Bug fixes in assigment and diag_input, removing extra scripts May 6, 2015
assignment.h Bug fixes in assigment and diag_input, removing extra scripts May 6, 2015
bit_func.c misc: Remove unused files for burst decoding and similar Sep 3, 2016
bit_func.h New code and sql to produce detailed randomization statistics Feb 24, 2015
burst_desc.h Imported code Sep 5, 2014
diag-parser.1
diag_import.c
diag_init.c
diag_input.c
diag_input.h diag: Initialize the log mask when asked to do it Sep 3, 2016
diag_structs.h
gsmtap_import.c
l3_handler.c
l3_handler.h
output.c
output.h
process.h
session.c session: gut out more of the state handling Sep 4, 2016
session.h session: gut out more of the state handling Sep 4, 2016

README.md

diag-parser

Build Status

Parse the Qualcomm DIAG format and convert 2G, 3G and 4G radio messages to Osmocom GSMTAP for analysis in wireshark and other utilities.

Building and Using

Building on GNU/Linux with autoconf, automake, make, gcc, libtalloc, libtool already installed.

$ ./build/build_local.sh
# Use -i to configure logging using DIAG and write to net+file
$ ./diag_import -g A.B.C.D -p local_file.pcap -i /dev/ttyUSB0
# Use an existing diag file
$ ./diag_import -g A.B.C.D -p local_file.pcap trace.bin

Dependencies

The system is using libosmocore of Osmocom. The build/build_loca.sh will git clone and configure it.

Usage

-h: Display the help output

-g A.B.C.D: Send GSMTAP frames to A.B.C.D:4729

-p file.pcap: Write GSMTAP to PCAP file

-i: Initialize DIAG interface on the device

Wireshark has GSMTAP display support and will automatically display and decode GSM/3G for these frames.

Devices

Development is done using Quectel UC20 and Quectel EC20 modems inside a PCengine APU2 system.

License

Copyright (C) 2016 Holger Hans Peter Freyther

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

See COPYING for details.

Based on the gsmparser release by SR labs