Arduino mega integration with Quectel EC25 LTE module

Hello All,

I am working on integrating my Arduino mega 2560 board with a new LTE module by Quectel, to connect to my server and post data to it. I am able to post data onto the server from the module when I am using the company tool "QCom".

But, when I am trying to send the commands through the serial port of the arduino, response (for ex. AT cmd gives "OK") is not available from the LTE module.

Have anyone else tried the UMTS/LTE kit from Quectel?

The links of the LTE module chip and evaluation board are given below.

URL of EC25 module- Shop | Quectel

URL of Evaluation kit - https://www.quectel.com/product/umtsevb.htm

Awaiting a reply eagerly.

Thanks & regards,
Rajeev

Hello All,

I had tried again to integrate the board, below is given the description of the commands that I had taken.

The board on connection with the correct URL using the command <AT+QHTTPURL=107,80> followed by the URL: http://www.iotspace.io/Thingworx/Things/NTU001/Services/GetData?appKey=e82d0e47-9f2a-42c6-b6e4-a9006cdf9b18, after which the device will return OK.

Since we are customising request header using the command <AT+QHTTPCFG=“requestheader”,1> , both post header and body should be inputted one after the other. For this we are using the command <AT+QHTTPPOST=524,80,80> which will return CONNECT after which we have to send header and body as below,

POST /Thingworx/Things/NTU001/Services/GetData?appKey=e82d0e47-9f2a-42c6-b6e4-a9006cdf9b18 HTTP/1.1
Content-Type: application/json
Cache-Control: no-cache
Content-Length:384

{“PN”:“4”,“GV1”:“4”,“GC1”:“2”,“WS1”:“7.2”,“GV2”:“1”,“GC2”:“1”,“WS2”:“1”,“GV3”:“1”,“GC3”:“1”,“WS3”:“1”,“GV4”:“1”,“GC4”:“1”,“WS4”:“1”,“ASP”:“1”,“WDR”:“ne”,“TS”:“12:00”}

This should return <+QHTTPPOST:0,20,“Content length”>. But we are receiving either no response or 400, which means BAD request. This is where we are getting currently stagnant.

Any help or inputs given would be greatly help us in completing this work.

Thanks & regards,
Rajeev

Hello all,

In the above post i had mentioned the return value as <+QHTTPPOST:0,20,“Content length”>. but it is actually <+QHTTPPOST:0,200>. Kindly excuse the error.

Also, while trying now I am getting 702 response while trying to post data.

output in serial monitor is given below.


Start To Post
RSQ_1SLA:0001;VOLT:0727;CURR:0002;RPM:0000;
Data Rx frm Slave 1
RSQ_2RSQ_3RSQ_4
7.27
0.02
0.00


0.00
0.00
0.00


0.00
0.00
0.00


0.00
0.00
0.00


0.00
0.00
0


AT+QIACT=1
ERROR
AT+QIACT?
+QIACT: 1,1,1,“100.106.26.210”

OK
AT+QHTTPURL=107,80
CONNECT
http://www.iotspace.io/Thingworx/Things/NTU001/Services/GetData?appKey=e82d0e47-9f2a-42c6-b6e4-a9006cdf9b18
OK
AT+QHTTPPOST=561,20,10
CONNECT
POST /Thingworx/Things/NTU001/Services/GetData?appKey=e82d0e47-9f2a-42c6-b6e4-a9006cdf9b18 HTTP/1.1
Content-Type: application/json
Cache-Control: no-cache
Content-Length:369
Host: www.iotspace.io
{“PN”:“MWT”,“GV1”:7.27,“GC1”:0.02,“WS1”:0.00,“GV2”:0.00,“GC2”:0.00,“WS2”:0.00,“GV3”:0.00,“GC3”:0.00,“WS3”:0.00,“GV4”:0.00,“GC4”:0.00,“WS4”:0.00,“ASP”:0.00,“WDR”:0.00,“TS”:0}
OK

+QHTTPPOST: 702
Data Posted


Please let me know what I am doing wrong.

Thanks & regards,
Rajeev