Quectel EC200U Series QuecOpen Log Capture Guide V1.0
Quectel EC200U Series QuecOpen Log Capture Guide V1.0
Version: 1.0
Date: 2022-01-19
Status: Released
LTE Standard Module Series
At Quectel, our aim is to provide timely and comprehensive services to our customers. If you
require any assistance, please contact our headquarters:
Legal Notices
We offer information as a service to you. The provided information is based on your requirements and we
make every effort to ensure its quality. You agree that you are responsible for using independent analysis
and evaluation in designing intended products, and we provide reference designs for illustrative purposes
only. Before using any hardware, software or service guided by this document, please read this notice
carefully. Even though we employ commercially reasonable efforts to provide the best possible experience,
you hereby acknowledge and agree that this document and related services hereunder are provided to
you on an “as available” basis. We may revise or restate this document from time to time at our sole
discretion without any prior notice to you.
Copyright
Our and third-party products hereunder may contain copyrighted material. Such copyrighted material shall
not be copied, reproduced, distributed, merged, published, translated, or modified without prior written
consent. We and the third party have exclusive rights over copyrighted material. No license shall be
granted or conveyed under any patents, copyrights, trademarks, or service mark rights. To avoid
ambiguities, purchasing in any form cannot be deemed as granting a license other than the normal non-
exclusive, royalty-free license to use the material. We reserve the right to take legal action for
noncompliance with abovementioned requirements, unauthorized use, or other illegal or malicious use of
the material.
EC200U_Series_QuecOpen_Log_Capture_Guide 1 / 24
LTE Standard Module Series
Trademarks
Except as otherwise set forth herein, nothing in this document shall be construed as conferring any rights
to use any trademark, trade name or name, abbreviation, or counterfeit product thereof owned by Quectel
or any third party in advertising, publicity, or other aspects.
Third-Party Rights
This document may refer to hardware, software and/or documentation owned by one or more third parties
(“third-party materials”). Use of such third-party materials shall be governed by all restrictions and
obligations applicable thereto.
We make no warranty or representation, either express or implied, regarding the third-party materials,
including but not limited to any implied or statutory, warranties of merchantability or fitness for a particular
purpose, quiet enjoyment, system integration, information accuracy, and non-infringement of any third-
party intellectual property rights with regard to the licensed technology or use thereof. Nothing herein
constitutes a representation or warranty by us to either develop, enhance, modify, distribute, market, sell,
offer for sale, or otherwise maintain production of any our products or any other hardware, software, device,
tool, information, or product. We moreover disclaim any and all warranties arising from the course of
dealing or usage of trade.
Privacy Policy
To implement module functionality, certain device data are uploaded to Quectel’s or third-party’s servers,
including carriers, chipset suppliers or customer-designated servers. Quectel, strictly abiding by the
relevant laws and regulations, shall retain, use, disclose or otherwise process relevant data for the purpose
of performing the service only or as permitted by applicable laws. Before data interaction with third parties,
please be informed of their privacy and data security policy.
Disclaimer
a) We acknowledge no liability for any injury or damage arising from the reliance upon the information.
b) We shall bear no liability resulting from any inaccuracies or omissions, or from the use of the
information contained herein.
c) While we have made every effort to ensure that the functions and features under development are
free from errors, it is possible that they could contain errors, inaccuracies, and omissions. Unless
otherwise provided by valid agreement, we make no warranties of any kind, either implied or express,
and exclude all liability for any loss or damage suffered in connection with the use of features and
functions under development, to the maximum extent permitted by law, regardless of whether such
loss or damage may have been foreseeable.
d) We are not responsible for the accessibility, safety, accuracy, availability, legality, or completeness of
information, advertising, commercial offers, products, services, and materials on third-party websites
and third-party resources.
Copyright © Quectel Wireless Solutions Co., Ltd. 2022. All rights reserved.
EC200U_Series_QuecOpen_Log_Capture_Guide 2 / 24
LTE Standard Module Series
Revision History
EC200U_Series_QuecOpen_Log_Capture_Guide 3 / 24
LTE Standard Module Series
Contents
1 Introduction ......................................................................................................................................... 7
3 Procedures ........................................................................................................................................ 11
3.1. AP Log Capture with cooltools ..............................................................................................11
3.1.1. Configuration in cooltools ...............................................................................................11
3.1.2. AP Log Capture ............................................................................................................. 13
3.2. CP Log Capture with ArmTracer .......................................................................................... 16
3.3. AP Dump Analysis and Saving ............................................................................................. 18
3.3.1. GDB Analysis of AP Dump ............................................................................................ 18
3.3.2. AP Dump Saving ........................................................................................................... 19
3.3.3. Offline Analysis of AP Dump ......................................................................................... 20
EC200U_Series_QuecOpen_Log_Capture_Guide 4 / 24
LTE Standard Module Series
Table Index
EC200U_Series_QuecOpen_Log_Capture_Guide 5 / 24
LTE Standard Module Series
Figure Index
EC200U_Series_QuecOpen_Log_Capture_Guide 6 / 24
LTE Standard Module Series
1 Introduction
Quectel EC200U series module supports QuecOpen® solution. QuecOpen® is an embedded development
platform based on RTOS, which is intended to simplify the design and development of IoT applications.
For more information on QuecOpen®, see document [1].
This document takes EC200U-CN as an example to introduce how to capture log information on the
EC200U series module in QuecOpen® solution, including environment setup, log capture tool acquisition
and specific operation steps, and dump analysis and saving. In the process of module debugging, if there
are problems such as abnormal restart, network registration and data service or module crash, you can
refer to this document to further analyze the cause of the problems.
EC200U_Series_QuecOpen_Log_Capture_Guide 7 / 24
LTE Standard Module Series
2 Environment Setup
NOTE
Please contact Quectel Technical Support ([email protected]) to obtain the latest USB driver
package.
After the driver is installed, you can check whether the ports work normally in the Device Manager, as
shown below:
Among the ports shown in the above figure, Quectel USB AP Log Port is an AP log port and Quectel USB
CP Log Port is a CP log port. The USB Serial Port (COM4) in this document is Debug UART, which can
be used to output AP log.
EC200U_Series_QuecOpen_Log_Capture_Guide 8 / 24
LTE Standard Module Series
Tool Description
If AP dump analysis is needed, you should place the decompressed subdirectories and files of gdb-
win32_custom_P3.R2.0.0005.7z in the root directory of cooltools.
Figure 2: cooltools
The CP log capture tool used is ArmTracer_V6.2.4_User.7z. It is an installation-free tool and you can
execute ArmTracer.exe after decompressing.
EC200U_Series_QuecOpen_Log_Capture_Guide 9 / 24
LTE Standard Module Series
Figure 3: ArmTracer
You can use Quectel EC200U-CN TE-A or your device to capture log.
The default output port of AP log of EC200U-CN module is Quectel USB AP Log Port (currently the log is
outputted from Debug UART during the startup of the module). If you use Debug UART to capture AP log,
note that the baud rate of Debug UART of the module needs to be set to 921600 bps. However, because
RS-232 serial port chip on LTE OPEN EVB does not support 921600 bps, AP log cannot be captured on
DB9 of EVB when you use EC200U-CN TE-A. If you must use Debug UART to capture AP log, you need
to separately jump a wire to the serial port conversion board supporting 921600 bps. Note that the level of
the module is 1.8 V when you jump the wire.
If you use your device to capture log, you need to reserve serial port or USB port. It is recommended to
reserve some test points when you design the hardware circuit, otherwise you need to jump a wire to TX
and RX pins of Debug UART when capturing log.
EC200U_Series_QuecOpen_Log_Capture_Guide 10 / 24
LTE Standard Module Series
3 Procedures
This chapter takes Debug UART as an example to introduce the procedures of capturing AP log with
cooltools. Please refer to Coolwatcher User Guide in the cooltools/doc directory for details.
EC200U_Series_QuecOpen_Log_Capture_Guide 11 / 24
LTE Standard Module Series
If the above configuration fails, the Coolhost window will appear, which may be caused by an invalid port
number. You can check whether the port number is correct on Device Manager and modify it on Coolhost
window. As shown in the following figure, enter the COM configuration page, select the corresponding port
(configured as COM4 in this document), confirm and click the "Reconnect" to reconnect the port. Among
the configurations presented in the following figure, Flow control cannot be modified and the flow control
of Debug UART is fixed as XON/XOFF and that of USB AP Log port is fixed as None. For Debug UART,
the baud rate needs to be set to 921600 bps and cannot be remodified. Note that the serial port chip also
needs to support 921600 bps. See Chapter 2.2 for details.
NOTE
EC200U_Series_QuecOpen_Log_Capture_Guide 12 / 24
LTE Standard Module Series
EC200U_Series_QuecOpen_Log_Capture_Guide 13 / 24
LTE Standard Module Series
Enter the Trace tool window after starting the Trace tool plug-in, as shows below:
The functions of the toolbar icons in the upper left corner from left to right are respectively "Start", "Stop",
"Clear", "Set Trace Levels", "Reapply Trace Levels", "Save", "Open/Close the Received column", and
"Enable/Disable Comment". You can input keyword strings for log filtering in the bar in the upper right
corner, which supports searching multiple keywords at the same time by adding "|".
Click " " to open "Set Trace Levels" window. You can set automatic log saving, single log file size, the
directory where the log is stored, row limit of log to be displayed, automatic capture of Wireshark log and
so on, as shown below:
EC200U_Series_QuecOpen_Log_Capture_Guide 14 / 24
LTE Standard Module Series
If it will take a long time to capture the log, it is recommended to set a greater value for "Split Size" and
"Row Limit". The default storage directory of log is the logs in cooltools directory. You can modify this
directory name, but please pay attention to the size of the disk space where the directory is located. You
can click "Save" to save the log to a customized directory or copy the log from the default directory to the
target directory.
NOTE
The default location of Wireshark log is the same as that of the AP log, so the Wireshark log can be
automatically captured when AP log is captured.
EC200U_Series_QuecOpen_Log_Capture_Guide 15 / 24
LTE Standard Module Series
CP log is protocol stack-related log outputted by Modem. Problems related to data transmission and
network need to be analyzed and solved with the captured CP log. You can capture CP log via Quectel
USB CP Log Port with ArmTracer. Please refer to ArmTracer User Guide in the ArmTracer/doc directory
for details.
Run ArmTracer.exe to open the ArmTracer. You first need to configure and confirm the log port. Generally,
only the port number of "Device Port" needs to be configured. If it takes a long time to capture the log, it
is recommended to increase the single file size (for example, 100 MB), that is, modify the value in "Trace
File Size". After configuring, click "OK" to go to the next step.
If there is no CP log output, check whether the module is in dump state; if not, check whether the log output
port is consistent with the port opened by the ArmTracer.
EC200U_Series_QuecOpen_Log_Capture_Guide 16 / 24
LTE Standard Module Series
Then click " " in the toolbar and the "log setting……" dialog box will pop up, as shown in the following
figure; or directly click " " and the following dialog box will pop up, too. After the configuration is
completed, ArmTracer starts capturing log.
Once the option of "start capture data function" in the "log setting……" dialog box is enabled, log is
only received and saved but it cannot be decoded in real time and displayed. When the amount of data is
large or when the log is saved abnormally, you can tick "start capture data function".
ArmTracer automatically saves the log according to the configured "Trace File Size". When the log capture
stops, some log information may not be saved successfully because it do not reach the configured size.
At this time, click " " in the toolbar to save the log.
If you need ArmTracer to automatically detect the CP port and save the CP log after the module boots,
open the ArmTracer.ini file in the directory after decompressing ArmTracer package, add "Quectel USB
CP Log Port" to "DeviceList", and set "DeviceSel" to "Quectel USB CP Log Port", as shown below:
EC200U_Series_QuecOpen_Log_Capture_Guide 17 / 24
LTE Standard Module Series
Restart ArmTracer and click " " in the toolbar and "Software Setting" dialog box will pop up, as shown
below. In the drop-down box of "USB Device Description", select "Quectel USB CP Log Port", tick
"Automatic Detect CP Port" and click "OK".
Having modified ArmTracer software configuration, you can reset "Device Port" and "Trace File Size", as
shown in Figure 9. Click " " to start capturing CP log. In this setting, CP log is automatically saved when
the module shuts down. When the module boots next time, ArmTracer will automatically detect the CP port
and save the log.
This chapter introduces how to analyze and save the AP dump. To get the information about how to analyze
CP dump, please contact Quectel Technical Support ([email protected]).
EC200U_Series_QuecOpen_Log_Capture_Guide 18 / 24
LTE Standard Module Series
In the "GDB Launcher" dialog box, select the "ELF" file corresponding to the software version package,
select "8910 AP" for "Mode", and click "Launch" to start analyzing.
EC200U_Series_QuecOpen_Log_Capture_Guide 19 / 24
LTE Standard Module Series
EC200U_Series_QuecOpen_Log_Capture_Guide 20 / 24
LTE Standard Module Series
4.1.1. ql_log_set_port()
This function configures AP log port.
⚫ Prototype
⚫ Parameter
dst_port:
[In] The AP log port to be set.
0 Disable AP log port
1 Debug Port
2 USB AP Log Port (default)
⚫ Return Value
EC200U_Series_QuecOpen_Log_Capture_Guide 21 / 24
LTE Standard Module Series
4.2.1.1. Definitions
All command lines must start with AT or at and end with <CR>. Information responses and result codes
always start and end with a carriage return character and a line feed character:
<CR><LF><response><CR><LF>. In tables presenting commands and responses throughout this
document, only the commands and responses are presented, and <CR> and <LF> are deliberately omitted.
EC200U_Series_QuecOpen_Log_Capture_Guide 22 / 24
LTE Standard Module Series
4.2.2.1. AT+QDBGCFG="tracecfg"
Parameter
EC200U_Series_QuecOpen_Log_Capture_Guide 23 / 24
LTE Standard Module Series
5 Appendix References
Document Name
[1] Quectel_EC200U_Series_QuecOpen_CSDK_Quick_Start_Guide
Abbreviation Description
AP Application Processor
CP Communication Processor
EC200U_Series_QuecOpen_Log_Capture_Guide 24 / 24