{"id":5380,"date":"2023-12-06T16:29:38","date_gmt":"2023-12-06T16:29:38","guid":{"rendered":"https:\/\/lora.vsb.cz\/?page_id=5380"},"modified":"2024-10-28T12:59:55","modified_gmt":"2024-10-28T12:59:55","slug":"temperature-humidity-sensor-lr-mu-th-ip65","status":"publish","type":"page","link":"https:\/\/lora.vsb.cz\/index.php\/temperature-humidity-sensor-lr-mu-th-ip65\/","title":{"rendered":"Temperature &#038; Humidity sensor LR-MU-TH-IP65"},"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 \/ TTS SANDBOX<br \/>\n<\/span><\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; min-width: 100px;\" width=\"10%\"><strong>Frequency:<\/strong><\/td>\n<td>Europe 863-870 MHz (SF9 for RX2 &#8211; recommended)<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; min-width: 100px;\" width=\"10%\"><strong>Activation:<\/strong><\/td>\n<td>OTAA \/ ABP<\/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 revision:<\/strong><\/td>\n<td>October 28, 2024<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>One of the commercial products we use is the temperature and humidity sensor <strong>LR-MU-TH-IP65<\/strong> from Solidus TECH. At the device&#8217;s heart is a <strong>RHF76-052DM<\/strong>, which can be used for transmission\/reception in the <strong>434 &#8211; 915 MHz<\/strong> range. To measure temperature and humidity, the device uses a temperature and humidity sensor SHT31. The sensor measures temperatures in the range of -40 \u00baC to 85 \u00baC and humidity in the range of 0 to 100%. The accuracy of temperature measurement is \u00b1 0.5 \u00baC and humidity \u00b1 3%.\u00a0The device is <a href=\"https:\/\/eshop.solidustech.cz\/lpwan-temperature-air-humidity-ip65-ip20\/\" target=\"_blank\" rel=\"noopener\"><strong>available on the company&#8217;s website with the code LOR-MU-TH-IP65<\/strong><\/a>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5387 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/07\/solidus_temp.jpg\" alt=\"Temperature and humidity sensor\" width=\"500\" height=\"371\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/07\/solidus_temp.jpg 2363w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/07\/solidus_temp-300x223.jpg 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/07\/solidus_temp-1024x761.jpg 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/07\/solidus_temp-768x570.jpg 768w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/07\/solidus_temp-1536x1141.jpg 1536w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/07\/solidus_temp-2048x1521.jpg 2048w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<h2><span style=\"color: #189bd6;\"><strong>Prepare<\/strong><\/span><\/h2>\n<ul>\n<li><a href=\"https:\/\/eshop.solidustech.cz\/lpwan-temperature-air-humidity-ip65-ip20\/\" target=\"_blank\" rel=\"noopener\">LR-MU-TH-IP65<\/a><\/li>\n<li><a href=\"https:\/\/www.laskakit.cz\/prevodnik-usb-ttl-uart--ft232rl--dtr-pin\/?gad_source=1&amp;gclid=Cj0KCQiAsburBhCIARIsAExmsu7W8dU3-9VmTpeZiIKdv-H1qw2xGrAyzY3GNyN8XET4VfDmFbcMtBsaAlmTEALw_wcB\" target=\"_blank\" rel=\"noopener\">USB TTL UART converter &#8211; 3,3 V<\/a><\/li>\n<li>1(2)x <a href=\"https:\/\/rpishop.cz\/aa\/1502-saft-aa-baterie-ls-14500.html?gad_source=1&amp;gclid=Cj0KCQiAsburBhCIARIsAExmsu5mkdSe5pJHn0t3aH4vKQVzuhHX9_PC_PrkF7vLzpTNXdJD3eGxuk4aAhqyEALw_wcB\" target=\"_blank\" rel=\"noopener\">SAFT AA battery LS 14500 3.6 V<\/a><\/li>\n<li>PC + USB cable<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><strong><span style=\"color: #800000;\">Serial Monitor setup<\/span><\/strong><\/h2>\n<ol>\n<li>Download <strong><a href=\"https:\/\/code.visualstudio.com\/\" target=\"_blank\" rel=\"noopener\">Visual Studio Code<\/a><\/strong>.<\/li>\n<li>Run Visual Studio Code.<\/li>\n<li style=\"text-align: left;\">In the VS Code <strong>Extensions -&gt;<\/strong> search <strong>Serial Monitor<\/strong> by Microsoft <strong>-&gt; Install<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6396 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_1.png\" alt=\"Serial monitor installation\" width=\"450\" height=\"315\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_1.png 581w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_1-300x210.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/li>\n<li>Open a new terminal via <strong>Terminal -&gt; New Terminal.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6397 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_2.png\" alt=\"New Terminal\" width=\"450\" height=\"202\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_2.png 883w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_2-300x135.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_2-768x344.png 768w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/strong><\/li>\n<li>In the <strong>SERIAL MONITOR<\/strong> tab, set the parameters according to the following image:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6398 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_3-e1701854866784.png\" alt=\"\" width=\"999\" height=\"216\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_3-e1701854866784.png 1558w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_3-e1701854866784-300x65.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_3-e1701854866784-1024x221.png 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_3-e1701854866784-768x166.png 768w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_3-e1701854866784-1536x332.png 1536w\" sizes=\"auto, (max-width: 999px) 100vw, 999px\" \/><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #800000;\"><strong>Activation<\/strong><\/span><\/h2>\n<p><strong>Over The Air Activation (OTAA) &#8211;<\/strong> the most secure and recommended activation method for end devices. Devices perform a join procedure with the network, during which a dynamic device address is assigned and security keys are negotiated with the device.<\/p>\n<p><strong>Activation By Personalization (ABP)<\/strong> &#8211; requires hardcoding the device address as well as the security keys in the device. ABP is <strong>less secure<\/strong>\u00a0than OTAA and also has the downside that devices can not switch network providers without manually changing keys in the device.<\/p>\n<p>See the\u00a0<a href=\"https:\/\/www.thethingsnetwork.org\/docs\/lorawan\/end-device-activation\/\" target=\"_blank\" rel=\"noopener\"><strong>documentation<\/strong><\/a> for more information on activation.<\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #189bd6;\"><strong>Over The Air Activation (OTAA)<\/strong><\/span><\/h2>\n<h4><span style=\"color: #800000;\"><strong>Add LR-MU-TH-IP65 into The Things Stack<\/strong><\/span><\/h4>\n<ol>\n<li><a href=\"https:\/\/www.thethingsnetwork.org\/login?next=\/\" target=\"_blank\" rel=\"noopener\"><strong>Create an account<\/strong><\/a> on The Things Network if you don&#8217;t have one.<\/li>\n<li><strong>Login<\/strong> on <strong><a href=\"https:\/\/www.thethingsnetwork.org\/login?next=\/\" target=\"_blank\" rel=\"noopener\">The Things Network<\/a><\/strong>.<\/li>\n<li>Click on your username and choose <strong>Console<\/strong>.<\/li>\n<li>Select a network cluster.<\/li>\n<\/ol>\n<h6><strong>Add application<\/strong><\/h6>\n<ol>\n<li><strong>Go to applications<\/strong>.<\/li>\n<li>Click on button <strong>+ Add application<\/strong>.<\/li>\n<li>Write something into <strong>Application ID<\/strong>.<\/li>\n<li>Click on button <strong>Create application<\/strong>.<\/li>\n<\/ol>\n<h6><strong>Add end device<\/strong><\/h6>\n<ol>\n<li>In your application click on button <strong>+ Register end device<\/strong>.<\/li>\n<li>Input Method \u2013 Choose <strong>Enter end device specifics manually<\/strong>.<\/li>\n<li>Frequency plan &#8211; <span style=\"color: #000000;\"><strong>Europe 863-870 MHz (SF9 for RX2 &#8211; recommended)<\/strong><\/span><\/li>\n<li>LoRaWAN version &#8211; <strong>LoRaWAN Specification 1.0.3<\/strong><\/li>\n<li>Click on <strong>Show advanced activation, LoRaWAN class and cluster settings<\/strong><\/li>\n<li>Activation mode &#8211; <strong>Over the air activation (OTAA)<\/strong><\/li>\n<li>Additional LoRaWAN class capabilities \u2013\u00a0<strong>None (class A only)<\/strong><\/li>\n<li><strong>Deselect<\/strong>\u00a0\u2013 Use network\u2019s default MAC settings<\/li>\n<li>Rx2 data rate =\u00a0<strong>3<\/strong><\/li>\n<li>Rx2 frequency =\u00a0<strong>869,525 MHz<\/strong><\/li>\n<li>JoinEUI &#8211; <strong>0000000000000000<\/strong><\/li>\n<li>Click on <strong>Confirm<\/strong>.<\/li>\n<li>DevEUI &#8211; <strong>Generate<\/strong><\/li>\n<li>AppKey &#8211; <strong>Generate<\/strong><\/li>\n<li>End device ID &#8211; here you can name your device<\/li>\n<li>After registration &#8211; <strong>View registered end device<\/strong><\/li>\n<li>Click on button <strong>Register end device<\/strong><\/li>\n<li>Click on <strong>Settings<\/strong><\/li>\n<li>Network layer &#8211; <strong>Expand<\/strong><\/li>\n<li>Click on <strong>Advanced MAC settings<\/strong><\/li>\n<li>Desired Rx1 delay = <strong>1<\/strong><\/li>\n<li>Rx1 data rate offset = <strong>0<\/strong><\/li>\n<li>Add Frequency = <strong>868100000<\/strong><\/li>\n<li>Add Frequency = <strong>868300000<\/strong><\/li>\n<li>Add Frequency = <strong>868500000<\/strong><\/li>\n<li>Add Frequency = <strong>867100000<\/strong><\/li>\n<li>Add Frequency = <strong>867300000<\/strong><\/li>\n<li>Add Frequency = <strong>867500000<\/strong><\/li>\n<li>Add Frequency = <strong>867700000<\/strong><\/li>\n<li>Add Frequency = <strong>867900000<\/strong><\/li>\n<li>Adaptive data rate (ADR) &#8211; <strong>Dynamic mode<\/strong><\/li>\n<li>Click on button <strong>Save changes<\/strong><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h6><strong>Payload formatters<\/strong><\/h6>\n<ol>\n<li style=\"text-align: left;\">In <strong>TTS -&gt; Applications -&gt; YourAppName -&gt; YourEndDeviceName -&gt; Payload formatters -&gt; Uplink<\/strong> change <strong>Formatter type<\/strong> to <strong>Custom Javascript formatter <\/strong>and to <strong>Formatter code<\/strong> copy and paste code bellow:\n<pre>function decodeUplink(input) {\r\n  let payload = input.bytes;\r\n  let voltage = payload[0];\r\n  let temperature = (payload[1] &lt;&lt; 8) | payload[2];\r\n  let humidity = (payload[3] &lt;&lt; 8) | payload[4];\r\n   \r\n  let decodedVoltage = voltage * 30 \/ 1000;\r\n  let decodedTemperature = temperature \/ 10;\r\n  let decodedHumidity = humidity \/ 10;\r\n\r\n  let decodedPayload = {\r\n    'voltage': decodedVoltage,\r\n    'temperature': decodedTemperature,\r\n    'humidity': decodedHumidity\r\n  };\r\n\r\n  return {\r\n    data: decodedPayload,\r\n    warnings: [],\r\n    errors: []\r\n  };\r\n}<\/pre>\n<\/li>\n<li><strong>Save changes<\/strong><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #800000;\"><strong>LR-MU-TH-IP65 setup<\/strong><\/span><\/h4>\n<ol>\n<li>Connect <strong>LR-MU-TH-IP65<\/strong> using <strong>USB TTL UART converter &#8211; <span style=\"color: #ff0000;\">3,3 V<\/span><\/strong> and <strong>USB cable<\/strong> to your computer. (Pin order in the image is from left to right &#8211; GND, CTS, VCC, TX, RX, DTR).<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6407\" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_5-scaled.jpg\" alt=\"Connected USB TTL UART converter\" width=\"403\" height=\"296\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_5-scaled.jpg 2560w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_5-300x220.jpg 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_5-1024x751.jpg 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_5-768x563.jpg 768w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_5-1536x1126.jpg 1536w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_5-2048x1502.jpg 2048w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/li>\n<li>In <strong>VS Code<\/strong>, in <strong>SERIAL MONITOR<\/strong>, select <strong>Port<\/strong> and press the <strong>Start Monitoring<\/strong> button.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6399 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_4-e1701855920914.png\" alt=\"Serial Monitor port and start monitoring button\" width=\"998\" height=\"211\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_4-e1701855920914.png 1197w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_4-e1701855920914-300x63.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_4-e1701855920914-1024x216.png 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_4-e1701855920914-768x162.png 768w\" sizes=\"auto, (max-width: 998px) 100vw, 998px\" \/><\/li>\n<li>To set up <strong>LR-MU-TH-IP65<\/strong>, enter the following individual commands <strong>line by line<\/strong> into <strong>SERIAL MONITOR<\/strong> and send them to the device. Replace <strong>AppEui<\/strong>, <strong>DevEui<\/strong> and <strong>APPKEY<\/strong> with keys in TTS. Keys are in <strong>TTS -&gt; Applications -&gt; YourAppName -&gt; YourEndDeviceName -&gt; Device overview -&gt; Activation information<\/strong>:\n<pre>show\r\nAT+FDEFAULT\r\nAT+CLASS=A\r\nAT+MODE=\"OTAA\"\r\nAT+ID=AppEui, \"0000000000000000\"\r\nAT+ID=DevEui, \"0000000000000000\"\r\nAT+KEY=APPKEY, \"00000000000000000000000000000000\"\r\nAT+POWER=14\r\nAT+ADR=on\r\nmessage:1\r\nsleep:10\r\nscan:10\r\nreset<\/pre>\n<\/li>\n<li>After entering and submitting <strong>the last command<\/strong>, you should see a listing similar to the one in the following image:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6434\" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_8.png\" alt=\"readout\" width=\"800\" height=\"481\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_8.png 1274w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_8-300x180.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_8-1024x616.png 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_8-768x462.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/li>\n<li>In\u00a0<strong>TTS -&gt; Applications -&gt; YourAppName -&gt; YourEndDeviceName -&gt; Live data<\/strong>\u00a0you should\u00a0<strong>every 10 minutes<\/strong>\u00a0see this:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6429\" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_7.png\" alt=\"console\" width=\"801\" height=\"388\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_7.png 1057w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_7-300x145.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_7-1024x496.png 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_7-768x372.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #800000;\"><strong>Subsequent setup using a downlinks<\/strong><\/span><\/h4>\n<p><strong>A1XXXX<\/strong> &#8211; Periodic sleep setting, where XXXX is the decimal value of the sleep parameter. For example, A10005 sets the periodic mode to 5 min., A10120 sets the periodic mode to 120 min.<\/p>\n<p><strong>A2XX<\/strong> &#8211; Uplink message type setting, where XX is either 01 for UNCONFIRMED messages and 02 for CONFIRMED messages.<\/p>\n<p><strong>A3XX<\/strong> &#8211; DR type setting where XX is 00 to 05 which corresponds to SF12 to SF7.<\/p>\n<p><strong>A4XX<\/strong> &#8211; ADR enable\/disable where XX is either 01 for ADR enable type messages and 02 for ADR disable.<\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #800000;\"><strong>Other optional AT commands<\/strong><\/span><\/h4>\n<p>You can find more commands in the <strong><a href=\"https:\/\/files.seeedstudio.com\/wiki\/Seeeduino_LoRa\/res\/AT-Command-Specificationv1.2.pdf\" target=\"_blank\" rel=\"noopener\">module documentation<\/a><\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #800000;\"><strong>Data visualization<\/strong><\/span><\/h4>\n<p>If you want to visualize your measured data, continue with the following tutorial:<\/p>\n<ul>\n<li><strong><a href=\"https:\/\/lora.vsb.cz\/index.php\/telegraf-influxdb-grafana\/\" target=\"_blank\" rel=\"noopener\">Telegraf &amp; InfluxDB &amp; Grafana<\/a><\/strong><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<h2><span style=\"color: #189bd6;\"><strong>Activation By Personalization (ABP)<\/strong><\/span><\/h2>\n<h4><span style=\"color: #800000;\"><strong>Add LR-MU-TH-IP65 into The Things Stack<\/strong><\/span><\/h4>\n<ol>\n<li><a href=\"https:\/\/www.thethingsnetwork.org\/login?next=\/\" target=\"_blank\" rel=\"noopener\"><strong>Create an account<\/strong><\/a> on The Things Network if you don&#8217;t have one.<\/li>\n<li><strong>Login<\/strong> on <strong><a href=\"https:\/\/www.thethingsnetwork.org\/login?next=\/\" target=\"_blank\" rel=\"noopener\">The Things Network<\/a><\/strong>.<\/li>\n<li>Click on your username and choose <strong>Console<\/strong>.<\/li>\n<li>Select a network cluster.<\/li>\n<\/ol>\n<h6><strong>Add application<\/strong><\/h6>\n<ol>\n<li><strong>Go to applications<\/strong>.<\/li>\n<li>Click on button <strong>+ Add application<\/strong>.<\/li>\n<li>Write something into <strong>Application ID<\/strong>.<\/li>\n<li>Click on button <strong>Create application<\/strong>.<\/li>\n<\/ol>\n<h6><strong>Add end device<\/strong><\/h6>\n<ol>\n<li>In your application click on button <strong>+ Register end device<\/strong>.<\/li>\n<li>Input Method \u2013 Choose\u00a0<strong>Enter end device specifics manually<\/strong>.<\/li>\n<li>Frequency plan &#8211; <span style=\"color: #000000;\"><strong>Europe 863-870 MHz (SF9 for RX2 &#8211; recommended)<\/strong><\/span><\/li>\n<li>LoRaWAN version &#8211; <strong>LoRaWAN Specification 1.0.3<\/strong><\/li>\n<li>Click on <strong>Show advanced activation, LoRaWAN class and cluster settings<\/strong><\/li>\n<li>Activation mode &#8211; <strong>Activation by personalization (ABP)<\/strong><\/li>\n<li>Additional LoRaWAN class capabilities &#8211; <strong>None (class A only)<\/strong><\/li>\n<li><strong>Deselect<\/strong> &#8211; Use network&#8217;s default MAC settings<\/li>\n<li>Rx1 data rate offset = <strong>0<\/strong><\/li>\n<li>Rx1 delay = <strong>1<\/strong><\/li>\n<li>Resets frame counters &#8211; <strong>Enabled<\/strong><\/li>\n<li>Rx2 data rate = <strong>3<\/strong><\/li>\n<li>Rx2 frequency = <strong>869,525 MHz<\/strong><\/li>\n<li>Add entry = <strong>868100000<\/strong><\/li>\n<li>Add entry = <strong>868300000<\/strong><\/li>\n<li>Add entry = <strong>868500000<\/strong><\/li>\n<li>Add entry = <strong>867100000<\/strong><\/li>\n<li>Add entry = <strong>867300000<\/strong><\/li>\n<li>Add entry = <strong>867500000<\/strong><\/li>\n<li>Add entry = <strong>867700000<\/strong><\/li>\n<li>Add entry = <strong>867900000<\/strong><\/li>\n<li>DevEUI &#8211; <strong>Generate<\/strong><\/li>\n<li>Device address &#8211; <strong>Generate<\/strong><\/li>\n<li>AppSKey &#8211; <strong>Generate<\/strong><\/li>\n<li>NwkSKey &#8211; <strong>Generate<\/strong><\/li>\n<li>End device ID &#8211; here you can name your device<\/li>\n<li>After registration &#8211; <strong>View registered end device<\/strong><\/li>\n<li>Click on button <strong>Register end device<\/strong><\/li>\n<li>Click on <strong>Settings<\/strong><\/li>\n<li>Network layer &#8211; <strong>Expand<\/strong><\/li>\n<li>Click on <strong>Advanced MAC settings<\/strong><\/li>\n<li>Desired Rx1 delay = <strong>1<\/strong><\/li>\n<li>Adaptive data rate (ADR) \u2013\u00a0<strong>Dynamic mode<\/strong><\/li>\n<li>Click on button <strong>Save changes<\/strong><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h6><strong>Payload formatters<\/strong><\/h6>\n<ol>\n<li style=\"text-align: left;\">In <strong>TTS -&gt; Applications -&gt; YourAppName -&gt; YourEndDeviceName -&gt; Payload formatters -&gt; Uplink<\/strong> change <strong>Formatter type<\/strong> to <strong>Custom Javascript formatter <\/strong>and to <strong>Formatter code<\/strong> copy and paste code bellow:\n<pre>function decodeUplink(input) {\r\n  let payload = input.bytes;\r\n  let voltage = payload[0];\r\n  let temperature = (payload[1] &lt;&lt; 8) | payload[2];\r\n  let humidity = (payload[3] &lt;&lt; 8) | payload[4];\r\n   \r\n  let decodedVoltage = voltage * 30 \/ 1000;\r\n  let decodedTemperature = temperature \/ 10;\r\n  let decodedHumidity = humidity \/ 10;\r\n\r\n  let decodedPayload = {\r\n    'voltage': decodedVoltage,\r\n    'temperature': decodedTemperature,\r\n    'humidity': decodedHumidity\r\n  };\r\n\r\n  return {\r\n    data: decodedPayload,\r\n    warnings: [],\r\n    errors: []\r\n  };\r\n}<\/pre>\n<\/li>\n<li><strong>Save changes<\/strong><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #800000;\"><strong>LR-MU-TH-IP65 setup<\/strong><\/span><\/h4>\n<ol>\n<li>Connect <strong>LR-MU-TH-IP65<\/strong> using <strong>USB TTL UART converter &#8211; <span style=\"color: #ff0000;\">3,3 V<\/span><\/strong> and <strong>USB cable<\/strong> to your computer. (Pin order in the image is from left to right &#8211; GND, CTS, VCC, TX, RX, DTR).<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6407\" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_5-scaled.jpg\" alt=\"Connected USB TTL UART converter\" width=\"403\" height=\"296\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_5-scaled.jpg 2560w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_5-300x220.jpg 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_5-1024x751.jpg 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_5-768x563.jpg 768w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_5-1536x1126.jpg 1536w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_5-2048x1502.jpg 2048w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/li>\n<li>In <strong>VS Code<\/strong>, in <strong>SERIAL MONITOR<\/strong>, select <strong>Port<\/strong> and press the <strong>Start Monitoring<\/strong> button.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6399 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_4-e1701855920914.png\" alt=\"Serial Monitor port and start monitoring button\" width=\"998\" height=\"211\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_4-e1701855920914.png 1197w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_4-e1701855920914-300x63.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_4-e1701855920914-1024x216.png 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_4-e1701855920914-768x162.png 768w\" sizes=\"auto, (max-width: 998px) 100vw, 998px\" \/><\/li>\n<li><span style=\"color: #ff0000;\"><span style=\"color: #000000;\">To set up <strong>LR-MU-TH-IP65<\/strong>, enter the following individual commands <strong>line by line<\/strong> into <strong>SERIAL MONITOR<\/strong> and send them to the device.<\/span> <span style=\"color: #000000;\">Replace <strong>NWKSKEY<\/strong>, <strong>APPSKEY<\/strong> and <strong>DEVADDR<\/strong> with keys of your end device registred in TTS. Keys are in <strong>TTS -&gt; Applications -&gt; YourAppName -&gt; YourEndDeviceName -&gt; Device overview -&gt; Session information<\/strong>:<\/span><\/span>\n<pre><span style=\"color: #ff0000;\"><span style=\"color: #000000;\">show\r\nAT+FDEFAULT\r\nAT+CLASS=A\r\nAT+MODE=\"ABP\"\r\nAT+KEY=NWKSKEY, \"00000000000000000000000000000000\"\r\nAT+KEY=APPSKEY, \"00000000000000000000000000000000\"\r\nAT+ID=DEVADDR, \"00000000\"<\/span>\r\n<span style=\"color: #000000;\">AT+POWER=14\r\nAT+ADR=on\r\nmessage:1\r\nsleep:10\r\nscan:10\r\nreset<\/span><\/span><\/pre>\n<\/li>\n<li>After entering and submitting <strong>the last command<\/strong>, you should see a listing similar to the one in the following image:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6441\" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_9.png\" alt=\"Serial monitor\" width=\"801\" height=\"434\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_9.png 1274w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_9-300x163.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_9-1024x555.png 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_9-768x417.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/li>\n<li>In\u00a0<strong>TTS -&gt; Applications -&gt; YourAppName -&gt; YourEndDeviceName -&gt; Live data<\/strong>\u00a0you should\u00a0<strong>every 10 minutes<\/strong>\u00a0see this:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6442\" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_10.png\" alt=\"TTS console\" width=\"801\" height=\"363\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_10.png 1053w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_10-300x136.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_10-1024x464.png 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/12\/solidus_temp_10-768x348.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #800000;\"><strong>Subsequent setup using a downlinks<\/strong><\/span><\/h4>\n<p><strong>A1XXXX<\/strong> &#8211; Periodic sleep setting, where XXXX is the decimal value of the sleep parameter. For example, A10005 sets the periodic mode to 5 min., A10120 sets the periodic mode to 120 min.<\/p>\n<p><strong>A2XX<\/strong> &#8211; Uplink message type setting, where XX is either 01 for UNCONFIRMED messages and 02 for CONFIRMED messages.<\/p>\n<p><strong>A3XX<\/strong> &#8211; DR type setting where XX is 00 to 05 which corresponds to SF12 to SF7.<\/p>\n<p><strong>A4XX<\/strong> &#8211; ADR enable\/disable where XX is either 01 for ADR enable type messages and 02 for ADR disable.<\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #800000;\"><strong>Other optional AT commands<\/strong><\/span><\/h4>\n<p>You can find more commands in the <strong><a href=\"https:\/\/files.seeedstudio.com\/wiki\/Seeeduino_LoRa\/res\/AT-Command-Specificationv1.2.pdf\" target=\"_blank\" rel=\"noopener\">module documentation<\/a><\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #800000;\"><strong>Data visualization<\/strong><\/span><\/h4>\n<p>If you want to visualize your measured data, continue with the following tutorial:<\/p>\n<ul>\n<li><strong><a href=\"https:\/\/lora.vsb.cz\/index.php\/telegraf-influxdb-grafana\/\" target=\"_blank\" rel=\"noopener\">Telegraf &amp; InfluxDB &amp; Grafana<\/a><\/strong><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>TTN version: TTNv3 \/ TTS SANDBOX Frequency: Europe 863-870 MHz (SF9 for RX2 &#8211; recommended) Activation: OTAA \/ ABP Device Class: Class A Last revision: October 28, 2024 One of the commercial products we use is the temperature and humidity sensor LR-MU-TH-IP65 from Solidus TECH. At the device&#8217;s heart is a RHF76-052DM, which can be [&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-5380","page","type-page","status-publish","hentry","post"],"_links":{"self":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages\/5380","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=5380"}],"version-history":[{"count":54,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages\/5380\/revisions"}],"predecessor-version":[{"id":8179,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages\/5380\/revisions\/8179"}],"wp:attachment":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/media?parent=5380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}