Forum Widgets
Latest Discussions
Any Windows IoT Core update for Raspberry pi 4?
Hi Team, Any Windows IoT Core update for Raspberry pi 4?Solved30KViews0likes20CommentsAIVision dev kit Camera default model not working
I am having an issue with the AIVision dev kit installed the latest firmware on the camera. I did factory reset and setup from scratch setting up new resource group and IoT Hub during the setup. At the end the camera is showing picture output, it is connected in IoT hub But not running the default model. I try to apply a customvision model but doesn't work either. Can anyone point me to how I can troubleshoot and resolve?Kristian_HeimAug 25, 2020Microsoft7KViews1like17CommentsStoring IOT Data in Azure: SQL vs Cosmos vs Other Methods
Hello Team, The project I am working on as an architect has got an IOT setup where lots of sensors are sending data like water pressure, temperature etc. to an FTP(cant change it as no control over it due to security). From here few windows service on Azure pull the data and store it into an Azure SQL Database. Here is my observation with respect to this architecture: Problems: 1 TB limit in Azure SQL. With higher tier it can go to 4 TB but that's the max. So it does not appear to be infinitely scalable plus with size, the query issues could be a problem. Columnstore index and partitioning seem to be options but size limitation and DTUs is a deal breaker. Problem-2- IOT data and SQL Database(downstream storage) seem to be tightly coupled. If some customer wants to extract few months of data or even more with millions of rows, DB will get busy and possibly throttle other customers due to DTU exhaustion. I would like to have some ideas on possibly scaling this further. SQL DB is great and with JSON support it is awesome but a it is not horizontally scalable solution. Here is what I am thinking: 1) All the messages should be consumed from FTP by Azure IOT hub by some means. 2) From the central hub, I want to push all messages to Azure Blob Storage in 128 MB files for later analysis at cheap cost. 3) At the same time, I would like all messages to go to IOT hub and from there to Azure CosmosDB(for long term storage)\Azure SQL DB(Long term but not sure due to size restriction). I am keeping data in blob storage because if client wants or hires a Machine learning team to create some models, I would prefer them to pull data from Blob storage rather than hitting my DB. Kindly suggest few ideas on this. Thanks in advance!! Chandan JhaChandanJhaMay 28, 2021Copper Contributor6.8KViews0likes3CommentsVision AI dev kit not working when specifying "ModelZipUrl"
Initial Setup: I got a new vision ai dev kit, set it up, updated the firmware and everything works fine. I see it detects a person and puts a box around. I also get events in IoT Hub. Problem: I build a customvision model and when I update the property "ModelZipUrl" to point to the model zip no events are generated. I tried multiple times pointing to different models (build by others that worked in the past on their visionaikit), but same result no events get generated and sent to IoT Hub. The camera is in this state even if I remove the Url and to get the camera working again and sent events to IoT Hub I have to go through updating the firmware again and resetting it. I also tried building a new image from scratch using the instructions from below, but same behavior https://github.com/microsoft/vision-ai-developer-kit/tree/master/samples/official/ai-vision-devkit-get-started Any pointers to help overcome this issue. Additional details: Firmware version adb shell cat /etc/version v0.5370_Perf Modules on IoT edge after a firmware update C:\Users\srkothal>adb shell / # docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9bab7e3702de mcr.microsoft.com/aivision/visionsamplemodule:webstream_0.0.13-arm32v7 "npm start" 24 minutes ago Up 24 minutes WebStreamModule e19544242c5d mcr.microsoft.com/azureiotedge-hub:1.0 "/bin/sh -c 'echo \"$…" 24 minutes ago Up 24 minutes 0.0.0.0:443->443/tcp, 0.0.0.0:5671->5671/tcp, 0.0.0.0:8883->8883/tcp edgeHub df21957d2178 mcr.microsoft.com/aivision/visionsamplemodule:1.1.3-arm32v7 "python3 -u ./main.py" 24 minutes ago Up 24 minutes AIVisionDevKitGetStartedModule 88740555d71f mcr.microsoft.com/azureiotedge-agent:1.0.7.1 Example of events being sent to IoT Hub (when no value in ModelZipUrl property) send: b'\x89\x80?\xd4d\xc1' Found result object {"label": "person", "position_x": 1152.0, "width": 306.816, "id": 1, "confidence": 81, "position_y": 373.896, "height": 618.948} Confirmation[0] received for message with result = OK Properties: {} Total calls confirmed: 2 send: b'\x89\x80\xf4\x1e\xca1' send: b'\x89\x80\xe9Jc\xeb' Found result object {"label": "person", "position_x": 504.96, "width": 626.88, "id": 2, "confidence": 98, "position_y": 398.952, "height": 594.0} Confirmation[0] received for message with result = OK Properties: {} Total calls confirmed: 3 send: b'\x89\x806=\\\x03' Set the property "ModelZipUrl" in the module identity twin FYI: I tried both classification and object-detection models, like below "ModelZipUrl": "https://sridharvisionaistorage.blob.core.windows.net/hardhatmodels/hardhat-classification-model.zip" or "ModelZipUrl": "https://sridharvisionaistorage.blob.core.windows.net/hardhatmodels/hardhat-objectdetection-model.zip" The logs are like below Received twin update: {'ShowVideoOverlay': 'true', 'ObjectsOfInterest': '["hardhat","nohardhat"]', 'TimeBetweenMessagesInSeconds': 2, 'FrameRate': 30, 'VideoAnalyticsEnabled': 'true', 'Resolution': '1080P', 'ModelZipUrl': 'https://sridharvisionaistorage.blob.core.windows.net/hardhatmodels/hardhat-objectdetection-model.zip', '$version': 14, 'VideoOverlayConfig': 'inference', 'Bitrate': '1.5Mbps', 'Codec': 'AVC/H.264', 'HdmiDisplayActive': 'true', 'ShowVideoPreview': 'true'} Configuring camera_client 2020-09-19 23:02:52,819 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.1.158:1080/overlay data {'switchStatus': False} Turning analytics off configure_overlay: inference 2020-09-19 23:02:52,854 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.1.158:1080/overlayconfig data {'ov_start_x': 0, 'ov_type_SelectVal': 5, 'ov_height': 0, 'ov_usertext': 'Text', 'ov_color': '869007615', 'ov_position_SelectVal': 0, 'ov_width': 0, 'ov_start_y': 0} configure_overlay_state: on 2020-09-19 23:02:52,885 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.1.158:1080/overlay data {'switchStatus': True} set_analytics_state: on 2020-09-19 23:02:52,911 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.1.158:1080/vam data {'switchStatus': True, 'vamconfig': 'MD'} 2020-09-19 23:02:53,541 - iotccsdk - INFO - ipcprovider - __send_request:212 - API: http://192.168.1.158:1080/vam data {} 2020-09-19 23:02:53,604 - iotccsdk - INFO - camera - _get_vam_info:431 - RESPONSE: {'status': False}: 2020-09-19 23:02:53,613 - iotccsdk - INFO - camera - _get_vam_info:444 - vam url: None Send prop: {"FrameRate": 30} Send prop: {"VideoOverlayConfig": "inference"} Send prop: {"Codec": "AVC/H.264"} Send prop: {"RtspDataUrl": null} Send prop: {"RtspVideoUrl": "rtsp://192.168.1.158:8900/live"} Send prop: {"Resolution": "1080P"} 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": "https://sridharvisionaistorage.blob.core.windows.net/hardhatmodels/hardhat-objectdetection-model.zip"} Send prop: {"TimeBetweenMessagesInSeconds": 6} Send prop: {"ObjectsOfInterest": "[\"hardhat\", \"nohardhat\"]"} Confirmation of 204 received for {"FrameRate": 30}. Confirmation of 204 received for {"VideoOverlayConfig": "inference"}. Confirmation of 204 received for {"Codec": "AVC/H.264"}. Confirmation of 204 received for {"RtspDataUrl": null}. Confirmation of 204 received for {"RtspVideoUrl": "rtsp://192.168.1.158:8900/live"}. Confirmation of 204 received for {"Resolution": "1080P"}. 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": "https://sridharvisionaistorage.blob.core.windows.net/hardhatmodels/hardhat-objectdetection-model.zip"}. Confirmation of 204 received for {"TimeBetweenMessagesInSeconds": 6}. Confirmation of 204 received for {"ObjectsOfInterest": "[\"hardhat\", \"nohardhat\"]"}. Confirmation of 204 received for {"FrameRate": 30}. Confirmation of 204 received for {"VideoOverlayConfig": "inference"}. Confirmation of 204 received for {"Codec": "AVC/H.264"}. Confirmation of 204 received for {"RtspDataUrl": null}. Confirmation of 204 received for {"RtspVideoUrl": "rtsp://192.168.1.158:8900/live"}. Confirmation of 204 received for {"Resolution": "1080P"}. 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": "https://sridharvisionaistorage.blob.core.windows.net/hardhatmodels/hardhat-objectdetection-model.zip"}. Confirmation of 204 received for {"TimeBetweenMessagesInSeconds": 6}. Confirmation of 204 received for {"ObjectsOfInterest": "[\"hardhat\", \"nohardhat\"]"}. send: b'\x89\x80C\x1c\xaa\xba' send: b'\x89\x80\xe4M\xa7\xb1' send: b'\x89\x80\x88L\xd7\xb3' send: b'\x89\x80N,u\xb8' send: b'\x89\x80D\xa1\x99E' send: b'\x89\x80\x84\x9aX4' send: b'\x89\x80\xef\x15\xbd\xbb' send: b'\x89\x80e\x1f\xf8!' send: b'\x89\x80\x1b\x0cA\xa0' send: b'\x89\x80\x0e\x8c\r\x1b' send: b'\x89\x80\xb7\xe3\xe8\xac' send: b'\x89\x802\xb44\x10' send: b'\x89\x80\xe8\xfal\xee' send: b'\x89\x80\x1f\xfe.\xfe' send: b'\x89\x80\x16\xf4V\xae' send: b'\x89\x80\xe2\xa8\xef\xfb' send: b'\x89\x80R\x80\xd8`' send: b'\x89\x80\xd3D==' send: b'\x89\x80u0A\x08' send: b'\x89\x80\xd4c\xab]' send: b'\x89\x80\xc5\x9a\x03\x08'SolvedSridhar_KothalankaSep 20, 2020Microsoft6.5KViews0likes13CommentsAzure Certified for IoT and the Azure IoT Device Catalog
Update Feb. 2024 - The Azure Certified Device program has concluded on February 23, 2024. This means that the Azure Certified Device catalog, along with certifications for Azure Certified Device, Edge Managed, and IoT Plug and Play will no longer be available after this date. However, the Edge Secured-core program will remain active and will be relocated to a new home at aka.ms/EdgeSecuredCoreHome. ------------------------------------------- When businesses set out on an IoT project, they have many things to consider: how the device connects to the internet, supported industry protocols. compatible sensors, and more. As IoT increasingly moves into the cloud space, one of the most important considerations is cloud compatibility. As Azure continues to grow, Azure compatibility for IoT devices is becoming a key component of the device selection process. To help with this, Microsoft has two programs to help you ensure your IoT device is compatible and discoverable: The Azure Certified for IoT program and the Azure IoT Device Catalog. The Azure Certified for IoT program is a pre-requisite for a device being included in the Azure IoT Device Catalog. There are currently three different certifications a device can achieve: IoT Devices, IoT Start Kit and IoT Edge Device. IoT Device certification covers bi-directional connectivity between the device and Azure IoT Hub. IoT Starter Kit certification builds on IoT Device certification, adding the reading of data from attached sensors, which is then sent to the cloud. IoT Edge Device certification builds on the IoT Device and Starter Kit certifications, adding Azure IoT Hub connectivity, IoT Edge runtime pre-installation, and basic device management. Once your IoT device is certified, it is qualified for inclusion in the Azure IoT Device Catalog. Resources – Azure Certified for IoT Program FAQ Azure Iot Device certification guides Azure IoT Starter Kit certification guide Azure IoT Edge Device certification guide Azure Certified for IoT Device catalog Find more Intelligent Edge resources for device builders at the Intelligent Edge Device Builder Resource Center.John SpearAug 13, 2019Former Employee6.5KViews1like0CommentsFactory reset Vision AI Developer kit does not work
Hi, I am trying to do factory reset of vision-ai-developer-kit. But clicking twice on power button does not work! Initially I tried connecting the device to wifi and I am trying to reset my wifi settings now. The camera always gets connected to wifi (green led lights on) but no IoT connectivity. I tried `http://xx.xx.xx.xx:3000/ to see the stream but not able to connect. I tried pinging but I get to see Request timed out. as response. Also via vls player with rtsp (`rtsp://XX.XX.XX.XX:8900/live`) I tried with adb but still not able to connect with the device adb connect `XX.XX.XX.XX:3000 ` cannot connect to `XX.XX.XX:3000` A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060) Can someone please let me know how to do proceed or do factory reset? Thanks. Any help would be really helpful in setting up this kit quickly. Thanks. Regards LaviLilly_09Aug 27, 2019Copper Contributor6KViews0likes23CommentsNo module named 'azure.iot'
Hello, I'm developing python script on raspberry pi using azure-iot-device. Make some progress with connecting and sending data to Azure Hub but now I have python error: from azure.iot.device.aio import IoTHubDeviceClient ModuleNotFoundError: No module named 'azure.iot'; 'azure' is not a package I haven't found solution so far. Tried to checked python, pip version issue, uninstall and install module with no result.Maciej_ZemloJan 23, 2022Copper Contributor5.3KViews0likes1CommentVision AI Devkit wifi issue
The device was working earlier today and I was able to load an image to the device. I was working through the VS code samples and must have ruined something. Now the device is showing 3 amber lights, I can't connect to its wifi network, and it won't connect to the external network. Also, docker daemon won't start up. Adb over USB is working OK. I tried 'adb reboot' but that didn't help. (base) C:\WINDOWS\system32>adb devices List of devices attached f6bbeb6f device (base) C:\WINDOWS\system32>adb shell ifconfig wlan0 ifconfig: wlan0: error fetching interface information: Device not found (base) C:\WINDOWS\system32>adb shell docker images Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?avivhuApr 22, 2019Microsoft3.6KViews0likes4CommentsRaspberry Pi Zero 2 W + VS Code
Raspberry Pi have just published a blog post from me on how well the new Pi Zero 2 W works with VS Code. The answer is: Running desktop VS Code on the Pi - not very well, it's not powerful enough Remote SSH into a Pi Zero 2 W - works great! Read the blog post to learn more!Jim BennettNov 16, 2021Former Employee3.2KViews1like0Comments
Resources
Tags
- hardware_engineering17 Topics
- IoT Edge6 Topics
- iot5 Topics
- Vision AI Dev Kit5 Topics
- azure iot3 Topics
- IoTPlugandPlay2 Topics
- VisionAIDevekitGetStarted2 Topics
- IoT Plug and Play2 Topics
- Industrial IoT2 Topics
- Percept2 Topics