I am struggling to make progress with my HTTPS post requirement.
I am able to make intermittent posts but I keep getting CME Error 921.(invalid state of bearer connection)
Can you explain what this message means and how it might be resolved ?
thanks
Do you see such issue in pure http without ssl?
You can also see here
HTTP seems to be fine.
Also I have noticed that when using HTTPS, when I do manage to make a post, I a can only do one. If I try a second one I get the CONNECT but it times out and I get NO CARRIER.
With HTTP it seems I can make as may posts as I want to
Maybe the ssl connection has been released
You might need to capture wireshark log on server to confirm
Is that (wireshark) to test the error 921 issue or the single https post only issue ?
single https post only issue
I will investigate that - however my major issue is the 921 error. The only way I can resolve this it seems is to completely reset the modem each time I want to do a post - which is unacceptable.
Have you compared the OK log and NOK log?
I haven’t - you will need to give me instructions on how I do that
You can capture the OK log and NOK log to understand which line makes the error
You need to tell me how to do that - I’m afraid I have no understanding of what is required.
i don’t know what to tell you actually, the sentence is very straight-forward
Do you have the AT command log?
If you mean do I have the AT commands that I used and their respective outputs then yes. I thought you might be referring to a log that can be generated from the modem perhaps. Not sure this approach will help though. As I have explained the error 921 comes when I try a second HTTPS Post so I already know where it happens.
As I asked in my initial question can you please explain what this error means ?
I cant now reproduce the issue as the KHTTP_ERROR,1,5 has come back, despite the Certificate being loaded, so I don’t really know what to do next.
I am confused as to why the HTTP post works so seamlessly but HTTPS, which is far more prevalent, is riddled with problems.
AT+KCERTSTORE?
CONNECT
root_cert,0,1208
-----BEGIN CERTIFICATE-----
MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF
ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6
b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL
MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv
b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj
ca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM
9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw
IFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6
VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L
93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm
jgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
AYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUA
A4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI
U5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs
N+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv
o/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU
5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy
rqXRfboQnoZsG4q5WTP468SQvvG5
-----END CERTIFICATE-----
root_cert,1,0
root_cert,2,0
root_cert,3,0
local_cert,0,0
local_cert,1,0
local_cert,2,0
OK
AT&K3
OK
AT+CGATT=1
OK
AT+KCNXCFG=1,“GPRS”,“dataconnect.m2m”
OK
AT+KCNXUP=1
OK
+KCNX_IND: 1,1,0
AT+KHTTPCFG=1,“myurl”,443,2,1,0
+KHTTPCFG: 1
OK
+KHTTP_ERROR: 1,5
if you would like to try the above then I can send you the url to test it with
i cannot test as i don’t have cat-M network here
Are you using the latest FW?
BTW, why the “+KHTTP_ERROR: 1,5” is coming back? what have you changed?
I have no idea - it hasnt happened all day and then suddenly it returned.
I have power cycled the modem and removed and reinserted the sim - this seems to have resolved it (the KHTTP_ERROR,1,5) - for now at leaset
I am still keen to know what error 921 means though please.
Thanks
how do I find out what firmware I am using ? - have googled but can’t find it
I Will try +KHTTPDEL and +KHTTPCLOSE
success. After the KHTTPPOST I do a KHTTPCLOSE followed by KHTTPCNX, I can then post again.
thank you