Windows Log Capture Guide_Rev1.0

中文

Document Revision History

Version

Date

Author

Changes

Rev1.0

2026-04-25

ljz

Initial Release

1 Introduction

This document describes how to use the PC tool to capture runtime logs of LTE-EC71X series modules in a Windows environment, to assist users and engineers in analyzing module operation status, network performance, and troubleshooting abnormal issues.

2 EPAT Overview

  • EPAT: EigenComm Platform Analysis Tools. Used for capturing and analyzing EigenComm UE Logs, debugging and analyzing UE.

  • EPAT offline mode: Used to open and display UE logs. In offline mode, multiple EPAT processes can be launched simultaneously to open multiple UE logs for comparison.

  • EPAT online mode: Used to capture UE logs and monitor UE online status. In online mode, only one EPAT instance can be launched.

2.1 Log Capture Method Selection

Choose the appropriate log capture method based on the debugging scenario:

Method

Use Case

Description

Serial port tool (Chapter 4)

Quick APP layer log viewing, application logic debugging

APP log only, no baseband information

EPAT online (Chapter 5)

Network registration, signaling interaction, baseband issues

Complete baseband + APP log, real-time capture, requires database file

EPAT offline

Offline analysis of saved zip log files

Can open multiple logs simultaneously for comparison, requires pre-saved log files

Wireshark pcap (5.7.5)

Deep network protocol stack and packet analysis

Professional network analysis tool, requires export from EPAT

Recommendations:

  • Beginners or simple APP debugging: Use serial port tool (Chapter 4)

  • Network issues, field testing, baseband info needed: Use EPAT online (Chapter 5)

  • Network protocol detail analysis: Capture with EPAT first, then export as pcap for Wireshark analysis (5.7.5)

3 Environment Setup

3.1 Confirm Log Output Port

APP log output port can be confirmed or modified in LSDK/config/default.ini. A full clean build is required after modification:

_images/packet-capture/image_1.png

Function

Command

Description

Output to USB AT

appLogPort=0

None

Output to UART2

appLogPort=1

uart2At must be set to 1

Output to EPAT tool

appLogPort=3

Use EPAT.exe

The baseband log output port is configured via the logPortSel parameter, also located in LSDK/config/default.ini. A full clean build is required after modification:

_images/packet-capture/image_38.png

Function

Command

Description

Output to USB

logPortSel=0

Default configuration

Output to UART

logPortSel=1

None

Output to MIX

logPortSel=2

Reserved, UART/USB dynamic selection

3.2 Preparation

Please prepare the following tools and conditions:

  1. Target module (device from which logs need to be captured);

  2. The module APP supports three log output methods:

    • USB AT log output (default): Connect the module’s USB interface, view using a serial port tool. The device name in Device Manager is: Lierda At Port;

    • USB Log output (default): Connect the module’s USB interface, view using the EPAT tool. The device name in Device Manager is: Lierda Log Port;

    • UART 2 serial output: By default, connect AUX_TXD, AUX_RXD, GND pins, view using a serial port tool;

  3. PC log capture tool: Serial port tool or EPAT.exe;

  4. If using EPAT, also prepare the database file matching the firmware version (e.g., LSDK/gccout/[PROJECT]/comdb.txt). If comdb.txt does not match, log parsing errors may occur, leading to failure in issue diagnosis.

  5. For USB driver installation, please refer to “USB_Driver_Installation_Guide.md”.

Note:

  • If you do not have EPAT.exe, please contact technical support to obtain it;

  • The database file must match the firmware version.

4 Serial Port LOG Capture

There is no specific requirement for the serial port tool. Open any serial port tool, set baud rate to 115200, select the port corresponding to the output method configured in section 3.2 and open it to view APP logs.

_images/packet-capture/image_2.png

5 EPAT LOG Capture

5.1 Launch EPAT Tool

Double-click to run EPAT.exe. Tool versions may vary; contact FAE for the latest version if needed.

_images/packet-capture/image_3.png

When opening EPAT for the first time, a data source selection window will pop up:

  • Select: Serial Device

  • Click OK to enter the main interface

_images/packet-capture/image_4.png
_images/packet-capture/image_5.png

5.2 Connect UE

5.2.1 Device Dialog

Click the “Serial Port Settings” icon, then click “Setting” in the “Device Communication” popup.

_images/packet-capture/image_6.png
_images/packet-capture/image_7.png

5.2.2 Configure Connection Parameters

Select the correct log port (Lierda Log Port) and configure the baud rate (EPAT default 3000000).

_images/packet-capture/image_8.png

After configuration, click OK to return to the main interface.

Note:

  • If the USB port is not enumerated, please refer to “USB_Driver_Installation_Guide.md” for driver installation.

  • The DBG serial port baud rate defaults to 3M. It can be set to other baud rates; changes take effect after restart.

_images/packet-capture/image_9.png

USB devices in Device Manager

5.2.3 Check Connection Status

The connection status can be viewed in the EPAT status bar.

Status

Display

Connected

_images/packet-capture/image_10.png

Not connected

_images/packet-capture/image_11.png

Connection failed

_images/packet-capture/image_12.png

5.3 Update DB

5.3.1 Check Status

The Database State button in the toolbar has three states to indicate database matching status.

Status

Display

UE DB read failed

_images/packet-capture/image_13.png

UE DB mismatch

_images/packet-capture/image_14.png

UE DB matched

_images/packet-capture/image_15.png

Click the “Database Update” icon in the toolbar.

_images/packet-capture/image_16.png

In the popup window, click Update, then select the matching comdb.txt file.

_images/packet-capture/image_17.png

5.3.2 Update Database

In the database update interface, manually update the corresponding database file.

_images/packet-capture/image_18.png

After the database version update is complete, a prompt appears: Databases updated!

_images/packet-capture/image_19.png

After updating, the Check DB Version Result area displays the result:

  • Green: Success and matched

  • Red: Mismatch

  • Gray: Failed to read UE DB

Click Close to return to the main interface.

_images/packet-capture/image_20.png

Note:

  • The question mark in the database icon will automatically disappear when logs are successfully captured.

5.4 Start/Pause/Stop/Clear Functions

_images/packet-capture/image_21.png

5.4.1 Start

Starts the Viewer to begin capturing logs.

5.4.2 Pause

The Viewer stops refreshing log display but continues saving logs. Used when you are unsure whether the current log has captured the UE fault and want to temporarily check while log writing continues.

5.4.3 Stop

The Viewer stops refreshing log display and stops saving logs. Used when you confirm the current log is what you want to save and subsequent logs are not needed.

5.4.4 Clear

Clears the Viewer and opens a new log file to continue writing logs.

5.5 Log Capture

5.5.1 Start Log Capture

Click the Start button described in section 5.4.1 to begin log capture.

_images/packet-capture/image_22.png

After logs are successfully output, the database icon turns green indicating the database matches the module firmware.

_images/packet-capture/image_23.png

5.6 Filter APP Logs

Click the log filter icon.

_images/packet-capture/image_24.png

First click the checkbox before “All” to deselect all logs.

_images/packet-capture/image_25.png

Check CUSTOMER -> LIOT_CUST -> USRTAPP_LOG, then click Apply and OK.

_images/packet-capture/image_26.png

Now the log viewer displays only the APP logs.

_images/packet-capture/image_27.png

5.7 Log Saving

5.7.1 Manually Save Log File

After log capture is complete, click the “Stop” button, then click the “Save” icon to save the captured log as a .zip compressed file.

_images/packet-capture/image_28.png
_images/packet-capture/image_29.png

5.7.2 Auto-Save and Split-Save Log Files

For long-term testing and issue reproduction, it is recommended to enable the log “split-save” function:

  • Menu path: Log -> Options

  • Enable timed or size-based split-save options

  • If this function is not available, contact support for the latest tool version

After selecting AutoSave Log File, set the file size in “Set max file size”. When the log file reaches this size, it is automatically saved to disk. Specify the save location in the Save Folder input box.

If the option “Automatically delete old zip log files” is selected, auto-saved zip log files exceeding the preset maximum count will have old files automatically deleted. The default count is 50.

_images/packet-capture/image_30.png
_images/packet-capture/image_31.png

Note:

  • This parameter must be set for long-term testing. Without it, logs are saved as a single file that grows over time, making transmission and analysis difficult.

5.7.3 Save Text Log

There are two options to control whether unilog or siglog is saved as a csv or text file when saving zip log files.

If “Saving unilog as csv file when saving zip log” is selected, the current unilog data is saved as a csv file with the same directory and name as the zip log file.

If “Saving siglog as text file when saving zip log” is selected, the current siglog data is saved as a text file with the same directory and name as the zip log file.

5.7.4 Delete

Select the Delete option under the Log file category to display the configuration page as shown below:

After selecting “Automatically delete old log files”, local log files exceeding the specified count will have old files automatically deleted. The count is determined by “Number of local files”.

_images/packet-capture/image_32.png

5.7.5 Convert to Wireshark Packets

EPAT supports converting logs to .pcap format for Wireshark analysis:

  1. Switch the log window to SigLogger

_images/packet-capture/image_33.png
  1. Select the export option from the menu

_images/packet-capture/image_34.png
  1. Set the save path and filename

_images/packet-capture/image_35.png
  1. Open the .pcap file with Wireshark for packet analysis

_images/packet-capture/image_36.png
  1. Perform network packet analysis using Wireshark. Here is a simple example of TCP data send/receive flow.

_images/packet-capture/image_37.png

5.8 Submitting Logs to FAE

When submitting logs to FAE for analysis assistance, please prepare the following materials:

Material

Description

zip log file

The .zip log file saved by EPAT

comdb.txt

The database file matching the firmware version

Reproduction timestamp

The exact time the issue occurred (accurate to seconds), to help FAE quickly locate the issue in logs

Issue description

Brief description of the issue, reproduction steps, and whether it is consistently reproducible

Note: Please ensure comdb.txt matches the firmware version, otherwise FAE will also encounter log parsing errors.

6 Important Notes

  1. Use the latest version of EPAT.exe. Contact support to confirm the version;

  2. The database file must match the firmware. Version mismatch will cause log parsing failure;

  3. If EPAT crashes or cannot open, terminate all processes, re-extract, and restart;

7 FAQ

7.1 Cannot find mfc140u.dll

Please refer to DingTalk document for “Cannot find mfc140u.dll.mp4”

Copy the following 3 files to the EPAT root directory:

7.2 Port Not Found in Device Manager

Symptom: After connecting the module via USB, Lierda At Port or Lierda Log Port is not visible in Device Manager.

Troubleshooting steps:

  1. Confirm the USB cable is properly connected;

  2. Confirm the module has been powered on successfully;

  3. Confirm USB function is not disabled: usbCtrl in LSDK/config/default.ini must not be set to 2;

  4. Open Device Manager and check for unrecognized devices (yellow exclamation mark);

  5. If there are unrecognized devices, the USB driver is not installed. Please refer to “USB_Driver_Installation_Guide.md” to install the driver;

  6. If ports are still not visible after driver installation, try a different USB port or restart the computer.

7.3 Cannot See APP Log in EPAT

Symptom: EPAT is connected and baseband logs are outputting normally, but APP layer logs are not visible.

Troubleshooting steps:

  1. Confirm appLogPort=3 in LSDK/config/default.ini. APP logs are only output to EPAT when set to 3;

  2. Confirm a full clean build was performed and new firmware was flashed after modification;

  3. Confirm the EPAT filter has CUSTOMER -> LIOT_CUST -> USRTAPP_LOG checked (refer to section 5.6);

  4. If the USRTAPP_LOG option is not available in the filter, the comdb.txt does not match the firmware. Please update the database file.

7.4 No Log Output After EPAT Connection

Symptom: After clicking Start in EPAT, neither baseband nor APP logs are output.

Troubleshooting steps:

  1. Confirm the correct port is selected: choose the COM port corresponding to Lierda Log Port in Device Manager;

  2. Confirm the baud rate matches: EPAT defaults to 3000000. If the module side has been modified, they must match;

  3. Confirm logPortSel=0 (USB output) in LSDK/config/default.ini. If set to 1 (UART), logs will not be output via USB;

  4. Confirm the EPAT status bar shows “Connected” status (refer to section 5.2.3);

  5. Try restarting the module and wait for USB re-enumeration before clicking Start.