SOLVED
Home

AI Camera by eInfochips restarting

%3CLINGO-SUB%20id%3D%22lingo-sub-904407%22%20slang%3D%22en-US%22%3EAI%20Camera%20by%20eInfochips%20restarting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-904407%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20had%20a%20lot%20of%20trouble%20getting%20the%20Cognitive%20Services%20demo%20installed%20on%20this%20device%20(%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvision-ai-developer-kit%2Ftree%2Fmaster%2Fsamples%2Fresearch%2Fai-vision-devkit-cognitive-services-integration-Face-API%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvision-ai-developer-kit%2Ftree%2Fmaster%2Fsamples%2Fresearch%2Fai-vision-devkit-cognitive-services-integration-Face-API%3C%2FA%3E)%20and%20unfortunately%20it%20is%20now%20restarting%20over-and-over.%20It%20won't%20stay%20up%20for%20more%20than%20about%205%20minutes.%20We%20have%20deleted%20all%20of%20the%20containers%20off%20it%20except%20for%20the%20IoT%20Edge%20ones.%20Any%20clues%20as%20to%20what%20the%20issue%20may%20be%3F%20Also%2C%20anyone%20had%20any%20luck%20getting%20the%20device%20to%20successfully%20call%20Cognitive%20Services%3F%20Thinking%20that%20we%20might%20need%20to%20factory%20reset%20at%20this%20stage.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBernard.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-904407%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAI%20Camera%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-907267%22%20slang%3D%22en-US%22%3ERe%3A%20AI%20Camera%20by%20eInfochips%20restarting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-907267%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F423284%22%20target%3D%22_blank%22%3E%40bernardoleary%3C%2FA%3E%26nbsp%3BYou%20can%20factory%20reset%20the%20device%20by%20pressing%20and%20holding%20the%20power%20button%20for%205%2B%20seconds%20-%20this%20will%20put%20the%20device%20into%20SoftAP%20mode%20where%20you%20then%20connect%20to%20the%20device%20SSID%20via%20Wi-Fi%20tray.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-904583%22%20slang%3D%22en-US%22%3ERe%3A%20AI%20Camera%20by%20eInfochips%20restarting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-904583%22%20slang%3D%22en-US%22%3E%3CP%3EI%20was%20working%20on%20the%20same%20machine%20as%20bernardoleary%3B%20we%20resolved%20the%20problem%20by%20connecting%20to%20a%20different%20IoT%20Hub.%3CBR%20%2F%3EIt%20seems%20this%20was%20an%20issue%20where%20the%20camera%20was%20unable%20to%20reconnect%20to%20the%20IoTHub%20after%20a%20factory%20reset.%20We%20managed%20to%20connect%20to%20the%20device%20within%20the%20period%20of%20one%20power-cycle%20and%20change%20the%20iotedge%20connection%20string%20to%20point%20to%20a%20new%20IoTHub.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Esudo%20vi%20%2Fetc%2Fiotedge%2Fconfig.yaml%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%2C%20using%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eadb%20reboot%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewe%20were%20able%20to%20reset%20the%20device%20before%20re-loading%20a%20deployment%20from%20Visual%20Studio%20Code.%20Once%20the%20deployment%20was%20loaded%20the%20camera%20pulled%20down%20the%20required%20images%20from%20our%20azure%20container%20registry%20and%20successfully%20ran%20all%20modules.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-907282%22%20slang%3D%22en-US%22%3ERe%3A%20AI%20Camera%20by%20eInfochips%20restarting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-907282%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F250568%22%20target%3D%22_blank%22%3E%40jkubicka%3C%2FA%3E%20thank%20you%20for%20your%20response.%20Unfortunately%20in%20this%20case%2C%20while%20the%20camera%20was%20indeed%20flashing%20the%20three%20red%20LEDs%20(as%20though%20it%20were%20in%20softAP%20mode)%20the%20SSID%20was%20not%20showing%20up%20by%20any%20wifi%20capable%20devices%20nearby.%20We%20had%20to%20use%20the%20USB%20cable%20and%20ADB%20cli%20to%20access%20it.%20In%20addition%2C%20it%20was%20periodically%20cycling%20power.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Visitor

Hi there,

 

We have had a lot of trouble getting the Cognitive Services demo installed on this device (https://github.com/microsoft/vision-ai-developer-kit/tree/master/samples/research/ai-vision-devkit-c...) and unfortunately it is now restarting over-and-over. It won't stay up for more than about 5 minutes. We have deleted all of the containers off it except for the IoT Edge ones. Any clues as to what the issue may be? Also, anyone had any luck getting the device to successfully call Cognitive Services? Thinking that we might need to factory reset at this stage.

 

Thanks,

 

Bernard.

 

 

3 Replies
Highlighted
Solution

I was working on the same machine as bernardoleary; we resolved the problem by connecting to a different IoT Hub.
It seems this was an issue where the camera was unable to reconnect to the IoTHub after a factory reset. We managed to connect to the device within the period of one power-cycle and change the iotedge connection string to point to a new IoTHub.

 

sudo vi /etc/iotedge/config.yaml

 

Then, using

 

adb reboot

 

we were able to reset the device before re-loading a deployment from Visual Studio Code. Once the deployment was loaded the camera pulled down the required images from our azure container registry and successfully ran all modules.

Highlighted

@bernardoleary You can factory reset the device by pressing and holding the power button for 5+ seconds - this will put the device into SoftAP mode where you then connect to the device SSID via Wi-Fi tray. 

Highlighted

Hi@jkubicka thank you for your response. Unfortunately in this case, while the camera was indeed flashing the three red LEDs (as though it were in softAP mode) the SSID was not showing up by any wifi capable devices nearby. We had to use the USB cable and ADB cli to access it. In addition, it was periodically cycling power.