{"id":702,"date":"2019-08-10T08:54:30","date_gmt":"2019-08-10T12:54:30","guid":{"rendered":"http:\/\/salzlechner.com\/dev\/?p=702"},"modified":"2019-08-10T12:37:21","modified_gmt":"2019-08-10T16:37:21","slug":"getting-started-with-azure-sphere","status":"publish","type":"post","link":"http:\/\/salzlechner.com\/dev\/2019\/08\/10\/getting-started-with-azure-sphere\/","title":{"rendered":"Getting started with Azure Sphere"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; _builder_version=&#8221;3.22&#8243;][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;3.25&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;3.25&#8243; custom_padding=&#8221;|||&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_text admin_label=&#8221;Text&#8221; _builder_version=&#8221;3.0.74&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; custom_margin=&#8221;||55px|||&#8221;]<\/p>\n<h1><span style=\"font-size: 14px; font-family: 'Open Sans', Arial, sans-serif;\"><span style=\"font-family: inherit; font-weight: normal; font-size: x-large;\">What is Azure Sphere<\/span><\/span><\/h1>\n<p>&nbsp;<\/p>\n<p>Azure Sphere is a new Microsoft Internet of Things (IoT) platform that enables developers to create secure internet enabled devices.<\/p>\n<p>It is a Linux-based operating system created by Microsoft for Internet of Things applications.<\/p>\n<p>i picked up an Avnet MT3620 starter kit. This board sports an ARM Cortex A7 processor as well as two ARM Cortex M4Fs for real time processing.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"\">\n<h3 class=\"dec_key-fea\">Key Features<\/h3>\n<\/div>\n<div class=\"dec_key-fea-list\">\n<p>Carrier Board\u00a0<\/p>\n<ul>\n<li>Two MikroE Click board expansion sockets<\/li>\n<li>Grove expansion connector (I2C)<\/li>\n<li>On-board sensors\n<ul>\n<li>3-Axis accelerometer<\/li>\n<li>3-Axis gyro<\/li>\n<li>Temperature<\/li>\n<li>Pressure\/Barometric<\/li>\n<\/ul>\n<\/li>\n<li>Interface for optional OLED 128&#215;64 display<\/li>\n<li>USB Interface\n<ul>\n<li>Supports debug, service &amp; recovery UARTs, and JTAG<\/li>\n<\/ul>\n<\/li>\n<li>User push switches and LEDs<\/li>\n<li>5V to 3.3V Power regulation<\/li>\n<li>DC Supply Input:\n<ul>\n<li>USB 5V from host computer<\/li>\n<li>Terminal foot prints for external 5VDC and VBAT supplies<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Azure Sphere MT3620 Module<\/p>\n<ul>\n<li>MT3620AN SoC<\/li>\n<li>3x ISU interfaces pre-configured for UART, SPI, I2C<\/li>\n<li>ADC\/GPIO: 3x 12-bit ADC inputs (or 3 GPIOs)<\/li>\n<li>PWM\/GPIO: 9x PWM outputs (or up to 24 GPIOs)<\/li>\n<li>RTC (requires VBAT supply)<\/li>\n<li>Dual-band 2.4\/5GHz 802.11 a\/b\/g\/n WiFi<\/li>\n<li>Dual-band 2.4\/5GHz chip antenna<\/li>\n<\/ul>\n<\/div>\n<p>[\/et_pb_text][et_pb_image src=&#8221;http:\/\/salzlechner.com\/dev\/wp-content\/uploads\/sites\/2\/2019\/08\/azsphere1.png&#8221; _builder_version=&#8221;3.26.7&#8243;][\/et_pb_image][\/et_pb_column][\/et_pb_row][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;3.25&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;3.25&#8243; custom_padding=&#8221;|||&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_text admin_label=&#8221;Text&#8221; _builder_version=&#8221;3.0.74&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221;]<\/p>\n<p><span style=\"color: #333333; font-size: 30px; font-family: 'Open Sans', Arial, sans-serif;\">Setup and Development<\/span><\/p>\n<p>to develop for the module you can use Visual Studio either 2017 or 2019. You will need to download the Azure Sphere SDK which is available from the following url<\/p>\n<p>https:\/\/aka.ms\/AzureSphereSDKDownload<\/p>\n<p>After installing the SDK plug in the development board. Next we need to claim the device.\u00a0<\/p>\n<p>To do that we use the Azure Sphere command prompt that was installed in your Start Menu during install of the SDK.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-703\" src=\"http:\/\/salzlechner.com\/dev\/wp-content\/uploads\/sites\/2\/2019\/08\/azspherecp.png\" alt=\"\" width=\"430\" height=\"127\" srcset=\"http:\/\/salzlechner.com\/dev\/wp-content\/uploads\/sites\/2\/2019\/08\/azspherecp.png 430w, http:\/\/salzlechner.com\/dev\/wp-content\/uploads\/sites\/2\/2019\/08\/azspherecp-300x89.png 300w\" sizes=\"(max-width: 430px) 100vw, 430px\" \/><\/p>\n<p>in order to develop for Azure Sphere you need a Microsoft Azure account.<\/p>\n<p>In addition you also need Azure Active Directory enabled with a domain and a user in that azure active directory.<\/p>\n<p>&nbsp;<\/p>\n<p>once that is in place you can log in to claim the device with the following command line<\/p>\n<p><strong>\u00a0azsphere login<\/strong><\/p>\n<p>\u00a0we also need a tenant under the azure account so if you do not have a tenant you can create one using the following command line<\/p>\n<p><strong>azsphere tenant create &#8211;name\u00a0<em>tenantname<\/em><\/strong><\/p>\n<p>now we can claim the device. Once the device is claimed under the tenant the tenant for the device cannot be changed.<\/p>\n<p>use the following command line to claim the device<\/p>\n<p>\u00a0<strong>azsphere device claim<\/strong><\/p>\n<p>after the device is successfully claimed we can proceed to set up the wifi on the device<\/p>\n<p>use the command line<\/p>\n<p><strong>azsphere device wifi add &#8211;sid\u00a0<em>SIDNAME<\/em> &#8211;key\u00a0<em>WIFIKEY<\/em><\/strong><\/p>\n<p>where SIDNAME is your wifi SID and WIFIKEY is your key for the wifi connection<\/p>\n<p>you can check the wifi status of your device with<\/p>\n<p><strong>azsphere device wifi show-status<\/strong><\/p>\n<p>now to start developing we can prep the device for debugging<\/p>\n<p><strong>azsphere device prep-debug<\/strong><\/p>\n<p>Now this device is ready for development<strong><\/strong><\/p>\n<p>Launch Visual Studio and create a new project using the\u00a0<em>AzureSphereBlink<\/em> template<\/p>\n<p>Build the project and start debugging and after the app is deployed to the device you should see the green LED on the device blink.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Azure Sphere is a new Microsoft Internet of Things (IoT) platform that enables developers to create secure internet enabled devices<\/p>\n","protected":false},"author":1,"featured_media":723,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"<pre class=\"lang:default decode:true \">azsphere device show-ota-status<\/pre>\n&nbsp;\n<h1>What is Azure Sphere<\/h1>\nAzure Sphere is a new Microsoft Internet of Things (IoT) platform that enables developers to create secure internet enabled devices.\n\nIt is a Linux-based operating system created by Microsoft for Internet of Things applications.\n\ni picked up an Avnet MT3620 starter kit. This board sports an ARM Cortex A7 processor as well as two ARM Cortex M4Fs for real time processing.\n<div class=\"\">\n<h3 class=\"dec_key-fea\">Key Features<\/h3>\n<\/div>\n<div class=\"dec_key-fea-list\">Carrier Board&nbsp;\n<ul>\n \t<li>Two MikroE Click board expansion sockets<\/li>\n \t<li>Grove expansion connector (I2C)<\/li>\n \t<li>On-board sensors\n<ul>\n \t<li>3-Axis accelerometer<\/li>\n \t<li>3-Axis gyro<\/li>\n \t<li>Temperature<\/li>\n \t<li>Pressure\/Barometric<\/li>\n<\/ul>\n<\/li>\n \t<li>Interface for optional OLED 128x64 display<\/li>\n \t<li>USB Interface\n<ul>\n \t<li>Supports debug, service &amp; recovery UARTs, and JTAG<\/li>\n<\/ul>\n<\/li>\n \t<li>User push switches and LEDs<\/li>\n \t<li>5V to 3.3V Power regulation<\/li>\n \t<li>DC Supply Input:\n<ul>\n \t<li>USB 5V from host computer<\/li>\n \t<li>Terminal foot prints for external 5VDC and VBAT supplies<\/li>\n<\/ul>\n<\/li>\n<\/ul>\nAzure Sphere MT3620 Module\n<ul>\n \t<li>MT3620AN SoC<\/li>\n \t<li>3x ISU interfaces pre-configured for UART, SPI, I2C<\/li>\n \t<li>ADC\/GPIO: 3x 12-bit ADC inputs (or 3 GPIOs)<\/li>\n \t<li>PWM\/GPIO: 9x PWM outputs (or up to 24 GPIOs)<\/li>\n \t<li>RTC (requires VBAT supply)<\/li>\n \t<li>Dual-band 2.4\/5GHz 802.11 a\/b\/g\/n WiFi<\/li>\n \t<li>Dual-band 2.4\/5GHz chip antenna<\/li>\n<\/ul>\n<\/div>\n<h1>Setup and Development<\/h1>\nto develop for the module you can use Visual Studio either 2017 or 2019. You will need to download the Azure Sphere SDK which is available from the following url\n\nhttps:\/\/aka.ms\/AzureSphereSDKDownload\n\nAfter installing the SDK plug in the development board. Next we need to make sure the OS is up to date.&nbsp;\n\nTo do that we use the Azure Sphere command prompt that was installed in your Start Menu during install of the SDK.\n\n<img class=\"alignnone size-full wp-image-703\" src=\"http:\/\/salzlechner.com\/dev\/wp-content\/uploads\/sites\/2\/2019\/08\/azspherecp.png\" alt=\"\" width=\"430\" height=\"127\">\n\nto check the OS version run the following command line\n\n&nbsp;\n\n&nbsp;","_et_gb_content_width":"","ngg_post_thumbnail":0,"footnotes":""},"categories":[47,25,32],"tags":[],"class_list":["post-702","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure-sphere","category-hardware","category-internet-of-things"],"_links":{"self":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts\/702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/comments?post=702"}],"version-history":[{"count":9,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts\/702\/revisions"}],"predecessor-version":[{"id":740,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/posts\/702\/revisions\/740"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/media\/723"}],"wp:attachment":[{"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/media?parent=702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/categories?post=702"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/salzlechner.com\/dev\/wp-json\/wp\/v2\/tags?post=702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}