Hi
I am going through the AWS IoT example using an nRF9160 DK, but having some problems with it.
My setup
nRF9160 DK + LTE-M SIM card
I used this same board and SIM card yesterday with the Asset Tracker applciatin, and successfully connected to the nRF Cloud, and could see the DKboard send data every 2 minutes to the cloud.
Setting this up also included downloading and provisioning the nRF Cloud certificate fo rhtis board.
So now, with proven hardware etc., I want to connect to Amazon AWS IoT.
Steps
I followed this example:
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/aws_iot/README.html
In AWS IoT, I created a thing, the certificates (and downloaded them), the policy, linked the policy to the certificate
For the nRF9160 DK, I again grabbed the latest app/modem firmware, and used the nRF Connect Programmer to re-flash the latest modem firmware
https://www.nordicsemi.com/Products/Development-hardware/nrf9160-dk/download
I then used the the nRF Connect Programmer to flash the AT Client hex file that came woth the app/firmware download, but I could not communicate with the modem after that (AT commands timed out etc.)
So in VS Code I created an application form the AT Client example, and built it for nrf9160dk_nrf9160_ns, and that worked, so I could use AT commands.
I turned the modem off (AT+CFUN=4), and then copied in the downloaded certifiates, and changed the security tag.
I then created an application from the AWS IOT example
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/nrf/samples/nrf9160/aws_iot/README.html
and again, built it for nrf9160dk_nrf9160_ns
I modified the prj.conf file to update the following:
CONFIG_AWS_IOT_CLIENT_ID_STATIC
CONFIG_AWS_IOT_BROKER_HOST_NAME
CONFIG_AWS_IOT_SEC_TAG
Rebuilt, and flashed this
I then disconnected the board, inserted the SIM card, and powered the board back up.
Result: nothing
LEDs 1..4 – nothing
Connect LTE Monitor – I can’t to the modem (AT commands timeout)
So, my question:
How can I debug this from here?
Shouldn’t I be getting some kind of feedback from the LEDs? Even if I run the app with the SIM card removed?
Should I be able to get modem feedback?
I have gone through this process about six times now
A few times, I deleted the thing, certificate and policy from AWS and started again
I rebuilt the AWS IoT project
I re-flashed the modem, reprogrammed the certificates
One of the times, after provisioning the certificates, I typed in AT+CFUN=1, to see if that would changes – it didn’t
When flashing the modem firmware, I have tried with and without MCU Enabled
At this stage I really do not know what I am doing wrong