Professional Documents
Culture Documents
Telematics 4g GPS GPRS
Telematics 4g GPS GPRS
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.
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.
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.
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.
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.
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:
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
/* Use AT+CPIN? To query the SIM card status : SIM card inserted or not, locked or unlocked */
[2023-08-04 10:44:03:669_R:] OK
[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 */
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 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+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
/* 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
AT+CLCC +CLCC:
<id1>,<dir>,<stat>,<mode>,<mpty>[,<number>,<type>[,<alpha>[,<priority>]]]
+CLCC:
<id2>,<dir>,<stat>,<mode>,<mpty>[,<number>,<type>[,<alpha>[,<priority>]]]
...
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
[2023-07-25 16:11:56:485_R:] OK
------------------------------------------------------------------------------------------------
[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
14
[2021-09-25 13:46:49:936_R:] +CPIN: READY
[2021-09-25 13:46:49:936_R:] OK
[2021-09-25 13:46:50:061_R:] OK
[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
[2021-09-25 13:46:50:311_R:] OK
[2021-09-25 13:46:50:436_R:] OK
15
7. SERVER/CLOUD
7.1 About the server
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
17
Figure 4: Give topic name to Publish and subscribe
18
Below Picture shows that response from the MQTT server for subscriber in qnavigator (iotclient1).
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
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
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/
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