[yocto] network problems when running simple MS IoT Hub sample C application

Khem Raj raj.khem at gmail.com
Mon Jun 26 07:28:39 PDT 2017

On Sun, Jun 25, 2017 at 11:35 PM, Jakob Hasse
<jakob.hasse at smart-home-technology.ch> wrote:
> Hello,
> I'm trying to  run the Mircosoft Azure IoT hub mqtt example
> (iothub_client_sample_amqp or simliar) of the C SDK on yocto
> (https://github.com/Azure/azure-iot-sdk-c).
> On my Ubuntu host machine, everything compiles and works fine, the
> application connects to the azure server and sends messages.
> In Yocto, I get errors after compiling the whole SDK with all examples, but
> the mqtt example is already there, so I assume it's correct. Furthermore, I
> could compile it using Intel's meta-iot-cloud layer and only taking the
> example application itself into my own layer.

I would suggest to fix all compile errors. If you need support please share
your compile errors here, there might be interesting for people here.

> Now the actual problem:
> When I run the application on the Yocto system, it establishes a tcp
> connection to the azure server, but then "stops working", until the azure
> server sends the tcp fin ack, which the the application acknowlegdes. On TCP
> dump I can see that packets were dropped by the kernel.
> The tcp problem seems to occur while the azure server is transmitting the
> certificate, if I interpret the tcpdump output correctly. But might be just
> coincidence. I checked the openssl libs requested by the application and
> they are the same on the Ubuntu host and on the Yocto embedded system.
> The network is also the same as on the host machine.
> I would be very happy for ideas about what went wrong here.

Whats the kernel version on working and non working systems. ?

> Best regards,
> Jakob
> --
> Jakob Hasse
> Software Developement
> E: jakob.hasse at smart-home-technology.ch
> T: +41 44 552 02 66
> Smart Home Technology GmbH
> www.smart-home-technology.ch
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

More information about the yocto mailing list