Exploring Connectivity Options for AWS IoT: Do We Need IoT SIM Cards?

Hi,

      I am currently working with the nRF9160DK board, using SDK version 2.5.1, and I have encountered an issue regarding connectivity to the AWS IoT cloud.

I have successfully connected my board to MQTT and have been able to publish and subscribe to topics using a regular SIM card with a data pack,so I confirmed that internet connection is done. However, when attempting to connect to AWS IoT using the same SIM card in the provided sample code, I am experiencing connectivity issues.

I have ensured that I configured all necessary parameters in the sample code given, including:

  • CONFIG_AWS_IOT_BROKER_HOST_NAME
  • CONFIG_MQTT_HELPER_SEC_TAG
  • CONFIG_AWS_IOT_CLIENT_ID_STATIC

Despite this, I am not receiving the expected output,
After flashing the sample, we can receive those two lines in the image. I'm not getting the remaining lines.


and I'm uncertain whether the SIM card compatibility could be a factor, or if there might be an issue with my code implementation.

Could you please provide guidance on whether an IoT-specific SIM card (LTE-M or NB-IoT) is required for connecting to AWS IoT? Additionally, I would appreciate any insights or troubleshooting tips you may have regarding this connectivity issue.

Thank you in advance for your assistance.

  • Hi,
         when i tried to add my certificates now im facing this issue below image what i need to do?

  • Hi,

    Is your modem on (AT+CFUN=1)?

    Have you enabled AT Host Library using CONFIG_AT_HOST_LIBRARY=y as mentioned in the sample output?

    To get some error codes, you could open Serial Terminal and use AT+CMEE=1.

    Best regards,
    Dejan

  • Hi,

          Where can I access the application log after adding CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=y to the configuration file?

    Should I check the cellular monitor to view the expected sample output?

    Do I need to insert CONFIG_AT_HOST_LIBRARY=y into the AWS IoT sample code, then flash it onto the device, and subsequently review the output through the cellular monitor? Or is there an alternative method to verify its activation?

    Can I follow the below link

     Introducing the Cellular Monitor 

    Or I can follow the cellular iot fundamental course 7th lesson?

  • Hi,

    purushothaman said:
    Where can I access the application log after adding CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=y to the configuration file?

    Application log is obtained from serial UART. You can access it by using terminal emulator application as shown in the AWS IoT sample output.

    purushothaman said:
    Do I need to insert CONFIG_AT_HOST_LIBRARY=y into the AWS IoT sample code, then flash it onto the device, and subsequently review the output through the cellular monitor? Or is there an alternative method to verify its activation?

    You should add CONFIG_AT_HOST_LIBRARY=y to your project configuration file prj.conf. You can look at the output via Serial Terminal which you can start from Serial Monitor.

    purushothaman said:

    Can I follow the below link

     Introducing the Cellular Monitor 

    Or I can follow the cellular iot fundamental course 7th lesson?

    Both mentioned option can be followed, and if needed combined. You can also read about Cellular Monitor in the documentation.

    Best regards,
    Dejan

  • Hi,
          After adding my certificate into the LTE Link Monitor successfully without any errors.

    Following the integration process, I added the configuration "CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=y" in the prj.config file. After that, I proceeded to build and flash the code onto my device. However, despite these steps, I am still experiencing difficulties with the establishment of the network.

    To troubleshoot this matter further, I am curious whether a board reset is necessary. Could you please advise on whether this step might resolve the issue?

     
        

    Additionally, I am utilizing the latest version of the SDK (2.6.0), and I am working with sample code provided therein. Would it be possible for you to share any functional code samples that could help in comparing against the provided sample code? This would greatly assist me in identifying any differences and resolving the issue effectively.

    Thank you for your attention to this matter. I look forward to your guidance and assistance in resolving this issue promptly.

Related