Dear all,
I got status as return for the funtion nxd_mqtt_client_connect as NXD_MQTT_CONNECT_FAILURE.
I am using the code for the MQTT_TLS_AP_PK_S5D9.
In reply to Smit Majithia:
In reply to Ian:
Dear IanL
I had first used the secure tls mqtt but still failed so i use the simple client connect without TLS see pic
Hey ian,
I go on online chat support then Mr. Bartlomiej guided me to sniff the ethernet port by wire shark as by connection as board --> laptop --> internet, i put the laptop wifi as shared wifi so that board can access the wifi so i have attached the code also to investigate my problem i still got the same problem but this time i attach my AWS monitor and sniff too and code also ,
please guide me for the same !
snoop file available over here:
AWS_WireShark_snoop.zip
MQTT_TLS_AP_S7G2_SK.zip
I have also check with the MQTT.fx with the same certificates that i use for the SK_S7G2 Board for the application project and got all the settings write it can connect and subcribed and publish the same i am attaching the screenshots for the same !
published from AWS IoT
So i guess my settings were right ! can you please assist me for the same !
Hi Smit,
Using the project attached your earlier post I have been able to connect to my AWS Thing.
I need to select the Ethernet network interface using a dynamic (DHCP) IP address.
When I created my Thing I downloaded its private key in PEM format and the certificate for the Thing in PEM format. Do you have these files for your Thing? Without them it will not be possible to connect the client to the Thing as they authenticate the client with AWS.
Assuming you have these files enter the IoT Service Selection Menu and select AWS
Then 1 AWS Cloud Setting Menu and 1 Enter AWS Endpoint information
Then 2 Enter AWS Thing Name. In my case it is "Synergy_S5D9_Wow" but yours will be different.
Then 3 Exit to back to the previous menu.
Select 2 Certificate/Keys Setting Menu.
Then 1 Enter rootCA Certificate
Attached is the root CA cert I used. Open this in a text editor and select ALL the text and copy it to the clipboard. Then paste it into the console and hit enter and then enter again.
-----BEGIN CERTIFICATE----- MIIE0zCCA7ugAwIBAgIQGNrRniZ96LtKIVjNzGs7SjANBgkqhkiG9w0BAQUFADCB yjELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQL ExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJp U2lnbiwgSW5jLiAtI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C3ey78DAJ80M5+gKv MzEzMA0GCSqGSIb3DQEBBQUAA4IBAQCTJEowX2LP2BqYLz3q3JktvXf2pXkiOOzE p6B4Eq1iDkVwZMXnl2YtmAl+X6/WzChl8gGqCBpH3vn5fJJaCGkgDdk+bW48DW7Y 5gaRQBi5+MHt39tBquCWIMnNZBU4gcmU7qKEKQsTb47bDN0lAtukixlE0kF6BWlK WE9gyn6CagsCqiUXObXbf+eEZSqVir2G3l6BFoMtEMze/aiCKm0oHw0LxOXnGiYZ 4fQRbxC1lfznQgUy286dUV4otp6F01vvpX1FQHKOtw5rDgb7MzVIcbidJ4vEZV8N hnacRHr2lVz2XTIIM6RUthg/aFzyQkqFOFSDX9HoLPKsEdao7WNq -----END CERTIFICATE-----
Do the same for the Thing Certificate and Thing Private Key using the files downloaded when you created the Thing.
Exit all the way back to the main menu and run the demo using "demo start". The device should get an IP address from your network, use DNS to resolve the AWS endpoint address and then connect and publish/update your Thing. If there are problems anywhere in this process the console will show an error description.
Ian.
So Ian, Is the code that i attached in previous post you are using for the same or you use some other code ? And you pasted the Root-CA Certificate, so can i use that only ? and if yes what about the thing CErtificate and thing private key ? Please guide me Thanks in advance !!!
Yes i have all the keys like private key and thing certificate and also RootCA certificate(2048 bytes Format) which format should i use for the RootCA download there are 4 options 2048 byte RSA, 4096 RSA and so on. which should i choose ?
Please re-read my last post as all your questions are answered in the text and screen shots.
Use the RootCA that was attached. The Thing's private key and certificate should be downloaded via the menu options as shown in the screen shots. All certificates and key should be in PEM format.
When you were sent the project were you given the guide that explains how to use it? In case you weren't it can be downloaded from the link below.
https://www.renesas.com/us/en/doc/products/renesas-synergy/apn/r11an0336eu0100-synergy-mqtt-tls-aws-cloud-connectivity.pdf
Dear Ian,
Thanks for help but i seriously can't able to understand about the wyay you told me to do as i just have your RootCA key and then i use the MQTT.fx then it shows the exception
and so i cant go ahead if MQTT.fx is giving me exception then i can go through the SK-S7G2.
Please explain me how to download the private key and device certificate as you have your own Key and device at your end not with me so how can i access your thing w/o all keys and certification!
Please explain!