Hopefully it is okay to jump on this thread, I am trying to accomplish a similar task and thought that it might be best to stick it here instead of making a new discussions. I am working with the nRF9160 sparkfun thing plus and I have followed the guide to use the golioth cloud with the tracker but am having trouble when connecting. “golioth_system: failed to connect: -111” is what pops up in the LTE serial monitor.
Don’t know how to post an image of my monitor but here is the log ->
AT%CMNG=1
%CMNG: 0,6,“0606060606060606060606060606060606060606060606060606060606060606”
%CMNG: 1,3,“AA5C5F17C02F39239EFA917C017BFB5B5955617C8E82ACEA43C76CB279F09C80”
%CMNG: 1,4,“733A813C0250D06776CAD37EFF3EA2887AEAB67ED641E017F456E046031A270C”
%CMNG: 16842753,0,“2C43952EE9E000FF2ACC4E2ED0897C0A72AD5FA72C3D934E81741CBD54F05BD1”
%CMNG: 16842753,1,“9A48076FEE19A25A14273FA076C2389888C11E1BB14154BD9E4CA7FCA9DE3EEA”
%CMNG: 16842753,2,“6A77AFEE5BBCBC17AA0CD5BC2650ADCCD74699FDCB6B28BD1299026FC174B68D”
%CMNG: 4294967293,10,“2C43952EE9E000FF2ACC4E2ED0897C0A72AD5FA72C3D934E81741CBD54F05BD1”
%CMNG: 4294967294,6,“8EAF797C65D747AA0E021938E1CD38724ADF72CB8F9596B967A845CBA35A220D”
%CMNG: 4294967292,11,“2027C4699EAA90A414D33FA81B975C0FDEDEFB04A19CEA1ED43A8876CAD31E89”
OK
I initially was trying to setup with the nRF cloud but have been having trouble getting a device added so I swapped to trying with Golioth. I am unsure what I need to do for the next step because I thought I added the PSK and ID using the at_client sample but from what I am gathering here in this post is I might need to go add them to a file as well?
It is saying I have an ivalid PSK-ID and PSK, should I try to set them again? (I admit I have already tried once now). I made sure the PSK was hexadecimal and without a delimiter. I don’t have the SUPL prj.config set (still commented out).
I have tried adding CONFIG_GOLIOTH_SYSTEM_CLIENT_PSK= and CONFIG_GOLIOTH_SYSTEM_CLIENT_PSK_ID but no luck. It still says invalid PSK and PSK_ID
Here is what the tracker sample output is:
<inf> lis2dh: lis2dh@18: int1 on gpio@842500.29 <inf> lis2dh: lis2dh@18: int2 on gpio@842500.30
<inf> lis2dh: fs=2, odr=0×4 lp_en=0×8 scale=9576[0m
Booting Zephyr OS build v3.3.99-ncs1-1
<inf> battery: Setup AIN7 got 0 <inf> battery: Battery setup: 0 1
<inf> lis2dh: int2_ths=0×5f range_g=2 ums2=14709974
<inf> littlefs: LittleFS version 2.5, disk version 2.0[0m
<inf> littlefs: FS at w25q32jv@0:0×0 is 1024 0×1000-byte blocks with 512 cycle
<inf> littlefs: sizes: rd 16 ; pr 16 ; ca 64 ; la 32[0m
<inf> nor_storage: bsize = 16 ; frsize = 4096 ; blocks = 1024 ; bfree = 1018
<inf> golioth_system: Initializing
<inf> app: Starting tracker on circuitdojo_feather_nrf9160!
<inf> modem: Sleep exit <inf> modem: Disconnected
<inf> modem: LTE cell changed: Cell ID: 82209551, Tracking area: 17923
<inf> app_event_manager: Evt: APP_EVENT_CELLULAR_DISCONNECT
<inf> modem: RRC mode: Connected
<inf> modem: Network registration status: Connected - roaming
<inf> app_event_manager: Evt: APP_EVENT_CELLULAR_CONNECTED
golioth_system: Configured PSK-ID is invalid
golioth_system: Configured PSK is invalid
<inf> golioth_system: Starting connect
<inf> modem: PSM parameter update: TAU: 600, Active time: 180[0m
<inf> modem: eDRX parameter update: eDRX: , PTW:
<inf> app: IMEI: 3513……………
golioth_system: Configured PSK-ID is invalid
golioth_system: Configured PSK is invalid
golioth_system: Failed to connect: -111
golioth_system: Failed to connect: -111