Hi all. We have an existing program that uses Intel Neural Compute stick to classify the stream from a USB camera and send messages to a broker. Previously we used our own MQTT broker and this device would run for months with no issues.
We have swapped out the MQTT broker for IoT hub and it constantly crashes rendering the device unresponsive and the only solution is to restart the device, run the program again and it all repeats. This is quite concerning considering we have previously run this exact same software prior to the addition of Azure with absolutely no issues.
The main program will check the provisioning state and then connect to the IoT hub, two threads are created, one for the reading of the camera stream and one for the streaming of the frames to a local web server where the stream can be monitored.
When it doesn't crash the speed of the stream is massively reduced, where as with our own MQTT broker the feed was near real-time, now we have replaced that with IoT Hub the stream is about 20 seconds behind, very jittery, and constantly freezes. We only send a message every 2 minutes so only introducing Azure is causing this.
Errors like this constantly happen:
{'_id': '27af74bb-5d6b-4933-b67a-0e42be9afc70', 'Data': [{'Sensor': 'Camera', 'Data': {'Dected': '0'}}], 'State': {'CPU': '24.1', 'Memory': '15.3', 'Diskspace': '41.9', 'CPUTemp': '59.887', 'IP': '192.168.1.97', 'MAC': 'dc:a6:32:75:89:a1'}, 'Location': {'Longitude': '-3.0833', 'Latitude': '53.1667'}}
WARNING:azure.iot.device.common.pipeline.pipeline_stages_base:ConnectionStateStage: DisconnectEvent received while in unexpected state - ConnectionState.DISCONNECTED
WARNING:azure.iot.device.common.handle_exceptions:Exception caught in background thread. Unable to handle.
WARNING:azure.iot.device.common.handle_exceptions:['azure.iot.device.common.transport_exceptions.ConnectionDroppedError: Unexpected disconnection\n']
WARNING:azure.iot.device.common.handle_exceptions:Exception caught in background thread. Unable to handle.
WARNING:azure.iot.device.common.handle_exceptions:['azure.iot.device.common.transport_exceptions.ConnectionDroppedError: Unexpected disconnection\n']
WARNING:azure.iot.device.common.handle_exceptions:Exception caught in background thread. Unable to handle.
WARNING:azure.iot.device.common.handle_exceptions:['azure.iot.device.common.transport_exceptions.ConnectionFailedError\n']
WARNING:azure.iot.device.common.handle_exceptions:Exception caught in background thread. Unable to handle.
WARNING:azure.iot.device.common.handle_exceptions:['azure.iot.device.common.transport_exceptions.ConnectionFailedError\n']
WARNING:azure.iot.device.common.handle_exceptions:Exception caught in background thread. Unable to handle.
WARNING:azure.iot.device.common.handle_exceptions:['azure.iot.device.common.transport_exceptions.ConnectionFailedError\n']
WARNING:azure.iot.device.common.handle_exceptions:Exception caught in background thread. Unable to handle.
WARNING:azure.iot.device.common.handle_exceptions:['azure.iot.device.common.transport_exceptions.ConnectionFailedError\n']
Message sent to IntelliConnect IoT
We would like to find a solution for this issue if possible.