{"id":2574,"date":"2022-08-18T07:50:12","date_gmt":"2022-08-18T07:50:12","guid":{"rendered":"http:\/\/lora.vsb.cz\/?page_id=2574"},"modified":"2023-01-22T10:08:56","modified_gmt":"2023-01-22T10:08:56","slug":"tts-network-time","status":"publish","type":"page","link":"https:\/\/lora.vsb.cz\/index.php\/tts-network-time\/","title":{"rendered":"TTS Network Time"},"content":{"rendered":"<table style=\"height: 66px;\" width=\"356\">\n<tbody>\n<tr>\n<td style=\"text-align: left; min-width: 100px;\" width=\"10%\"><strong>TTN version:<\/strong><\/td>\n<td><strong><span style=\"color: #008000;\">TTNv3<\/span><\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; min-width: 100px;\" width=\"10%\"><strong>Board:<\/strong><\/td>\n<td>Adafruit Feather M0<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; min-width: 100px;\" width=\"10%\"><strong>Activation:<\/strong><\/td>\n<td>OTAA<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; min-width: 100px;\" width=\"10%\"><strong>Device Class:<\/strong><\/td>\n<td>Class A<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; min-width: 100px;\" width=\"10%\"><strong>Last updated:<\/strong><\/td>\n<td>January 22, 2023<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>This article provides instructions for requesting the TTS Network Time (UTC) and converting it to different times using <strong>Adafruit Feather M0 RFM95 LoRa Radio<\/strong>. If you haven&#8217;t set up Adafruit Feather M0 yet, check out our<strong> <a href=\"http:\/\/lora.vsb.cz\/index.php\/adafruit-feather-m0\/\" target=\"_blank\" rel=\"noopener\">Adafruit Feather M0 tutorial<\/a> (Activation &#8211; OTAA)<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #189bd6;\"><strong>Prepare<\/strong><\/span><\/h2>\n<ul>\n<li>Adafruit Feather M0 RFM95 LoRa Radio<\/li>\n<li>1x wire<\/li>\n<li>breadboard (optional)<\/li>\n<li>PC + micro USB cable<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><strong><span style=\"color: #800000;\">Supported times in our program<\/span><\/strong><\/h2>\n<ul>\n<li>Central European Time<\/li>\n<li>United Kingdom<\/li>\n<li>UTC<\/li>\n<li>US Eastern Time Zone<\/li>\n<li>US Central Time Zone<\/li>\n<li>US Mountain Time Zone<\/li>\n<li>US Pacific Time Zone<\/li>\n<li>Australia Eastern Time Zone<\/li>\n<li>Moscow Standard Time<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><strong><span style=\"color: #800000;\">Assembly<\/span><\/strong><\/h2>\n<p>Wire up the <strong>Adafruit Feather M0&#8217;s IO1 pin<\/strong> with <strong>pin 6<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2232 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2022\/06\/AFM0_Assembly.png\" alt=\"Adafruit Feather M0 assembly\" width=\"350\" height=\"265\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2022\/06\/AFM0_Assembly.png 600w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2022\/06\/AFM0_Assembly-300x227.png 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><strong><span style=\"color: #800000;\">MCCI LoRaWAN LMIC library setup<\/span><\/strong><\/h2>\n<ol>\n<li>On Windows open <strong>lmic_project_config.h<\/strong> located in <strong>\\Documents\\Arduino\\libraries\\MCCI_LoRaWAN_LMIC_library\\project_config\\<\/strong><\/li>\n<li>Change project definitions to definitions listed bellow and save it.<\/li>\n<\/ol>\n<pre style=\"padding-left: 40px;\">\/\/ project-specific definitions\r\n#define CFG_eu868 1\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/for Europe (change it based on your location)\r\n#define CFG_sx1276_radio 1\r\n#define DISABLE_PING 1\r\n#define DISABLE_BEACONS 1\r\n#define LMIC_ENABLE_DeviceTimeReq 1<\/pre>\n<p>&nbsp;<\/p>\n<h2><strong><span style=\"color: #800000;\">Arduino IDE setup<\/span><\/strong><\/h2>\n<ol>\n<li>Run Arduino IDE.<\/li>\n<li>In the Arduino IDE <strong>Library Manager<\/strong>\u00a0search <strong>Timezone<\/strong> by Jack Christensen and <strong>install it with all dependencies<\/strong> (library <strong>Time<\/strong>).<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #800000;\"><strong>Printing times to Serial Monitor<\/strong><\/span><\/h2>\n<ol>\n<li>Copy and paste this <strong><a href=\"https:\/\/github.com\/OndrejKnebl\/TTNv3-LoRaVSB\/blob\/main\/TTS_Network_Time\/TTS_Network_Time\/TTS_Network_Time.ino\" target=\"_blank\" rel=\"noopener\">TTS Network Time program<\/a><\/strong> to your Arduino IDE.<\/li>\n<li>In program replace\u00a0<strong>APPEUI<\/strong>,\u00a0<strong>DEVEUI<\/strong>\u00a0and\u00a0<strong>APPKEY<\/strong>\u00a0with keys in TTS. Keys are in\u00a0<strong>TTS -&gt; Applications -&gt; YourAppName -&gt; YourEndDeviceName -&gt; Overview -&gt; Activation information<\/strong>.<\/li>\n<li>Connect Adafruit Feather M0 using micro USB cable to your computer.<\/li>\n<li>In Arduino IDE click on\u00a0<strong>Upload<\/strong> button to upload program to your Adafruit Feather M0.<\/li>\n<li><span style=\"color: #000000;\">In Arduino IDE click on <strong>Serial Monitor <\/strong>button and you should see this:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3673 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/01\/TTN-NT-Serial.png\" alt=\"TTN Network Time Serial Monitor\" width=\"600\" height=\"287\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/01\/TTN-NT-Serial.png 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/01\/TTN-NT-Serial-300x144.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/01\/TTN-NT-Serial-768x368.png 768w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/span><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>TTN version: TTNv3 Board: Adafruit Feather M0 Activation: OTAA Device Class: Class A Last updated: January 22, 2023 This article provides instructions for requesting the TTS Network Time (UTC) and converting it to different times using Adafruit Feather M0 RFM95 LoRa Radio. If you haven&#8217;t set up Adafruit Feather M0 yet, check out our Adafruit [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2574","page","type-page","status-publish","hentry","post"],"_links":{"self":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages\/2574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/comments?post=2574"}],"version-history":[{"count":17,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages\/2574\/revisions"}],"predecessor-version":[{"id":3674,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages\/2574\/revisions\/3674"}],"wp:attachment":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/media?parent=2574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}