BC660K-GL QHTTPGETEX error after a determined range

Hello,
I have to download a large file with the module BC660K-GL. as I read here BC660K - How to download large files using QHTTPREAD?, this module have a limited memory. Thats why I tried to use the
AT command AT+QHTTPGETEX who allows me to retreive data with a specific position and length, so I can divide the file in many parts and download them.

This command works just fine until I arrive to the range ~103000, after that it only gives me an ERROR message.
Here are the logs:
[2024-11-05_13:41:40:896]AT+QHTTPGET=300
[2024-11-05_13:41:40:896]OK
[2024-11-05_13:41:46:616]+QHTTPGET: 0,200,345200
[2024-11-05_13:41:59:328]AT+QHTTPGETEX=60,10240,5120,60
[2024-11-05_13:41:59:328]OK
[2024-11-05_13:42:08:362]+QHTTPGETEX: 0,206,5120
[2024-11-05_13:42:18:738]AT+QHTTPGETEX=60,102000,5120,60
[2024-11-05_13:42:18:738]OK
[2024-11-05_13:42:24:266]+QHTTPGETEX: 0,206,5120
[2024-11-05_13:42:28:831]AT+QHTTPGETEX=60,103000,1024,60
[2024-11-05_13:42:28:831]ERROR

As you can see, in the first GET, I see that the file I want to download has a content length of 345200 bytes, then in the next two commands GETEX, I’m able to receive the packet in the specified range and lenght, but when I put the start position value as 103000 it gives me an ERROR message.
Am I doing something wrong? or this GETEX command has a limit in the start position? (on the https application note there is not limit mentioned and also I checked for extra debug information in the EPAT platform but it doesn’t provide any relevant information about this error)

Regards,
Emilio

Can you provide a complete AT log? Including the URL, I need to verify it

Hi, here are the complete AT logs:
[2024-11-12_10:05:18:402]
[2024-11-12_10:05:18:402]+QNBIOTEVENT: “EXIT DEEPSLEEP”
[2024-11-12_10:05:22:272]AT+QSCLK=0

[2024-11-12_10:05:22:272]OK
[2024-11-12_10:05:26:621]AT+CGPADDR

[2024-11-12_10:05:26:621]+CGPADDR: 0,“10.102.135.185”,“2a04:cec2:0013:c802:0000:0060:2597:0401”

[2024-11-12_10:05:26:621]OK
[2024-11-12_10:05:49:837]AT+QSSLCFG=0,0,“seclevel”,1

[2024-11-12_10:05:49:837]OK
[2024-11-12_10:05:54:402]AT+QSSLCFG=0,0,“cacert”

[2024-11-12_10:05:54:402]>
[2024-11-12_10:05:59:094]-----BEGIN CERTIFICATE-----
[2024-11-12_10:05:59:094]MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF
[2024-11-12_10:05:59:094]ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6
[2024-11-12_10:05:59:094]b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL
[2024-11-12_10:05:59:094]MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv
[2024-11-12_10:05:59:110]b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj
[2024-11-12_10:05:59:110]ca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM
[2024-11-12_10:05:59:110]9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw
[2024-11-12_10:05:59:110]IFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6
[2024-11-12_10:05:59:143]VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L
[2024-11-12_10:05:59:143]93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm
[2024-11-12_10:05:59:143]jgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
[2024-11-12_10:05:59:143]AYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUA
[2024-11-12_10:05:59:159]A4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI
[2024-11-12_10:05:59:159]U5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs
[2024-11-12_10:05:59:159]N+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv
[2024-11-12_10:05:59:159]o/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU
[2024-11-12_10:05:59:191]5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy
[2024-11-12_10:05:59:191]rqXRfboQnoZsG4q5WTP468SQvvG5
[2024-11-12_10:05:59:191]-----END CERTIFICATE-----
[2024-11-12_10:06:01:007]
[2024-11-12_10:06:01:007]+QSSLCFG: 0,0,“cacert”,1189

[2024-11-12_10:06:01:007]OK
[2024-11-12_10:06:11:019]AT+QHTTPCFG=“ssl”,0,0

[2024-11-12_10:06:11:019]OK
[2024-11-12_10:06:14:825]AT+QHTTPCFG=“responseheader”,0

[2024-11-12_10:06:14:825]OK
[2024-11-12_10:06:22:934]AT+QHTTPURL=76

[2024-11-12_10:06:22:934]>
[2024-11-12_10:06:26:730]
[2024-11-12_10:06:26:730]OK
[2024-11-12_10:06:40:291]AT+QHTTPCFG=“requestheader”,0

[2024-11-12_10:06:40:291]OK
[2024-11-12_10:06:59:064]AT+QHTTPGETEX=60,0,5120,60

[2024-11-12_10:06:59:064]OK
[2024-11-12_10:07:06:358]
[2024-11-12_10:07:06:358]+QHTTPGETEX: 0,206,5120
[2024-11-12_10:07:19:951]AT+QHTTPGETEX=60,5120,5120,60

[2024-11-12_10:07:19:951]OK
[2024-11-12_10:07:28:197]
[2024-11-12_10:07:28:197]+QHTTPGETEX: 0,206,5120
[2024-11-12_10:07:37:123]AT+QHTTPGETEX=60,102000,5120,60

[2024-11-12_10:07:37:123]OK
[2024-11-12_10:07:44:099]
[2024-11-12_10:07:44:099]+QHTTPGETEX: 0,206,5120
[2024-11-12_10:08:04:821]AT+QHTTPGETEX=60,103000,1024,60

[2024-11-12_10:08:04:821]ERROR

Also the URL is: https://test-bin-file-download.s3.eu-west-3.amazonaws.com/test-accel+(4).bin
and I upload the CA certificate ofthe server
AmazonRootCA1.pem.txt (1.2 KB)

[2024-11-12_19:12:38:384]AT+QHTTPGETEX=60,0,5120,60

[2024-11-12_19:12:38:384]OK
[2024-11-12_19:12:47:531]
[2024-11-12_19:12:47:531]+QHTTPGETEX: 0,206,5120
[2024-11-12_19:13:15:262]AT+QHTTPGETEX=60,102000,5120,60

[2024-11-12_19:13:15:262]OK
[2024-11-12_19:13:24:649]
[2024-11-12_19:13:24:649]+QHTTPGETEX: 0,206,5120
[2024-11-12_19:13:29:676]AT+QHTTPGETEX=60,102000,5120,60

[2024-11-12_19:13:29:676]OK
[2024-11-12_19:13:38:656]
[2024-11-12_19:13:38:656]+QHTTPGETEX: 0,206,5120
[2024-11-12_19:13:50:519]AT+QHTTPGETEX=60,103000,1024,60

[2024-11-12_19:13:50:519]ERROR
[2024-11-12_19:17:58:885]AT+QHTTPGETEX=60,101000,1024,60

[2024-11-12_19:17:58:885]OK
[2024-11-12_19:18:07:642]
[2024-11-12_19:18:07:642]+QHTTPGETEX: 0,206,1024
[2024-11-12_19:18:19:554]AT+QHTTPGETEX=60,102400,1024,60

[2024-11-12_19:18:19:554]OK
[2024-11-12_19:18:28:274]
[2024-11-12_19:18:28:274]+QHTTPGETEX: 0,206,1024
[2024-11-12_19:18:32:371]AT+QHTTPGETEX=60,102500,1024,60

[2024-11-12_19:18:32:371]ERROR

AT+QHTTPGETEX=,<start_position>,<read_len>[,<read_timeout>]
start_position should not be larger than 102400

Why it should not be larger than 102400? and why is not mentioned in the application note of HTTP(S)?

I don’t know, I think it’s the memory limitation of the module

Ok, Thanks for the answer

Starting with BC660KGLAAR01A05_01.203.01.203 firmware the limit is increased to 2 GB.