Automated modem diagnostics using Python

The below code allows you to automatically run modem diagnostics as explained in this guide. This Python script will show you the output in your screen as well as save it in a text file.

Running automatic modem diagnostics

  1. First, plug in your device and download the attached scripts.
  2. Download and run the modem_diagnostics.py Python script below in your terminal program of choice (note: you also need to download modem_interface.py for the script to work).
  3. The output will display in your terminal and will download to a ModemDiagnostics.txt file in the same location. If you are opening a support ticket, please include this file so that we can help you troubleshoot.

Command

python3 modem_diagnostics.py --port /dev/ttyUSB2 --baud 115200

Notes

  • --port argument is optional. If not specified, a menu will pop up with the available serial ports.
  • --baud argument is optional. If not specified, a value of 115200 is used by default.

Video walkthrough

Automatic modem diagnostics using ModemManager

If you use ModemManager, download the mmcli-diagnostics.py script. It will output a *.log file which you can then send to us with your ticket so we can help you troubleshoot.

Command

python3 mmcli-diagnostics.py

Video walkthrough

Script downloads

Was this article helpful?
1 out of 1 found this helpful