Hello,

We are a university team that has been trying to publish to AWS using the AwsSendDataOverMQTT Example found in the workbench without success:

We tried following the XDK AwsSendDataOverMQTT Application User Guide found in the 3.6.0 Workbench, however everytime we try to run the example it fails almost instantly after trying to connect to the AWS broker, could this be a problem with my AWS configuration or with the example itself? Is anybody able to run the example with success?

On another note my XDK bootloader version is currently at 0.0.9, could this be causing problems? If so is it possible to update the bootloader without a J-Link adapter?

Prints annexed.

Thank you,

João Sá

+2 (2 Votes)
RE: AwsSendDataOverMQTT Example cannot connect to AWS Broker
Answer
5/16/19 5:22 AM as a reply to Joao Sa.

HI Joao

Looking at the console I can infer that it is trying to connect with the aws server but unable to connect. yes I have tried with my amaxon account and it works fine without any issues.

Please check your certificates and also whether your aws account is properly configured.

No it is possible to update the bootloader without a J-Link.

Thanks

Priyashi

 

+1 (1 Vote)
RE: AwsSendDataOverMQTT Example cannot connect to AWS Broker
Answer
5/16/19 10:38 AM as a reply to Priyashi Yadav.

Hello Priyashi Yadav,

I am part of João's team, thank you for your help.

We were able to use the same certificates to connect through mosquitto (before converting to DER format) so we don't think our problem is related to them.

Are we missing some configuration in our AWS? Following the Application User Guide, here are the steps we took:

  1. Logged into http://console.aws.amazon.com/ to get our Broker URL
  2. Created a new Device under Things
  3. Generated certificates for the newly created device and activated them
  4. Converted the certificates to DER format using:
    $ openssl x509 -outform der -in downloaded_cert.pem -out output.der -> for certificate (.cert.pem / root CA )
    $ openssl rsa -outform der -in key.pem -out private.der -> for converting the private key

    5. Placed the converted certificates along with config.txt file in the SD Card

Thank you,

José Mendes

+1 (1 Vote)
RE: AwsSendDataOverMQTT Example cannot connect to AWS Broker
Answer
5/16/19 10:49 AM as a reply to José Mendes.

Hi

Did you download the certificates mentioned in the picture?

Thanks

Priyashi

+1 (1 Vote)
RE: AwsSendDataOverMQTT Example cannot connect to AWS Broker
Answer
5/16/19 11:09 AM as a reply to Priyashi Yadav.

Yes, we did. To test with mosquitto we downloaded a different rootCA but for the XDK we downloaded the ones refered in the picture.

 

Thank you,

José

0 (0 Votes)
RE: AwsSendDataOverMQTT Example cannot connect to AWS Broker
Answer
5/17/19 3:46 PM as a reply to José Mendes.

Hello,

We followed the User guide steps multiple times with multiple AWS accounts and still nothing.

Is there a way for us to collaborate in a teamviewer-like env so you can show us where we went wrong?

 

Thank you,

João Sá

0 (0 Votes)