Skip to content

Get Module Logs

Some GL.iNet routers come with built-in 3G/4G/5G modules. When the network connection is unstable, it may be necessary to export the module's log for analysis.

Here are the steps to export the cellular module's log.

1. Connect your computer to the router

Connect a laptop to the router's Wi-Fi (find the SSID and password on the device bottom label), or connect the ethernet port of your computer to the router's LAN port via an ethernet cable.

2. SSH log in to your router

Please refer to this link.

3. Get module logs

For GL-XE300/GL-X750/GL-X300B

  1. Use the following commands to get qlog from GL.iNet server, and confirm the qlog file SHA256 is right.

    cd /usr/bin/ && wget https://fw.gl-inet.com/tools/quectel_tool/qlog-ar9531-sha256-75fe8b
    
    chmod 775 qlog-ar9531-sha256-75fe8b  && sha256sum qlog-ar9531-sha256-75fe8b
    

    Get Qlog

  2. Insert a USB flash disk and use the df command to get the mount path, remember the path

    My USB flash disk mount path is /tmp/mountd/disk1_part1

    U Flash Drive Path

  3. Use the following command to open module debug mode

    gl_modem AT AT+QCFG=\"dbgctl\",0
    
  4. Use the following command to start qlog

    qlog-ar9531-sha256-75fe8b -s /tmp/mountd/disk1_part1/qlogs_$(date +%Y%m%d%H%M) & 
    

    The /tmp/mountd/disk1_part1 is my USB flash disk, you must change the path to your path

  5. Use the following command to reboot model.

    gl_modem AT AT+CFUN=0; sleep 1; gl_modem AT AT+CFUN=1
    
  6. Wait 1~3 minutes, use the following command to stop qlog

    ps  | grep qlog | grep -v grep | awk '{print $1}' | xargs kill -9
    

    Start And Stop Qlog

  7. You will find a directory in the USB flash disk, there are some files, these files are qlog get data and need use Quectel tool to decode, so please send these files to GL.iNet or Quectel technical support.

    Qlogs Files

For GL-X3000/GL-XE3000

  1. Insert a USB flash disk and use the df command to get the mount path, remember the path

    My USB flash disk mount path is /tmp/mountd/disk1_part1

    U Flash Drive Path

  2. Get the qlog from GL.iNet server and confirm the qlog file sha256 is right

    Use the following commands to get qlog

    cd /etc/ && wget https://fw.gl-inet.com/tools/quectel_tool/default_v15.cfg
    
    cd /usr/bin/ && wget https://fw.gl-inet.com/tools/quectel_tool/qlog-mtk7981a-sha256-78dda4
    
    chmod 775 qlog-mtk7981a-sha256-78dda4  && sha256sum qlog-mtk7981a-sha256-78dda4 && sha256sum /etc/default_v15.cfg
    

    Get Qlog

  3. Use the following command to start qlog

    qlog-mtk7981a-sha256-78dda4 -f /etc/default_v15.cfg -s /tmp/mountd/disk1_part1/qlogs_$(date +%Y%m%d%H%M) & 
    
  4. Use the following command to reboot model.

    gl_modem -B 0001:01:00.0 SAT sp AT+CFUN=0; sleep 1; gl_modem -B 0001:01:00.0 SAT sp AT+CFUN=1
    
  5. After captured packets with qlog, use the following command to stop qlog

    ps  | grep qlog | grep -v grep | awk '{print $1}' | xargs kill -9
    

    Start And Stop Qlog

  6. You will find a directory in the USB flash disk, there are some files, these files are qlog get data and need use Quectel tool to decode, so please send these files to GL.iNet or Quectel technical support.

    Qlogs Files


Still have questions? Visit our Community Forum or Contact us.