Git Product home page Git Product logo

vision-ai-developer-kit's Introduction

Vision AI Developer Kit

Overview

This repo contains the components needed to use the Vision AI Developer Kit (VAI DevKit) to develop Neural Network models which can be deployed to the Vision AI DevKit hardware. Manufactured through a partnership between Altek and eInfochips, the Vision AI DevKit uses the Qualcomm QCS603 chipset, a member of the Qualcomm Vision Intelligence Platform.

Technical Support

If you encounter an issue with Vision AI Dev Kit, visit our Get Help page.

If you can't find a solution or answer to your request, file a GitHub issue here and click New Issue at the top-right. Add one of the following labels so we can quickly assess your issue:

  • Bug
  • Feature Request
  • Support Needed

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Resources

  • GitHub repo - this site
  • Samples - In the samples section you will find two folders. The official folder contains stable releases, such as the current Vision module. The research folder contains samples that are under development or experimental.
  • Documentation - all documentation for the Vision AI Developer Kit
  • Landing Page - learn more about the Vision AI Developer Kit
  • Qualcomm QCS603 - learn more about the chipset powering the Vision AI Developer Kit hardware

Get a kit

You can purchase the DevKit from Arrow Electronics.

Data / Telemetry

The software uses the Azure IoT Client SDK that may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement.

vision-ai-developer-kit's People

Contributors

davidgrob-ms avatar dem108 avatar dependabot[bot] avatar devinwong avatar drwill-ms avatar emmanuel-bv avatar ericwol-msft avatar fierval avatar initmahesh avatar jkubicka avatar juniem avatar ksaye avatar m-chau avatar manashgoswami avatar microsoftopensource avatar mimcco avatar msftgits avatar nandhinin18 avatar patgarr avatar polarapfel avatar puneetrahejams avatar spearjohn avatar sunnypshsu avatar tedway avatar tony979 avatar toolboc avatar v-fecui avatar vidushv avatar vincenzocaschetto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vision-ai-developer-kit's Issues

Camera loses IoT Hub connection

I have several repros of this. The camera loses IoT Hub connection even though being connected to internet and running all the modules normally. I am running the default modules and ASA and Capture modules from this example: https://github.com/MarekLani/VisionDevKit-Intelligent-Alarm

Logs:

edgeAgent logs:
2019-10-25 14:47:49.514 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup file (/tmp/edgeAgent/backup.json) instead
2019-10-25 14:47:59.547 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup file (/tmp/edgeAgent/backup.json) instead
2019-10-25 14:48:09.605 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup file (/tmp/edgeAgent/backup.json) instead
2019-10-25 14:48:19.630 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup file (/tmp/edgeAgent/backup.json) instead
2019-10-25 14:48:29.652 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup file (/tmp/edgeAgent/backup.json) instead
2019-10-25 14:48:39.671 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup file (/tmp/edgeAgent/backup.json) instead
2019-10-25 14:48:45.420 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only...
2019-10-25 14:48:49.700 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup file (/tmp/edgeAgent/backup.json) instead
2019-10-25 14:48:59.730 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup file (/tmp/edgeAgent/backup.json) instead
2019-10-25 14:49:09.747 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup file (/tmp/edgeAgent/backup.json) instead
2019-10-25 14:49:16.151 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_WebSocket_Only...
2019-10-25 14:49:19.768 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup file (/tmp/edgeAgent/backup.json) instead
2019-10-25 14:49:29.780 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup file (/tmp/edgeAgent/backup.json) instead
2019-10-25 14:49:39.797 +00:00 [WRN] - Empty edge agent config was received. Attempting to read config from backup file (/tmp/edgeAgent/backup.json) instead
2019-10-25 14:49:47.036 +00:00 [WRN] - Error creating a device-to-cloud connection
System.AggregateException: One or more errors occurred. (Transient network error occurred, please retry.) (Transient network error occurred, please retry.) ---> Microsoft.Azure.Devices.Client.Exceptions.IotHubCommunicationException: Transient network error occurred, please retry. ---> System.Net.Sockets.SocketException: Resource temporarily unavailable
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnector.InitializeTransport(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnector.OpenConnectionAsync(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.EnsureConnection(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.AmqpSessionCreator(DeviceIdentity deviceIdentity, ILinkFactory linkFactory, AmqpSessionSettings amqpSessionSettings, TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpUnit.OpenAsync(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass22_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func1 asyncOperation) --- End of inner exception stack trace --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func1 asyncOperation)
at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass32_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync()
at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClient.OpenAsync(ConnectionStatusChangesHandler statusChangedHandler, ModuleClient deviceClient) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClient.cs:line 206
at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClient.CreateAndOpenDeviceClient(UpstreamProtocol upstreamProtocol, Option1 connectionString, ConnectionStatusChangesHandler statusChangedHandler, Option1 proxy, Option1 productInfo) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClient.cs:line 195 at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func1[] options)
--- End of inner exception stack trace ---
---> (Inner Exception #0) Microsoft.Azure.Devices.Client.Exceptions.IotHubCommunicationException: Transient network error occurred, please retry. ---> System.Net.Sockets.SocketException: Resource temporarily unavailable
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnector.InitializeTransport(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnector.OpenConnectionAsync(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.EnsureConnection(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.AmqpSessionCreator(DeviceIdentity deviceIdentity, ILinkFactory linkFactory, AmqpSessionSettings amqpSessionSettings, TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpUnit.OpenAsync(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass22_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func1 asyncOperation) --- End of inner exception stack trace --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func1 asyncOperation)
at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass32_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync()
at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClient.OpenAsync(ConnectionStatusChangesHandler statusChangedHandler, ModuleClient deviceClient) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClient.cs:line 206
at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClient.CreateAndOpenDeviceClient(UpstreamProtocol upstreamProtocol, Option1 connectionString, ConnectionStatusChangesHandler statusChangedHandler, Option1 proxy, Option1 productInfo) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClient.cs:line 195 at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func1[] options)<---

edgeHub logs:
---> (Inner Exception #1) Microsoft.Azure.Devices.Client.Exceptions.IotHubCommunicationException: Transient network error occurred, please retry. ---> System.Net.WebSockets.WebSocketException: Unable to connect to the remote server ---> System.Net.Http.HttpRequestException: Resource temporarily unavailable ---> System.Net.Sockets.SocketException: Resource temporarily unavailable
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
at System.Threading.Tasks.ValueTask1.get_Result() at System.Net.Http.HttpConnectionPool.CreateConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Threading.Tasks.ValueTask1.get_Result()
at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync(ValueTask1 creationTask) at System.Threading.Tasks.ValueTask1.get_Result()
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.WebSockets.WebSocketHandle.ConnectAsyncCore(Uri uri, CancellationToken cancellationToken, ClientWebSocketOptions options)
--- End of inner exception stack trace ---
at System.Net.WebSockets.WebSocketHandle.ConnectAsyncCore(Uri uri, CancellationToken cancellationToken, ClientWebSocketOptions options)
at System.Net.WebSockets.ClientWebSocket.ConnectAsyncCore(Uri uri, CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnector.CreateClientWebSocketAsync(Uri websocketUri, TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnector.CreateClientWebSocketTransportAsync(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnector.InitializeTransport(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnector.OpenConnectionAsync(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.EnsureConnection(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.AmqpSessionCreator(DeviceIdentity deviceIdentity, ILinkFactory linkFactory, AmqpSessionSettings amqpSessionSettings, TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpUnit.OpenAsync(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass22_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func1 asyncOperation) --- End of inner exception stack trace --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func1 asyncOperation)
at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass32_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync()
at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClient.OpenAsync(ConnectionStatusChangesHandler statusChangedHandler, ModuleClient deviceClient) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClient.cs:line 206
at Microsoft.Azure.Devices.Edge.Agent.IoTHub.ModuleClient.CreateAndOpenDeviceClient(UpstreamProtocol upstreamProtocol, Option1 connectionString, ConnectionStatusChangesHandler statusChangedHandler, Option1 proxy, Option1 productInfo) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.IoTHub/ModuleClient.cs:line 195 at Microsoft.Azure.Devices.Edge.Util.Fallback.ExecuteAsync[T](Func1[] options)<---

<4> 2019-10-25 14:50:48.216 +00:00 [WRN] - Updating reported properties failed Jussi_ASA_TSI/$edgeHub
<6> 2019-10-25 14:50:53.227 +00:00 [INF] - Attempting to connect to IoT Hub for client Jussi_ASA_TSI/jstream via AMQP...
<4> 2019-10-25 14:51:13.665 +00:00 [WRN] - Error creating cloud connection for client Jussi_ASA_TSI/jstream
Microsoft.Azure.Devices.Client.Exceptions.IotHubCommunicationException: Transient network error occurred, please retry. ---> System.Net.Sockets.SocketException: Resource temporarily unavailable
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnector.InitializeTransport(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnector.OpenConnectionAsync(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.EnsureConnection(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.AmqpSessionCreator(DeviceIdentity deviceIdentity, ILinkFactory linkFactory, AmqpSessionSettings amqpSessionSettings, TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpUnit.OpenAsync(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass22_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func1 asyncOperation) --- End of inner exception stack trace --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func1 asyncOperation)
at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass32_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync()
at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.ModuleClientWrapper.OpenAsync() in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/ModuleClientWrapper.cs:line 48
at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.ConnectivityAwareClient.<>c__DisplayClass30_0.<b__0>d.MoveNext() in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/ConnectivityAwareClient.cs:line 184
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.ConnectivityAwareClient.InvokeFunc[T](Func1 func, String operation, Boolean useForConnectivityCheck) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/ConnectivityAwareClient.cs:line 144 at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.ConnectivityAwareClient.InvokeFunc[T](Func1 func, String operation, Boolean useForConnectivityCheck) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/ConnectivityAwareClient.cs:line 172
at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.ConnectivityAwareClient.OpenAsync() in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/ConnectivityAwareClient.cs:line 61
at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.CloudConnection.ConnectToIoTHub(ITokenProvider newTokenProvider) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/CloudConnection.cs:line 126
at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.CloudConnection.CreateNewCloudProxyAsync(ITokenProvider newTokenProvider) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/CloudConnection.cs:line 102
at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.CloudConnection.Create(IIdentity identity, Action2 connectionStatusChangedHandler, ITransportSettings[] transportSettings, IMessageConverterProvider messageConverterProvider, IClientProvider clientProvider, ICloudListener cloudListener, ITokenProvider tokenProvider, TimeSpan idleTimeout, Boolean closeOnIdleTimeout, TimeSpan operationTimeout, String productInfo) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/CloudConnection.cs:line 91 at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.CloudConnectionProvider.<>c__DisplayClass16_1.<<Connect>b__2>d.MoveNext() in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/CloudConnectionProvider.cs:line 139 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.CloudConnectionProvider.Connect(IIdentity identity, Action2 connectionStatusChangedHandler) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/CloudConnectionProvider.cs:line 133
<6> 2019-10-25 14:51:13.689 +00:00 [INF] - Error getting cloud connection for device Jussi_ASA_TSI/jstream
Microsoft.Azure.Devices.Client.Exceptions.IotHubCommunicationException: Transient network error occurred, please retry. ---> System.Net.Sockets.SocketException: Resource temporarily unavailable
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnector.InitializeTransport(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnector.OpenConnectionAsync(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.EnsureConnection(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpConnectionHolder.AmqpSessionCreator(DeviceIdentity deviceIdentity, ILinkFactory linkFactory, AmqpSessionSettings amqpSessionSettings, TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpUnit.OpenAsync(TimeSpan timeout)
at Microsoft.Azure.Devices.Client.Transport.Amqp.AmqpTransportHandler.OpenAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.Transport.ProtocolRoutingDelegatingHandler.OpenAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.<>c__DisplayClass22_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func1 asyncOperation) --- End of inner exception stack trace --- at Microsoft.Azure.Devices.Client.Transport.ErrorDelegatingHandler.ExecuteWithErrorHandlingAsync[T](Func1 asyncOperation)
at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.<>c__DisplayClass32_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.Devices.Client.Transport.RetryDelegatingHandler.EnsureOpenedAsync(CancellationToken cancellationToken)
at Microsoft.Azure.Devices.Client.InternalClient.OpenAsync()
at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.ModuleClientWrapper.OpenAsync() in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/ModuleClientWrapper.cs:line 48
at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.ConnectivityAwareClient.<>c__DisplayClass30_0.<b__0>d.MoveNext() in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/ConnectivityAwareClient.cs:line 184
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.ConnectivityAwareClient.InvokeFunc[T](Func1 func, String operation, Boolean useForConnectivityCheck) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/ConnectivityAwareClient.cs:line 144 at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.ConnectivityAwareClient.InvokeFunc[T](Func1 func, String operation, Boolean useForConnectivityCheck) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/ConnectivityAwareClient.cs:line 172
at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.ConnectivityAwareClient.OpenAsync() in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/ConnectivityAwareClient.cs:line 61
at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.CloudConnection.ConnectToIoTHub(ITokenProvider newTokenProvider) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/CloudConnection.cs:line 126
at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.CloudConnection.CreateNewCloudProxyAsync(ITokenProvider newTokenProvider) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/CloudConnection.cs:line 102
at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.CloudConnection.Create(IIdentity identity, Action2 connectionStatusChangedHandler, ITransportSettings[] transportSettings, IMessageConverterProvider messageConverterProvider, IClientProvider clientProvider, ICloudListener cloudListener, ITokenProvider tokenProvider, TimeSpan idleTimeout, Boolean closeOnIdleTimeout, TimeSpan operationTimeout, String productInfo) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/CloudConnection.cs:line 91 at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.CloudConnectionProvider.<>c__DisplayClass16_1.<<Connect>b__2>d.MoveNext() in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/CloudConnectionProvider.cs:line 139 --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Devices.Edge.Hub.CloudProxy.CloudConnectionProvider.Connect(IIdentity identity, Action2 connectionStatusChangedHandler) in /home/vsts/work/1/s/edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/CloudConnectionProvider.cs:line 133
<4> 2019-10-25 14:51:13.704 +00:00 [WRN] - Updating reported properties failed Jussi_ASA_TSI/jstream

IoT Edge deamon logs (sudo journalctl -u iotedge -f (?)
-- Logs begin at Fri 2019-10-25 13:05:07 UTC. --
Oct 25 16:32:57 qcs605-32 iotedged[4081]: 2019-10-25T16:32:57Z [INFO] - Edge runtime is running.
Oct 25 16:32:59 qcs605-32 iotedged[4081]: 2019-10-25T16:32:59Z [INFO] - [mgmt] - - - [2019-10-25 16:32:59.852968154 UTC] "GET /modules?api-version=2019-01-30 HTTP/1.1" 200 OK 3235 "-" "-" pid(5183)
Oct 25 16:33:09 qcs605-32 iotedged[4081]: 2019-10-25T16:33:09Z [INFO] - [mgmt] - - - [2019-10-25 16:33:09.832843515 UTC] "GET /modules?api-version=2019-01-30 HTTP/1.1" 200 OK 3235 "-" "-" pid(5183)
Oct 25 16:33:19 qcs605-32 iotedged[4081]: 2019-10-25T16:33:19Z [INFO] - [mgmt] - - - [2019-10-25 16:33:19.857978511 UTC] "GET /modules?api-version=2019-01-30 HTTP/1.1" 200 OK 3235 "-" "-" pid(5183)
Oct 25 16:33:29 qcs605-32 iotedged[4081]: 2019-10-25T16:33:29Z [INFO] - [mgmt] - - - [2019-10-25 16:33:29.885137465 UTC] "GET /modules?api-version=2019-01-30 HTTP/1.1" 200 OK 3235 "-" "-" pid(5183)
Oct 25 16:33:39 qcs605-32 iotedged[4081]: 2019-10-25T16:33:39Z [INFO] - [mgmt] - - - [2019-10-25 16:33:39.909877305 UTC] "GET /modules?api-version=2019-01-30 HTTP/1.1" 200 OK 3235 "-" "-" pid(5183)
Oct 25 16:33:49 qcs605-32 iotedged[4081]: 2019-10-25T16:33:49Z [INFO] - [mgmt] - - - [2019-10-25 16:33:49.950688551 UTC] "GET /modules?api-version=2019-01-30 HTTP/1.1" 200 OK 3235 "-" "-" pid(5183)
Oct 25 16:33:57 qcs605-32 iotedged[4081]: 2019-10-25T16:33:57Z [INFO] - Checking edge runtime status

Exception thrown at camera_client.captureimage()

Face detect sample fails when camera client attempts to capture image.

We removed threading and changed main.py to this:

while True:
  try:
    while camera_client.vam_running and not person_detected: # added not person_detected to stop loop once person is detected
      with camera_client.get_inferences() as results:
        for result in results:
          if is_person(result, last_time):
            print("[PKS INFO] Confirmed - object is a person!")
            person_detected = True # <---- added 
            azure_face_api_detect(camera_client, iot_hub_manager)
            # original async code
            # face_api_thread = threading.Thread(
            #     target=azure_face_api_detect,
            #     args=(camera_client, iot_hub_manager))
            # face_api_thread.start()
           last_time = print_inference(
             result, iot_hub_manager, last_time)

and added logging to azure_face_api.py:

def azure_face_api_detect(camera_client=None, iot_hub_manager=None):
    # sends snapshot to azure face api to detect faces and features
    remove_old_snapshots(dir_name, file_name)
    print("[PKS INFO] Attempting camera capture...")
    camera_client.captureimage() # <--- iotccsdk error is logged after this command

    detect_face_api_url = face_api_url + '/face/v1.0/detect'

    headers = {'Content-Type': 'application/octet-stream',
               'Ocp-Apim-Subscription-Key': subscription_key}
    params = {
            'returnFaceId': 'true',
            'returnFaceLandmarks': 'false',
            'returnFaceAttributes': 'age,gender,headPose,smile,facialHair,glasses,' +
            'emotion,hair,makeup,occlusion,accessories,blur,exposure,noise'
    }

    print("[PKS INFO] Loading snapshot from file...") 
    image_data = open(get_snapshot_name(), "rb") # <--- exception thrown when this method fails to find a (snapshot?) file
    print("[PKS INFO] Snapshot successfully loaded")
    print("[PKS INFO] Face api url = " + detect_face_api_url)
    response = requests.post(detect_face_api_url, params=params, headers=headers, data=image_data)
    response.raise_for_status()
    faces = response.json()
    print(faces)

Here's a dump of the logs:

Create model_util
Create properties
Init Properties
Init CameraProperties
Init ModelProperties
Model already present and force update set to false

Python 3.5.2 (default, Jul 10 2019, 11:58:48)
[GCC 5.4.0 20160609]

Found IP: 192.168.72.18
ip address = 192.168.72.18
Create camera with no ipc_provider
2019-10-14 01:40:16,140 - iotccsdk - INFO - ipcprovider - connect:264 - API: http://192.168.72.18:1080/login data: {'userpwd': '<redacted>', 'username': 'admin'}
2019-10-14 01:40:20,484 - iotccsdk - INFO - ipcprovider - connect:266 - Login response: {"status":true}
2019-10-14 01:40:20,486 - iotccsdk - INFO - ipcprovider - connect:271 - connection established with session token: [session=36459eabd72]
2019-10-14 01:40:20,486 - iotccsdk - INFO - ipcprovider - __init__:326 - Connecting to: ws://192.168.72.18:1080/async
2019-10-14 01:40:20,489 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.72.18:1080/video data {}
--- request header ---
GET /async HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: 192.168.72.18:1080
Origin: http://192.168.72.18:1080
Sec-WebSocket-Key: <redacted>
Sec-WebSocket-Version: 13


-----------------------
--- response header ---
HTTP/1.1 101 Switching Protocols
2019-10-14 01:40:20,505 - iotccsdk - INFO - camera - _get_supported_params:313 - resolutions: ['4K', '1080P', '720P', '480P']
2019-10-14 01:40:20,506 - iotccsdk - INFO - camera - _get_supported_params:314 - encodetype: ['HEVC/H.265', 'AVC/H.264']
2019-10-14 01:40:20,507 - iotccsdk - INFO - camera - _get_supported_params:315 - bitrates: ['512Kbps', '768Kbps', '1Mbps', '1.5Mbps', '2Mbps', '3Mbps', '4Mbps', '6Mbps', '8Mbps', '10Mbps', '20Mbps']
Upgrade: websocket
2019-10-14 01:40:20,508 - iotccsdk - INFO - camera - _get_supported_params:316 - framerates: [24, 30]
2019-10-14 01:40:20,508 - iotccsdk - INFO - camera - _get_supported_params:318 - Current preview settings:
2019-10-14 01:40:20,509 - iotccsdk - INFO - camera - _get_supported_params:319 - resolution: 1080P
2019-10-14 01:40:20,510 - iotccsdk - INFO - camera - _get_supported_params:320 - encodetype: AVC/H.264
2019-10-14 01:40:20,511 - iotccsdk - INFO - camera - _get_supported_params:321 - bitrate: 1.5Mbps
Connection: Upgrade
2019-10-14 01:40:20,512 - iotccsdk - INFO - camera - _get_supported_params:322 - framerate: 30
2019-10-14 01:40:20,513 - iotccsdk - INFO - camera - _get_supported_params:323 - display_out: 1
Configuring camera_client
2019-10-14 01:40:20,514 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.72.18:1080/overlay data {'switchStatus': False}
Sec-WebSocket-Accept: <redacted>
-----------------------
2019-10-14 01:40:20,522 - iotccsdk - INFO - ipcprovider - on_open:347 - Starting heartbeat...
Turning analytics off
Turning preview off
2019-10-14 01:40:20,529 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.72.18:1080/preview data {'switchStatus': False}
2019-10-14 01:40:20,541 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.72.18:1080/preview data {}
2019-10-14 01:40:20,553 - iotccsdk - INFO - camera - _get_preview_info:382 - preview url: None
Configure preview (1080P, AVC/H.264, 1.5Mbps, 30, 1)
2019-10-14 01:40:20,554 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.72.18:1080/video data {'resolutionSelectVal': 1, 'encodeModeSelectVal': 1, 'fpsSelectVal': 1, 'displayOut': 1, 'bitRateSelectVal': 3}
set preview state: on
2019-10-14 01:40:20,572 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.72.18:1080/preview data {'switchStatus': True}
2019-10-14 01:40:21,337 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.72.18:1080/preview data {}
2019-10-14 01:40:21,361 - iotccsdk - INFO - camera - _get_preview_info:382 - preview url: rtsp://192.168.72.18:8900/live
configure_overlay: inference
2019-10-14 01:40:21,362 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.72.18:1080/overlayconfig data {'ov_width': 0, 'ov_height': 0, 'ov_start_x': 0, 'ov_type_SelectVal': 5, 'ov_color': '869007615', 'ov_start_y': 0, 'ov_usertext': 'Text', 'ov_position_SelectVal': 0}
configure_overlay_state: on
2019-10-14 01:40:21,406 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.72.18:1080/overlay data {'switchStatus': True}
set_analytics_state: on
2019-10-14 01:40:21,420 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.72.18:1080/vam data {'vamconfig': 'MD', 'switchStatus': True}
2019-10-14 01:40:25,471 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.72.18:1080/vam data {}
2019-10-14 01:40:25,508 - iotccsdk - INFO - camera - _get_vam_info:431 - RESPONSE: {'ct_port': '', 'fr_port': '', 'status': True, 'url': 'rtsp://192.168.72.18:8902/live', 'md_port': ''}:
2019-10-14 01:40:25,509 - iotccsdk - INFO - camera - _get_vam_info:444 - vam url: rtsp://192.168.72.18:8902/live
Creating IoT Hub manager
Subscribing to method calls
send: b'\x89\x80\xa6W\xbbH'
Subscribing to module twin updates
2019-10-14 01:40:34,558 - iotccsdk - INFO - frame_iterators - start:184 - result_src: rtsp://192.168.72.18:8902/live
2019-10-14 01:40:34,579 - iotccsdk - INFO - frame_iterators - start:185 - gstreamer cmd: gst-launch-1.0  -q  rtspsrc  location=rtsp://192.168.72.18:8902/live protocols=tcp  !  application/x-rtp, media=application  !  fakesink  dump=true
2019-10-14 01:40:34,580 - iotccsdk - INFO - frame_iterators - start:188 - Platform: linux
[PKS INFO] Checking if result object is a person
[PKS INFO] Confirmed - object is a person!
[PKS INFO] existing snapshots: 0
[PKS INFO] snapshots have been deleted, new count: 0
[PKS INFO] Attempting camera capture...
2019-10-14 01:40:37,193 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.72.18:1080/captureimage data {}
Received twin callback
Received twin update: {'reported': {'SupportedEncodingTypes': 'HEVC/H.265 | AVC/H.264', 'SupportedConfigOverlayStyles': 'text | inference', 'ShowVideoPreview': True, 'HdmiDisplayActive': True, 'SupportedResolutions': '4K | 1080P | 720P | 480P', 'SupportedFrameRates': '24 | 30', 'Resolution': '1080P', 'VideoOverlayConfig': 'inference', '$version': 236, 'VideoAnalyticsEnabled': True, 'ModelZipUrl': '', 'TimeBetweenMessagesInSeconds': 12, 'Codec': 'AVC/H.264', 'ObjectsOfInterest': '["ALL"]', 'FrameRate': 30, 'ShowVideoOverlay': True, 'RtspVideoUrl': 'rtsp://192.168.72.18:8900/live', 'Bitrate': '1.5Mbps', 'RtspDataUrl': 'rtsp://192.168.72.18:8902/live', 'SupportedBitrates': '512Kbps | 768Kbps | 1Mbps | 1.5Mbps | 2Mbps | 3Mbps | 4Mbps | 6Mbps | 8Mbps | 10Mbps | 20Mbps'}, 'desired': {'TimeBetweenMessagesInSeconds': 12, 'ShowVideoPreview': True, 'ObjectsOfInterest': '["ALL"]', 'Resolution': '1080P', 'VideoOverlayConfig': 'inference', '$version': 3, 'HdmiDisplayActive': True, 'ModelZipUrl': '', 'Codec': 'AVC/H.264', 'VideoAnalyticsEnabled': True, 'FrameRate': 30, 'ShowVideoOverlay': True, 'Bitrate': '1.5Mbps'}}
Send prop: {"RtspVideoUrl": "rtsp://192.168.72.18:8900/live"}
Send prop: {"RtspDataUrl": "rtsp://192.168.72.18:8902/live"}
Send prop: {"Resolution": "1080P"}
Send prop: {"FrameRate": 30}
Send prop: {"Codec": "AVC/H.264"}
Send prop: {"VideoOverlayConfig": "inference"}
Send prop: {"Bitrate": "1.5Mbps"}
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 {"RtspVideoUrl": "rtsp://192.168.72.18:8900/live"}.
Confirmation of 204 received for {"RtspDataUrl": "rtsp://192.168.72.18:8902/live"}.
Confirmation of 204 received for {"Resolution": "1080P"}.
Confirmation of 204 received for {"FrameRate": 30}.
Confirmation of 204 received for {"Codec": "AVC/H.264"}.
Confirmation of 204 received for {"VideoOverlayConfig": "inference"}.
Confirmation of 204 received for {"Bitrate": "1.5Mbps"}.
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\x80\xa3]I,'
2019-10-14 01:40:44,863 - iotccsdk - ERROR - camera - captureimage:602 - true
[PKS INFO] Loading snapshot from file...
Expected 1 file but got 0
2019-10-14 01:40:45,042 - iotccsdk - ERROR - camera - get_inferences:197 - invalid file: None
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/iotccsdk/camera.py", line 195, in get_inferences
    yield inference_iterator.start(self.vam_url)
  File "./main.py", line 134, in main
    azure_face_api_detect(camera_client, iot_hub_manager)
  File "/app/azure_face_api.py", line 66, in azure_face_api_detect
    image_data = open(get_snapshot_name(), "rb")
TypeError: invalid file: None
Exception from get inferences:
['Traceback (most recent call last):\n', '  File "./main.py", line 134, in main\n    azure_face_api_detect(camera_client, iot_hub_manager)\n', '  File "/app/azure_face_api.py", line 66, in azure_face_api_detect\n    image_data = open(get_snapshot_name(), "rb")\n', 'TypeError: invalid file: None\n']
2019-10-14 01:40:47,673 - iotccsdk - ERROR - ipcprovider - on_error:341 - Camera Restarted! Exiting!!
Error: Time:Mon Oct 14 01:40:48 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.
Error: Time:Mon Oct 14 01:40:48 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.

We're looking for any insight into what could be causing this error and where to from here in terms of resolving this issue.

OOBE Wi-Fi Setup Connection

We encountered a new bug last week. Specific to firmware v0.5280.
In OOBE, we have a step to check if internet is good or not by pinging www.bing.com.
It would reply since last year but seems recently stop replying to the ping request.
You can try with your local PC cmd prompt with command ping www.bing.com
So user now will see the “internet seems bad” error message on OOBE because the ping failure (even though the device has connected to WiFi and internet).
Now as a workaround, user can still click on next to get the Device Code for Azure sign in.

camera_client.captureimage() crashes module

Similar to #251 .
Calling camera_client.captureimage() crashes the module, resulting in the following logs:

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

However, sometimes it does not crash, resulting in the following logs:

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

#251 argues that the crash is due to the fact that the camera has to immediately take a snapshot after booting to ensure stability of the snapshot functionality. @sezflynn provides a work-around, which they say fixes the issue for them.

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.

1. WIFI breaks everytime i update module twin. 2. Update takes an eternity

im able to setup initially but when i update the module twin with the new A.I sample for hardhat detection it takes a really long time to act. then the vision camera turns 3 red LED which means ready for setup? after quite some time it finally turns amber then green but i cant connect to video stream anymore at http://192.168.1.168:3000 if i adb shell into the device i can curl 127.0.0.1:3000 and i see the HTML for the "WebStream" but seems like WIFI breaks. so my i have few questions. 1. WHy does it take so horribly long for an update via device twin to happen. 2. Why does it end up rebooting the entire camera 3. why when the reboot finishes my wifi doesnt work anymore .... my only solution everytime is to press the physical "on switch?" for 5 seconds which lets me start from scratch in terms of WIFI setup.

Not getting inferences when running camera-sdk\main_local.py

Hi,

I'm having a couple of issues with the camera-sdk\main_local.py file. I'm running this on Windows on VSCode, and doing step-by-step debug.

a) when I run the sample, having previously corrected the IP to the right one, there's a debug that writes out:
2019-08-23 15:59:22,796 - iotccsdk - INFO - camera - _get_preview_info:382 - preview url: rtsp://10.60.176.131:8900/live

If I point VLC at this, I see the video stream correctly, with occasional bounding boxes overlaid as expected.

I do however also get this:

2019-08-23 15:59:24,312 - iotccsdk - INFO - camera - _get_vam_info:444 - vam url: rtsp://10.60.176.131:8902/live

And if VLC can never connect to the 8902 port.

Is this intentional?

b) The code includes a call to print_inferences(camera_client), which inside uses the IP/Port above (ie, port 8902). My issue is that even when there are bounding boxes visible in the video stream, I never get anything in the output, so never get inside the

for result in results:

in the print_inferences() function.

Any ideas?

OOBE - creating a new IoT Edge should instruct not to use spaces

During OOBE user can create a new IoT Edge device. There is no indication in UI that the IoT Edge device can't contain spaces. User is not able to continue if the device name has space on it, but the user has no idea why.

Instructions should be added to next FW release.

image

Reset Device video not streaming

Have reset device, removed device in AZ IoTHub, used new host name etc. All modules are running on device and LED solid green but rtsp connections on TCP 9800 are refused. TCP 3000 listening but no video is displayed 9 previously streaming video fine). In VS Code under the IoT devices ( In Explorer) the modules display as disconnected.
Cannot find errors in logs on device and Modules report running in AZ IoTHub

iotedge logs WebStreamModule
fmpeg exited with code 1 and signal null
Connected clients dropped to 0, so stopping video streaming
Running: ffmpeg -loglevel fatal -i rtsp://192.168.43.41:8900/live -vcodec copy -an -sn -dn -reset_timestamps 1 -movflags empty_moov+default_base_moof+frag_keyframe -bufsize 256k -f mp4 -seekable 0 -headers Access-Control-Allow-Origin:* -content_type video/mp4 http://127.0.0.1:3001/camera
New client connected: ::ffff:192.168.43.49, Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36 (1 clients)
ffmpeg exited with code 1 and signal null
New client connected: ::ffff:192.168.43.49, Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763 (2 clients)
A client disconnected; (1 clients remaining)
Connected clients dropped to 0, so stopping video streaming


iotedge logs AIVisionDevKitGetStartedModule

Create model_util
Create properties
Init Properties
Init CameraProperties
Init ModelProperties
Model already present and force update set to false

Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609]

Found IP: 192.168.43.41
ip address = 192.168.43.41
Create camera with no ipc_provider
2019-10-22 11:27:52,287 - iotccsdk - INFO - ipcprovider - connect:263 - API: http://192.168.43.41:1080/login data: {'userpwd': 'admin', 'username': 'admin'}

Change the style of bounding box display on the monitor

Hi,
By default, the color of bounding box which the devices are showing is white.
Can I change the color of bounding box when the device detect something.
For example, if it detect the worker on the workplace and he doesn't wear a hard hat, I want to show red bounding box on his face.

Unresolved import properties.py

from iotccsdk import CameraClient

unresolved import 'iotccsdk'Python(unresolved-import)
Peek Problem

unresolved import 'iotccsdk'

Device password reset - How do you do this?

It seems there is a wifi password that I cannot remember on the device. I cannot connect to the device to try and update firmware. Is there another way to connect to the device? Via USB-C? Other?

Home directory in SSH remote login

Also, when creating credentials for SSH remote login, it seems that for the user no home directory was created, not a big issue, but a bit rough. Also something seems wrong with the IoT Edge Runtime:

Doing the same, but instead of using an existing connection string, creating a new device using the supplied code from the device, it seems all to work.

Executing command for operation ["create"] failed. System.Threading.Tasks.TaskCanceledException: A task was canceled.

During startup of the docker images the next errors are many times in the log (below).
The adb shell command used is: docker logs edgeAgent . It is in firmware version 4.8 v0.4940_Perf, v0.5280_Perf and edgeAgent 1.0 to 1.0.8.3

I do not like error logs as they might indicate something is not working. Maybe something is wrong or should this go to Iot Hub forum?

===
<6> 2019-11-18 19:40:51.818 +00:00 [INF] - Executing command: "Create module AIVisionDevKitGetStartedModule"
<3> 2019-11-18 19:43:03.524 +00:00 [ERR] - Executing command for operation ["create"] failed.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at Microsoft.Azure.Devices.Edge.Util.Uds.HttpBufferedStream.ReadLineAsync(CancellationToken cancellationToken) in /home/vsts/work/1/s/edge-util/src/Microsoft.Azure.Devices.Edge.Util/uds/HttpBufferedStream.cs:line 62
at Microsoft.Azure.Devices.Edge.Util.Uds.HttpRequestResponseSerializer.SetResponseStatusLine(HttpResponseMessage httpResponse, HttpBufferedStream bufferedStream, CancellationToken cancellationToken) in /home/vsts/work/1/s/edge-util/src/Microsoft.Azure.Devices.Edge.Util/uds/HttpRequestResponseSerializer.cs:line 131
at Microsoft.Azure.Devices.Edge.Util.Uds.HttpRequestResponseSerializer.DeserializeResponse(HttpBufferedStream bufferedStream, CancellationToken cancellationToken) in /home/vsts/work/1/s/edge-util/src/Microsoft.Azure.Devices.Edge.Util/uds/HttpRequestResponseSerializer.cs:line 65
at Microsoft.Azure.Devices.Edge.Util.Uds.HttpUdsMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /home/vsts/work/1/s/edge-util/src/Microsoft.Azure.Devices.Edge.Util/uds/HttpUdsMessageHandler.cs:line 36
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.GeneratedCode.EdgeletHttpClient.CreateModuleAsync(String api_version, ModuleSpec module, CancellationToken cancellationToken) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/generatedCode/EdgeletHttpClient.cs:line 174 at Microsoft.Azure.Devices.Edge.Util.TaskEx.TimeoutAfter[T](Task1 task, TimeSpan timeout)
at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Versioning.ModuleManagementHttpClientVersioned.Execute[T](Func`1 func, String operation)

Yocto layer, OS sources

Where can I get the Yocto layer to build the OS?
Are there are instructions available to flash my own build?

Picture capturing with RTSP stream

To capture pic, another solution would be to get the RTSP stream and extract a JPG from there.
But for that we couldn’t find out how to install a package like FFMPeg…

from: Hans Stanglmayr

Could not create module AIVisionDevKitGetStartedModule unauthorized: authentication required, StatusCode:500

I am trying to deploy the vision-ai-developer-kit to the device (and I want to run simulator to and debug it :-)). I guess I am missing some credentials to pull it from my container registry? Only question how. Is there some documentation on how to create/ debug own software to this device?

<6> 2019-11-17 13:16:09.755 +00:00 [INF] - Executing command: "Command Group: (\n [Create module AIVisionDevKitGetStartedModule]\n [Start module AIVisionDevKitGetStartedModule]\n)"
<6> 2019-11-17 13:16:09.755 +00:00 [INF] - Executing command: "Create module AIVisionDevKitGetStartedModule"
<3> 2019-11-17 13:16:25.320 +00:00 [ERR] - Executing command for operation ["create"] failed.
Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException- Message:Error calling Create module AIVisionDevKitGetStartedModule: Could not create module AIVisionDevKitGetStartedModule
caused by: Could not pull image .azurecr.io/aivisiondevkitgetstartedmodule:0.0.2-arm32v7
caused by: Get https://.azurecr.io/v2/aivisiondevkitgetstartedmodule/manifests/0.0.2-arm32v7: unauthorized: authentication required, StatusCode:500, at: at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.HandleException(Exception exception, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 194
at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Versioning.ModuleManagementHttpClientVersioned.Execute[T](Func`1 func, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/versioning/ModuleManagementHttpClientVersioned.cs:line 123
at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.CreateModuleAsync(ModuleSpec moduleSpec) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 96
at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/LoggingCommandFactory.cs:line 59

OODB issue

Using the device as Access Point. When doing an initial setup, we found out that connecting to an IoT Hub using an existing IoT Edge connection string in the following screen didn’t work. It seems that the camera works properly (indicated by 3 green LEDs), but no video is displayed on the IP address listed:

Creating a new device entry using the provided code makes things working.

Device reset using existing connection string doesn't work

It's not possible to reset the device using existing connection string.

Repro steps:
-Set up the device normally
-Press power button for 5 seconds and set the device again to AP mode
-Log in to the device and run the OOBE again
-Select "reset the device" and "I have a connection string"
-Provide a different connection string than what device currently has. The device gets stuck in loading IoT Edge runtime. When looking at the connectiong string with adb it still shows the old connection string

Can I reconfigure the wifi via the shell? [Support Needed]

I've received the device recently and set it up for my home network. I've now brought it to work and want to use it with the corp wifi. Is there a way to reconfig the wifi w/out repeating the setup?

I've shell'ed into the device and tried doing it manually using the command line, but it doesn't seem to work, following instructions such as these (that work on my Pi's):

For Wep or no password:
https://askubuntu.com/questions/294257/connect-to-wifi-network-through-ubuntu-terminal

For WPA:
https://askubuntu.com/questions/138472/how-do-i-connect-to-a-wpa-wifi-network-using-the-command-line

Sorry for the newbie question.

AiVisionDevKitGetStartedModule failed to build as docker image

Build samples\official\ai-vision-devkit-get-started\deployment.template.json in VS Code

Step 13/15 : RUN pip install iotccsdk-0.1.0+dev.tar.gz
---> Running in f6ff1e0a85b3
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing ./iotccsdk-0.1.0+dev.tar.gz
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-93rs7xx2/setup.py'"'"'; file='"'"'/tmp/pip-req-build-93rs7xx2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: /tmp/pip-req-build-93rs7xx2/
Complete output (1 lines):
error in iotccsdk setup command: "values of 'package_data' dict" must be a list of strings (got 'logger.conf')
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

It's caused by the update of setuptools.
By commenting this line in Dockerfile.arm32v7, it worked again.

RUN pip install --upgrade setuptools

Native samples, toolchain, and/or BSP

This is perhaps a meta feature request, escalated here from Gitter per discussion with @jkubicka. It would be great to have minimal examples of eg:

  • compiling native code for the devkit and linking to runtime dependencies like SNPE
  • reading directly from the camera (either opening a device file and issuing ioctls a la video4linux, or whatever low-level zero-copy API is available)
  • (maybe) using docker for the above as needed if this is essential for some aspect of Azure

If this is afield of the design focus of this project (totally understandable!), just a link to or dump of the Yocto build rules that are mentioned at various points in the documentation would be enough to enable community work to this end.

Reset device experience shows wrong leds

Repro steps: Set up Vision AI Dev Kit normally. Press the power button for 5 seconds, have device to run AP mode, log to device's WiFi and when prompted the web page select to "reset the device".

Reset feature itself runs normally, but the device led colors don't match the expected colors. I have several repros where device leds blinked amber during the whole OOBE experience. This is really confusing as the device works normally, but the leds make to suspect that something is wrong.

Sleep Timer / Auto shutdown

Develop and implement sleep timer or auto shutdown (after x minutes) feature to conserve battery.

Users have found that the battery life doesn't last long (~2 hours), so when they attempt to turn it on, it's usually dead and needs to be charged again.

Error while updating Get Started Module

I was able to deploy the default AIVisionDevKitGetStartedModule on the Dev Kit. I followed the module update and deployment instructions provided in the repo and I began modifying parts of the code, incrementally testing the changes. However, when I reached v0.0.10 of the Get Started Module (the version number I increment with each push), I get the following error when the Dev Kit tries to create the module (error message pulled from the docker logs):

<6> 2019-11-07 19:32:04.042 +00:00 [INF] - Executing command: "Command Group: (\n [Create module AIVisionDevKitGetStartedModule]\n [Start module AIVisionDevKitGetStartedModule]\n)" <6> 2019-11-07 19:32:04.042 +00:00 [INF] - Executing command: "Create module AIVisionDevKitGetStartedModule" <3> 2019-11-07 19:32:34.894 +00:00 [ERR] - Executing command for operation ["create"] failed. Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException- Message:Error calling Create module AIVisionDevKitGetStartedModule: Could not create module AIVisionDevKitGetStartedModule caused by: Could not create module AIVisionDevKitGetStartedModule caused by: No such image: vaidkcreg.azurecr.io/aivisiondevkitgetstartedmodule:0.0.10-arm32v7, StatusCode:404, at: at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.HandleException(Exception exception, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 194 at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Versioning.ModuleManagementHttpClientVersioned.Execute[T](Func1 func, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/versioning/ModuleManagementHttpClientVersioned.cs:line 123 at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.CreateModuleAsync(ModuleSpec moduleSpec) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 96 at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/LoggingCommandFactory.cs:line 59 <3> 2019-11-07 19:32:34.910 +00:00 [ERR] - Executing command for operation ["Command Group: (\n [Create module AIVisionDevKitGetStartedModule]\n [Start module AIVisionDevKitGetStartedModule]\n)"] failed. Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException- Message:Error calling Create module AIVisionDevKitGetStartedModule: Could not create module AIVisionDevKitGetStartedModule caused by: Could not create module AIVisionDevKitGetStartedModule caused by: No such image: vaidkcreg.azurecr.io/aivisiondevkitgetstartedmodule:0.0.10-arm32v7, StatusCode:404, at: at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.HandleException(Exception exception, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 194 at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Versioning.ModuleManagementHttpClientVersioned.Execute[T](Func1 func, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/versioning/ModuleManagementHttpClientVersioned.cs:line 123 at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.CreateModuleAsync(ModuleSpec moduleSpec) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 96 at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/LoggingCommandFactory.cs:line 59 at Microsoft.Azure.Devices.Edge.Agent.Core.Commands.GroupCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/commands/GroupCommand.cs:line 35 at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/LoggingCommandFactory.cs:line 59 <3> 2019-11-07 19:32:34.926 +00:00 [ERR] - Step failed in deployment 5, continuing execution. Failure when running command Command Group: ( [Create module AIVisionDevKitGetStartedModule] [Start module AIVisionDevKitGetStartedModule] ). Will retry in -01s. <6> 2019-11-07 19:32:34.927 +00:00 [INF] - Plan execution ended for deployment 5 <3> 2019-11-07 19:32:34.932 +00:00 [ERR] - Edge agent plan execution failed. System.AggregateException: One or more errors occurred. (Error calling Create module AIVisionDevKitGetStartedModule: Could not create module AIVisionDevKitGetStartedModule caused by: Could not create module AIVisionDevKitGetStartedModule caused by: No such image: vaidkcreg.azurecr.io/aivisiondevkitgetstartedmodule:0.0.10-arm32v7) ---> Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException: Error calling Create module AIVisionDevKitGetStartedModule: Could not create module AIVisionDevKitGetStartedModule caused by: Could not create module AIVisionDevKitGetStartedModule caused by: No such image: vaidkcreg.azurecr.io/aivisiondevkitgetstartedmodule:0.0.10-arm32v7 at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.HandleException(Exception exception, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 194 at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Versioning.ModuleManagementHttpClientVersioned.Execute[T](Func1 func, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/versioning/ModuleManagementHttpClientVersioned.cs:line 123 at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.CreateModuleAsync(ModuleSpec moduleSpec) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 96 at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/LoggingCommandFactory.cs:line 59 at Microsoft.Azure.Devices.Edge.Agent.Core.Commands.GroupCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/commands/GroupCommand.cs:line 35 at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/LoggingCommandFactory.cs:line 59 at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.ExecuteAsync(Int64 deploymentId, Plan plan, CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/planrunners/OrdererdRetryPlanRunner.cs:line 83 --- End of inner exception stack trace --- at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.<>c.<ExecuteAsync>b__7_0(List 1 f) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/planrunners/OrdererdRetryPlanRunner.cs:line 115 at Microsoft.Azure.Devices.Edge.Util.Option 1.ForEach(Action 1 action) in /home/vsts/work/1/s/edge-util/src/Microsoft.Azure.Devices.Edge.Util/Option.cs:line 137 at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.ExecuteAsync(Int64 deploymentId, Plan plan, CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/planrunners/OrdererdRetryPlanRunner.cs:line 115 at Microsoft.Azure.Devices.Edge.Agent.Core.Agent.ReconcileAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/Agent.cs:line 138 ---> (Inner Exception #0) Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException- Message:Error calling Create module AIVisionDevKitGetStartedModule: Could not create module AIVisionDevKitGetStartedModule caused by: Could not create module AIVisionDevKitGetStartedModule caused by: No such image: vaidkcreg.azurecr.io/aivisiondevkitgetstartedmodule:0.0.10-arm32v7, StatusCode:404, at: at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.HandleException(Exception exception, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 194 at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Versioning.ModuleManagementHttpClientVersioned.Execute[T](Func1 func, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/versioning/ModuleManagementHttpClientVersioned.cs:line 123 at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.CreateModuleAsync(ModuleSpec moduleSpec) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 96 at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/LoggingCommandFactory.cs:line 59 at Microsoft.Azure.Devices.Edge.Agent.Core.Commands.GroupCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/commands/GroupCommand.cs:line 35 at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/LoggingCommandFactory.cs:line 59 at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.ExecuteAsync(Int64 deploymentId, Plan plan, CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/planrunners/OrdererdRetryPlanRunner.cs:line 83<--- <4> 2019-11-07 19:32:35.056 +00:00 [WRN] - Reconcile failed because of the an exception System.AggregateException: One or more errors occurred. (Error calling Create module AIVisionDevKitGetStartedModule: Could not create module AIVisionDevKitGetStartedModule caused by: Could not create module AIVisionDevKitGetStartedModule caused by: No such image: vaidkcreg.azurecr.io/aivisiondevkitgetstartedmodule:0.0.10-arm32v7) ---> Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException: Error calling Create module AIVisionDevKitGetStartedModule: Could not create module AIVisionDevKitGetStartedModule caused by: Could not create module AIVisionDevKitGetStartedModule caused by: No such image: vaidkcreg.azurecr.io/aivisiondevkitgetstartedmodule:0.0.10-arm32v7 at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.HandleException(Exception exception, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 194 at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Versioning.ModuleManagementHttpClientVersioned.Execute[T](Func1 func, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/versioning/ModuleManagementHttpClientVersioned.cs:line 123 at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.CreateModuleAsync(ModuleSpec moduleSpec) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 96 at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/LoggingCommandFactory.cs:line 59 at Microsoft.Azure.Devices.Edge.Agent.Core.Commands.GroupCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/commands/GroupCommand.cs:line 35 at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/LoggingCommandFactory.cs:line 59 at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.ExecuteAsync(Int64 deploymentId, Plan plan, CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/planrunners/OrdererdRetryPlanRunner.cs:line 83 --- End of inner exception stack trace --- at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.<>c.<ExecuteAsync>b__7_0(List1 f) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/planrunners/OrdererdRetryPlanRunner.cs:line 115 at Microsoft.Azure.Devices.Edge.Util.Option 1.ForEach(Action 1 action) in /home/vsts/work/1/s/edge-util/src/Microsoft.Azure.Devices.Edge.Util/Option.cs:line 137 at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.ExecuteAsync(Int64 deploymentId, Plan plan, CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/planrunners/OrdererdRetryPlanRunner.cs:line 115 at Microsoft.Azure.Devices.Edge.Agent.Core.Agent.ReconcileAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/Agent.cs:line 138 at Microsoft.Azure.Devices.Edge.Agent.Core.Agent.ReconcileAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/Agent.cs:line 149 ---> (Inner Exception #0) Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException- Message:Error calling Create module AIVisionDevKitGetStartedModule: Could not create module AIVisionDevKitGetStartedModule caused by: Could not create module AIVisionDevKitGetStartedModule caused by: No such image: vaidkcreg.azurecr.io/aivisiondevkitgetstartedmodule:0.0.10-arm32v7, StatusCode:404, at: at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.HandleException(Exception exception, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 194 at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Versioning.ModuleManagementHttpClientVersioned.Execute[T](Func1 func, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/versioning/ModuleManagementHttpClientVersioned.cs:line 123 at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.CreateModuleAsync(ModuleSpec moduleSpec) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 96 at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/LoggingCommandFactory.cs:line 59 at Microsoft.Azure.Devices.Edge.Agent.Core.Commands.GroupCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/commands/GroupCommand.cs:line 35 at Microsoft.Azure.Devices.Edge.Agent.Core.LoggingCommandFactory.LoggingCommand.ExecuteAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/LoggingCommandFactory.cs:line 59 at Microsoft.Azure.Devices.Edge.Agent.Core.PlanRunners.OrderedRetryPlanRunner.ExecuteAsync(Int64 deploymentId, Plan plan, CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/planrunners/OrdererdRetryPlanRunner.cs:line 83<---

The error didn't occur on the previous pushed versions.

Reading through the error, it seems like there's a 404 error when trying to pull the docker image from the container registry. However, when I try to docker pull the image on my machine, it pulls succesfully and I am able to use "docker run" to view the updated contents. So, I'm not entirely sure why this error is occurring. Is there something I'm missing?

I'll keep looking at this on my end, but any advice or suggestions would be appreciated. Thank you.

CameraTaggingModule architecture

Deployed camerataggingmodule:0.1.67-amd64 to device but get this error in logs

/ # iotedge logs CameraTaggingModule
standard_init_linux.go:207: exec user process caused "exec format error"

Please helpme device stopped working after first setup

Hello,

Please I need help. I configured my device Vision AI DevKit but when I reestarted I can not initiate again, the lights are Green but I cannot find the IP Adress I when I push the button for 5 seconds I cannot configure it again.

I ran the command:
adb shell cat /data/misc/wifi/hostapd_virtual.conf

and the output differs from the troubleshooting page:
Page:
https://azure.github.io/Vision-AI-DevKit-Pages/docs/wifi_issues/

ctrl_interface=/var/run/hostapd
> interface=softap0
> #driver=nl80211
> #ieee80211d=1
> ieee80211n=1
> hw_mode=g

> country_code=US
> ssid=MSIoT_E72FA8
> macaddr_acl=0
> channel=0
> wpa=2
--- > wpa_passphrase=NhEtVE3D ---
> wpa_key_mgmt=WPA-PSK
> #wpa_pairwise=CCMP
> rsn_pairwise=TKIP CCMP
> ht_capab=HT20 SHORT-GI-20
> wmm_enabled=1
> ignore_broadcast_ssid=0

In my device:
C:\platform-tools>adb shell cat /data/misc/wifi/hostapd_virtual.conf
ctrl_interface=/var/run/hostapd
interface=softap0
#driver=nl80211
#ieee80211d=1
ieee80211n=1
hw_mode=g
country_code=US
ssid=ap99999
macaddr_acl=0
channel=0
wpa=2
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
#wpa_pairwise=CCMP
rsn_pairwise=TKIP CCMP
ht_capab=HT20 SHORT-GI-20
wmm_enabled=1
ignore_broadcast_ssid=0

When I look for the IP is blank:
C:\platform-tools>adb shell ip -f inet addr show wlan0

Please help me.

Victor Villar

#Model importing in camera

Hi,

i have created keras_retinanet model weight file (output.h5),
i want to push my .h5 file (keras model) to the AI camera,

what i have tried

i have also tried to create my model using tensorflow (output.pb ) file
after that i have converted my model form .pb to .dlc using qualcomm snpe
now i want to push this model in the altek camera but unable to do, can anyone help me with correct documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.