# FreeRTOS Windows simulator not connecting.

**URL:** <https://forums.freertos.org/t/freertos-windows-simulator-not-connecting/8882>\
**Category:** AWS\
**Created:** [December 3, 2018, 2:19pm UTC](https://forums.freertos.org/t/freertos-windows-simulator-not-connecting/8882 "2018-12-03T14:19:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [December 3, 2018, 2:19pm UTC](https://forums.freertos.org/t/freertos-windows-simulator-not-connecting/8882/1 "2018-12-03T14:19:13Z")

</div>

**[matbli](https://forums.aws.amazon.com/profile.jspa?userID=470693)** wrote on December 03, 2018:

Hi,

Trying the Amazon FreeRTOS Windows simulator. But without any success!  
Have download credentials and configured as instructed and built. Noticed that the  
clientcredentialIOT\_THING\_NAME is not used anywhere in the software.

When simulator started I see:

The following network interfaces are available:

Interface 1 - rpcap://\Device\NPF\_{033B7BCB-6DAA-448E-872F-EE15B4131ABF}  
(Network adapter ‘USB2.0 to Fast Ethernet Adapter’ on local host)

The interface that will be opened is set by “configNETWORK\_INTERFACE\_TO\_USE”, which  
should be defined in FreeRTOSConfig.h

0 0 [None] FreeRTOS\_IPInit  
1 0 [None] vTaskStartScheduler

The following network interfaces are available:

Interface 1 - rpcap://\Device\NPF\_{033B7BCB-6DAA-448E-872F-EE15B4131ABF}  
(Network adapter ‘USB2.0 to Fast Ethernet Adapter’ on local host)

The interface that will be opened is set by “configNETWORK\_INTERFACE\_TO\_USE”, which  
should be defined in FreeRTOSConfig.h  
Attempting to open interface number 1.  
2 143 [IP-task] vDHCPProcess: offer 192.168.20.125  
3 203 [IP-task] vDHCPProcess: offer 192.168.20.125  
4 203 [IP-task] Write code signing certificate…  
5 204 [IP-task] Write device private key…  
6 219 [IP-task] Key provisioning done…  
7 219 [IP-task] Creating MQTT Echo Task…  
8 219 [IP-task]

IP Address: 192.168.20.125  
9 219 [IP-task] Subnet Mask: 255.255.255.0  
10 219 [IP-task] Gateway Address: 192.168.20.1  
11 219 [IP-task] DNS Server Address: 192.168.20.1

12 219 [MQTTEcho] MQTT echo attempting to connect to [ahk16fh04lib9-ats.iot.eu-west-1.amazonaws.com](http://ahk16fh04lib9-ats.iot.eu-west-1.amazonaws.com).  
13 923 [MQTTEcho] ERROR: MQTT echo failed to connect with error 1.  
14 923 [MQTTEcho] MQTT echo test could not connect to broker.  
15 923 [MQTTEcho] MQTT echo demo finished.  
16 923 [MQTTEcho] ----Demo finished----

In Wireshark I se the TLS handshake ending in an Encryption Alert and disconnect from the distant end.

What am I doing wrong!?

/Mats

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [December 3, 2018, 6:34pm UTC](https://forums.freertos.org/t/freertos-windows-simulator-not-connecting/8882/2 "2018-12-03T18:34:41Z")

</div>

**[Gaurav-Aggarwal-AWS](https://forums.aws.amazon.com/profile.jspa?userID=447386)** wrote on December 03, 2018:

What version of Amazon FreeRTOS are you usning?

Does the TLS handshake complete for you or not? You can check that by putting a breakpoint in the function prvSetupConnection here: [https://github.com/aws/amazon-freertos/blob/master/lib/mqtt/aws\_mqtt\_agent.c#L853](https://github.com/aws/amazon-freertos/blob/master/lib/mqtt/aws_mqtt_agent.c#L853)

Would you please share the policy document atatched to the certificate you are using?

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [December 4, 2018, 10:08am UTC](https://forums.freertos.org/t/freertos-windows-simulator-not-connecting/8882/3 "2018-12-04T10:08:23Z")

</div>

**[ma57bl](https://forums.aws.amazon.com/profile.jspa?userID=470687)** wrote on December 04, 2018:

Hi,

It was a flaw in the policy document. Sorry for not double check before asking.

Thanks for your reply anyway, it gave me a push in the right direction anyway :-)!

/Mats

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [December 4, 2018, 6:47pm UTC](https://forums.freertos.org/t/freertos-windows-simulator-not-connecting/8882/4 "2018-12-04T18:47:09Z")

</div>

**[Gaurav-Aggarwal-AWS](https://forums.aws.amazon.com/profile.jspa?userID=447386)** wrote on December 04, 2018:

I am glad that it worked for you.

Thanks.
