Python 3.5.2 (default, Oct 8 2019, 13:06:37)
[GCC 5.4.0 20160609]
lets go
Found IP: XXX.XXX.XX.XXX
ip address = XXX.XXX.XX.XXX
Create camera with no ipc_provider
2019-10-25 15:01:37,803 - iotccsdk - INFO - ipcprovider - connect:264 - API: http://XXX.XXX.XX.XXX:1080/login data: {'userpwd': 'admin', 'username': 'admin'}
2019-10-25 15:01:37,907 - iotccsdk - INFO - ipcprovider - connect:266 - Login response: {"status":true}
2019-10-25 15:01:37,908 - iotccsdk - INFO - ipcprovider - connect:271 - connection established with session token: [session=5737d9600a]
2019-10-25 15:01:37,909 - iotccsdk - INFO - ipcprovider - __init__:326 - Connecting to: ws://XXX.XXX.XX.XXX:1080/async
2019-10-25 15:01:37,912 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/video data {}
--- request header ---
GET /async HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: XXX.XXX.XX.XXX:1080
Origin: http://XXX.XXX.XX.XXX:1080
Sec-WebSocket-Key: VvKQvPtuiY6YrWKJC6sNbg==
Sec-WebSocket-Version: 13
-----------------------
--- response header ---
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
2019-10-25 15:01:37,925 - iotccsdk - INFO - ipcprovider - on_open:347 - Starting heartbeat...
Connection: Upgrade
Sec-WebSocket-Accept: qExsfvNYt29BSfyXJkt6cTAY8+k=
-----------------------
2019-10-25 15:01:37,930 - iotccsdk - INFO - camera - _get_supported_params:313 - resolutions: ['4K', '1080P', '720P', '480P']
2019-10-25 15:01:37,931 - iotccsdk - INFO - camera - _get_supported_params:314 - encodetype: ['HEVC/H.265', 'AVC/H.264']
2019-10-25 15:01:37,932 - iotccsdk - INFO - camera - _get_supported_params:315 - bitrates: ['512Kbps', '768Kbps', '1Mbps', '1.5Mbps', '2Mbps', '3Mbps', '4Mbps', '6Mbps', '8Mbps', '10Mbps', '20Mbps']
2019-10-25 15:01:37,933 - iotccsdk - INFO - camera - _get_supported_params:316 - framerates: [24, 30]
2019-10-25 15:01:37,933 - iotccsdk - INFO - camera - _get_supported_params:318 - Current preview settings:
2019-10-25 15:01:37,934 - iotccsdk - INFO - camera - _get_supported_params:319 - resolution: 1080P
2019-10-25 15:01:37,935 - iotccsdk - INFO - camera - _get_supported_params:320 - encodetype: AVC/H.264
2019-10-25 15:01:37,936 - iotccsdk - INFO - camera - _get_supported_params:321 - bitrate: 1.5Mbps
2019-10-25 15:01:37,936 - iotccsdk - INFO - camera - _get_supported_params:322 - framerate: 30
2019-10-25 15:01:37,937 - iotccsdk - INFO - camera - _get_supported_params:323 - display_out: 1
Configuring camera_client
2019-10-25 15:01:37,937 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/overlay data {'switchStatus': False}
Turning analytics off
Turning preview off
2019-10-25 15:01:37,948 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/preview data {'switchStatus': False}
2019-10-25 15:01:37,959 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/preview data {}
2019-10-25 15:01:37,977 - iotccsdk - INFO - camera - _get_preview_info:382 - preview url: None
Configure preview (1080P, AVC/H.264, 1.5Mbps, 30, 1)
2019-10-25 15:01:37,978 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/video data {'fpsSelectVal': 1, 'resolutionSelectVal': 1, 'encodeModeSelectVal': 1, 'displayOut': 1, 'bitRateSelectVal': 3}
set preview state: on
2019-10-25 15:01:38,011 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/preview data {'switchStatus': True}
2019-10-25 15:01:38,870 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/preview data {}
2019-10-25 15:01:38,927 - iotccsdk - INFO - camera - _get_preview_info:382 - preview url: rtsp://XXX.XXX.XX.XXX:8900/live
configure_overlay: inference
2019-10-25 15:01:38,928 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/overlayconfig data {'ov_height': 0, 'ov_usertext': 'Text', 'ov_start_y': 0, 'ov_width': 0, 'ov_color': '869007615', 'ov_start_x': 0, 'ov_type_SelectVal': 5, 'ov_position_SelectVal': 0}
configure_overlay_state: on
2019-10-25 15:01:38,949 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/overlay data {'switchStatus': True}
set_analytics_state: on
2019-10-25 15:01:38,966 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/vam data {'switchStatus': True, 'vamconfig': 'MD'}
2019-10-25 15:01:40,109 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/vam data {}
2019-10-25 15:01:40,130 - iotccsdk - INFO - camera - _get_vam_info:431 - RESPONSE: {'md_port': '', 'ct_port': '', 'url': 'rtsp://XXX.XXX.XX.XXX:8902/live', 'fr_port': '', 'status': True}:
2019-10-25 15:01:40,131 - iotccsdk - INFO - camera - _get_vam_info:444 - vam url: rtsp://XXX.XXX.XX.XXX:8902/live
[PKS INFO] Waiting for camera...
[PKS INFO] Camera running, initial snapshot
2019-10-25 15:01:40,131 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/captureimage data {}
2019-10-25 15:01:45,144 - iotccsdk - ERROR - camera - captureimage:602 - true
Creating IoT Hub manager
Subscribing to method calls
Subscribing to module twin updates
start inferences
2019-10-25 15:01:45,157 - iotccsdk - INFO - frame_iterators - start:184 - result_src: rtsp://XXX.XXX.XX.XXX:8902/live
2019-10-25 15:01:45,159 - iotccsdk - INFO - frame_iterators - start:185 - gstreamer cmd: gst-launch-1.0 -q rtspsrc location=rtsp://XXX.XXX.XX.XXX:8902/live protocols=tcp ! application/x-rtp, media=application ! fakesink dump=true
2019-10-25 15:01:45,161 - iotccsdk - INFO - frame_iterators - start:188 - Platform: linux
Error: Time:Fri Oct 25 15:01:45 2019 File:/usr/sdk/src/c/c-utility/adapters/socketio_berkeley.c Func:socketio_dowork Line:1006 Socketio_Failure: Receiving data from endpoint: errno=104.
start inferences
2019-10-25 15:01:45,732 - iotccsdk - INFO - frame_iterators - start:184 - result_src: rtsp://XXX.XXX.XX.XXX:8902/live
2019-10-25 15:01:45,733 - iotccsdk - INFO - frame_iterators - start:185 - gstreamer cmd: gst-launch-1.0 -q rtspsrc location=rtsp://XXX.XXX.XX.XXX:8902/live protocols=tcp ! application/x-rtp, media=application ! fakesink dump=true
2019-10-25 15:01:45,733 - iotccsdk - INFO - frame_iterators - start:188 - Platform: linux
start inferences
2019-10-25 15:01:45,850 - iotccsdk - INFO - frame_iterators - start:184 - result_src: rtsp://XXX.XXX.XX.XXX:8902/live
2019-10-25 15:01:45,852 - iotccsdk - INFO - frame_iterators - start:185 - gstreamer cmd: gst-launch-1.0 -q rtspsrc location=rtsp://XXX.XXX.XX.XXX:8902/live protocols=tcp ! application/x-rtp, media=application ! fakesink dump=true
2019-10-25 15:01:45,855 - iotccsdk - INFO - frame_iterators - start:188 - Platform: linux
2019-10-25 15:01:45,892 - iotccsdk - ERROR - ipcprovider - on_error:341 - Camera Restarted! Exiting!!
start inferences
2019-10-25 15:01:45,940 - iotccsdk - INFO - frame_iterators - start:184 - result_src: rtsp://XXX.XXX.XX.XXX:8902/live
2019-10-25 15:01:45,941 - iotccsdk - INFO - frame_iterators - start:185 - gstreamer cmd: gst-launch-1.0 -q rtspsrc location=rtsp://XXX.XXX.XX.XXX:8902/live protocols=tcp ! application/x-rtp, media=application ! fakesink dump=true
2019-10-25 15:01:45,941 - iotccsdk - INFO - frame_iterators - start:188 - Platform: linux
start inferences
2019-10-25 15:01:46,020 - iotccsdk - INFO - frame_iterators - start:184 - result_src: rtsp://XXX.XXX.XX.XXX:8902/live
2019-10-25 15:01:46,021 - iotccsdk - INFO - frame_iterators - start:185 - gstreamer cmd: gst-launch-1.0 -q rtspsrc location=rtsp://XXX.XXX.XX.XXX:8902/live protocols=tcp ! application/x-rtp, media=application ! fakesink dump=true
2019-10-25 15:01:46,021 - iotccsdk - INFO - frame_iterators - start:188 - Platform: linux
Python 3.5.2 (default, Oct 8 2019, 13:06:37)
[GCC 5.4.0 20160609]
Found IP: XXX.XXX.XX.XXX
ip address = XXX.XXX.XX.XXX
Create camera with no ipc_provider
2019-10-25 14:45:33,479 - iotccsdk - INFO - ipcprovider - connect:264 - API: http://XXX.XXX.XX.XXX:1080/login data: {'userpwd': 'admin', 'username': 'admin'}
2019-10-25 14:45:33,564 - iotccsdk - INFO - ipcprovider - connect:266 - Login response: {"status":true}
2019-10-25 14:45:33,565 - iotccsdk - INFO - ipcprovider - connect:271 - connection established with session token: [session=55f0505a3]
2019-10-25 14:45:33,565 - iotccsdk - INFO - ipcprovider - __init__:326 - Connecting to: ws://XXX.XXX.XX.XXX:1080/async
2019-10-25 14:45:33,568 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/video data {}
--- request header ---
GET /async HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: XXX.XXX.XX.XXX:1080
Origin: http://XXX.XXX.XX.XXX:1080
Sec-WebSocket-Key: 42T09IPzOLmaUNrQ++o16A==
Sec-WebSocket-Version: 13
-----------------------
--- response header ---
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
2019-10-25 14:45:33,580 - iotccsdk - INFO - camera - _get_supported_params:313 - resolutions: ['4K', '1080P', '720P', '480P']
2019-10-25 14:45:33,581 - iotccsdk - INFO - camera - _get_supported_params:314 - encodetype: ['HEVC/H.265', 'AVC/H.264']
2019-10-25 14:45:33,581 - iotccsdk - INFO - camera - _get_supported_params:315 - bitrates: ['512Kbps', '768Kbps', '1Mbps', '1.5Mbps', '2Mbps', '3Mbps', '4Mbps', '6Mbps', '8Mbps', '10Mbps', '20Mbps']
2019-10-25 14:45:33,582 - iotccsdk - INFO - camera - _get_supported_params:316 - framerates: [24, 30]
2019-10-25 14:45:33,583 - iotccsdk - INFO - camera - _get_supported_params:318 - Current preview settings:
2019-10-25 14:45:33,584 - iotccsdk - INFO - camera - _get_supported_params:319 - resolution: 1080P
2019-10-25 14:45:33,586 - iotccsdk - INFO - ipcprovider - on_open:347 - Starting heartbeat...
Connection: Upgrade
Sec-WebSocket-Accept: JYDPEqB8uWOHfqS67lkcmWO8X+k=
-----------------------
2019-10-25 14:45:33,586 - iotccsdk - INFO - camera - _get_supported_params:320 - encodetype: AVC/H.264
2019-10-25 14:45:33,589 - iotccsdk - INFO - camera - _get_supported_params:321 - bitrate: 1.5Mbps
2019-10-25 14:45:33,589 - iotccsdk - INFO - camera - _get_supported_params:322 - framerate: 30
2019-10-25 14:45:33,589 - iotccsdk - INFO - camera - _get_supported_params:323 - display_out: 1
Configuring camera_client
2019-10-25 14:45:33,590 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/overlay data {'switchStatus': False}
Turning analytics off
Turning preview off
2019-10-25 14:45:33,598 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/preview data {'switchStatus': False}
2019-10-25 14:45:33,609 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/preview data {}
2019-10-25 14:45:33,615 - iotccsdk - INFO - camera - _get_preview_info:382 - preview url: None
Configure preview (1080P, AVC/H.264, 1.5Mbps, 30, 1)
2019-10-25 14:45:33,615 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/video data {'fpsSelectVal': 1, 'encodeModeSelectVal': 1, 'resolutionSelectVal': 1, 'displayOut': 1, 'bitRateSelectVal': 3}
set preview state: on
2019-10-25 14:45:33,629 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/preview data {'switchStatus': True}
2019-10-25 14:45:34,491 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/preview data {}
2019-10-25 14:45:34,512 - iotccsdk - INFO - camera - _get_preview_info:382 - preview url: rtsp://XXX.XXX.XX.XXX:8900/live
configure_overlay: inference
2019-10-25 14:45:34,513 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/overlayconfig data {'ov_start_x': 0, 'ov_height': 0, 'ov_color': '869007615', 'ov_start_y': 0, 'ov_position_SelectVal': 0, 'ov_type_SelectVal': 5, 'ov_usertext': 'Text', 'ov_width': 0}
configure_overlay_state: on
2019-10-25 14:45:34,543 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/overlay data {'switchStatus': True}
set_analytics_state: on
2019-10-25 14:45:34,576 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/vam data {'vamconfig': 'MD', 'switchStatus': True}
2019-10-25 14:45:35,698 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/vam data {}
2019-10-25 14:45:35,711 - iotccsdk - INFO - camera - _get_vam_info:431 - RESPONSE: {'status': True, 'fr_port': '', 'url': 'rtsp://XXX.XXX.XX.XXX:8902/live', 'md_port': '', 'ct_port': ''}:
2019-10-25 14:45:35,711 - iotccsdk - INFO - camera - _get_vam_info:444 - vam url: rtsp://XXX.XXX.XX.XXX:8902/live
[PKS INFO] Waiting for camera...
[PKS INFO] Camera running, initial snapshot
2019-10-25 14:45:35,711 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://XXX.XXX.XX.XXX:1080/captureimage data {}
2019-10-25 14:45:36,657 - iotccsdk - INFO - camera - captureimage:608 - Storing snapshot: /app/snapshot_88137563795.jpg
Creating IoT Hub manager
send: b'\x89\x80\xb76\xa6\xbe'
Subscribing to method calls
Subscribing to module twin updates
start inferences
2019-10-25 14:45:53,105 - iotccsdk - INFO - frame_iterators - start:184 - result_src: rtsp://XXX.XXX.XX.XXX:8902/live
2019-10-25 14:45:53,106 - iotccsdk - INFO - frame_iterators - start:185 - gstreamer cmd: gst-launch-1.0 -q rtspsrc location=rtsp://XXX.XXX.XX.XXX:8902/live protocols=tcp ! application/x-rtp, media=application ! fakesink dump=true
2019-10-25 14:45:53,106 - iotccsdk - INFO - frame_iterators - start:188 - Platform: linux
Error: Time:Fri Oct 25 14:45:53 2019 File:/usr/sdk/src/c/c-utility/adapters/socketio_berkeley.c Func:wait_for_connection Line:385 Failure: connect failure 111.
Error: Time:Fri Oct 25 14:45:53 2019 File:/usr/sdk/src/c/c-utility/adapters/socketio_berkeley.c Func:socketio_open Line:769 wait_for_connection failed
Error: Time:Fri Oct 25 14:45:53 2019 File:/usr/sdk/src/c/c-utility/adapters/tlsio_openssl.c Func:on_underlying_io_open_complete Line:760 Invalid tlsio_state. Expected state is TLSIO_STATE_OPENING_UNDERLYING_IO.
Error: Time:Fri Oct 25 14:45:53 2019 File:/usr/sdk/src/c/c-utility/adapters/tlsio_openssl.c Func:tlsio_openssl_open Line:1258 Failed opening the underlying I/O.
Error: Time:Fri Oct 25 14:45:53 2019 File:/usr/sdk/src/c/umqtt/src/mqtt_client.c Func:mqtt_client_connect Line:1000 Error: io_open failed
Error: Time:Fri Oct 25 14:45:53 2019 File:/usr/sdk/src/c/iothub_client/src/iothubtransport_mqtt_common.c Func:SendMqttConnectMsg Line:2122 failure connecting to address qcs605-32.
Found result object
{"width": 0.0, "position_y": 0.0, "label": "Negative", "position_x": 0.0, "confidence": 100, "id": 1, "height": 0.0}
Error: Time:Fri Oct 25 14:45:54 2019 File:/usr/sdk/src/c/c-utility/adapters/socketio_berkeley.c Func:wait_for_connection Line:385 Failure: connect failure 111.
Error: Time:Fri Oct 25 14:45:54 2019 File:/usr/sdk/src/c/c-utility/adapters/socketio_berkeley.c Func:socketio_open Line:769 wait_for_connection failed
Error: Time:Fri Oct 25 14:45:54 2019 File:/usr/sdk/src/c/c-utility/adapters/tlsio_openssl.c Func:on_underlying_io_open_complete Line:760 Invalid tlsio_state. Expected state is TLSIO_STATE_OPENING_UNDERLYING_IO.
Error: Time:Fri Oct 25 14:45:54 2019 File:/usr/sdk/src/c/c-utility/adapters/tlsio_openssl.c Func:tlsio_openssl_open Line:1258 Failed opening the underlying I/O.
Error: Time:Fri Oct 25 14:45:54 2019 File:/usr/sdk/src/c/umqtt/src/mqtt_client.c Func:mqtt_client_connect Line:1000 Error: io_open failed
Error: Time:Fri Oct 25 14:45:54 2019 File:/usr/sdk/src/c/iothub_client/src/iothubtransport_mqtt_common.c Func:SendMqttConnectMsg Line:2122 failure connecting to address qcs605-32.
send: b'\x89\x80\xdcJ\xb0['
Error: Time:Fri Oct 25 14:45:56 2019 File:/usr/sdk/src/c/c-utility/adapters/socketio_berkeley.c Func:wait_for_connection Line:385 Failure: connect failure 111.
Error: Time:Fri Oct 25 14:45:56 2019 File:/usr/sdk/src/c/c-utility/adapters/socketio_berkeley.c Func:socketio_open Line:769 wait_for_connection failed
Error: Time:Fri Oct 25 14:45:56 2019 File:/usr/sdk/src/c/c-utility/adapters/tlsio_openssl.c Func:on_underlying_io_open_complete Line:760 Invalid tlsio_state. Expected state is TLSIO_STATE_OPENING_UNDERLYING_IO.
Error: Time:Fri Oct 25 14:45:56 2019 File:/usr/sdk/src/c/c-utility/adapters/tlsio_openssl.c Func:tlsio_openssl_open Line:1258 Failed opening the underlying I/O.
Error: Time:Fri Oct 25 14:45:56 2019 File:/usr/sdk/src/c/umqtt/src/mqtt_client.c Func:mqtt_client_connect Line:1000 Error: io_open failed
Error: Time:Fri Oct 25 14:45:56 2019 File:/usr/sdk/src/c/iothub_client/src/iothubtransport_mqtt_common.c Func:SendMqttConnectMsg Line:2122 failure connecting to address qcs605-32.
Found result object
{"width": 0.0, "position_y": 0.0, "label": "Negative", "position_x": 0.0, "confidence": 100, "id": 1, "height": 0.0}
Error: Time:Fri Oct 25 14:46:00 2019 File:/usr/sdk/src/c/c-utility/adapters/socketio_berkeley.c Func:wait_for_connection Line:385 Failure: connect failure 111.
Error: Time:Fri Oct 25 14:46:00 2019 File:/usr/sdk/src/c/c-utility/adapters/socketio_berkeley.c Func:socketio_open Line:769 wait_for_connection failed
Error: Time:Fri Oct 25 14:46:00 2019 File:/usr/sdk/src/c/c-utility/adapters/tlsio_openssl.c Func:on_underlying_io_open_complete Line:760 Invalid tlsio_state. Expected state is TLSIO_STATE_OPENING_UNDERLYING_IO.
Error: Time:Fri Oct 25 14:46:00 2019 File:/usr/sdk/src/c/c-utility/adapters/tlsio_openssl.c Func:tlsio_openssl_open Line:1258 Failed opening the underlying I/O.
Error: Time:Fri Oct 25 14:46:00 2019 File:/usr/sdk/src/c/umqtt/src/mqtt_client.c Func:mqtt_client_connect Line:1000 Error: io_open failed
Error: Time:Fri Oct 25 14:46:00 2019 File:/usr/sdk/src/c/iothub_client/src/iothubtransport_mqtt_common.c Func:SendMqttConnectMsg Line:2122 failure connecting to address qcs605-32.
Found result object
{"width": 0.0, "position_y": 0.0, "label": "Negative", "position_x": 0.0, "confidence": 100, "id": 1, "height": 0.0}
send: b'\x89\x80\xe3\xbc}\x0e'
Error: Time:Fri Oct 25 14:46:08 2019 File:/usr/sdk/src/c/c-utility/adapters/socketio_berkeley.c Func:socketio_dowork Line:1006 Socketio_Failure: Receiving data from endpoint: errno=104.
Found result object
{"width": 0.0, "position_y": 0.0, "label": "Negative", "position_x": 0.0, "confidence": 100, "id": 1, "height": 0.0}
Found result object
{"width": 0.0, "position_y": 0.0, "label": "Negative", "position_x": 0.0, "confidence": 100, "id": 1, "height": 0.0}
send: b'\x89\x80\x18\x88j\x96'
Found result object
{"width": 0.0, "position_y": 0.0, "label": "Negative", "position_x": 0.0, "confidence": 100, "id": 1, "height": 0.0}
Received twin callback
Received twin update: {'reported': {'TimeBetweenMessagesInSeconds': 12, 'VideoOverlayConfig': 'inference', 'RtspDataUrl': 'rtsp://XXX.XXX.XX.XXX:8902/live', 'SupportedFrameRates': '24 | 30', 'ObjectsOfInterest': '["ALL"]', 'RtspVideoUrl': 'rtsp://XXX.XXX.XX.XXX:8900/live', 'SupportedBitrates': '512Kbps | 768Kbps | 1Mbps | 1.5Mbps | 2Mbps | 3Mbps | 4Mbps | 6Mbps | 8Mbps | 10Mbps | 20Mbps', 'SupportedConfigOverlayStyles': 'text | inference', 'ShowVideoOverlay': True, 'FrameRate': 30, 'SupportedResolutions': '4K | 1080P | 720P | 480P', 'Resolution': '1080P', 'VideoAnalyticsEnabled': True, '$version': 518, 'Codec': 'AVC/H.264', 'HdmiDisplayActive': True, 'ShowVideoPreview': True, 'Bitrate': '1.5Mbps', 'ModelZipUrl': '', 'SupportedEncodingTypes': 'HEVC/H.265 | AVC/H.264'}, 'desired': {'TimeBetweenMessagesInSeconds': 12, 'VideoOverlayConfig': 'inference', 'ObjectsOfInterest': '["ALL"]', 'ShowVideoOverlay': True, 'FrameRate': 30, 'Resolution': '1080P', 'VideoAnalyticsEnabled': True, '$version': 188, 'Codec': 'AVC/H.264', 'HdmiDisplayActive': True, 'ShowVideoPreview': True, 'Bitrate': '1.5Mbps', 'ModelZipUrl': ''}}
Send prop: {"Resolution": "1080P"}
Send prop: {"Codec": "AVC/H.264"}
Send prop: {"FrameRate": 30}
Send prop: {"Bitrate": "1.5Mbps"}
Send prop: {"VideoOverlayConfig": "inference"}
Send prop: {"RtspVideoUrl": "rtsp://XXX.XXX.XX.XXX:8900/live"}
Send prop: {"RtspDataUrl": "rtsp://XXX.XXX.XX.XXX:8902/live"}
Send prop: {"VideoAnalyticsEnabled": true}
Send prop: {"HdmiDisplayActive": true}
Send prop: {"ShowVideoOverlay": true}
Send prop: {"ShowVideoPreview": true}
Send prop: {"SupportedBitrates": "512Kbps | 768Kbps | 1Mbps | 1.5Mbps | 2Mbps | 3Mbps | 4Mbps | 6Mbps | 8Mbps | 10Mbps | 20Mbps"}
Send prop: {"SupportedConfigOverlayStyles": "text | inference"}
Send prop: {"SupportedEncodingTypes": "HEVC/H.265 | AVC/H.264"}
Send prop: {"SupportedFrameRates": "24 | 30"}
Send prop: {"SupportedResolutions": "4K | 1080P | 720P | 480P"}
Send prop: {"ModelZipUrl": ""}
Send prop: {"TimeBetweenMessagesInSeconds": 12}
Send prop: {"ObjectsOfInterest": "[\"ALL\"]"}
Confirmation of 204 received for {"Resolution": "1080P"}.
Confirmation of 204 received for {"Codec": "AVC/H.264"}.
Confirmation of 204 received for {"FrameRate": 30}.
Confirmation of 204 received for {"Bitrate": "1.5Mbps"}.
Confirmation of 204 received for {"VideoOverlayConfig": "inference"}.
Confirmation of 204 received for {"RtspVideoUrl": "rtsp://XXX.XXX.XX.XXX:8900/live"}.
Confirmation of 204 received for {"RtspDataUrl": "rtsp://XXX.XXX.XX.XXX:8902/live"}.
Confirmation of 204 received for {"VideoAnalyticsEnabled": true}.
Confirmation of 204 received for {"HdmiDisplayActive": true}.
Confirmation of 204 received for {"ShowVideoOverlay": true}.
Confirmation of 204 received for {"ShowVideoPreview": true}.
Confirmation of 204 received for {"SupportedBitrates": "512Kbps | 768Kbps | 1Mbps | 1.5Mbps | 2Mbps | 3Mbps | 4Mbps | 6Mbps | 8Mbps | 10Mbps | 20Mbps"}.
Confirmation of 204 received for {"SupportedConfigOverlayStyles": "text | inference"}.
Confirmation of 204 received for {"SupportedEncodingTypes": "HEVC/H.265 | AVC/H.264"}.
Confirmation of 204 received for {"SupportedFrameRates": "24 | 30"}.
Confirmation of 204 received for {"SupportedResolutions": "4K | 1080P | 720P | 480P"}.
Confirmation of 204 received for {"ModelZipUrl": ""}.
Confirmation of 204 received for {"TimeBetweenMessagesInSeconds": 12}.
Confirmation of 204 received for {"ObjectsOfInterest": "[\"ALL\"]"}.
send: b'\x89\x80o*1\xe7'
Found result object
However, this work-around does not fix the issue for me. When I reboot the device, there seems to be a chance of 1 in 10 that the module actually starts correctly. Once it has started correctly, it will continue to run without issue. However, 9 out of 10 times the module will crash on startup, resulting in the logs above. When this happens, restarting the container/module does not help, it will continue to crash after about 15 seconds. RIght before the module crashes, it shows me a couple of seconds of the video stream via HDMI, which quickly hangs and becomes a still image, after which it cuts to a grey screen.
I suspect this has something to do with the order in which processes are started on boot, which can be, by chance, just right.
I seem to be able to slightly increase the chance of the module starting correctly by manually starting the module/container at boot before the other modules/containers are started. The logs seem to suggest that the module starts correctly when it cannot connect to IotHub initially.
The camera runs firmware v0.5280_Perf.
I'm looking for any information on the cause of the error, and ideas how to resolve it.