qmiparse is a USB modem analyzer.
qmiparse will generate parsed QMI message from Wireshark-exported text.
qmiparse is written from qmicli using libqmi.
qmiparse output text is generated by qmi_message_get_printable() of libqmi.
- Setting
Makefile.am
andqmiparse.c
intosrc/qmicli
directory of libqmi. - Just
make
.
- Capture USB messages between host driver and USB modem by Wireshark+USBPcap on Windows.
- Filter by
usb.control.Response
on Wireshark. - Export messages as a text file by
File -> Export Packet Dissections -> As Plain Text File
with these options:- Displayed = On
- Packet summary line = Off
- Packet details = Off
- Packet bytes = On
- Each packet on a new page = Off
qmiparse <text filename exported by Wireshark>
If define QMIPARSE_ONELINE
, can be used as one line parser.
One message shall be copied like as:
- Select one USB
Control response data
field of QMI message. - Copy one message by
Copy -> Hex stream
. qmiparse <Hex stream strings>
Air