[yocto] network problems when running simple MS IoT Hub sample C application
Jakob Hasse
jakob.hasse at smart-home-technology.ch
Sun Jun 25 23:35:43 PDT 2017
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.
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.
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
More information about the yocto
mailing list