Trying to use certificats aws custom board 9151

Hi all,

I've build a custom bord with an nRF9151, I try to connect to aws iot but it's seems it's doesn't work probably cause by bad cert, I got AWS_IOT_EVT_DISCONNECTED. Something strange if I list my cert with AT command:

AT%CMNG=1
%CMNG: 88,0,"XXXXXXX"
%CMNG: 88,1,"XXXXXXX"
%CMNG: 88,2,"XXXXXXX"
%CMNG: 4294967292,11,"XXXXXXX"
%CMNG: 4294967293,10,"XXXXXXX"
%CMNG: 4294967294,6,"XXXXXXX"
OK

I can see my certs, I want to use certs with secure tag 88. So if I understand well, my certs are ok but in my main if I try to check my certs with

	modem_key_mgmt_exists(88, MODEM_KEY_MGMT_CRED_TYPE_CA_CHAIN, &exists);  
	modem_key_mgmt_exists(88, MODEM_KEY_MGMT_CRED_TYPE_PUBLIC_CERT, &exists); 
	modem_key_mgmt_exists(88, MODEM_KEY_MGMT_CRED_TYPE_PRIVATE_CERT, &exists);  

exists is always false and I always got

<wrn> modem_key_mgmt: Failed to retrieve CMEE status, err -1

EDIT: ok I have my certs right now, but it's doesn't work, it's look like I'm never really connected to LTE. I'm using onomondo eSIM, but juste before trying coonecting to AWS I got:

+CSCON: 1

[00:14:05.313,873] <inf> GCG_DNV: RRC mode: Connected

+CSCON: 0

[00:14:05.314,086] <inf> GCG_DNV: RRC mode: Idle

[00:14:05.314,147] <inf> GCG_DNV: Connecting to AWS IoT
[00:14:10.655,700] <inf> GCG_DNV: AWS_IOT_EVT_DISCONNECTED
[00:14:10.655,792] <err> mqtt_helper: Cloud MQTT input error: -128

If I understand well, +CSCON :0 my modem is inactive, is it right ? As soon as I'm coonected I go to iIdle state 200ms between changing state

Related