
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=SODAQ+Autonomo+with+LoraBee+on+TTN&amp;rft.aulast=Stavrakis&amp;rft.aufirst=Modestos&amp;rft.subject=Autonomo&amp;rft.subject=electronics&amp;rft.subject=Lora&amp;rft.source=%CE%BC%CE%BF.&amp;rft.date=2018-05-26&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=https://xylem.aegean.gr/~modestos/mo.blog/sodaq-autonomo-with-lorabee-on-ttn/&amp;rft.language=English"></span>

	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=SODAQ+Autonomo+with+LoraBee+on+TTN&amp;rft.aulast=Stavrakis&amp;rft.aufirst=Modestos&amp;rft.subject=Autonomo&amp;rft.subject=electronics&amp;rft.subject=Lora&amp;rft.source=%CE%BC%CE%BF.&amp;rft.date=2018-05-26&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=https://xylem.aegean.gr/~modestos/mo.blog/sodaq-autonomo-with-lorabee-on-ttn/&amp;rft.language=English"></span>
{"id":6911,"date":"2018-05-26T23:33:47","date_gmt":"2018-05-26T21:33:47","guid":{"rendered":"http:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/?p=6911"},"modified":"2018-05-27T01:23:28","modified_gmt":"2018-05-26T23:23:28","slug":"sodaq-autonomo-with-lorabee-on-ttn","status":"publish","type":"post","link":"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/sodaq-autonomo-with-lorabee-on-ttn\/","title":{"rendered":"SODAQ Autonomo with LoraBee on TTN"},"content":{"rendered":"<h2>Linking&nbsp;Autonomo board profile to Arduino IDE (current version of Arduino IDE is 1.8.5)<\/h2>\n<p>The Autonomo\u2019s board profile is available through the Arduino Boards Manager. In order to install the board files I added the SODAQ board manager URL on&nbsp;File-&gt;Preferences-&gt;Additional Board Manager URLs<\/p>\n<p><a href=\"http:\/\/downloads.sodaq.net\/package_sodaq_samd_index.json\"> http:\/\/downloads.sodaq.net\/package_sodaq_samd_index.json<\/a><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Preferences.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"6912\" data-permalink=\"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/sodaq-autonomo-with-lorabee-on-ttn\/arduino-ide-preferences\/\" data-orig-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Preferences.png?fit=722%2C607&amp;ssl=1\" data-orig-size=\"722,607\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Arduino IDE Preferences\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Preferences.png?fit=722%2C607&amp;ssl=1\" class=\"aligncenter size-full wp-image-6912\" src=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Preferences.png?resize=722%2C607&#038;ssl=1\" alt=\"\" width=\"722\" height=\"607\" srcset=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Preferences.png?resize=200%2C168&amp;ssl=1 200w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Preferences.png?resize=300%2C252&amp;ssl=1 300w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Preferences.png?resize=400%2C336&amp;ssl=1 400w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Preferences.png?resize=600%2C504&amp;ssl=1 600w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Preferences.png?w=722&amp;ssl=1 722w\" sizes=\"(max-width: 722px) 100vw, 722px\" \/><\/a><\/p>\n<p>From the Board Manger (Tools-&gt;Board-&gt;Board Manger) I installed the SODAQ Boards (SODAQ SAMD boards for the Autonomo).<a href=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Boards-Manager.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"6913\" data-permalink=\"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/sodaq-autonomo-with-lorabee-on-ttn\/arduino-ide-boards-manager\/\" data-orig-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Boards-Manager.png?fit=786%2C443&amp;ssl=1\" data-orig-size=\"786,443\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Arduino IDE Boards Manager\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Boards-Manager.png?fit=786%2C443&amp;ssl=1\" class=\"aligncenter size-full wp-image-6913\" src=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Boards-Manager.png?resize=786%2C443&#038;ssl=1\" alt=\"\" width=\"786\" height=\"443\" srcset=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Boards-Manager.png?resize=200%2C113&amp;ssl=1 200w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Boards-Manager.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Boards-Manager.png?resize=400%2C225&amp;ssl=1 400w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Boards-Manager.png?resize=600%2C338&amp;ssl=1 600w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Boards-Manager.png?resize=768%2C433&amp;ssl=1 768w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Arduino-IDE-Boards-Manager.png?w=786&amp;ssl=1 786w\" sizes=\"(max-width: 786px) 100vw, 786px\" \/><\/a><\/p>\n<p>I configured the actual board rig with Autonomo, LoraBee, antenna, grove shield, solar panel and a lipo battery (3.7V, 1200mAh, 1804, KC 503562P).<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"6922\" data-permalink=\"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/sodaq-autonomo-with-lorabee-on-ttn\/img_20180526_231816\/\" data-orig-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?fit=4160%2C3120&amp;ssl=1\" data-orig-size=\"4160,3120\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;Robin&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1527376696&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;3.68&quot;,&quot;iso&quot;:&quot;225&quot;,&quot;shutter_speed&quot;:&quot;0.033333744&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Autonomo, LoraBee, Grove Shield, LiPo, Solar Panel\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?fit=1024%2C768&amp;ssl=1\" class=\"aligncenter size-full wp-image-6922\" src=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?resize=1100%2C825&#038;ssl=1\" alt=\"\" width=\"1100\" height=\"825\" srcset=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?resize=200%2C150&amp;ssl=1 200w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?resize=400%2C300&amp;ssl=1 400w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?resize=600%2C450&amp;ssl=1 600w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?resize=768%2C576&amp;ssl=1 768w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?resize=800%2C600&amp;ssl=1 800w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?resize=1024%2C768&amp;ssl=1 1024w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?resize=1200%2C900&amp;ssl=1 1200w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?w=2200&amp;ssl=1 2200w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?w=3300&amp;ssl=1 3300w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?w=4160&amp;ssl=1 4160w\" sizes=\"(max-width: 1100px) 100vw, 1100px\" \/><\/a><\/p>\n<p>Next, I connected the board rig to my computer and from the boards list I selected the SODAQ Autonomo.<img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"6914\" data-permalink=\"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/sodaq-autonomo-with-lorabee-on-ttn\/sodaq-board-list-autonomo\/\" data-orig-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Sodaq-Board-List-Autonomo.png?fit=307%2C268&amp;ssl=1\" data-orig-size=\"307,268\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Sodaq Board List &#8211; Autonomo\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Sodaq-Board-List-Autonomo.png?fit=307%2C268&amp;ssl=1\" class=\"aligncenter size-full wp-image-6914\" src=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Sodaq-Board-List-Autonomo.png?resize=307%2C268&#038;ssl=1\" alt=\"\" width=\"307\" height=\"268\" srcset=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Sodaq-Board-List-Autonomo.png?resize=200%2C175&amp;ssl=1 200w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Sodaq-Board-List-Autonomo.png?resize=300%2C262&amp;ssl=1 300w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Sodaq-Board-List-Autonomo.png?w=307&amp;ssl=1 307w\" sizes=\"(max-width: 307px) 100vw, 307px\" \/><\/p>\n<p>For some reason when I requested the Board Info from the Arduino IDE I got BN: SODAQ SARA (!?)<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Sodaq-Sara.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"6916\" data-permalink=\"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/sodaq-autonomo-with-lorabee-on-ttn\/sodaq-sara\/\" data-orig-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Sodaq-Sara.png?fit=264%2C135&amp;ssl=1\" data-orig-size=\"264,135\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Sodaq Sara\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Sodaq-Sara.png?fit=264%2C135&amp;ssl=1\" class=\"aligncenter size-full wp-image-6916\" src=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Sodaq-Sara.png?resize=264%2C135&#038;ssl=1\" alt=\"\" width=\"264\" height=\"135\" srcset=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Sodaq-Sara.png?resize=200%2C102&amp;ssl=1 200w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/Sodaq-Sara.png?w=264&amp;ssl=1 264w\" sizes=\"(max-width: 264px) 100vw, 264px\" \/><\/a><\/p>\n<p>My intention is to compile the SODAQ LoraBee example code (here):<\/p>\n<pre class=\"lang:arduino decode:true\" title=\"SODAQ Autonomo LoraBee\">#include &lt;Sodaq_RN2483.h&gt;\r\n#include &lt;Wire.h&gt;\r\n#include &lt;Sodaq_BMP085.h&gt;\r\n#include &lt;Sodaq_SHT2x.h&gt;\r\n\r\n\/\/\/\/SETTINGS\/\/\/\r\n\/\/ MBili \/ Tatu\r\n\/\/#define debugSerial Serial\r\n\/\/#define beePin 20\r\n\/\/ Autonomo \r\n#define debugSerial SerialUSB\r\n#define beePin BEE_VCC\r\n\/\/\/\/END SETTINGS\/\/\/\/\r\n\/\/ LoRaBEE\r\n#define loraSerial Serial1\r\n\r\nconst uint8_t devAddr[4] =\r\n{\r\n\t0x00, 0x00, 0x00, 0x00\r\n};\r\n\/\/ USE YOUR OWN KEYS!\r\nconst uint8_t appSKey[16] =\r\n{\r\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\r\n};\r\n\/\/ USE YOUR OWN KEYS!\r\nconst uint8_t nwkSKey[16] =\r\n{\r\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\r\n};\r\n\/\/TPH BMP sensor\r\nSodaq_BMP085 bmp;\r\nvoid setup()\r\n{\r\n  \/\/ REMOVE WHEN YOU DONT USE PC\r\n  while(!debugSerial);\r\n\tdebugSerial.begin(57600);\r\n\tloraSerial.begin(LoRaBee.getDefaultBaudRate());\r\n        digitalWrite(beePin, HIGH);\r\n\tLoRaBee.setDiag(debugSerial); \/\/ optional\r\n\tif (LoRaBee.initABP(loraSerial, devAddr, appSKey, nwkSKey, true))\r\n\t{\r\n\t\tdebugSerial.println(\"Connection to the network was successful.\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\tdebugSerial.println(\"Connection to the network failed!\");\r\n\t}\r\n  setupTPH();\r\n}\r\nvoid loop()\r\n{\r\n  debugSerial.println(\"Sending payload: TempSHT21, TempBMP, PressureBMP, HumiditySHT21\");\r\n  String reading = takeTPHReading();\r\n  \/\/sendPayload((uint8_t*)reading.c_str(), reading.length());\r\n  debugSerial.println();\r\n\t\tswitch (LoRaBee.sendReqAck(1, (uint8_t*)reading.c_str(), reading.length(), 8))\r\n\t\t{\r\n\t\tcase NoError:\r\n\t\t\tdebugSerial.println(\"Successful transmission.\");\r\n\t\t\tbreak;\r\n\t\tcase NoResponse:\r\n\t\t\tdebugSerial.println(\"There was no response from the device.\");\r\n\t\t\tbreak;\r\n\t\tcase Timeout:\r\n\t\t\tdebugSerial.println(\"Connection timed-out. Check your serial connection to the device! Sleeping for 20sec.\");\r\n\t\t\tdelay(20000);\r\n\t\t\tbreak;\r\n\t\tcase PayloadSizeError:\r\n\t\t\tdebugSerial.println(\"The size of the payload is greater than allowed. Transmission failed!\");\r\n\t\t\tbreak;\r\n\t\tcase InternalError:\r\n\t\t\tdebugSerial.println(\"Oh No! This shouldn't happen. Something is really wrong! Try restarting the device!rnThe program will now halt.\");\r\n\t\t\twhile (1) {};\r\n\t\t\tbreak;\r\n\t\tcase Busy:\r\n\t\t\tdebugSerial.println(\"The device is busy. Sleeping for 10 extra seconds.\");\r\n\t\t\tdelay(10000);\r\n\t\t\tbreak;\r\n\t\tcase NetworkFatalError:\r\n\t\t\tdebugSerial.println(\"There is a non-recoverable error with the network connection. You should re-connect.rnThe program will now halt.\");\r\n\t\t\twhile (1) {};\r\n\t\t\tbreak;\r\n\t\tcase NotConnected:\r\n\t\t\tdebugSerial.println(\"The device is not connected to the network. Please connect to the network before attempting to send data.rnThe program will now halt.\");\r\n\t\t\twhile (1) {};\r\n\t\t\tbreak;\r\n\t\tcase NoAcknowledgment:\r\n\t\t\tdebugSerial.println(\"There was no acknowledgment sent back!\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n    \/\/ Delay between readings\r\n    \/\/ 60 000 = 1 minute\r\n\t\tdelay(30000);\r\n\r\n}\r\nvoid setupTPH()\r\n{\r\n  \/\/Initialize the wire protocol for the TPH sensors\r\n  Wire.begin();\r\n\r\n  \/\/Initialize the TPH BMP sensor\r\n  bmp.begin();\r\n}\r\nString takeTPHReading()\r\n{\r\n  \/\/Create a String type data record in csv format\r\n  \/\/TempSHT21, TempBMP, PressureBMP, HumiditySHT21\r\n  String data = String(SHT2x.GetTemperature())  + \", \";\r\n  data += String(bmp.readTemperature()) + \", \";\r\n  data += String(bmp.readPressure() \/ 100)  + \", \";\r\n  data += String(SHT2x.GetHumidity());\r\n  debugSerial.println(data);\r\n\r\n  return data;\r\n}<\/pre>\n<p>To do so, a number of libraries needed to be installed first. These were Sodaq_RN2483, Sodaq_BMP085, Sodaq_SHT2x. From Sketch-&gt;Include Library-&gt;Manage Libraries I searched and installed them respectively.<\/p>\n<p>I built the default code with no errors. Next step was to configure the TTN application.<\/p>\n<h2>Creating a TheThingsNetwork (TTN) application<\/h2>\n<p>Next step was to create the TTN application and device.&nbsp;<\/p>\n<p>I logged in to my TTN account and went to my console: <a href=\"https:\/\/console.thethingsnetwork.org\/\">https:\/\/console.thethingsnetwork.org\/<\/a><\/p>\n<p>and clicked on the &#8220;Applications&#8221; icon.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Console.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"6918\" data-permalink=\"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/sodaq-autonomo-with-lorabee-on-ttn\/ttn-console\/\" data-orig-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Console.png?fit=745%2C580&amp;ssl=1\" data-orig-size=\"745,580\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"TTN Console\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Console.png?fit=745%2C580&amp;ssl=1\" class=\"aligncenter size-full wp-image-6918\" src=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Console.png?resize=745%2C580&#038;ssl=1\" alt=\"\" width=\"745\" height=\"580\" srcset=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Console.png?resize=200%2C156&amp;ssl=1 200w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Console.png?resize=300%2C234&amp;ssl=1 300w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Console.png?resize=400%2C311&amp;ssl=1 400w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Console.png?resize=600%2C467&amp;ssl=1 600w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Console.png?w=745&amp;ssl=1 745w\" sizes=\"(max-width: 745px) 100vw, 745px\" \/><\/a><\/p>\n<p>I clicked on &#8220;add application&#8221; and filled in Application ID: autonomo-test1, description (blah blah) and Handler: ttn-handler-eu. Application EUI is automatically issued by TTN.<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"6919\" data-permalink=\"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/sodaq-autonomo-with-lorabee-on-ttn\/ttn-new-application\/\" data-orig-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-new-application.png?fit=378%2C172&amp;ssl=1\" data-orig-size=\"378,172\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"TTN new application\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-new-application.png?fit=378%2C172&amp;ssl=1\" class=\"aligncenter size-full wp-image-6919\" src=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-new-application.png?resize=378%2C172&#038;ssl=1\" alt=\"\" width=\"378\" height=\"172\" srcset=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-new-application.png?resize=200%2C91&amp;ssl=1 200w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-new-application.png?resize=300%2C137&amp;ssl=1 300w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-new-application.png?w=378&amp;ssl=1 378w\" sizes=\"(max-width: 378px) 100vw, 378px\" \/>Next, from within the aforementioned application, I clicked on &#8220;Devices&#8221; and &#8220;register device&#8221;. I gave it a name &#8220;autonomo-01&#8221; and from Settings (top right) I changed the <strong>Activation Method to ABP<\/strong>.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"6920\" data-permalink=\"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/sodaq-autonomo-with-lorabee-on-ttn\/ttn-device\/\" data-orig-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device.png?fit=963%2C577&amp;ssl=1\" data-orig-size=\"963,577\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"TTN Device\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device.png?fit=963%2C577&amp;ssl=1\" class=\"aligncenter size-full wp-image-6920\" src=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device.png?resize=963%2C577&#038;ssl=1\" alt=\"\" width=\"963\" height=\"577\" srcset=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device.png?resize=200%2C120&amp;ssl=1 200w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device.png?resize=300%2C180&amp;ssl=1 300w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device.png?resize=400%2C240&amp;ssl=1 400w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device.png?resize=600%2C360&amp;ssl=1 600w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device.png?resize=768%2C460&amp;ssl=1 768w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device.png?resize=800%2C479&amp;ssl=1 800w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device.png?w=963&amp;ssl=1 963w\" sizes=\"(max-width: 963px) 100vw, 963px\" \/><\/a><\/p>\n<p>Finally, from the Device-&gt;Overview I copied the following and replaced the respective values on the example code (I used the msb values by clicking the&nbsp;<strong>&lt;&gt;<\/strong> hex\/C-style conversion icon from the TTN UI):&nbsp;<\/p>\n<ul>\n<li><!--(figma)ZmlnLWtpd2kBAAAA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J8BPDiRvAg6M0Oe+GyIrseNKmPtWLTfnxFknR99u3Q4lcEbXge0jRi6uBPZCh5LOdPoMTdyh24mgKNRD2rGQ7D9M+p\/i6U3pEriUY8bEvtq0T2hhEVdS1J1ufZ5SApDFrqihtFN2BpmyPkOT2NoWMvgYF6lJe8evY5ygYh0bdQXqJb4Kauc8PZ1LAI6J5BDYL7kFeRIAJ8WOxxbwAM+EnZX+b+svQMKgzq4Grps5lUtbpsufXXJf3E6DZHBpPwAmLeUtAxA9ixcN+QP9pqckOhPrUqlYORf0L7nvYkbjlU+x72fEKbQhY2GMnclhK+I6c9spOwl062Amu4zSYAeDetwEsAQAATZA7SwNREIXPubub+EhM8FEoPgu18EGMKWwshMRGEkQEbdewJIWuRSIWYlQEWdL5hFhIEAv\/hJDa+Ef8AdY6d5OYHbh3DmfmfsxcUsGAaRBQMGmlj\/MnR45bRog9FwB6EccgQPh9mIGprG274EyvdDsiOkn4KUb9YEjrJSQrX81m52jrVFBhU6MoqIi14+TLtls4dIQWRpvX7+Fy5BqIt8A3RMJnV1HPRP15hjF6JcaYdscxwUlMYRZzJFRl9+27c3TZOHuu1WQxYh4LpKHEO9c+NMGUq2ExRCzKuKsaAKRwS9wR98QD8Ug8EXXihb8SMf96Dej3gJY1lol2KDT60gHhbahW4V9IRD4\/ftajnoxXlb8ZyOb3NnP79tpBoeQmisV0cssu5VKZLPAH(\/figma)-->Device Address:&nbsp;<\/li>\n<li>Network Session Key<\/li>\n<li>App Session Key<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true\" title=\"TTN Keys\">\/\/ USE YOUR OWN KEYS!\r\nconst uint8_t devAddr[4] =\r\n{\r\n  0xXX, 0xXX, 0xXX, 0xF8 \r\n};\r\n\/\/ USE YOUR OWN KEYS!\r\nconst uint8_t appSKey[16] =\r\n{\r\n  0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0x39, 0xD4, 0x16, 0xE7, 0xA2, 0xC6, 0xF5, 0x3D\r\n};\r\n\/\/ USE YOUR OWN KEYS!\r\nconst uint8_t nwkSKey[16] =\r\n{\r\n  0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xC9, 0x62, 0x49, 0x16, 0xB0, 0x6B, 0xB3, 0x3A\r\n};<\/pre>\n<p><a href=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device-Keys.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"6924\" data-permalink=\"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/sodaq-autonomo-with-lorabee-on-ttn\/ttn-device-keys\/\" data-orig-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device-Keys.png?fit=1192%2C778&amp;ssl=1\" data-orig-size=\"1192,778\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"TTN Device Keys\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device-Keys.png?fit=1024%2C668&amp;ssl=1\" class=\"aligncenter size-full wp-image-6924\" src=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device-Keys.png?resize=1100%2C718&#038;ssl=1\" alt=\"\" width=\"1100\" height=\"718\" srcset=\"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device-Keys.png?resize=200%2C131&amp;ssl=1 200w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device-Keys.png?resize=300%2C196&amp;ssl=1 300w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device-Keys.png?resize=400%2C261&amp;ssl=1 400w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device-Keys.png?resize=600%2C392&amp;ssl=1 600w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device-Keys.png?resize=768%2C501&amp;ssl=1 768w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device-Keys.png?resize=800%2C522&amp;ssl=1 800w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device-Keys.png?resize=1024%2C668&amp;ssl=1 1024w, https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/TTN-Device-Keys.png?w=1192&amp;ssl=1 1192w\" sizes=\"(max-width: 1100px) 100vw, 1100px\" \/><\/a><\/p>\n<p>Next big thing is to actually send something useful and configure the Payload Formats and Integration methods.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linking&nbsp;Autonomo board profile to Arduino IDE (current version of Arduino IDE is 1.8.5) The Autonomo\u2019s board profile is available through the Arduino Boards Manager. In order to install the board files I added the SODAQ board manager URL on&nbsp;File-&gt;Preferences-&gt;Additional Board Manager URLs http:\/\/downloads.sodaq.net\/package_sodaq_samd_index.json From the Board Manger (Tools-&gt;Board-&gt;Board Manger) I installed the SODAQ Boards (SODAQ SAMD boards for the Autonomo). I configured the actual board rig with Autonomo, LoraBee, antenna, grove shield, solar panel and a lipo battery (3.7V, 1200mAh, 1804, KC 503562P). Next, I connected the board rig to my computer and from the boards list I selected the SODAQ Autonomo. For some reason when I requested the Board Info from the Arduino IDE I got BN: SODAQ SARA (!?) My intention is to compile the SODAQ LoraBee example code (here): #include &lt;Sodaq_RN2483.h&gt; #include &lt;Wire.h&gt; #include &lt;Sodaq_BMP085.h&gt; #include &lt;Sodaq_SHT2x.h&gt; \/\/\/\/SETTINGS\/\/\/ \/\/ MBili \/ Tatu \/\/#define debugSerial Serial \/\/#define beePin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6922,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[789,649,788],"tags":[792,795,794,793,796,791,790],"class_list":["post-6911","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-autonomo","category-electronics","category-lora","tag-autonomo","tag-lipo","tag-lorabee","tag-sodaq","tag-solar-panel","tag-thethingsnetwork","tag-ttn"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-content\/uploads\/2018\/05\/IMG_20180526_231816.jpg?fit=4160%2C3120&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pzkzw-1Nt","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-json\/wp\/v2\/posts\/6911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-json\/wp\/v2\/comments?post=6911"}],"version-history":[{"count":9,"href":"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-json\/wp\/v2\/posts\/6911\/revisions"}],"predecessor-version":[{"id":6929,"href":"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-json\/wp\/v2\/posts\/6911\/revisions\/6929"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-json\/wp\/v2\/media\/6922"}],"wp:attachment":[{"href":"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-json\/wp\/v2\/media?parent=6911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-json\/wp\/v2\/categories?post=6911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xylem.aegean.gr\/~modestos\/mo.blog\/wp-json\/wp\/v2\/tags?post=6911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}