Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 29

4G TELEMATICS

1
Quectel EC 200U-CN

Contents
1. About 4G Telematics.......................................................................................................................2
1.1 Introduction...........................................................................................................................2
1.2 How does Telematics Work?.................................................................................................2
2. Specification of Quectel...................................................................................................................4
3. Precondition.....................................................................................................................................4
3.1 Hardware Connection...........................................................................................................5
4. Upgrading the module Firmware / UART Port............................................................................6
4.1 To overcome...........................................................................................................................6
5. GPS TEST........................................................................................................................................8
5.1 OUTPUT..............................................................................................................................10
6. GSM TEST.....................................................................................................................................11
6.1 SMS COMMANDS..............................................................................................................11
7. SERVER/CLOUD.........................................................................................................................15
7.1 About the server...................................................................................................................15
8. QNAVIGATOR SOFTWARE INTERFACE..............................................................................18
9. QNAVIGATER HOME PAGE....................................................................................................22
10. GPRS/MQTT TEST....................................................................................................................23
10.1 COMMANDS FOR GPRS................................................................................................23
10.2 Errors (How to resolve these errors)................................................................................24
11. Ref Link / Sitelink / Video Link..................................................................................................27
12. Drive Link....................................................................................................................................27
13. Software/Tools Used....................................................................................................................27
13.1 Introduction to Tools.........................................................................................................27
14. Document.....................................................................................................................................28
15. Source code..................................................................................................................................28
16. Drivers..........................................................................................................................................28

2
1. About 4G Telematics
Telematics is a really cool thing that helps us keep track of cars and other vehicles. It works by using special
devices that are installed in the vehicles. These devices use GPS technology to tell us where the vehicle is and
how fast it's going. They also use something called "on-board diagnostics" to tell us how the vehicle is running
and when it needs to be fixed.

1.1 Introduction

The device collects GPS data as well as an array of other vehicle-specific data and transmits
it via GPRS (General Packet Radio Service), 4G mobile data and cellular network or satellite
communication to a centralized server.
Telematics is a communication technology for the automobile industry based on information
flowing to and generated from vehicles via wireless networks. It is the convergence of wireless
communications, location technology and in-vehicle electronics pushing the automobile industry into
the information age.
The data points captured by the telematics includes vehicle location, speed, Interest of geographical
point, incidents of vehicle like acceleration, cornering, and harsh braking, diagnostics of vehicle like
MPG, EPM, odometer, status of vehicle, inspection report of remote vehicle, alarm alerts, sensor or
electrical activities.
1.2 How does Telematics Work?
So, how does telematics work in fleet management? A telematics system typically consists of devices
that are installed in fleet vehicles and used to collect, send, and store telemetry data. These devices use a SIM
card to connect to a vehicle's on-board diagnostics system or CAN-BUS port. An on-board modem then
transmits data through a wireless network.

The telematics device captures and stores tons of data points, such as GPS tracking data and vehicle-
specific information, on a centralized server. This information can be transferred by GPRS, 4G/5G mobile data
and cellular networks, or satellite connection.

Location, speed, acceleration, braking, idle time, fuel consumption, engine health, and other data points
can be collected via telematics devices. This data, when processed and assessed, may give extensive insights
into your whole fleet, allowing you to make data-driven choices and enhance your operations.

3
1.3 An automotive telematics solution typically consists of four building
blocks
An automotive telematics solution typically comprises a network of vehicle ECUs, a telematics control
unit, a cloud-based IoT server, and telematics applications. These building blocks work together to collect and
transmit vehicle data, which can be accessed and analysed by authorized personnel to optimize fleet
performance and reduce costs.

1. Network of vehicle ECUs: Inside the car, there is a network of interconnected


automotive ECUs that function as miniature supercomputers. These ECUs assist the telematics unit in
collecting vehicle data.

2. Telematics Control Unit (TMU): The telematics control unit serves as the heart of the vehicle's
telematics device. It communicates with the vehicle's CAN bus and the IoT cloud server. The TMU
captures vehicle data and sends it to the IoT cloud over a cellular, LTE, or GPRS network. The TMU
also handles the telematics devices' memory and battery and simplifies the data that is communicated
with the driver via a gadget or dashboard.

3. Cloud IoT server: The data collected by the telematics device is transmitted to the cloud-based
telematics server over a secure GPRS or cellular network. The data is extracted and stored in databases
for processing on the IoT cloud platform.

4. Telematics applications: Authorized personnel can access data from the cloud-based telematics
server through web, desktop, or mobile applications connected to the IoT ecosystem. This information
can also be integrated into a business intelligence system for additional analysis and reporting.

4
2. Specification of Quectel
As of my last knowledge update in September 2021, the Quectel EC200 is a cellular module
developed by Quectel Wireless Solutions. Below are the specifications based on the information
available up to that point.

Technology: LTE Cat 4, 3G, 2G


LTE Category: Cat 4 (150 Mbps DL, 50 Mbps UL)
3G Bands: WCDMA/HSPA+ (UMTS)
2G Bands: GSM/GPRS/EDGE
Frequency Bands: Various bands supported, specific bands may vary depending on the regional
variant.

SIM Card: Standard 1.8V/3V SIM Card


Interfaces: UART, USB 2.0, ADC, GPIO, PCM, I2C, Antenna, SPI etc.
GNSS: Built-in GNSS receiver supporting GPS/GLONASS/BeiDou/Galileo
Power Supply: 3.3V ~ 4.3V (typical 3.8V)
Operating Temperature: -40°C to +85°C
Dimensions: Compact surface-mount form factor
Please note that newer versions or variants of the Quectel EC200 may have been released after my last
update, and additional features and improvements may have been made. To get the latest and most
accurate specifications, it is best to refer to Quectel official website or contact their
sales/support team directly.

Feature Refinements: Support Wi-Fi scan, Bluetooth.

3. Precondition
The Quectel EC200 is a 4G LTE module designed for IoT and telematics applications. To use the
Quectel EC200 for 4G telematics, you need the following preconditions:

Compatible Network: Ensure that your chosen cellular carrier supports 4G LTE connectivity and
covers the area where the telematics device will be deployed.

5
3.1 Hardware Connection

SIM Card: You'll need a valid and activated 4G LTE SIM card from your cellular carrier to enable
data communication.

Power Supply: Provide a stable power supply to the Quectel EC200 module to ensure continuous
operation.

Antenna: Connect an appropriate 4G LTE antenna to the module to improve signal reception and
transmission.

Firmware and Configuration: Make sure the module's firmware is up to date and properly
configured to work with your chosen network and settings.
Always consult the Quectel EC200's datasheet and documentation for specific technical details and
guidelines related to its implementation.

6
4. Upgrading the module Firmware / UART Port
If the module's firmware is not up to date and properly configured to work with your chosen
network and settings. If it giving any kind of error then we need to check for configuration of Quectel
module or UART port.
Please check your current firmware with ATI first. If it gives the response from quectel
module or information about the module correctly then no need to any upgrade just check the
upgrade.

4.1 To overcome
Please check the Following link, you need to install the USB driver in your Windows PC
firstly, then unzip QFlash package, connect to USB DM port, unzip EC20 firmware package, choose
any file in firmware package, then click start button, it will upgrade the firmware automatically, you
just need to waiting for the upgrade successful.

4.2 Firmware Upgrade Procedures


The firmware is upgraded through the following three steps with QFlash.

Step 1: Set the serial port and baud rate;


Step 2: Load firmware files;
Step 3: Upgrade the firmware. The following chapters describe the details about how to use the tool
to upgrade firmware.

4.3 Configure Serial Port and Baud Rate


After the Qflash tool is started the main interface is shown as below.

7
4.4 Set COM Port
For EC200u, the USB AT port can be used for firmware update. Click “COM Port” drop-down list
and select Quectel USB AT port for upgrade, as shown in the following figure.

Figure 3: Select the usb AT port for uc200

8
4.5 Load Firmware Files
The steps in the chapters are performed to load firmware files for standard and Quecopen
modules.

Step 1: Click baud rate drop down list and select an appropriate baud rate.
Step 2: Click the button “Load FW Files”.
Step 3: Select the Bootloader_xxx.bin, .hex
files .txt, .cfg, .mbn, .lod, .fls, .fwpkg, .pac, .zip, .bin, .bat, .elf,
fw.alt, .mimgx, .xml or .py file which needs to be downloaded to the module.

Figure 4: Select the file to be downloaded


After the flashing completed, we can go qcom or qnavigator to check for the AT Commands.

5. GPS TEST
How to Use GPS:
EC20 GNSS engine allows calculating location without any assistance from the network. The
procedure of turning on GNSS is shown as below:

Step 1: Configure corresponding demands by AT+QGPSCFG.


Step 2: Active GNSS engine by AT+QGPS.
Step 3: After GNSS session is started successfully and GNSS has fixed, positioning information can
be obtained by three ways:
1) NMEA sentences output to "usbnmea" port by default, you can read the port to obtain NMEA
sentences.
2) You can use AT+QGPSLOC to obtain some positioning information directly, such as latitude,
longitude, height, time and positioning type and so on .
3) After enabling by AT+QGPSCFG, you can acquire the specified NMEA sentence by
AT+QGPSGNMEA. If is disabled, this command cannot be used.

Step 4: You can terminate GNSS by two ways:

9
1) If the parameter of the AT+QGPS is set to 0 in Step 2, GNSS engine will get position continuously,
and it can be ended by AT+QGPSEND.
2) If the actual fix times reach to the specified value, the engine will stop automatically; in this
process you can use the command AT+QGPSEND to end the session.

/* Use AT+CPIN? To query the SIM card status: SIM card inserted or not, locked or unlocked */

[2023-08-04 10:42:58:453_R:] at

[2023-08-04 10:42:58:453_R:] OK

[2023-08-04 10:43:50:337_R:] AT+CPIN?

[2023-08-04 10:43:50:337_R:] +CPIN: READY


[2023-08-04 10:43:50:337_R:] OK

/* Use AT+QCCID to query ICCID number of SIM card */

[2023-08-04 10:44:02:208_S:] AT+QCCID


[2023-08-04 10:44:02:290_R:] AT+QCCID
[2023-08-04 10:44:02:290_R:] +QCCID: 8991000906095835286F
[2023-08-04 10:44:02:290_R:] OK

/* Use AT+CIMI to query the IMSI of SIM card */


[2023-08-04 10:44:02:510_S:] AT+CIMI
[2023-08-04 10:44:02:595_R:] AT+CIMI
[2023-08-04 10:44:02:595_R:] 404400962911380
[2023-08-04 10:44:02:595_R:] OK

/* Use AT+CPIN? To query the SIM card status : SIM card inserted or not, locked or unlocked */

[2023-08-04 10:44:03:611_S:] AT+CPIN?


[2023-08-04 10:44:03:669_R:] AT+CPIN?
[2023-08-04 10:44:03:669_R:] +CPIN: READY

[2023-08-04 10:44:03:669_R:] OK

/* Use AT+CSQ to query current signal quality */

[2023-08-04 10:44:03:673_S:] AT+CSQ


[2023-08-04 10:44:03:737_R:] AT+CSQ
[2023-08-04 10:44:03:737_R:] +CSQ: 24, 99
[2023-08-04 10:44:03:737_R:] OK

/* Use AT+CREG? /AT+CGREG? To query the network registration status. */

[2023-08-04 10:44:03:809_S:] AT+CGREG?


[2023-08-04 10:44:03:921_R:] AT+CGREG?
[2023-08-04 10:44:03:921_R:] +CGREG: 0, 5

[2023-08-04 10:44:03:921_R:] OK

10
/* Use AT+COPS? To query current Network Operator */
[2023-08-04 10:44:03:924_S:] AT+COPS?
[2023-08-04 10:44:04:051_R:] AT+COPS?
[2023-08-04 10:44:04:051_R:] +COPS: 0, 0,"IND airtel", 7
[2023-08-04 10:44:04:051_R:] OK

/* Use ATI to get module information of Manufacturer ID, Device model and Firmware version */

[2023-08-04 10:44:04:916_S:] ATI


[2023-08-04 10:44:04:981_R:] ATI
[2023-08-04 10:44:04:981_R:] Quectel
[2023-08-04 10:44:04:981_R:] EC200U
[2023-08-04 10:44:04:981_R:] Revision: EC200UCNAAR03A02M08
[2023-08-04 10:44:04:981_R:] OK
[2023-08-04 10:44:15:672_S:] AT+CIMI
[2023-08-04 10:44:15:733_R:] 404400962911380
[2023-08-04 10:44:15:733_R:] OK
[2023-08-04 10:44:32:313_S:] AT+QCCID
[2023-08-04 10:44:32:387_R:] +QCCID: 8991000906095835286F
[2023-08-04 10:44:32:387_R:] OK
[2023-08-04 10:45:45:986_R:] AT+CSQ
[2023-08-04 10:45:45:986_R:] +CSQ: 23, 99
[2023-08-04 10:45:45:986_R:] OK
[2023-08-04 10:46:09:684_R:] AT+CREG?
[2023-08-04 10:46:09:684_R:] +CREG: 0, 5
[2023-08-04 10:46:09:684_R:] OK
[2023-08-04 10:46:30:992_R:] AT+CGREG?
[2023-08-04 10:46:30:992_R:] +CGREG: 0, 5
[2023-08-04 10:46:30:992_R:] OK
[2023-08-04 10:46:42:772_R:] AT+COPS?
[2023-08-04 10:46:42:772_R:] +COPS: 0, 0,"IND airtel", 7
[2023-08-04 10:46:42:772_R:] OK
[2023-08-04 10:47:04:430_R:] AT+CEREG?
[2023-08-04 10:47:04:430_R:] +CEREG: 0, 5
[2023-08-04 10:47:04:430_R:] OK

[2023-11-21 11:44:05:044_R:] AT+QGPS=1


[2023-11-21 11:44:05:044_R:] OK

[2023-11-21 11:26:46:456_R:] AT+QGPS?


[2023-11-21 11:26:46:456_R:] +QGPS: 1
[2023-11-21 11:26:46:456_R:] OK

[2023-11-21 11:40:55:338_R:] AT+QGPSLOC=2


[2023-11-21 11:40:55:338_R:] +QGPSLOC:
061052.000,12.91168,77.60051,2.1,833.5,3,000.00,2.0,1.1,211123,10
[2023-11-21 11:40:55:338_R:] OK

5.1 OUTPUT
12.91168,77.60051 is taken from the output of the AT command, when you search it you will get the
location in this case it will take you to Infiquity Auto Technologies Pvt Ltd

Below figure shows the GPS data through these AT commands in Qnavigator Tool
Latitude = 12054’43.3”N

11
Longitude = 77036’03.0”E

6. GSM TEST
6.1 SMS COMMANDS
/* below commands for test SMS commands in qnavigator Tool*/

/* Use ATE1 to enable echo mode */


[2023-07-21 23:50:05:237_S:] ATE1
[2023-07-21 23:50:05:305_R:] ATE1
[2023-07-21 23:50:05:305_R:] OK

/* use AT+CPIN? To query the SIM card status: SIM card inserted or not, locked or unlocked */
[2023-07-21 23:50:05:323_S:] AT+CPIN?
[2023-07-21 23:50:05:384_R:] AT+CPIN?
[2023-07-21 23:50:05:384_R:] +CPIN: READY

[2023-07-21 23:50:05:384_R:] OK

/* Use AT+CMGF=1 to set text mode */


[2023-07-21 23:50:05:387_S:] AT+CMGF=1
[2023-07-21 23:50:05:510_R:] AT+CMGF=1
[2023-07-21 23:50:05:510_R:] OK

/* Use AT+CSMP to set SMS parameter for text mode (default setting: AT+CSMP=17, 167, 0, 0) */
[2023-07-21 23:50:05:512_S:] AT+CSMP=17, 167, 0, 0
[2023-07-21 23:50:05:652_R:] AT+CSMP=17, 167, 0, 0
[2023-07-21 23:50:05:652_R:] OK

/* Use AT+CSCS to set character type (default setting: AT+CSCS="GSM") */


[2023-07-21 23:50:05:653_S:] AT+CSCS="GSM"
[2023-07-21 23:50:05:762_R:] AT+CSCS="GSM"
[2023-07-21 23:50:05:762_R:] OK

/* AT+CMGS="+919487855306", and then wait for the">" appears, input your message after the ">",
use <CTRL+Z> or 1A (HEX String) to send a message, when receive +CMGS :< index> and OK,
means the message has been sent successfully. */

12
[2023-07-21 23:50:05:768_S:] AT+CMGS="+919487855306"//RECE. NUMBER
[2023-07-21 23:50:05:887_R:] AT+CMGS="+919487855306"//RECV. NUMBER
[2023-07-21 23:50:05:887_R:] > Hello
[2023-07-21 23:50:06:660_R:] +CMGS: 136

[2023-07-21 23:50:06:660_R:] OK

[2023-07-21 23:50:07:374_R:] DSR: 0 CTS: 1 (RI: 1) DCD: 0

[2023-07-21 23:50:07:494_R:] DSR: 0 CTS: 1 (RI: 0) DCD: 0

[2023-07-21 23:50:07:551_R:] +CMT: "AX-AIRTEL","23/07/21, 23:50:07+22"


[2023-07-21 23:50:07:551_R:] Pack Valid till 27 Jul 2023. Remaining SMS: 272 Bal: Rs.7.49.
[2023-07-21 23:50:07:551_R:] 29=2GB data, valid for 1 day

6.2 CALL Commands


/*the AT+CLCC Command lists the calls that are currently active within the system*/

AT+CLCC +CLCC:
<id1>,<dir>,<stat>,<mode>,<mpty>[,<number>,<type>[,<alpha>[,<priority>]]]
+CLCC:
<id2>,<dir>,<stat>,<mode>,<mpty>[,<number>,<type>[,<alpha>[,<priority>]]]
...

<id> Integer identifier for the call.


<dir> Direction of the call: 0 = outgoing MO, 1 = incoming MT.
<stat> State of the call:

 0 active
 1 held
 2 dialling (MO call)
 3 alerting (MO call)
 4 incoming (MT call)
 5 waiting (MT call)

<mode> Bearer/teleservice:

 0 voice
 1 data
 2 reserved for future use: fax
 3 voice followed by data, voice mode
 4 alternating voice/data, voice mode
 5 reserved for future use: alternating voice/fax, voice mode
 6 voice followed by data, data mode
 7 alternating voice/data, data mode
 8 reserved for future use: alternating voice/fax, fax mode

13
 9 unknown - used to indicate video calls

<mpty> Multiparty indicator: 1 = multi-party, 0 = no multi-party.


<number> String type phone number of calling address in format specified by <type>.
<type> Type of address octet in integer format (refer 3GPP TS 24.008).
<alpha> String indicating the name of a phonebook entry corresponding to <number>. Usually this
is empty.
<priority> Digit indicating eMLPP priority level of incoming call

/* Use ATD<number>; to dial up */


[2023-07-25 16:11:53:339_S:] ATD9566709080;
[2023-07-25 16:11:53:397_R:] ATD9566709080;
[2023-07-25 16:11:53:397_R:] OK
[2023-07-25 16:11:56:424_S:] AT+CLCC
[2023-07-25 16:11:56:485_R:] AT+CLCC
[2023-07-25 16:11:56:485_R:] +CLCC: 1, 0, 2, 0, 0,"9566709080", 129

[2023-07-25 16:11:56:485_R:] OK
------------------------------------------------------------------------------------------------

/* Use ATD<number>; to dial up */


[2023-07-25 16:13:43:747_S:] ATD9566709080;
[2023-07-25 16:13:43:816_R:] ATD9566709080;
[2023-07-25 16:13:43:816_R:] OK
[2023-07-25 16:13:46:844_S:] AT+CLCC
[2023-07-25 16:13:46:922_R:] AT+CLCC
[2023-07-25 16:13:46:922_R:] +CLCC: 1, 0, 3, 0, 0,"9566709080", 129

[2023-07-25 16:13:46:922_R:] OK
[2023-07-25 16:13:49:856_S:] AT+CLCC
[2023-07-25 16:13:49:934_R:] AT+CLCC
[2023-07-25 16:13:49:934_R:] +CLCC: 1, 0, 0, 0, 0,"9566709080", 129

[2023-07-25 16:13:49:934_R:] OK

[2023-07-25 16:13:51:920_R:] DSR: 0 CTS: 1 (RI: 1) DCD: 0

[2023-07-25 16:13:52:040_R:] DSR: 0 CTS: 1 (RI: 0) DCD: 0

[2023-07-25 16:13:52:100_R:] NO CARRIER


[2023-07-25 16:13:52:855_S:] AT+CLCC
[2023-07-25 16:13:52:933_R:] AT+CLCC
[2023-07-25 16:13:52:933_R:] OK

6.3 TCP/UDP ESTABLISH BASIC COMMAND


/* use AT+CPIN? To query the SIM card status: SIM card inserted or not, locked or unlocked */

[2021-09-25 13:46:49:868_S:] AT+CPIN?

[2021-09-25 13:46:49:936_R:] AT+CPIN?

14
[2021-09-25 13:46:49:936_R:] +CPIN: READY

[2021-09-25 13:46:49:936_R:] OK

/*Use AT+CEREG? To query current EPS Network Registration Status*/

[2021-09-25 13:46:49:936_S:] AT+CEREG?

[2021-09-25 13:46:50:061_R:] AT+CEREG?

[2021-09-25 13:46:50:061_R:] +CEREG: 0, 1

[2021-09-25 13:46:50:061_R:] OK

/* use AT+CSQ to query current signal quality */

[2021-09-25 13:46:50:061_S:] AT+CSQ

[2021-09-25 13:46:50:186_R:] AT+CSQ

[2021-09-25 13:46:50:186_R:] +CSQ: 31, 99

[2021-09-25 13:46:50:186_R:] OK

/* use AT+CREG? /AT+CGREG? To query the network registration status, if the return value is [0,1
] or

[0, 5], it is successfully registered, other value is fail to register */

[2021-09-25 13:46:50:186_S:] AT+CREG?

[2021-09-25 13:46:50:311_R:] AT+CREG?

[2021-09-25 13:46:50:311_R:] +CREG: 0, 1

[2021-09-25 13:46:50:311_R:] OK

[2021-09-25 13:46:50:311_S:] AT+CGREG?

[2021-09-25 13:46:50:436_R:] AT+CGREG?

[2021-09-25 13:46:50:436_R:] +CGREG: 0, 1

[2021-09-25 13:46:50:436_R:] OK

15
7. SERVER/CLOUD
7.1 About the server

‘’MOSQUITTO MQTT BROKER’’


Mosquitto is a lightweight open source message broker that Implements MQTT versions 3.1.0, 3.1.1
and version 5.0
AT+QMTOPEN= 0,"test.mosquitto.org", 1883 //HOST name
AT+QMTCONN=0,"mqttx_f60d7407","mqtt","12345" // client ID, username and password
AT+QMTSUB=0, 1,"iotclient1", 0
AT+QMTPUBEX= 0, 0, 0, 0,"iotclient1", 75

7.2 Installing the Broker


To use it you will first need to install it from google.

7.3 Mosquitto MQTT Installation and Initial Setup


1. Start the Mosquitto MQTT Broker. If you have not already too ahead and start the Mosquitto Broker
by entering the following in your terminal: mosquitto.
2. Connect an MQTT Client to the Mosquitto Broker and listen for data. Open another terminal window.
3. Publish a Message.
MQTTBOX: /*Application for work flow*/
MQTTBox apps are also available for Linux, Mac, Web and Windows.

Below I attached some pictures related to Mqttbox, how to open and how to give the topic name and
also payload.

You can check how to subscribe to client and publish message from below snapshots.

16
Figure 1:After open of MQTT broker

Figure 2: Giving the Host name and Port


As mentioned above, we need to give a correct Host or IP address. Give the MQTT client
name and select the valid protocol.
“USERNAME” and “PASSWORD” if you want you can create else blank.

Figure 3: Now connected to server

17
Figure 4: Give topic name to Publish and subscribe

Figure 5: Publishing the message

Figure 6: Shows the Multiple subscribers

18
Below Picture shows that response from the MQTT server for subscriber in qnavigator (iotclient1).

Figure 7: Responses from MQTT server

8. QNAVIGATOR SOFTWARE INTERFACE


Follow the below steps for user guidance.

STEP 1: Click the Next button to enter the next step.

Figure .1

19
STEP 2: Choose the right module and click the Next button to enter the next step.

Figure.2

STEP 3: Click the Next button to enter the next step. You can also click the Prev button to go the
previous step.

Figure.3

20
STEP 4: Click the Next button to enter the next step. You can also click the Prev button to go the
previous step.

Figure.4

STEP 5: Click the Next button to enter the next step. You can also click the Prev button to go the
previous step.

Figu
re.5

21
Then select the serial port parameter set, as shown in the following figure.

Figure.6

Figure.7
Before testing, necessary parameters must be configured first, including Port Number/Baud Rate/Data
Bits/Stop Bits/Parity/Flow Control. Each time you click the drop-down box and select a new one, the
information of current UART would be automatically updated by system.

Click the OK button to enter the main interface after parameter settings are completed.

22
9. QNAVIGATER HOME PAGE
Module can be connected by clicking the Connect to module button. It will go to initialization
progress. Automatic initialization option is selected by default.
Home page after running the software as shown in below,
All this time, if the UART is successfully opened, you can click the Send button and all information
about this command will be displayed, as shown below in (Picture-1):

Figure.8

Figure.9

23
10. GPRS/MQTT TEST
10.1 COMMANDS FOR GPRS
These below are the commands used for GPRS to get the response from the Quectel EC200U-
CN board.
AT+CMEE=2
AT+QURCCFG="URCPORT","uart1"
AT+CIMI //query the IMSI of SIM card
AT+CSQ //current signal quality
AT+CREG? //network registration status
AT+COPS? //current Network Operator
AT+CEREG? //EPS Network Registration Status*
AT+QMTCFG= "send/mode", 0
AT+QMTOPEN=0,"test.mosquitto.org", 1883
AT+QMTCONN=0,"mqttx_f60d7407","",""
AT+QMTSUB=0, 1,"iotclient1", 0
AT+QMTPUBEX=0, 0, 0, 0,"iotclient1", 75

We need to pass those GPRS commands as mentioned above GPRS commands the response will get
like

Figure.10

24
Error:

Figure.11

Here, we are getting mainly 2 errors.

10.2 Errors (How to resolve these errors)


AT+QMTOPEN: 0, 1/0, 4
This command is use to open network for MQTT Client. If we got 0, 1 error mean we need to check
for the parameters, if we got 0, 4 error means failed to parse domain name (IP Address). You can
check in Host name is correct or not and also Port.
From above information you can resolve this issue.

AT+QMTCONN: 0, 1
This command is used when a client request a connection to MQTT server.
This is a MQTT connection issue. The default time value is 10 sec. within that time you need to enter
the next command.

25
Figure.12

Figure.13

AT+QMTSTAT: 0, 1
It will be reported when there is a change in state of MQTT Link Layer. The Client will close the
MQTT connection and report the URC.
For resolve this, we need to give the 2nd command within the 10 sec. If delay comes the response is 0,
1.

Figure.14

26
Figure.15

Figure.16

27
Figure.17

11. Ref Link / Sitelink / Video Link


YouTube Link: /*for access the links use ctrl+click*/
https://youtu.be/a1gjtpGE7F8

12. Drive Link


13. Software/Tools Used
Below are the list of tools we used to find GPS and GPRS.

13.1 Introduction to Tools


1. QFlash:
Quectel QFlash Tool is a windows application that allows users to flash or install stock
firmware (flash file/hex file) on devices powered by Quectel modules.

2. QNAVIGATOR:
QNAVIGATOR Tool is only used to test Quectel modules. By using this tool you can be
familiar with the working process of the main function like CALL, SMS, TCP/UDP, PPP and
QuceLocator even when you do not know any AT commands. It will show you the details of how
each function works.

3. Qcom:
Qcom Tool is used to test a Quectel module by sending a AT commands.
4. MQTT Box:

28
Developer’s helper program to create and test MQTT connectivity protocol. Supercharge
your MQTT workflow with MQTTBox for Chrome! MQTTBox apps are also available for
Linux, Mac, Web and Windows. Please check download link
By Microsoft.

14. Document
To get the drivers for the EC200U-CN module, go to the USB drivers section of ec200 product page.
And also for all referred documents in this link you can find all datasheets of modules and devices.
From below link.
Quectel Document Link - https://www.quectel.com/

15. Source code


16. Drivers
Install drivers for quectel modules are available under the product page in https://www.quectel.com/
For example, to get the drivers for the EC200U-CN module, go to the USB drivers section of ec200
product page.
Once the drivers are installed successfully, connect the device to the PC. In most cases, the module
device is in the development board which is then connected to the USB port of the PC. As soon as the
development board is connected to the PC, the USB ports of the device will be detected and
connected. Open the ‘Device Manager’ in your system. If the drivers are installed successfully, you
should see the following ports installed.
Under Ports, following ports should be installed. Note the port numbers will be different on your
system.

Figure.18

The DM port is the diagnostics monitor port and NMEA port is for getting GPS data. The AT
commands are supported on the WWAN modem port.

29

You might also like