I am building a project based on the aws_iot example. I am using sdk 2.3.0. I can connect with either lte-m or nb-iot, but I keep getting aws_iot_connect, error: -119. What is error -119? Thank you.
I am building a project based on the aws_iot example. I am using sdk 2.3.0. I can connect with either lte-m or nb-iot, but I keep getting aws_iot_connect, error: -119. What is error -119? Thank you.
Let me give more details. The project was running fine in the past 12+ months with different SIM at different countries. It is just about 2 weeks ago it starts giving error -119 and won't connect. I rolled back nRF VS Code, etc. to earlier versions but no help. Any help is very much appreciated.
It should mean that operation is now in progress.
https://docs.zephyrproject.org/apidoc/latest/errno_8h.html
Was there anything changed? Are you able to maybe test some kind of simple application, like the HTTPS Client sample and check if it connects to the network at all?
Maybe try to check with Cellular Monitor from nRF Connect for Desktop?
Best regards,
Michal
We have been running the same code for over a year and we don't have such issue. It is just 2 weeks ago we start seeing this error -119. None of our device can connect now. We tried different SIM. We tried rolling back our code, rolling back the nRF Connect for VS Code and the Extension Pack, device tree and Kconfig, none of that work. We still keep getting error -119.
Are you able to provide a modem trace and logs showing this issue?
Best regards,
Michal
Unfortunately, I can't. I used up all the pins for peripherals. I only have a debug terminal setup which gives me this...
*** Booting Zephyr OS build v3.2.99-ncs2 ***
FOTA version: v1.3.0
mfw_nrf9160_1.3.5
OK
%XSIM: 1
Mode: 1
Connecting to LTE...
+CEREG: 2,"D6DD","0BC8D705",7
LTE cell changed: Cell ID: 197711621, Tracking area: 55005
+CSCON: 1
RRC mode: Connected
%XTIME: ,"52904071937369","01"
+CGEV: ME PDN ACT 0,0
+CNEC_ESM: 50,0
+CEREG: 5,"D6DD","0BC8D705",7,,,"11100000","11100000"
Network registration status: Connected - roaming
Connected to LTE
PSM parameter update: TAU: 3600, Active time: -1
%XTIME: ,"52904071939369","01"
Next connection retry in 30 seconds
AWS_IOT_EVT_CONNECTING
+CSCON: 0
RRC mode: Idle
aws_iot_connect, error: -119
Next connection retry in 30 seconds
aws_iot_connect, error: -119
Next connection retry in 30 seconds
aws_iot_connect, error: -119
Next connection retry in 30 seconds
In the past I have AWS_IOT_EVT_CONNECTED pretty much immediately after the AWS_IOT_EVT_CONNECTING. It happened very quick. But now I don't have that anymore. And this just happened 2 weeks ago with nothing being changed in the code. Only the VS Code extensions being updated automatically.
Floyd