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 Stimmen)
RE: AwsSendDataOverMQTT Example cannot connect to AWS Broker
Antwort
16.05.19 05:22 als Antwort auf 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 Stimme)
RE: AwsSendDataOverMQTT Example cannot connect to AWS Broker
Antwort
16.05.19 10:38 als Antwort auf 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 Stimme)
RE: AwsSendDataOverMQTT Example cannot connect to AWS Broker
Antwort
16.05.19 10:49 als Antwort auf José Mendes.

Hi

Did you download the certificates mentioned in the picture?

Thanks

Priyashi

+1 (1 Stimme)
RE: AwsSendDataOverMQTT Example cannot connect to AWS Broker
Antwort
16.05.19 11:09 als Antwort auf 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 Stimmen)
RE: AwsSendDataOverMQTT Example cannot connect to AWS Broker
Antwort
17.05.19 15:46 als Antwort auf 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 Stimmen)
RE: AwsSendDataOverMQTT Example cannot connect to AWS Broker
Antwort
27.05.19 04:22 als Antwort auf Joao Sa.

Hi Joao

I will check on this and get back to you.

Thanks

Priyashi

0 (0 Stimmen)
RE: AwsSendDataOverMQTT Example cannot connect to AWS Broker
Antwort
08.07.19 16:59 als Antwort auf Priyashi Yadav.

Hey
I have the same problem.

 INFO | XDK DEVICE 1: AppControllerFireTask : SNTP server time was not synchronized. Retrying...
 INFO | XDK DEVICE 1: SntpSentCallback : Success
 INFO | XDK DEVICE 1: SntpTimeCallback : received
 INFO | XDK DEVICE 1: AppControllerFireTask : AWS MQTT connection to the server is in progress... Might take upto a couple of minutes 
 INFO | XDK DEVICE 1: AppControllerFireTask : AWS MQTT connection to the broker failed 
 INFO | XDK DEVICE 1: Error in XDK110 Application package.
 INFO | XDK DEVICE 1: 	Package ID: 153
 INFO | XDK DEVICE 1: 	Module ID: 39
 INFO | XDK DEVICE 1: 	Severity code: 2
 INFO | XDK DEVICE 1: 	Error code: 117

do you have any idea?

 

best regards

 

0 (0 Stimmen)
RE: AwsSendDataOverMQTT Example cannot connect to AWS Broker
Antwort
09.07.19 09:21 als Antwort auf Silvan Joos.

Hey Community 

I found the mistake.
For access with the root certificate according to the instructions, the access point must be configured without "-ats". 

 

Best regards

0 (0 Stimmen)
RE: AwsSendDataOverMQTT Example cannot connect to AWS Broker
Antwort
10.09.19 03:09 als Antwort auf Silvan Joos.
I have the exact same issue, even after removing '-ats' from broker url, it takes time this time, but eventually same error msg comes. Certs seem to be fine.
0 (0 Stimmen)