Weird output from serial port

Hello,

In short, my use case is that I'm trying to onboard a Thingy:91 to AWS IoT Core through the available code sample following this tutorial (and the related library description linked in it).

What I did successfully was: 

  1. I managed to provision the certificates to the device (I can see them listed along with the default ones with the AT%CMNG=1 command).
  2. I created a project from the sample (aws_iot), edited the required properties (AWS MQTT endpoint, device_id, topics, ...) and managed to build it in VSCode for the thingy91_nrf9160_ns target.
  3. I flashed the resulting app_signed.hex file on the device with the Programmer application (it took ~50 seconds).

However, on rebooting the device in regular mode I get nothing in AWS IoT Core - nothing in the topics, nothing for the shadow.

I tried to get some clues from the serial terminal but all I get is a blank, black terminal. (Interestingly executing commands in the LTE Link Monitor is successful ...)

I tried to play a bit with the ports and their options but the only visible result was on the second (not the default for any of the previously (successfully) executed operations) port and it looked like the wrong Baud Rats was given:

Any ideas on how to proceed and how to determine what might be wrong? I've followed the tutorials as closely as possible, yet we're here.

Best regards,

Ivan Popov

Parents
  • Hello Håkon,

    I spoke to my colleague responsible for the AWS infrastructure and (this time) we both looked at the instructions from the article you shared. We found difference only in the given policy example. We provided to our policy the options from the given example (the least restrictive variant!) and the result can be seen bellow (in ST and in our system):

    Now this seems to resolve our problem and I see two further points to follow:

    1. Modify the policy in order to make it more restrictive to the point where it has the minimum rights that let the device connect properly.
    2. To see how to add the telemetry data from the sensors to the output ... I saw somewhere an example withe the older version of the Asset tracker (v1.6) - it probably should be enough. (I'd appreciate if you can confirm this.)

    But these are further steps, and since we already have the basic connectivity I think the current issue is resolved. And if you don't have anything else to add I can close the ticket?

    Best regards,

    Ivan

  • Hi Ivan,

     

    I'm glad to hear that you were able to get a successful connection towards AWS!

    Ivan Popov said:

    Now this seems to resolve our problem and I see two further points to follow:

    1. Modify the policy in order to make it more restrictive to the point where it has the minimum rights that let the device connect properly.
    2. To see how to add the telemetry data from the sensors to the output ... I saw somewhere an example withe the older version of the Asset tracker (v1.6) - it probably should be enough. (I'd appreciate if you can confirm this.)

    But these are further steps, and since we already have the basic connectivity I think the current issue is resolved. And if you don't have anything else to add I can close the ticket?

    I just want to mention that there are some limited information on handling user data in this guide:

     Connecting to AWS cloud services using the nRF9160 

    See the chapter named "Handling MQTT messages in AWS".

     

    Kind regards,

    Håkon

Reply
  • Hi Ivan,

     

    I'm glad to hear that you were able to get a successful connection towards AWS!

    Ivan Popov said:

    Now this seems to resolve our problem and I see two further points to follow:

    1. Modify the policy in order to make it more restrictive to the point where it has the minimum rights that let the device connect properly.
    2. To see how to add the telemetry data from the sensors to the output ... I saw somewhere an example withe the older version of the Asset tracker (v1.6) - it probably should be enough. (I'd appreciate if you can confirm this.)

    But these are further steps, and since we already have the basic connectivity I think the current issue is resolved. And if you don't have anything else to add I can close the ticket?

    I just want to mention that there are some limited information on handling user data in this guide:

     Connecting to AWS cloud services using the nRF9160 

    See the chapter named "Handling MQTT messages in AWS".

     

    Kind regards,

    Håkon

Children
Related